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

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

There is a newer version: 23.0.0-legacy
Show newest version
/*
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 V1 {
  private V1() {}

  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 AWSElasticBlockStoreVolumeSourceOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * 
     * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * 
* * optional string volumeID = 1; */ boolean hasVolumeID(); /** * * *
     * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * 
* * optional string volumeID = 1; */ java.lang.String getVolumeID(); /** * * *
     * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * 
* * optional string volumeID = 1; */ com.google.protobuf.ByteString getVolumeIDBytes(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * +optional
     * 
* * optional int32 partition = 3; */ boolean hasPartition(); /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * +optional
     * 
* * optional int32 partition = 3; */ int getPartition(); /** * * *
     * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
     * If omitted, the default is "false".
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
     * If omitted, the default is "false".
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); } /** * * *
   * Represents a Persistent Disk resource in AWS.
   * An AWS EBS disk must exist before mounting to a container. The disk
   * must also be in the same AWS zone as the kubelet. An AWS EBS disk
   * can only be mounted as read/write once. AWS EBS volumes support
   * ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource} */ public static final class AWSElasticBlockStoreVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource) AWSElasticBlockStoreVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use AWSElasticBlockStoreVolumeSource.newBuilder() to construct. private AWSElasticBlockStoreVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AWSElasticBlockStoreVolumeSource() { volumeID_ = ""; fsType_ = ""; partition_ = 0; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AWSElasticBlockStoreVolumeSource( 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; volumeID_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 24: { bitField0_ |= 0x00000004; partition_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.class, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMEID_FIELD_NUMBER = 1; private volatile java.lang.Object volumeID_; /** * * *
     * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } } /** * * *
     * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_FIELD_NUMBER = 3; private int partition_; /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * +optional
     * 
* * optional int32 partition = 3; */ public boolean hasPartition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * +optional
     * 
* * optional int32 partition = 3; */ public int getPartition() { return partition_; } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
     * If omitted, the default is "false".
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
     * If omitted, the default is "false".
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, partition_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, readOnly_); } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, partition_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } 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.V1.AWSElasticBlockStoreVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource other = (io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource) obj; boolean result = true; result = result && (hasVolumeID() == other.hasVolumeID()); if (hasVolumeID()) { result = result && getVolumeID().equals(other.getVolumeID()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasPartition() == other.hasPartition()); if (hasPartition()) { result = result && (getPartition() == other.getPartition()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasVolumeID()) { hash = (37 * hash) + VOLUMEID_FIELD_NUMBER; hash = (53 * hash) + getVolumeID().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasPartition()) { hash = (37 * hash) + PARTITION_FIELD_NUMBER; hash = (53 * hash) + getPartition(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource 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.V1.AWSElasticBlockStoreVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource 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.V1.AWSElasticBlockStoreVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource 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.V1.AWSElasticBlockStoreVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource 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.V1.AWSElasticBlockStoreVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource 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.V1.AWSElasticBlockStoreVolumeSource 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; } /** * * *
     * Represents a Persistent Disk resource in AWS.
     * An AWS EBS disk must exist before mounting to a container. The disk
     * must also be in the same AWS zone as the kubelet. An AWS EBS disk
     * can only be mounted as read/write once. AWS EBS volumes support
     * ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource) io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.class, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.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(); volumeID_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); partition_ = 0; bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource build() { io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource buildPartial() { io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource result = new io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumeID_ = volumeID_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.partition_ = partition_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.readOnly_ = readOnly_; 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.V1.AWSElasticBlockStoreVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource other) { if (other == io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeID()) { bitField0_ |= 0x00000001; volumeID_ = other.volumeID_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasPartition()) { setPartition(other.getPartition()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.AWSElasticBlockStoreVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumeID_ = ""; /** * * *
       * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * 
* * optional string volumeID = 1; */ public Builder setVolumeID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } /** * * *
       * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * 
* * optional string volumeID = 1; */ public Builder clearVolumeID() { bitField0_ = (bitField0_ & ~0x00000001); volumeID_ = getDefaultInstance().getVolumeID(); onChanged(); return this; } /** * * *
       * Unique ID of the persistent disk resource in AWS (Amazon EBS volume).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * 
* * optional string volumeID = 1; */ public Builder setVolumeIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private int partition_; /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * +optional
       * 
* * optional int32 partition = 3; */ public boolean hasPartition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * +optional
       * 
* * optional int32 partition = 3; */ public int getPartition() { return partition_; } /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * +optional
       * 
* * optional int32 partition = 3; */ public Builder setPartition(int value) { bitField0_ |= 0x00000004; partition_ = value; onChanged(); return this; } /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * +optional
       * 
* * optional int32 partition = 3; */ public Builder clearPartition() { bitField0_ = (bitField0_ & ~0x00000004); partition_ = 0; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
       * If omitted, the default is "false".
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
       * If omitted, the default is "false".
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
       * If omitted, the default is "false".
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * Specify "true" to force and set the ReadOnly property in VolumeMounts to "true".
       * If omitted, the default is "false".
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = 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.core.v1.AWSElasticBlockStoreVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource) private static final io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource(); } public static io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AWSElasticBlockStoreVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AWSElasticBlockStoreVolumeSource(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.V1.AWSElasticBlockStoreVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Affinity) com.google.protobuf.MessageOrBuilder { /** * * *
     * Describes node affinity scheduling rules for the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ boolean hasNodeAffinity(); /** * * *
     * Describes node affinity scheduling rules for the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ io.kubernetes.client.proto.V1.NodeAffinity getNodeAffinity(); /** * * *
     * Describes node affinity scheduling rules for the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ io.kubernetes.client.proto.V1.NodeAffinityOrBuilder getNodeAffinityOrBuilder(); /** * * *
     * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ boolean hasPodAffinity(); /** * * *
     * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ io.kubernetes.client.proto.V1.PodAffinity getPodAffinity(); /** * * *
     * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ io.kubernetes.client.proto.V1.PodAffinityOrBuilder getPodAffinityOrBuilder(); /** * * *
     * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ boolean hasPodAntiAffinity(); /** * * *
     * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ io.kubernetes.client.proto.V1.PodAntiAffinity getPodAntiAffinity(); /** * * *
     * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder getPodAntiAffinityOrBuilder(); } /** * * *
   * Affinity is a group of affinity scheduling rules.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Affinity} */ public static final class Affinity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Affinity) AffinityOrBuilder { private static final long serialVersionUID = 0L; // Use Affinity.newBuilder() to construct. private Affinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Affinity() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Affinity( 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.V1.NodeAffinity.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = nodeAffinity_.toBuilder(); } nodeAffinity_ = input.readMessage( io.kubernetes.client.proto.V1.NodeAffinity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodeAffinity_); nodeAffinity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.PodAffinity.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = podAffinity_.toBuilder(); } podAffinity_ = input.readMessage( io.kubernetes.client.proto.V1.PodAffinity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(podAffinity_); podAffinity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.PodAntiAffinity.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = podAntiAffinity_.toBuilder(); } podAntiAffinity_ = input.readMessage( io.kubernetes.client.proto.V1.PodAntiAffinity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(podAntiAffinity_); podAntiAffinity_ = 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.V1.internal_static_k8s_io_api_core_v1_Affinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Affinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Affinity.class, io.kubernetes.client.proto.V1.Affinity.Builder.class); } private int bitField0_; public static final int NODEAFFINITY_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.NodeAffinity nodeAffinity_; /** * * *
     * Describes node affinity scheduling rules for the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public boolean hasNodeAffinity() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Describes node affinity scheduling rules for the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public io.kubernetes.client.proto.V1.NodeAffinity getNodeAffinity() { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_; } /** * * *
     * Describes node affinity scheduling rules for the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public io.kubernetes.client.proto.V1.NodeAffinityOrBuilder getNodeAffinityOrBuilder() { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_; } public static final int PODAFFINITY_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PodAffinity podAffinity_; /** * * *
     * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public boolean hasPodAffinity() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public io.kubernetes.client.proto.V1.PodAffinity getPodAffinity() { return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_; } /** * * *
     * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public io.kubernetes.client.proto.V1.PodAffinityOrBuilder getPodAffinityOrBuilder() { return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_; } public static final int PODANTIAFFINITY_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.PodAntiAffinity podAntiAffinity_; /** * * *
     * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public boolean hasPodAntiAffinity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public io.kubernetes.client.proto.V1.PodAntiAffinity getPodAntiAffinity() { return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_; } /** * * *
     * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder getPodAntiAffinityOrBuilder() { return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_; } 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, getNodeAffinity()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPodAffinity()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getPodAntiAffinity()); } 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, getNodeAffinity()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPodAffinity()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPodAntiAffinity()); } 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.V1.Affinity)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Affinity other = (io.kubernetes.client.proto.V1.Affinity) obj; boolean result = true; result = result && (hasNodeAffinity() == other.hasNodeAffinity()); if (hasNodeAffinity()) { result = result && getNodeAffinity().equals(other.getNodeAffinity()); } result = result && (hasPodAffinity() == other.hasPodAffinity()); if (hasPodAffinity()) { result = result && getPodAffinity().equals(other.getPodAffinity()); } result = result && (hasPodAntiAffinity() == other.hasPodAntiAffinity()); if (hasPodAntiAffinity()) { result = result && getPodAntiAffinity().equals(other.getPodAntiAffinity()); } 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 (hasNodeAffinity()) { hash = (37 * hash) + NODEAFFINITY_FIELD_NUMBER; hash = (53 * hash) + getNodeAffinity().hashCode(); } if (hasPodAffinity()) { hash = (37 * hash) + PODAFFINITY_FIELD_NUMBER; hash = (53 * hash) + getPodAffinity().hashCode(); } if (hasPodAntiAffinity()) { hash = (37 * hash) + PODANTIAFFINITY_FIELD_NUMBER; hash = (53 * hash) + getPodAntiAffinity().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Affinity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Affinity 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.V1.Affinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Affinity 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.V1.Affinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Affinity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Affinity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Affinity 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.V1.Affinity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Affinity 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.V1.Affinity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Affinity 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.V1.Affinity 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; } /** * * *
     * Affinity is a group of affinity scheduling rules.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Affinity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Affinity) io.kubernetes.client.proto.V1.AffinityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Affinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Affinity.class, io.kubernetes.client.proto.V1.Affinity.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Affinity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNodeAffinityFieldBuilder(); getPodAffinityFieldBuilder(); getPodAntiAffinityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nodeAffinityBuilder_ == null) { nodeAffinity_ = null; } else { nodeAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (podAffinityBuilder_ == null) { podAffinity_ = null; } else { podAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (podAntiAffinityBuilder_ == null) { podAntiAffinity_ = null; } else { podAntiAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Affinity_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Affinity getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Affinity.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Affinity build() { io.kubernetes.client.proto.V1.Affinity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Affinity buildPartial() { io.kubernetes.client.proto.V1.Affinity result = new io.kubernetes.client.proto.V1.Affinity(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (nodeAffinityBuilder_ == null) { result.nodeAffinity_ = nodeAffinity_; } else { result.nodeAffinity_ = nodeAffinityBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (podAffinityBuilder_ == null) { result.podAffinity_ = podAffinity_; } else { result.podAffinity_ = podAffinityBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (podAntiAffinityBuilder_ == null) { result.podAntiAffinity_ = podAntiAffinity_; } else { result.podAntiAffinity_ = podAntiAffinityBuilder_.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.V1.Affinity) { return mergeFrom((io.kubernetes.client.proto.V1.Affinity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Affinity other) { if (other == io.kubernetes.client.proto.V1.Affinity.getDefaultInstance()) return this; if (other.hasNodeAffinity()) { mergeNodeAffinity(other.getNodeAffinity()); } if (other.hasPodAffinity()) { mergePodAffinity(other.getPodAffinity()); } if (other.hasPodAntiAffinity()) { mergePodAntiAffinity(other.getPodAntiAffinity()); } 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.V1.Affinity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Affinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.NodeAffinity nodeAffinity_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeAffinity, io.kubernetes.client.proto.V1.NodeAffinity.Builder, io.kubernetes.client.proto.V1.NodeAffinityOrBuilder> nodeAffinityBuilder_; /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public boolean hasNodeAffinity() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public io.kubernetes.client.proto.V1.NodeAffinity getNodeAffinity() { if (nodeAffinityBuilder_ == null) { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_; } else { return nodeAffinityBuilder_.getMessage(); } } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public Builder setNodeAffinity(io.kubernetes.client.proto.V1.NodeAffinity value) { if (nodeAffinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeAffinity_ = value; onChanged(); } else { nodeAffinityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public Builder setNodeAffinity( io.kubernetes.client.proto.V1.NodeAffinity.Builder builderForValue) { if (nodeAffinityBuilder_ == null) { nodeAffinity_ = builderForValue.build(); onChanged(); } else { nodeAffinityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public Builder mergeNodeAffinity(io.kubernetes.client.proto.V1.NodeAffinity value) { if (nodeAffinityBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && nodeAffinity_ != null && nodeAffinity_ != io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance()) { nodeAffinity_ = io.kubernetes.client.proto.V1.NodeAffinity.newBuilder(nodeAffinity_) .mergeFrom(value) .buildPartial(); } else { nodeAffinity_ = value; } onChanged(); } else { nodeAffinityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public Builder clearNodeAffinity() { if (nodeAffinityBuilder_ == null) { nodeAffinity_ = null; onChanged(); } else { nodeAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public io.kubernetes.client.proto.V1.NodeAffinity.Builder getNodeAffinityBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNodeAffinityFieldBuilder().getBuilder(); } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ public io.kubernetes.client.proto.V1.NodeAffinityOrBuilder getNodeAffinityOrBuilder() { if (nodeAffinityBuilder_ != null) { return nodeAffinityBuilder_.getMessageOrBuilder(); } else { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance() : nodeAffinity_; } } /** * * *
       * Describes node affinity scheduling rules for the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeAffinity nodeAffinity = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeAffinity, io.kubernetes.client.proto.V1.NodeAffinity.Builder, io.kubernetes.client.proto.V1.NodeAffinityOrBuilder> getNodeAffinityFieldBuilder() { if (nodeAffinityBuilder_ == null) { nodeAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeAffinity, io.kubernetes.client.proto.V1.NodeAffinity.Builder, io.kubernetes.client.proto.V1.NodeAffinityOrBuilder>( getNodeAffinity(), getParentForChildren(), isClean()); nodeAffinity_ = null; } return nodeAffinityBuilder_; } private io.kubernetes.client.proto.V1.PodAffinity podAffinity_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinity, io.kubernetes.client.proto.V1.PodAffinity.Builder, io.kubernetes.client.proto.V1.PodAffinityOrBuilder> podAffinityBuilder_; /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public boolean hasPodAffinity() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public io.kubernetes.client.proto.V1.PodAffinity getPodAffinity() { if (podAffinityBuilder_ == null) { return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_; } else { return podAffinityBuilder_.getMessage(); } } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public Builder setPodAffinity(io.kubernetes.client.proto.V1.PodAffinity value) { if (podAffinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } podAffinity_ = value; onChanged(); } else { podAffinityBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public Builder setPodAffinity( io.kubernetes.client.proto.V1.PodAffinity.Builder builderForValue) { if (podAffinityBuilder_ == null) { podAffinity_ = builderForValue.build(); onChanged(); } else { podAffinityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public Builder mergePodAffinity(io.kubernetes.client.proto.V1.PodAffinity value) { if (podAffinityBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && podAffinity_ != null && podAffinity_ != io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance()) { podAffinity_ = io.kubernetes.client.proto.V1.PodAffinity.newBuilder(podAffinity_) .mergeFrom(value) .buildPartial(); } else { podAffinity_ = value; } onChanged(); } else { podAffinityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public Builder clearPodAffinity() { if (podAffinityBuilder_ == null) { podAffinity_ = null; onChanged(); } else { podAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public io.kubernetes.client.proto.V1.PodAffinity.Builder getPodAffinityBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPodAffinityFieldBuilder().getBuilder(); } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ public io.kubernetes.client.proto.V1.PodAffinityOrBuilder getPodAffinityOrBuilder() { if (podAffinityBuilder_ != null) { return podAffinityBuilder_.getMessageOrBuilder(); } else { return podAffinity_ == null ? io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance() : podAffinity_; } } /** * * *
       * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAffinity podAffinity = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinity, io.kubernetes.client.proto.V1.PodAffinity.Builder, io.kubernetes.client.proto.V1.PodAffinityOrBuilder> getPodAffinityFieldBuilder() { if (podAffinityBuilder_ == null) { podAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinity, io.kubernetes.client.proto.V1.PodAffinity.Builder, io.kubernetes.client.proto.V1.PodAffinityOrBuilder>( getPodAffinity(), getParentForChildren(), isClean()); podAffinity_ = null; } return podAffinityBuilder_; } private io.kubernetes.client.proto.V1.PodAntiAffinity podAntiAffinity_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAntiAffinity, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder, io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder> podAntiAffinityBuilder_; /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public boolean hasPodAntiAffinity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public io.kubernetes.client.proto.V1.PodAntiAffinity getPodAntiAffinity() { if (podAntiAffinityBuilder_ == null) { return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_; } else { return podAntiAffinityBuilder_.getMessage(); } } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public Builder setPodAntiAffinity(io.kubernetes.client.proto.V1.PodAntiAffinity value) { if (podAntiAffinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } podAntiAffinity_ = value; onChanged(); } else { podAntiAffinityBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public Builder setPodAntiAffinity( io.kubernetes.client.proto.V1.PodAntiAffinity.Builder builderForValue) { if (podAntiAffinityBuilder_ == null) { podAntiAffinity_ = builderForValue.build(); onChanged(); } else { podAntiAffinityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public Builder mergePodAntiAffinity(io.kubernetes.client.proto.V1.PodAntiAffinity value) { if (podAntiAffinityBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && podAntiAffinity_ != null && podAntiAffinity_ != io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance()) { podAntiAffinity_ = io.kubernetes.client.proto.V1.PodAntiAffinity.newBuilder(podAntiAffinity_) .mergeFrom(value) .buildPartial(); } else { podAntiAffinity_ = value; } onChanged(); } else { podAntiAffinityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public Builder clearPodAntiAffinity() { if (podAntiAffinityBuilder_ == null) { podAntiAffinity_ = null; onChanged(); } else { podAntiAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public io.kubernetes.client.proto.V1.PodAntiAffinity.Builder getPodAntiAffinityBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPodAntiAffinityFieldBuilder().getBuilder(); } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ public io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder getPodAntiAffinityOrBuilder() { if (podAntiAffinityBuilder_ != null) { return podAntiAffinityBuilder_.getMessageOrBuilder(); } else { return podAntiAffinity_ == null ? io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance() : podAntiAffinity_; } } /** * * *
       * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodAntiAffinity podAntiAffinity = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAntiAffinity, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder, io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder> getPodAntiAffinityFieldBuilder() { if (podAntiAffinityBuilder_ == null) { podAntiAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAntiAffinity, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder, io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder>( getPodAntiAffinity(), getParentForChildren(), isClean()); podAntiAffinity_ = null; } return podAntiAffinityBuilder_; } @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.core.v1.Affinity) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Affinity) private static final io.kubernetes.client.proto.V1.Affinity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Affinity(); } public static io.kubernetes.client.proto.V1.Affinity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Affinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Affinity(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.V1.Affinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachedVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AttachedVolume) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the attached volume
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name of the attached volume
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name of the attached volume
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * DevicePath represents the device path where the volume should be available
     * 
* * optional string devicePath = 2; */ boolean hasDevicePath(); /** * * *
     * DevicePath represents the device path where the volume should be available
     * 
* * optional string devicePath = 2; */ java.lang.String getDevicePath(); /** * * *
     * DevicePath represents the device path where the volume should be available
     * 
* * optional string devicePath = 2; */ com.google.protobuf.ByteString getDevicePathBytes(); } /** * * *
   * AttachedVolume describes a volume attached to a node
   * 
* * Protobuf type {@code k8s.io.api.core.v1.AttachedVolume} */ public static final class AttachedVolume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AttachedVolume) AttachedVolumeOrBuilder { private static final long serialVersionUID = 0L; // Use AttachedVolume.newBuilder() to construct. private AttachedVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachedVolume() { name_ = ""; devicePath_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachedVolume( 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; devicePath_ = 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 .V1 .internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AttachedVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AttachedVolume.class, io.kubernetes.client.proto.V1.AttachedVolume.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name of the attached volume
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the attached volume
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of the attached volume
     * 
* * 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 DEVICEPATH_FIELD_NUMBER = 2; private volatile java.lang.Object devicePath_; /** * * *
     * DevicePath represents the device path where the volume should be available
     * 
* * optional string devicePath = 2; */ public boolean hasDevicePath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * DevicePath represents the device path where the volume should be available
     * 
* * optional string devicePath = 2; */ public java.lang.String getDevicePath() { java.lang.Object ref = devicePath_; 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()) { devicePath_ = s; } return s; } } /** * * *
     * DevicePath represents the device path where the volume should be available
     * 
* * optional string devicePath = 2; */ public com.google.protobuf.ByteString getDevicePathBytes() { java.lang.Object ref = devicePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); devicePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, devicePath_); } 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, devicePath_); } 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.V1.AttachedVolume)) { return super.equals(obj); } io.kubernetes.client.proto.V1.AttachedVolume other = (io.kubernetes.client.proto.V1.AttachedVolume) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasDevicePath() == other.hasDevicePath()); if (hasDevicePath()) { result = result && getDevicePath().equals(other.getDevicePath()); } 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 (hasDevicePath()) { hash = (37 * hash) + DEVICEPATH_FIELD_NUMBER; hash = (53 * hash) + getDevicePath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AttachedVolume 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.V1.AttachedVolume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AttachedVolume 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.V1.AttachedVolume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.AttachedVolume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AttachedVolume 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.V1.AttachedVolume parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AttachedVolume 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.V1.AttachedVolume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AttachedVolume 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.V1.AttachedVolume 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; } /** * * *
     * AttachedVolume describes a volume attached to a node
     * 
* * Protobuf type {@code k8s.io.api.core.v1.AttachedVolume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AttachedVolume) io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AttachedVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AttachedVolume.class, io.kubernetes.client.proto.V1.AttachedVolume.Builder.class); } // Construct using io.kubernetes.client.proto.V1.AttachedVolume.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); devicePath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.AttachedVolume getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.AttachedVolume.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.AttachedVolume build() { io.kubernetes.client.proto.V1.AttachedVolume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.AttachedVolume buildPartial() { io.kubernetes.client.proto.V1.AttachedVolume result = new io.kubernetes.client.proto.V1.AttachedVolume(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.devicePath_ = devicePath_; 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.V1.AttachedVolume) { return mergeFrom((io.kubernetes.client.proto.V1.AttachedVolume) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.AttachedVolume other) { if (other == io.kubernetes.client.proto.V1.AttachedVolume.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasDevicePath()) { bitField0_ |= 0x00000002; devicePath_ = other.devicePath_; 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.V1.AttachedVolume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.AttachedVolume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name of the attached volume
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the attached volume
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the attached volume
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the attached volume
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name of the attached volume
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of the attached volume
       * 
* * 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 devicePath_ = ""; /** * * *
       * DevicePath represents the device path where the volume should be available
       * 
* * optional string devicePath = 2; */ public boolean hasDevicePath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * DevicePath represents the device path where the volume should be available
       * 
* * optional string devicePath = 2; */ public java.lang.String getDevicePath() { java.lang.Object ref = devicePath_; 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()) { devicePath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * DevicePath represents the device path where the volume should be available
       * 
* * optional string devicePath = 2; */ public com.google.protobuf.ByteString getDevicePathBytes() { java.lang.Object ref = devicePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); devicePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * DevicePath represents the device path where the volume should be available
       * 
* * optional string devicePath = 2; */ public Builder setDevicePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; devicePath_ = value; onChanged(); return this; } /** * * *
       * DevicePath represents the device path where the volume should be available
       * 
* * optional string devicePath = 2; */ public Builder clearDevicePath() { bitField0_ = (bitField0_ & ~0x00000002); devicePath_ = getDefaultInstance().getDevicePath(); onChanged(); return this; } /** * * *
       * DevicePath represents the device path where the volume should be available
       * 
* * optional string devicePath = 2; */ public Builder setDevicePathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; devicePath_ = 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.core.v1.AttachedVolume) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AttachedVolume) private static final io.kubernetes.client.proto.V1.AttachedVolume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AttachedVolume(); } public static io.kubernetes.client.proto.V1.AttachedVolume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachedVolume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachedVolume(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.V1.AttachedVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AvoidPodsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AvoidPods) com.google.protobuf.MessageOrBuilder { /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ java.util.List getPreferAvoidPodsList(); /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getPreferAvoidPods(int index); /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ int getPreferAvoidPodsCount(); /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ java.util.List getPreferAvoidPodsOrBuilderList(); /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder getPreferAvoidPodsOrBuilder( int index); } /** * * *
   * AvoidPods describes pods that should avoid this node. This is the value for a
   * Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
   * will eventually become a field of NodeStatus.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.AvoidPods} */ public static final class AvoidPods extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AvoidPods) AvoidPodsOrBuilder { private static final long serialVersionUID = 0L; // Use AvoidPods.newBuilder() to construct. private AvoidPods(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AvoidPods() { preferAvoidPods_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AvoidPods( 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)) { preferAvoidPods_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } preferAvoidPods_.add( input.readMessage( io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.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)) { preferAvoidPods_ = java.util.Collections.unmodifiableList(preferAvoidPods_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_AvoidPods_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AvoidPods_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AvoidPods.class, io.kubernetes.client.proto.V1.AvoidPods.Builder.class); } public static final int PREFERAVOIDPODS_FIELD_NUMBER = 1; private java.util.List preferAvoidPods_; /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public java.util.List getPreferAvoidPodsList() { return preferAvoidPods_; } /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public java.util.List getPreferAvoidPodsOrBuilderList() { return preferAvoidPods_; } /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public int getPreferAvoidPodsCount() { return preferAvoidPods_.size(); } /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getPreferAvoidPods(int index) { return preferAvoidPods_.get(index); } /** * * *
     * Bounded-sized list of signatures of pods that should avoid this node, sorted
     * in timestamp order from oldest to newest. Size of the slice is unspecified.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder getPreferAvoidPodsOrBuilder( int index) { return preferAvoidPods_.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 < preferAvoidPods_.size(); i++) { output.writeMessage(1, preferAvoidPods_.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 < preferAvoidPods_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, preferAvoidPods_.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.V1.AvoidPods)) { return super.equals(obj); } io.kubernetes.client.proto.V1.AvoidPods other = (io.kubernetes.client.proto.V1.AvoidPods) obj; boolean result = true; result = result && getPreferAvoidPodsList().equals(other.getPreferAvoidPodsList()); 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 (getPreferAvoidPodsCount() > 0) { hash = (37 * hash) + PREFERAVOIDPODS_FIELD_NUMBER; hash = (53 * hash) + getPreferAvoidPodsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.AvoidPods parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AvoidPods 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.V1.AvoidPods parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AvoidPods 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.V1.AvoidPods parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AvoidPods parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.AvoidPods parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AvoidPods 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.V1.AvoidPods parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AvoidPods 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.V1.AvoidPods parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AvoidPods 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.V1.AvoidPods 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; } /** * * *
     * AvoidPods describes pods that should avoid this node. This is the value for a
     * Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and
     * will eventually become a field of NodeStatus.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.AvoidPods} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AvoidPods) io.kubernetes.client.proto.V1.AvoidPodsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AvoidPods_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AvoidPods_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AvoidPods.class, io.kubernetes.client.proto.V1.AvoidPods.Builder.class); } // Construct using io.kubernetes.client.proto.V1.AvoidPods.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPreferAvoidPodsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (preferAvoidPodsBuilder_ == null) { preferAvoidPods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { preferAvoidPodsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AvoidPods_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.AvoidPods getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.AvoidPods.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.AvoidPods build() { io.kubernetes.client.proto.V1.AvoidPods result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.AvoidPods buildPartial() { io.kubernetes.client.proto.V1.AvoidPods result = new io.kubernetes.client.proto.V1.AvoidPods(this); int from_bitField0_ = bitField0_; if (preferAvoidPodsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { preferAvoidPods_ = java.util.Collections.unmodifiableList(preferAvoidPods_); bitField0_ = (bitField0_ & ~0x00000001); } result.preferAvoidPods_ = preferAvoidPods_; } else { result.preferAvoidPods_ = preferAvoidPodsBuilder_.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.V1.AvoidPods) { return mergeFrom((io.kubernetes.client.proto.V1.AvoidPods) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.AvoidPods other) { if (other == io.kubernetes.client.proto.V1.AvoidPods.getDefaultInstance()) return this; if (preferAvoidPodsBuilder_ == null) { if (!other.preferAvoidPods_.isEmpty()) { if (preferAvoidPods_.isEmpty()) { preferAvoidPods_ = other.preferAvoidPods_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.addAll(other.preferAvoidPods_); } onChanged(); } } else { if (!other.preferAvoidPods_.isEmpty()) { if (preferAvoidPodsBuilder_.isEmpty()) { preferAvoidPodsBuilder_.dispose(); preferAvoidPodsBuilder_ = null; preferAvoidPods_ = other.preferAvoidPods_; bitField0_ = (bitField0_ & ~0x00000001); preferAvoidPodsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPreferAvoidPodsFieldBuilder() : null; } else { preferAvoidPodsBuilder_.addAllMessages(other.preferAvoidPods_); } } } 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.V1.AvoidPods parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.AvoidPods) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List preferAvoidPods_ = java.util.Collections.emptyList(); private void ensurePreferAvoidPodsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { preferAvoidPods_ = new java.util.ArrayList( preferAvoidPods_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PreferAvoidPodsEntry, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder, io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder> preferAvoidPodsBuilder_; /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public java.util.List getPreferAvoidPodsList() { if (preferAvoidPodsBuilder_ == null) { return java.util.Collections.unmodifiableList(preferAvoidPods_); } else { return preferAvoidPodsBuilder_.getMessageList(); } } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public int getPreferAvoidPodsCount() { if (preferAvoidPodsBuilder_ == null) { return preferAvoidPods_.size(); } else { return preferAvoidPodsBuilder_.getCount(); } } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getPreferAvoidPods(int index) { if (preferAvoidPodsBuilder_ == null) { return preferAvoidPods_.get(index); } else { return preferAvoidPodsBuilder_.getMessage(index); } } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder setPreferAvoidPods( int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry value) { if (preferAvoidPodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.set(index, value); onChanged(); } else { preferAvoidPodsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder setPreferAvoidPods( int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder builderForValue) { if (preferAvoidPodsBuilder_ == null) { ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.set(index, builderForValue.build()); onChanged(); } else { preferAvoidPodsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder addPreferAvoidPods(io.kubernetes.client.proto.V1.PreferAvoidPodsEntry value) { if (preferAvoidPodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.add(value); onChanged(); } else { preferAvoidPodsBuilder_.addMessage(value); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder addPreferAvoidPods( int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry value) { if (preferAvoidPodsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.add(index, value); onChanged(); } else { preferAvoidPodsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder addPreferAvoidPods( io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder builderForValue) { if (preferAvoidPodsBuilder_ == null) { ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.add(builderForValue.build()); onChanged(); } else { preferAvoidPodsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder addPreferAvoidPods( int index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder builderForValue) { if (preferAvoidPodsBuilder_ == null) { ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.add(index, builderForValue.build()); onChanged(); } else { preferAvoidPodsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder addAllPreferAvoidPods( java.lang.Iterable values) { if (preferAvoidPodsBuilder_ == null) { ensurePreferAvoidPodsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, preferAvoidPods_); onChanged(); } else { preferAvoidPodsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder clearPreferAvoidPods() { if (preferAvoidPodsBuilder_ == null) { preferAvoidPods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { preferAvoidPodsBuilder_.clear(); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public Builder removePreferAvoidPods(int index) { if (preferAvoidPodsBuilder_ == null) { ensurePreferAvoidPodsIsMutable(); preferAvoidPods_.remove(index); onChanged(); } else { preferAvoidPodsBuilder_.remove(index); } return this; } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder getPreferAvoidPodsBuilder( int index) { return getPreferAvoidPodsFieldBuilder().getBuilder(index); } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder getPreferAvoidPodsOrBuilder(int index) { if (preferAvoidPodsBuilder_ == null) { return preferAvoidPods_.get(index); } else { return preferAvoidPodsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public java.util.List getPreferAvoidPodsOrBuilderList() { if (preferAvoidPodsBuilder_ != null) { return preferAvoidPodsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(preferAvoidPods_); } } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder addPreferAvoidPodsBuilder() { return getPreferAvoidPodsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.getDefaultInstance()); } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder addPreferAvoidPodsBuilder( int index) { return getPreferAvoidPodsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.getDefaultInstance()); } /** * * *
       * Bounded-sized list of signatures of pods that should avoid this node, sorted
       * in timestamp order from oldest to newest. Size of the slice is unspecified.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PreferAvoidPodsEntry preferAvoidPods = 1; */ public java.util.List getPreferAvoidPodsBuilderList() { return getPreferAvoidPodsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PreferAvoidPodsEntry, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder, io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder> getPreferAvoidPodsFieldBuilder() { if (preferAvoidPodsBuilder_ == null) { preferAvoidPodsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PreferAvoidPodsEntry, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder, io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder>( preferAvoidPods_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); preferAvoidPods_ = null; } return preferAvoidPodsBuilder_; } @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.core.v1.AvoidPods) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AvoidPods) private static final io.kubernetes.client.proto.V1.AvoidPods DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AvoidPods(); } public static io.kubernetes.client.proto.V1.AvoidPods getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AvoidPods parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AvoidPods(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.V1.AvoidPods getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AzureDiskVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AzureDiskVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * The Name of the data disk in the blob storage
     * 
* * optional string diskName = 1; */ boolean hasDiskName(); /** * * *
     * The Name of the data disk in the blob storage
     * 
* * optional string diskName = 1; */ java.lang.String getDiskName(); /** * * *
     * The Name of the data disk in the blob storage
     * 
* * optional string diskName = 1; */ com.google.protobuf.ByteString getDiskNameBytes(); /** * * *
     * The URI the data disk in the blob storage
     * 
* * optional string diskURI = 2; */ boolean hasDiskURI(); /** * * *
     * The URI the data disk in the blob storage
     * 
* * optional string diskURI = 2; */ java.lang.String getDiskURI(); /** * * *
     * The URI the data disk in the blob storage
     * 
* * optional string diskURI = 2; */ com.google.protobuf.ByteString getDiskURIBytes(); /** * * *
     * Host Caching mode: None, Read Only, Read Write.
     * +optional
     * 
* * optional string cachingMode = 3; */ boolean hasCachingMode(); /** * * *
     * Host Caching mode: None, Read Only, Read Write.
     * +optional
     * 
* * optional string cachingMode = 3; */ java.lang.String getCachingMode(); /** * * *
     * Host Caching mode: None, Read Only, Read Write.
     * +optional
     * 
* * optional string cachingMode = 3; */ com.google.protobuf.ByteString getCachingModeBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 4; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 4; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 4; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 5; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 5; */ boolean getReadOnly(); /** * * *
     * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
     * 
* * optional string kind = 6; */ boolean hasKind(); /** * * *
     * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
     * 
* * optional string kind = 6; */ java.lang.String getKind(); /** * * *
     * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
     * 
* * optional string kind = 6; */ com.google.protobuf.ByteString getKindBytes(); } /** * * *
   * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.AzureDiskVolumeSource} */ public static final class AzureDiskVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AzureDiskVolumeSource) AzureDiskVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use AzureDiskVolumeSource.newBuilder() to construct. private AzureDiskVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AzureDiskVolumeSource() { diskName_ = ""; diskURI_ = ""; cachingMode_ = ""; fsType_ = ""; readOnly_ = false; kind_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AzureDiskVolumeSource( 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; diskName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; diskURI_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; cachingMode_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; fsType_ = bs; break; } case 40: { bitField0_ |= 0x00000010; readOnly_ = input.readBool(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; kind_ = 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 .V1 .internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AzureDiskVolumeSource.class, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder.class); } private int bitField0_; public static final int DISKNAME_FIELD_NUMBER = 1; private volatile java.lang.Object diskName_; /** * * *
     * The Name of the data disk in the blob storage
     * 
* * optional string diskName = 1; */ public boolean hasDiskName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The Name of the data disk in the blob storage
     * 
* * optional string diskName = 1; */ public java.lang.String getDiskName() { java.lang.Object ref = diskName_; 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()) { diskName_ = s; } return s; } } /** * * *
     * The Name of the data disk in the blob storage
     * 
* * optional string diskName = 1; */ public com.google.protobuf.ByteString getDiskNameBytes() { java.lang.Object ref = diskName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISKURI_FIELD_NUMBER = 2; private volatile java.lang.Object diskURI_; /** * * *
     * The URI the data disk in the blob storage
     * 
* * optional string diskURI = 2; */ public boolean hasDiskURI() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The URI the data disk in the blob storage
     * 
* * optional string diskURI = 2; */ public java.lang.String getDiskURI() { java.lang.Object ref = diskURI_; 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()) { diskURI_ = s; } return s; } } /** * * *
     * The URI the data disk in the blob storage
     * 
* * optional string diskURI = 2; */ public com.google.protobuf.ByteString getDiskURIBytes() { java.lang.Object ref = diskURI_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskURI_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CACHINGMODE_FIELD_NUMBER = 3; private volatile java.lang.Object cachingMode_; /** * * *
     * Host Caching mode: None, Read Only, Read Write.
     * +optional
     * 
* * optional string cachingMode = 3; */ public boolean hasCachingMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Host Caching mode: None, Read Only, Read Write.
     * +optional
     * 
* * optional string cachingMode = 3; */ public java.lang.String getCachingMode() { java.lang.Object ref = cachingMode_; 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()) { cachingMode_ = s; } return s; } } /** * * *
     * Host Caching mode: None, Read Only, Read Write.
     * +optional
     * 
* * optional string cachingMode = 3; */ public com.google.protobuf.ByteString getCachingModeBytes() { java.lang.Object ref = cachingMode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cachingMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 4; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 4; */ public boolean hasFsType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 4; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 4; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 5; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 5; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 5; */ public boolean getReadOnly() { return readOnly_; } public static final int KIND_FIELD_NUMBER = 6; private volatile java.lang.Object kind_; /** * * *
     * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
     * 
* * optional string kind = 6; */ public boolean hasKind() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
     * 
* * optional string kind = 6; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } } /** * * *
     * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
     * 
* * optional string kind = 6; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, diskName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskURI_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cachingMode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fsType_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, readOnly_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, kind_); } 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, diskName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskURI_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cachingMode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fsType_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, readOnly_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, kind_); } 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.V1.AzureDiskVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.AzureDiskVolumeSource other = (io.kubernetes.client.proto.V1.AzureDiskVolumeSource) obj; boolean result = true; result = result && (hasDiskName() == other.hasDiskName()); if (hasDiskName()) { result = result && getDiskName().equals(other.getDiskName()); } result = result && (hasDiskURI() == other.hasDiskURI()); if (hasDiskURI()) { result = result && getDiskURI().equals(other.getDiskURI()); } result = result && (hasCachingMode() == other.hasCachingMode()); if (hasCachingMode()) { result = result && getCachingMode().equals(other.getCachingMode()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasKind() == other.hasKind()); if (hasKind()) { result = result && getKind().equals(other.getKind()); } 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 (hasDiskName()) { hash = (37 * hash) + DISKNAME_FIELD_NUMBER; hash = (53 * hash) + getDiskName().hashCode(); } if (hasDiskURI()) { hash = (37 * hash) + DISKURI_FIELD_NUMBER; hash = (53 * hash) + getDiskURI().hashCode(); } if (hasCachingMode()) { hash = (37 * hash) + CACHINGMODE_FIELD_NUMBER; hash = (53 * hash) + getCachingMode().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource 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.V1.AzureDiskVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource 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.V1.AzureDiskVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource 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.V1.AzureDiskVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource 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.V1.AzureDiskVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource 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.V1.AzureDiskVolumeSource 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; } /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.AzureDiskVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AzureDiskVolumeSource) io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AzureDiskVolumeSource.class, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.AzureDiskVolumeSource.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(); diskName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); diskURI_ = ""; bitField0_ = (bitField0_ & ~0x00000002); cachingMode_ = ""; bitField0_ = (bitField0_ & ~0x00000004); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000010); kind_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.AzureDiskVolumeSource build() { io.kubernetes.client.proto.V1.AzureDiskVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.AzureDiskVolumeSource buildPartial() { io.kubernetes.client.proto.V1.AzureDiskVolumeSource result = new io.kubernetes.client.proto.V1.AzureDiskVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.diskName_ = diskName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.diskURI_ = diskURI_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.cachingMode_ = cachingMode_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.kind_ = kind_; 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.V1.AzureDiskVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.AzureDiskVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.AzureDiskVolumeSource other) { if (other == io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance()) return this; if (other.hasDiskName()) { bitField0_ |= 0x00000001; diskName_ = other.diskName_; onChanged(); } if (other.hasDiskURI()) { bitField0_ |= 0x00000002; diskURI_ = other.diskURI_; onChanged(); } if (other.hasCachingMode()) { bitField0_ |= 0x00000004; cachingMode_ = other.cachingMode_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000008; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasKind()) { bitField0_ |= 0x00000020; kind_ = other.kind_; 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.V1.AzureDiskVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.AzureDiskVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object diskName_ = ""; /** * * *
       * The Name of the data disk in the blob storage
       * 
* * optional string diskName = 1; */ public boolean hasDiskName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The Name of the data disk in the blob storage
       * 
* * optional string diskName = 1; */ public java.lang.String getDiskName() { java.lang.Object ref = diskName_; 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()) { diskName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Name of the data disk in the blob storage
       * 
* * optional string diskName = 1; */ public com.google.protobuf.ByteString getDiskNameBytes() { java.lang.Object ref = diskName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Name of the data disk in the blob storage
       * 
* * optional string diskName = 1; */ public Builder setDiskName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; diskName_ = value; onChanged(); return this; } /** * * *
       * The Name of the data disk in the blob storage
       * 
* * optional string diskName = 1; */ public Builder clearDiskName() { bitField0_ = (bitField0_ & ~0x00000001); diskName_ = getDefaultInstance().getDiskName(); onChanged(); return this; } /** * * *
       * The Name of the data disk in the blob storage
       * 
* * optional string diskName = 1; */ public Builder setDiskNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; diskName_ = value; onChanged(); return this; } private java.lang.Object diskURI_ = ""; /** * * *
       * The URI the data disk in the blob storage
       * 
* * optional string diskURI = 2; */ public boolean hasDiskURI() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The URI the data disk in the blob storage
       * 
* * optional string diskURI = 2; */ public java.lang.String getDiskURI() { java.lang.Object ref = diskURI_; 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()) { diskURI_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The URI the data disk in the blob storage
       * 
* * optional string diskURI = 2; */ public com.google.protobuf.ByteString getDiskURIBytes() { java.lang.Object ref = diskURI_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskURI_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The URI the data disk in the blob storage
       * 
* * optional string diskURI = 2; */ public Builder setDiskURI(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; diskURI_ = value; onChanged(); return this; } /** * * *
       * The URI the data disk in the blob storage
       * 
* * optional string diskURI = 2; */ public Builder clearDiskURI() { bitField0_ = (bitField0_ & ~0x00000002); diskURI_ = getDefaultInstance().getDiskURI(); onChanged(); return this; } /** * * *
       * The URI the data disk in the blob storage
       * 
* * optional string diskURI = 2; */ public Builder setDiskURIBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; diskURI_ = value; onChanged(); return this; } private java.lang.Object cachingMode_ = ""; /** * * *
       * Host Caching mode: None, Read Only, Read Write.
       * +optional
       * 
* * optional string cachingMode = 3; */ public boolean hasCachingMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Host Caching mode: None, Read Only, Read Write.
       * +optional
       * 
* * optional string cachingMode = 3; */ public java.lang.String getCachingMode() { java.lang.Object ref = cachingMode_; 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()) { cachingMode_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Host Caching mode: None, Read Only, Read Write.
       * +optional
       * 
* * optional string cachingMode = 3; */ public com.google.protobuf.ByteString getCachingModeBytes() { java.lang.Object ref = cachingMode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cachingMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Host Caching mode: None, Read Only, Read Write.
       * +optional
       * 
* * optional string cachingMode = 3; */ public Builder setCachingMode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; cachingMode_ = value; onChanged(); return this; } /** * * *
       * Host Caching mode: None, Read Only, Read Write.
       * +optional
       * 
* * optional string cachingMode = 3; */ public Builder clearCachingMode() { bitField0_ = (bitField0_ & ~0x00000004); cachingMode_ = getDefaultInstance().getCachingMode(); onChanged(); return this; } /** * * *
       * Host Caching mode: None, Read Only, Read Write.
       * +optional
       * 
* * optional string cachingMode = 3; */ public Builder setCachingModeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; cachingMode_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 4; */ public boolean hasFsType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 4; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 4; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 4; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 4; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000008); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 4; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 5; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 5; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 5; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000010; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 5; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000010); readOnly_ = false; onChanged(); return this; } private java.lang.Object kind_ = ""; /** * * *
       * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
       * 
* * optional string kind = 6; */ public boolean hasKind() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
       * 
* * optional string kind = 6; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
       * 
* * optional string kind = 6; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
       * 
* * optional string kind = 6; */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; kind_ = value; onChanged(); return this; } /** * * *
       * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
       * 
* * optional string kind = 6; */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000020); kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** * * *
       * Expected values Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
       * 
* * optional string kind = 6; */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; kind_ = 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.core.v1.AzureDiskVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AzureDiskVolumeSource) private static final io.kubernetes.client.proto.V1.AzureDiskVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AzureDiskVolumeSource(); } public static io.kubernetes.client.proto.V1.AzureDiskVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AzureDiskVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AzureDiskVolumeSource(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.V1.AzureDiskVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AzureFilePersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AzureFilePersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ boolean hasSecretName(); /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ java.lang.String getSecretName(); /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ com.google.protobuf.ByteString getSecretNameBytes(); /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ boolean hasShareName(); /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ java.lang.String getShareName(); /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ com.google.protobuf.ByteString getShareNameBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); /** * * *
     * the namespace of the secret that contains Azure Storage Account Name and Key
     * default is the same as the Pod
     * +optional
     * 
* * optional string secretNamespace = 4; */ boolean hasSecretNamespace(); /** * * *
     * the namespace of the secret that contains Azure Storage Account Name and Key
     * default is the same as the Pod
     * +optional
     * 
* * optional string secretNamespace = 4; */ java.lang.String getSecretNamespace(); /** * * *
     * the namespace of the secret that contains Azure Storage Account Name and Key
     * default is the same as the Pod
     * +optional
     * 
* * optional string secretNamespace = 4; */ com.google.protobuf.ByteString getSecretNamespaceBytes(); } /** * * *
   * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.AzureFilePersistentVolumeSource} */ public static final class AzureFilePersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AzureFilePersistentVolumeSource) AzureFilePersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use AzureFilePersistentVolumeSource.newBuilder() to construct. private AzureFilePersistentVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AzureFilePersistentVolumeSource() { secretName_ = ""; shareName_ = ""; readOnly_ = false; secretNamespace_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AzureFilePersistentVolumeSource( 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; secretName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; shareName_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; secretNamespace_ = 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 .V1 .internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.class, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder.class); } private int bitField0_; public static final int SECRETNAME_FIELD_NUMBER = 1; private volatile java.lang.Object secretName_; /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ public boolean hasSecretName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ public java.lang.String getSecretName() { java.lang.Object ref = secretName_; 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()) { secretName_ = s; } return s; } } /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ public com.google.protobuf.ByteString getSecretNameBytes() { java.lang.Object ref = secretName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHARENAME_FIELD_NUMBER = 2; private volatile java.lang.Object shareName_; /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ public boolean hasShareName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ public java.lang.String getShareName() { java.lang.Object ref = shareName_; 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()) { shareName_ = s; } return s; } } /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ public com.google.protobuf.ByteString getShareNameBytes() { java.lang.Object ref = shareName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int SECRETNAMESPACE_FIELD_NUMBER = 4; private volatile java.lang.Object secretNamespace_; /** * * *
     * the namespace of the secret that contains Azure Storage Account Name and Key
     * default is the same as the Pod
     * +optional
     * 
* * optional string secretNamespace = 4; */ public boolean hasSecretNamespace() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * the namespace of the secret that contains Azure Storage Account Name and Key
     * default is the same as the Pod
     * +optional
     * 
* * optional string secretNamespace = 4; */ public java.lang.String getSecretNamespace() { java.lang.Object ref = secretNamespace_; 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()) { secretNamespace_ = s; } return s; } } /** * * *
     * the namespace of the secret that contains Azure Storage Account Name and Key
     * default is the same as the Pod
     * +optional
     * 
* * optional string secretNamespace = 4; */ public com.google.protobuf.ByteString getSecretNamespaceBytes() { java.lang.Object ref = secretNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretNamespace_ = 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, secretName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shareName_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secretNamespace_); } 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, secretName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareName_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secretNamespace_); } 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.V1.AzureFilePersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource other = (io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource) obj; boolean result = true; result = result && (hasSecretName() == other.hasSecretName()); if (hasSecretName()) { result = result && getSecretName().equals(other.getSecretName()); } result = result && (hasShareName() == other.hasShareName()); if (hasShareName()) { result = result && getShareName().equals(other.getShareName()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasSecretNamespace() == other.hasSecretNamespace()); if (hasSecretNamespace()) { result = result && getSecretNamespace().equals(other.getSecretNamespace()); } 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 (hasSecretName()) { hash = (37 * hash) + SECRETNAME_FIELD_NUMBER; hash = (53 * hash) + getSecretName().hashCode(); } if (hasShareName()) { hash = (37 * hash) + SHARENAME_FIELD_NUMBER; hash = (53 * hash) + getShareName().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasSecretNamespace()) { hash = (37 * hash) + SECRETNAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getSecretNamespace().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource 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.V1.AzureFilePersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource 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.V1.AzureFilePersistentVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource 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.V1.AzureFilePersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource 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.V1.AzureFilePersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource 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.V1.AzureFilePersistentVolumeSource 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; } /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.AzureFilePersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AzureFilePersistentVolumeSource) io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.class, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.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(); secretName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); shareName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); secretNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource build() { io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource result = new io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.secretName_ = secretName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.shareName_ = shareName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.secretNamespace_ = secretNamespace_; 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.V1.AzureFilePersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.getDefaultInstance()) return this; if (other.hasSecretName()) { bitField0_ |= 0x00000001; secretName_ = other.secretName_; onChanged(); } if (other.hasShareName()) { bitField0_ |= 0x00000002; shareName_ = other.shareName_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasSecretNamespace()) { bitField0_ |= 0x00000008; secretNamespace_ = other.secretNamespace_; 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.V1.AzureFilePersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object secretName_ = ""; /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public boolean hasSecretName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public java.lang.String getSecretName() { java.lang.Object ref = secretName_; 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()) { secretName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public com.google.protobuf.ByteString getSecretNameBytes() { java.lang.Object ref = secretName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public Builder setSecretName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; secretName_ = value; onChanged(); return this; } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public Builder clearSecretName() { bitField0_ = (bitField0_ & ~0x00000001); secretName_ = getDefaultInstance().getSecretName(); onChanged(); return this; } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public Builder setSecretNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; secretName_ = value; onChanged(); return this; } private java.lang.Object shareName_ = ""; /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public boolean hasShareName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public java.lang.String getShareName() { java.lang.Object ref = shareName_; 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()) { shareName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public com.google.protobuf.ByteString getShareNameBytes() { java.lang.Object ref = shareName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public Builder setShareName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; shareName_ = value; onChanged(); return this; } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public Builder clearShareName() { bitField0_ = (bitField0_ & ~0x00000002); shareName_ = getDefaultInstance().getShareName(); onChanged(); return this; } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public Builder setShareNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; shareName_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private java.lang.Object secretNamespace_ = ""; /** * * *
       * the namespace of the secret that contains Azure Storage Account Name and Key
       * default is the same as the Pod
       * +optional
       * 
* * optional string secretNamespace = 4; */ public boolean hasSecretNamespace() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * the namespace of the secret that contains Azure Storage Account Name and Key
       * default is the same as the Pod
       * +optional
       * 
* * optional string secretNamespace = 4; */ public java.lang.String getSecretNamespace() { java.lang.Object ref = secretNamespace_; 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()) { secretNamespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * the namespace of the secret that contains Azure Storage Account Name and Key
       * default is the same as the Pod
       * +optional
       * 
* * optional string secretNamespace = 4; */ public com.google.protobuf.ByteString getSecretNamespaceBytes() { java.lang.Object ref = secretNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * the namespace of the secret that contains Azure Storage Account Name and Key
       * default is the same as the Pod
       * +optional
       * 
* * optional string secretNamespace = 4; */ public Builder setSecretNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secretNamespace_ = value; onChanged(); return this; } /** * * *
       * the namespace of the secret that contains Azure Storage Account Name and Key
       * default is the same as the Pod
       * +optional
       * 
* * optional string secretNamespace = 4; */ public Builder clearSecretNamespace() { bitField0_ = (bitField0_ & ~0x00000008); secretNamespace_ = getDefaultInstance().getSecretNamespace(); onChanged(); return this; } /** * * *
       * the namespace of the secret that contains Azure Storage Account Name and Key
       * default is the same as the Pod
       * +optional
       * 
* * optional string secretNamespace = 4; */ public Builder setSecretNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secretNamespace_ = 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.core.v1.AzureFilePersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AzureFilePersistentVolumeSource) private static final io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AzureFilePersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AzureFilePersistentVolumeSource(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.V1.AzureFilePersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AzureFileVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.AzureFileVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ boolean hasSecretName(); /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ java.lang.String getSecretName(); /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ com.google.protobuf.ByteString getSecretNameBytes(); /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ boolean hasShareName(); /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ java.lang.String getShareName(); /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ com.google.protobuf.ByteString getShareNameBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); } /** * * *
   * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.AzureFileVolumeSource} */ public static final class AzureFileVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.AzureFileVolumeSource) AzureFileVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use AzureFileVolumeSource.newBuilder() to construct. private AzureFileVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AzureFileVolumeSource() { secretName_ = ""; shareName_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AzureFileVolumeSource( 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; secretName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; shareName_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AzureFileVolumeSource.class, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder.class); } private int bitField0_; public static final int SECRETNAME_FIELD_NUMBER = 1; private volatile java.lang.Object secretName_; /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ public boolean hasSecretName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ public java.lang.String getSecretName() { java.lang.Object ref = secretName_; 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()) { secretName_ = s; } return s; } } /** * * *
     * the name of secret that contains Azure Storage Account Name and Key
     * 
* * optional string secretName = 1; */ public com.google.protobuf.ByteString getSecretNameBytes() { java.lang.Object ref = secretName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHARENAME_FIELD_NUMBER = 2; private volatile java.lang.Object shareName_; /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ public boolean hasShareName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ public java.lang.String getShareName() { java.lang.Object ref = shareName_; 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()) { shareName_ = s; } return s; } } /** * * *
     * Share Name
     * 
* * optional string shareName = 2; */ public com.google.protobuf.ByteString getShareNameBytes() { java.lang.Object ref = shareName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } 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, secretName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shareName_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } 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, secretName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shareName_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } 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.V1.AzureFileVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.AzureFileVolumeSource other = (io.kubernetes.client.proto.V1.AzureFileVolumeSource) obj; boolean result = true; result = result && (hasSecretName() == other.hasSecretName()); if (hasSecretName()) { result = result && getSecretName().equals(other.getSecretName()); } result = result && (hasShareName() == other.hasShareName()); if (hasShareName()) { result = result && getShareName().equals(other.getShareName()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasSecretName()) { hash = (37 * hash) + SECRETNAME_FIELD_NUMBER; hash = (53 * hash) + getSecretName().hashCode(); } if (hasShareName()) { hash = (37 * hash) + SHARENAME_FIELD_NUMBER; hash = (53 * hash) + getShareName().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource 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.V1.AzureFileVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource 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.V1.AzureFileVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource 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.V1.AzureFileVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource 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.V1.AzureFileVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource 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.V1.AzureFileVolumeSource 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; } /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.AzureFileVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.AzureFileVolumeSource) io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.AzureFileVolumeSource.class, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.AzureFileVolumeSource.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(); secretName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); shareName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.AzureFileVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.AzureFileVolumeSource build() { io.kubernetes.client.proto.V1.AzureFileVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.AzureFileVolumeSource buildPartial() { io.kubernetes.client.proto.V1.AzureFileVolumeSource result = new io.kubernetes.client.proto.V1.AzureFileVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.secretName_ = secretName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.shareName_ = shareName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; 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.V1.AzureFileVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.AzureFileVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.AzureFileVolumeSource other) { if (other == io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance()) return this; if (other.hasSecretName()) { bitField0_ |= 0x00000001; secretName_ = other.secretName_; onChanged(); } if (other.hasShareName()) { bitField0_ |= 0x00000002; shareName_ = other.shareName_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.AzureFileVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.AzureFileVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object secretName_ = ""; /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public boolean hasSecretName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public java.lang.String getSecretName() { java.lang.Object ref = secretName_; 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()) { secretName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public com.google.protobuf.ByteString getSecretNameBytes() { java.lang.Object ref = secretName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public Builder setSecretName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; secretName_ = value; onChanged(); return this; } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public Builder clearSecretName() { bitField0_ = (bitField0_ & ~0x00000001); secretName_ = getDefaultInstance().getSecretName(); onChanged(); return this; } /** * * *
       * the name of secret that contains Azure Storage Account Name and Key
       * 
* * optional string secretName = 1; */ public Builder setSecretNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; secretName_ = value; onChanged(); return this; } private java.lang.Object shareName_ = ""; /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public boolean hasShareName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public java.lang.String getShareName() { java.lang.Object ref = shareName_; 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()) { shareName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public com.google.protobuf.ByteString getShareNameBytes() { java.lang.Object ref = shareName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); shareName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public Builder setShareName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; shareName_ = value; onChanged(); return this; } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public Builder clearShareName() { bitField0_ = (bitField0_ & ~0x00000002); shareName_ = getDefaultInstance().getShareName(); onChanged(); return this; } /** * * *
       * Share Name
       * 
* * optional string shareName = 2; */ public Builder setShareNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; shareName_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = 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.core.v1.AzureFileVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.AzureFileVolumeSource) private static final io.kubernetes.client.proto.V1.AzureFileVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.AzureFileVolumeSource(); } public static io.kubernetes.client.proto.V1.AzureFileVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AzureFileVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AzureFileVolumeSource(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.V1.AzureFileVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BindingOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Binding) 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(); /** * * *
     * The target object that you want to bind to the standard object.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ boolean hasTarget(); /** * * *
     * The target object that you want to bind to the standard object.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ io.kubernetes.client.proto.V1.ObjectReference getTarget(); /** * * *
     * The target object that you want to bind to the standard object.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetOrBuilder(); } /** * * *
   * Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
   * Deprecated in 1.7, please use the bindings subresource of pods instead.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Binding} */ public static final class Binding extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Binding) BindingOrBuilder { private static final long serialVersionUID = 0L; // Use Binding.newBuilder() to construct. private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Binding() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Binding( 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.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = target_.toBuilder(); } target_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = 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.V1.internal_static_k8s_io_api_core_v1_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Binding.class, io.kubernetes.client.proto.V1.Binding.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 TARGET_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ObjectReference target_; /** * * *
     * The target object that you want to bind to the standard object.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public boolean hasTarget() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The target object that you want to bind to the standard object.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getTarget() { return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_; } /** * * *
     * The target object that you want to bind to the standard object.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetOrBuilder() { return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_; } 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, getTarget()); } 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, getTarget()); } 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.V1.Binding)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Binding other = (io.kubernetes.client.proto.V1.Binding) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget().equals(other.getTarget()); } 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 (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Binding parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Binding 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.V1.Binding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Binding 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.V1.Binding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Binding parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Binding parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Binding 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.V1.Binding parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Binding 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.V1.Binding parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Binding 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.V1.Binding 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; } /** * * *
     * Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
     * Deprecated in 1.7, please use the bindings subresource of pods instead.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Binding} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Binding) io.kubernetes.client.proto.V1.BindingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Binding_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Binding_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Binding.class, io.kubernetes.client.proto.V1.Binding.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Binding.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(); getTargetFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (targetBuilder_ == null) { target_ = null; } else { targetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Binding_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Binding getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Binding.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Binding build() { io.kubernetes.client.proto.V1.Binding result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Binding buildPartial() { io.kubernetes.client.proto.V1.Binding result = new io.kubernetes.client.proto.V1.Binding(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 (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.V1.Binding) { return mergeFrom((io.kubernetes.client.proto.V1.Binding) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Binding other) { if (other == io.kubernetes.client.proto.V1.Binding.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.V1.Binding parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Binding) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.ObjectReference target_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> targetBuilder_; /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public boolean hasTarget() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getTarget() { if (targetBuilder_ == null) { return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public Builder setTarget(io.kubernetes.client.proto.V1.ObjectReference value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public Builder setTarget( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public Builder mergeTarget(io.kubernetes.client.proto.V1.ObjectReference value) { if (targetBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && target_ != null && target_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { target_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(target_) .mergeFrom(value) .buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { targetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getTargetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : target_; } } /** * * *
       * The target object that you want to bind to the standard object.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference target = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } @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.core.v1.Binding) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Binding) private static final io.kubernetes.client.proto.V1.Binding DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Binding(); } public static io.kubernetes.client.proto.V1.Binding getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Binding parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Binding(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.V1.Binding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CSIPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Driver is the name of the driver to use for this volume.
     * Required.
     * 
* * optional string driver = 1; */ boolean hasDriver(); /** * * *
     * Driver is the name of the driver to use for this volume.
     * Required.
     * 
* * optional string driver = 1; */ java.lang.String getDriver(); /** * * *
     * Driver is the name of the driver to use for this volume.
     * Required.
     * 
* * optional string driver = 1; */ com.google.protobuf.ByteString getDriverBytes(); /** * * *
     * VolumeHandle is the unique volume name returned by the CSI volume
     * plugin’s CreateVolume to refer to the volume on all subsequent calls.
     * Required.
     * 
* * optional string volumeHandle = 2; */ boolean hasVolumeHandle(); /** * * *
     * VolumeHandle is the unique volume name returned by the CSI volume
     * plugin’s CreateVolume to refer to the volume on all subsequent calls.
     * Required.
     * 
* * optional string volumeHandle = 2; */ java.lang.String getVolumeHandle(); /** * * *
     * VolumeHandle is the unique volume name returned by the CSI volume
     * plugin’s CreateVolume to refer to the volume on all subsequent calls.
     * Required.
     * 
* * optional string volumeHandle = 2; */ com.google.protobuf.ByteString getVolumeHandleBytes(); /** * * *
     * Optional: The value to pass to ControllerPublishVolumeRequest.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * Optional: The value to pass to ControllerPublishVolumeRequest.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * +optional
     * 
* * optional string fsType = 4; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * +optional
     * 
* * optional string fsType = 4; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * +optional
     * 
* * optional string fsType = 4; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ int getVolumeAttributesCount(); /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ boolean containsVolumeAttributes(java.lang.String key); /** Use {@link #getVolumeAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getVolumeAttributes(); /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ java.util.Map getVolumeAttributesMap(); /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ java.lang.String getVolumeAttributesOrDefault( java.lang.String key, java.lang.String defaultValue); /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ java.lang.String getVolumeAttributesOrThrow(java.lang.String key); /** * * *
     * ControllerPublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerPublishVolume and ControllerUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ boolean hasControllerPublishSecretRef(); /** * * *
     * ControllerPublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerPublishVolume and ControllerUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ io.kubernetes.client.proto.V1.SecretReference getControllerPublishSecretRef(); /** * * *
     * ControllerPublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerPublishVolume and ControllerUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getControllerPublishSecretRefOrBuilder(); /** * * *
     * NodeStageSecretRef is a reference to the secret object containing sensitive
     * information to pass to the CSI driver to complete the CSI NodeStageVolume
     * and NodeStageVolume and NodeUnstageVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ boolean hasNodeStageSecretRef(); /** * * *
     * NodeStageSecretRef is a reference to the secret object containing sensitive
     * information to pass to the CSI driver to complete the CSI NodeStageVolume
     * and NodeStageVolume and NodeUnstageVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ io.kubernetes.client.proto.V1.SecretReference getNodeStageSecretRef(); /** * * *
     * NodeStageSecretRef is a reference to the secret object containing sensitive
     * information to pass to the CSI driver to complete the CSI NodeStageVolume
     * and NodeStageVolume and NodeUnstageVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getNodeStageSecretRefOrBuilder(); /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ boolean hasNodePublishSecretRef(); /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ io.kubernetes.client.proto.V1.SecretReference getNodePublishSecretRef(); /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getNodePublishSecretRefOrBuilder(); /** * * *
     * ControllerExpandSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerExpandVolume call.
     * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ boolean hasControllerExpandSecretRef(); /** * * *
     * ControllerExpandSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerExpandVolume call.
     * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ io.kubernetes.client.proto.V1.SecretReference getControllerExpandSecretRef(); /** * * *
     * ControllerExpandSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerExpandVolume call.
     * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getControllerExpandSecretRefOrBuilder(); } /** * * *
   * Represents storage that is managed by an external CSI volume driver (Beta feature)
   * 
* * Protobuf type {@code k8s.io.api.core.v1.CSIPersistentVolumeSource} */ public static final class CSIPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CSIPersistentVolumeSource) CSIPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use CSIPersistentVolumeSource.newBuilder() to construct. private CSIPersistentVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIPersistentVolumeSource() { driver_ = ""; volumeHandle_ = ""; readOnly_ = false; fsType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIPersistentVolumeSource( 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; driver_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; volumeHandle_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; fsType_ = bs; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { volumeAttributes_ = com.google.protobuf.MapField.newMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } com.google.protobuf.MapEntry volumeAttributes__ = input.readMessage( VolumeAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); volumeAttributes_ .getMutableMap() .put(volumeAttributes__.getKey(), volumeAttributes__.getValue()); break; } case 50: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = controllerPublishSecretRef_.toBuilder(); } controllerPublishSecretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(controllerPublishSecretRef_); controllerPublishSecretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 58: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = nodeStageSecretRef_.toBuilder(); } nodeStageSecretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodeStageSecretRef_); nodeStageSecretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 66: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = nodePublishSecretRef_.toBuilder(); } nodePublishSecretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodePublishSecretRef_); nodePublishSecretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 74: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = controllerExpandSecretRef_.toBuilder(); } controllerExpandSecretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(controllerExpandSecretRef_); controllerExpandSecretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; 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 .V1 .internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetVolumeAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.class, io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int DRIVER_FIELD_NUMBER = 1; private volatile java.lang.Object driver_; /** * * *
     * Driver is the name of the driver to use for this volume.
     * Required.
     * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Driver is the name of the driver to use for this volume.
     * Required.
     * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } } /** * * *
     * Driver is the name of the driver to use for this volume.
     * Required.
     * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMEHANDLE_FIELD_NUMBER = 2; private volatile java.lang.Object volumeHandle_; /** * * *
     * VolumeHandle is the unique volume name returned by the CSI volume
     * plugin’s CreateVolume to refer to the volume on all subsequent calls.
     * Required.
     * 
* * optional string volumeHandle = 2; */ public boolean hasVolumeHandle() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * VolumeHandle is the unique volume name returned by the CSI volume
     * plugin’s CreateVolume to refer to the volume on all subsequent calls.
     * Required.
     * 
* * optional string volumeHandle = 2; */ public java.lang.String getVolumeHandle() { java.lang.Object ref = volumeHandle_; 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()) { volumeHandle_ = s; } return s; } } /** * * *
     * VolumeHandle is the unique volume name returned by the CSI volume
     * plugin’s CreateVolume to refer to the volume on all subsequent calls.
     * Required.
     * 
* * optional string volumeHandle = 2; */ public com.google.protobuf.ByteString getVolumeHandleBytes() { java.lang.Object ref = volumeHandle_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeHandle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * Optional: The value to pass to ControllerPublishVolumeRequest.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: The value to pass to ControllerPublishVolumeRequest.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int FSTYPE_FIELD_NUMBER = 4; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * +optional
     * 
* * optional string fsType = 4; */ public boolean hasFsType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * +optional
     * 
* * optional string fsType = 4; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * +optional
     * 
* * optional string fsType = 4; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMEATTRIBUTES_FIELD_NUMBER = 5; private static final class VolumeAttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_VolumeAttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField volumeAttributes_; private com.google.protobuf.MapField internalGetVolumeAttributes() { if (volumeAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); } return volumeAttributes_; } public int getVolumeAttributesCount() { return internalGetVolumeAttributes().getMap().size(); } /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ public boolean containsVolumeAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetVolumeAttributes().getMap().containsKey(key); } /** Use {@link #getVolumeAttributesMap()} instead. */ @java.lang.Deprecated public java.util.Map getVolumeAttributes() { return getVolumeAttributesMap(); } /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ public java.util.Map getVolumeAttributesMap() { return internalGetVolumeAttributes().getMap(); } /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ public java.lang.String getVolumeAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Attributes of the volume to publish.
     * +optional
     * 
* * map<string, string> volumeAttributes = 5; */ public java.lang.String getVolumeAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONTROLLERPUBLISHSECRETREF_FIELD_NUMBER = 6; private io.kubernetes.client.proto.V1.SecretReference controllerPublishSecretRef_; /** * * *
     * ControllerPublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerPublishVolume and ControllerUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public boolean hasControllerPublishSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * ControllerPublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerPublishVolume and ControllerUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public io.kubernetes.client.proto.V1.SecretReference getControllerPublishSecretRef() { return controllerPublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerPublishSecretRef_; } /** * * *
     * ControllerPublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerPublishVolume and ControllerUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getControllerPublishSecretRefOrBuilder() { return controllerPublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerPublishSecretRef_; } public static final int NODESTAGESECRETREF_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.SecretReference nodeStageSecretRef_; /** * * *
     * NodeStageSecretRef is a reference to the secret object containing sensitive
     * information to pass to the CSI driver to complete the CSI NodeStageVolume
     * and NodeStageVolume and NodeUnstageVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public boolean hasNodeStageSecretRef() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * NodeStageSecretRef is a reference to the secret object containing sensitive
     * information to pass to the CSI driver to complete the CSI NodeStageVolume
     * and NodeStageVolume and NodeUnstageVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReference getNodeStageSecretRef() { return nodeStageSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodeStageSecretRef_; } /** * * *
     * NodeStageSecretRef is a reference to the secret object containing sensitive
     * information to pass to the CSI driver to complete the CSI NodeStageVolume
     * and NodeStageVolume and NodeUnstageVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getNodeStageSecretRefOrBuilder() { return nodeStageSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodeStageSecretRef_; } public static final int NODEPUBLISHSECRETREF_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.SecretReference nodePublishSecretRef_; /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public boolean hasNodePublishSecretRef() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public io.kubernetes.client.proto.V1.SecretReference getNodePublishSecretRef() { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodePublishSecretRef_; } /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getNodePublishSecretRefOrBuilder() { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodePublishSecretRef_; } public static final int CONTROLLEREXPANDSECRETREF_FIELD_NUMBER = 9; private io.kubernetes.client.proto.V1.SecretReference controllerExpandSecretRef_; /** * * *
     * ControllerExpandSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerExpandVolume call.
     * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public boolean hasControllerExpandSecretRef() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * ControllerExpandSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerExpandVolume call.
     * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public io.kubernetes.client.proto.V1.SecretReference getControllerExpandSecretRef() { return controllerExpandSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerExpandSecretRef_; } /** * * *
     * ControllerExpandSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * ControllerExpandVolume call.
     * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
     * This field is optional, and may be empty if no secret is required. If the
     * secret object contains more than one secret, all secrets are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getControllerExpandSecretRefOrBuilder() { return controllerExpandSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerExpandSecretRef_; } 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, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, volumeHandle_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fsType_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetVolumeAttributes(), VolumeAttributesDefaultEntryHolder.defaultEntry, 5); if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, getControllerPublishSecretRef()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(7, getNodeStageSecretRef()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(8, getNodePublishSecretRef()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(9, getControllerExpandSecretRef()); } 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, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, volumeHandle_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fsType_); } for (java.util.Map.Entry entry : internalGetVolumeAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry volumeAttributes__ = VolumeAttributesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, volumeAttributes__); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getControllerPublishSecretRef()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNodeStageSecretRef()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getNodePublishSecretRef()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getControllerExpandSecretRef()); } 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.V1.CSIPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.CSIPersistentVolumeSource other = (io.kubernetes.client.proto.V1.CSIPersistentVolumeSource) obj; boolean result = true; result = result && (hasDriver() == other.hasDriver()); if (hasDriver()) { result = result && getDriver().equals(other.getDriver()); } result = result && (hasVolumeHandle() == other.hasVolumeHandle()); if (hasVolumeHandle()) { result = result && getVolumeHandle().equals(other.getVolumeHandle()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && internalGetVolumeAttributes().equals(other.internalGetVolumeAttributes()); result = result && (hasControllerPublishSecretRef() == other.hasControllerPublishSecretRef()); if (hasControllerPublishSecretRef()) { result = result && getControllerPublishSecretRef().equals(other.getControllerPublishSecretRef()); } result = result && (hasNodeStageSecretRef() == other.hasNodeStageSecretRef()); if (hasNodeStageSecretRef()) { result = result && getNodeStageSecretRef().equals(other.getNodeStageSecretRef()); } result = result && (hasNodePublishSecretRef() == other.hasNodePublishSecretRef()); if (hasNodePublishSecretRef()) { result = result && getNodePublishSecretRef().equals(other.getNodePublishSecretRef()); } result = result && (hasControllerExpandSecretRef() == other.hasControllerExpandSecretRef()); if (hasControllerExpandSecretRef()) { result = result && getControllerExpandSecretRef().equals(other.getControllerExpandSecretRef()); } 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 (hasDriver()) { hash = (37 * hash) + DRIVER_FIELD_NUMBER; hash = (53 * hash) + getDriver().hashCode(); } if (hasVolumeHandle()) { hash = (37 * hash) + VOLUMEHANDLE_FIELD_NUMBER; hash = (53 * hash) + getVolumeHandle().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (!internalGetVolumeAttributes().getMap().isEmpty()) { hash = (37 * hash) + VOLUMEATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetVolumeAttributes().hashCode(); } if (hasControllerPublishSecretRef()) { hash = (37 * hash) + CONTROLLERPUBLISHSECRETREF_FIELD_NUMBER; hash = (53 * hash) + getControllerPublishSecretRef().hashCode(); } if (hasNodeStageSecretRef()) { hash = (37 * hash) + NODESTAGESECRETREF_FIELD_NUMBER; hash = (53 * hash) + getNodeStageSecretRef().hashCode(); } if (hasNodePublishSecretRef()) { hash = (37 * hash) + NODEPUBLISHSECRETREF_FIELD_NUMBER; hash = (53 * hash) + getNodePublishSecretRef().hashCode(); } if (hasControllerExpandSecretRef()) { hash = (37 * hash) + CONTROLLEREXPANDSECRETREF_FIELD_NUMBER; hash = (53 * hash) + getControllerExpandSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource 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.V1.CSIPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource 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.V1.CSIPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource 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.V1.CSIPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource 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.V1.CSIPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource 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.V1.CSIPersistentVolumeSource 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; } /** * * *
     * Represents storage that is managed by an external CSI volume driver (Beta feature)
     * 
* * Protobuf type {@code k8s.io.api.core.v1.CSIPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CSIPersistentVolumeSource) io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetVolumeAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableVolumeAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.class, io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getControllerPublishSecretRefFieldBuilder(); getNodeStageSecretRefFieldBuilder(); getNodePublishSecretRefFieldBuilder(); getControllerExpandSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); driver_ = ""; bitField0_ = (bitField0_ & ~0x00000001); volumeHandle_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableVolumeAttributes().clear(); if (controllerPublishSecretRefBuilder_ == null) { controllerPublishSecretRef_ = null; } else { controllerPublishSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (nodeStageSecretRefBuilder_ == null) { nodeStageSecretRef_ = null; } else { nodeStageSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRef_ = null; } else { nodePublishSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (controllerExpandSecretRefBuilder_ == null) { controllerExpandSecretRef_ = null; } else { controllerExpandSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.CSIPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.CSIPersistentVolumeSource build() { io.kubernetes.client.proto.V1.CSIPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.CSIPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.CSIPersistentVolumeSource result = new io.kubernetes.client.proto.V1.CSIPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.driver_ = driver_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.volumeHandle_ = volumeHandle_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.fsType_ = fsType_; result.volumeAttributes_ = internalGetVolumeAttributes(); result.volumeAttributes_.makeImmutable(); if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (controllerPublishSecretRefBuilder_ == null) { result.controllerPublishSecretRef_ = controllerPublishSecretRef_; } else { result.controllerPublishSecretRef_ = controllerPublishSecretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (nodeStageSecretRefBuilder_ == null) { result.nodeStageSecretRef_ = nodeStageSecretRef_; } else { result.nodeStageSecretRef_ = nodeStageSecretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } if (nodePublishSecretRefBuilder_ == null) { result.nodePublishSecretRef_ = nodePublishSecretRef_; } else { result.nodePublishSecretRef_ = nodePublishSecretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } if (controllerExpandSecretRefBuilder_ == null) { result.controllerExpandSecretRef_ = controllerExpandSecretRef_; } else { result.controllerExpandSecretRef_ = controllerExpandSecretRefBuilder_.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.V1.CSIPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.CSIPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.CSIPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasDriver()) { bitField0_ |= 0x00000001; driver_ = other.driver_; onChanged(); } if (other.hasVolumeHandle()) { bitField0_ |= 0x00000002; volumeHandle_ = other.volumeHandle_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasFsType()) { bitField0_ |= 0x00000008; fsType_ = other.fsType_; onChanged(); } internalGetMutableVolumeAttributes().mergeFrom(other.internalGetVolumeAttributes()); if (other.hasControllerPublishSecretRef()) { mergeControllerPublishSecretRef(other.getControllerPublishSecretRef()); } if (other.hasNodeStageSecretRef()) { mergeNodeStageSecretRef(other.getNodeStageSecretRef()); } if (other.hasNodePublishSecretRef()) { mergeNodePublishSecretRef(other.getNodePublishSecretRef()); } if (other.hasControllerExpandSecretRef()) { mergeControllerExpandSecretRef(other.getControllerExpandSecretRef()); } 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.V1.CSIPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.CSIPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object driver_ = ""; /** * * *
       * Driver is the name of the driver to use for this volume.
       * Required.
       * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Driver is the name of the driver to use for this volume.
       * Required.
       * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Driver is the name of the driver to use for this volume.
       * Required.
       * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Driver is the name of the driver to use for this volume.
       * Required.
       * 
* * optional string driver = 1; */ public Builder setDriver(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } /** * * *
       * Driver is the name of the driver to use for this volume.
       * Required.
       * 
* * optional string driver = 1; */ public Builder clearDriver() { bitField0_ = (bitField0_ & ~0x00000001); driver_ = getDefaultInstance().getDriver(); onChanged(); return this; } /** * * *
       * Driver is the name of the driver to use for this volume.
       * Required.
       * 
* * optional string driver = 1; */ public Builder setDriverBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } private java.lang.Object volumeHandle_ = ""; /** * * *
       * VolumeHandle is the unique volume name returned by the CSI volume
       * plugin’s CreateVolume to refer to the volume on all subsequent calls.
       * Required.
       * 
* * optional string volumeHandle = 2; */ public boolean hasVolumeHandle() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * VolumeHandle is the unique volume name returned by the CSI volume
       * plugin’s CreateVolume to refer to the volume on all subsequent calls.
       * Required.
       * 
* * optional string volumeHandle = 2; */ public java.lang.String getVolumeHandle() { java.lang.Object ref = volumeHandle_; 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()) { volumeHandle_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeHandle is the unique volume name returned by the CSI volume
       * plugin’s CreateVolume to refer to the volume on all subsequent calls.
       * Required.
       * 
* * optional string volumeHandle = 2; */ public com.google.protobuf.ByteString getVolumeHandleBytes() { java.lang.Object ref = volumeHandle_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeHandle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeHandle is the unique volume name returned by the CSI volume
       * plugin’s CreateVolume to refer to the volume on all subsequent calls.
       * Required.
       * 
* * optional string volumeHandle = 2; */ public Builder setVolumeHandle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volumeHandle_ = value; onChanged(); return this; } /** * * *
       * VolumeHandle is the unique volume name returned by the CSI volume
       * plugin’s CreateVolume to refer to the volume on all subsequent calls.
       * Required.
       * 
* * optional string volumeHandle = 2; */ public Builder clearVolumeHandle() { bitField0_ = (bitField0_ & ~0x00000002); volumeHandle_ = getDefaultInstance().getVolumeHandle(); onChanged(); return this; } /** * * *
       * VolumeHandle is the unique volume name returned by the CSI volume
       * plugin’s CreateVolume to refer to the volume on all subsequent calls.
       * Required.
       * 
* * optional string volumeHandle = 2; */ public Builder setVolumeHandleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volumeHandle_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Optional: The value to pass to ControllerPublishVolumeRequest.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: The value to pass to ControllerPublishVolumeRequest.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: The value to pass to ControllerPublishVolumeRequest.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: The value to pass to ControllerPublishVolumeRequest.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * +optional
       * 
* * optional string fsType = 4; */ public boolean hasFsType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * +optional
       * 
* * optional string fsType = 4; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * +optional
       * 
* * optional string fsType = 4; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * +optional
       * 
* * optional string fsType = 4; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * +optional
       * 
* * optional string fsType = 4; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000008); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * +optional
       * 
* * optional string fsType = 4; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; fsType_ = value; onChanged(); return this; } private com.google.protobuf.MapField volumeAttributes_; private com.google.protobuf.MapField internalGetVolumeAttributes() { if (volumeAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); } return volumeAttributes_; } private com.google.protobuf.MapField internalGetMutableVolumeAttributes() { onChanged(); ; if (volumeAttributes_ == null) { volumeAttributes_ = com.google.protobuf.MapField.newMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); } if (!volumeAttributes_.isMutable()) { volumeAttributes_ = volumeAttributes_.copy(); } return volumeAttributes_; } public int getVolumeAttributesCount() { return internalGetVolumeAttributes().getMap().size(); } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public boolean containsVolumeAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetVolumeAttributes().getMap().containsKey(key); } /** Use {@link #getVolumeAttributesMap()} instead. */ @java.lang.Deprecated public java.util.Map getVolumeAttributes() { return getVolumeAttributesMap(); } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public java.util.Map getVolumeAttributesMap() { return internalGetVolumeAttributes().getMap(); } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public java.lang.String getVolumeAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public java.lang.String getVolumeAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearVolumeAttributes() { internalGetMutableVolumeAttributes().getMutableMap().clear(); return this; } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public Builder removeVolumeAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableVolumeAttributes().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableVolumeAttributes() { return internalGetMutableVolumeAttributes().getMutableMap(); } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public Builder putVolumeAttributes(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableVolumeAttributes().getMutableMap().put(key, value); return this; } /** * * *
       * Attributes of the volume to publish.
       * +optional
       * 
* * map<string, string> volumeAttributes = 5; */ public Builder putAllVolumeAttributes( java.util.Map values) { internalGetMutableVolumeAttributes().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1.SecretReference controllerPublishSecretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> controllerPublishSecretRefBuilder_; /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public boolean hasControllerPublishSecretRef() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public io.kubernetes.client.proto.V1.SecretReference getControllerPublishSecretRef() { if (controllerPublishSecretRefBuilder_ == null) { return controllerPublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerPublishSecretRef_; } else { return controllerPublishSecretRefBuilder_.getMessage(); } } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public Builder setControllerPublishSecretRef( io.kubernetes.client.proto.V1.SecretReference value) { if (controllerPublishSecretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } controllerPublishSecretRef_ = value; onChanged(); } else { controllerPublishSecretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public Builder setControllerPublishSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (controllerPublishSecretRefBuilder_ == null) { controllerPublishSecretRef_ = builderForValue.build(); onChanged(); } else { controllerPublishSecretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public Builder mergeControllerPublishSecretRef( io.kubernetes.client.proto.V1.SecretReference value) { if (controllerPublishSecretRefBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && controllerPublishSecretRef_ != null && controllerPublishSecretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { controllerPublishSecretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder( controllerPublishSecretRef_) .mergeFrom(value) .buildPartial(); } else { controllerPublishSecretRef_ = value; } onChanged(); } else { controllerPublishSecretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public Builder clearControllerPublishSecretRef() { if (controllerPublishSecretRefBuilder_ == null) { controllerPublishSecretRef_ = null; onChanged(); } else { controllerPublishSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getControllerPublishSecretRefBuilder() { bitField0_ |= 0x00000020; onChanged(); return getControllerPublishSecretRefFieldBuilder().getBuilder(); } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getControllerPublishSecretRefOrBuilder() { if (controllerPublishSecretRefBuilder_ != null) { return controllerPublishSecretRefBuilder_.getMessageOrBuilder(); } else { return controllerPublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerPublishSecretRef_; } } /** * * *
       * ControllerPublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerPublishVolume and ControllerUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getControllerPublishSecretRefFieldBuilder() { if (controllerPublishSecretRefBuilder_ == null) { controllerPublishSecretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getControllerPublishSecretRef(), getParentForChildren(), isClean()); controllerPublishSecretRef_ = null; } return controllerPublishSecretRefBuilder_; } private io.kubernetes.client.proto.V1.SecretReference nodeStageSecretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> nodeStageSecretRefBuilder_; /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public boolean hasNodeStageSecretRef() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReference getNodeStageSecretRef() { if (nodeStageSecretRefBuilder_ == null) { return nodeStageSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodeStageSecretRef_; } else { return nodeStageSecretRefBuilder_.getMessage(); } } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public Builder setNodeStageSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (nodeStageSecretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeStageSecretRef_ = value; onChanged(); } else { nodeStageSecretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public Builder setNodeStageSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (nodeStageSecretRefBuilder_ == null) { nodeStageSecretRef_ = builderForValue.build(); onChanged(); } else { nodeStageSecretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public Builder mergeNodeStageSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (nodeStageSecretRefBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && nodeStageSecretRef_ != null && nodeStageSecretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { nodeStageSecretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(nodeStageSecretRef_) .mergeFrom(value) .buildPartial(); } else { nodeStageSecretRef_ = value; } onChanged(); } else { nodeStageSecretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public Builder clearNodeStageSecretRef() { if (nodeStageSecretRefBuilder_ == null) { nodeStageSecretRef_ = null; onChanged(); } else { nodeStageSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getNodeStageSecretRefBuilder() { bitField0_ |= 0x00000040; onChanged(); return getNodeStageSecretRefFieldBuilder().getBuilder(); } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getNodeStageSecretRefOrBuilder() { if (nodeStageSecretRefBuilder_ != null) { return nodeStageSecretRefBuilder_.getMessageOrBuilder(); } else { return nodeStageSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodeStageSecretRef_; } } /** * * *
       * NodeStageSecretRef is a reference to the secret object containing sensitive
       * information to pass to the CSI driver to complete the CSI NodeStageVolume
       * and NodeStageVolume and NodeUnstageVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getNodeStageSecretRefFieldBuilder() { if (nodeStageSecretRefBuilder_ == null) { nodeStageSecretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getNodeStageSecretRef(), getParentForChildren(), isClean()); nodeStageSecretRef_ = null; } return nodeStageSecretRefBuilder_; } private io.kubernetes.client.proto.V1.SecretReference nodePublishSecretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> nodePublishSecretRefBuilder_; /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public boolean hasNodePublishSecretRef() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public io.kubernetes.client.proto.V1.SecretReference getNodePublishSecretRef() { if (nodePublishSecretRefBuilder_ == null) { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodePublishSecretRef_; } else { return nodePublishSecretRefBuilder_.getMessage(); } } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public Builder setNodePublishSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (nodePublishSecretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodePublishSecretRef_ = value; onChanged(); } else { nodePublishSecretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public Builder setNodePublishSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRef_ = builderForValue.build(); onChanged(); } else { nodePublishSecretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public Builder mergeNodePublishSecretRef( io.kubernetes.client.proto.V1.SecretReference value) { if (nodePublishSecretRefBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && nodePublishSecretRef_ != null && nodePublishSecretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { nodePublishSecretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(nodePublishSecretRef_) .mergeFrom(value) .buildPartial(); } else { nodePublishSecretRef_ = value; } onChanged(); } else { nodePublishSecretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public Builder clearNodePublishSecretRef() { if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRef_ = null; onChanged(); } else { nodePublishSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getNodePublishSecretRefBuilder() { bitField0_ |= 0x00000080; onChanged(); return getNodePublishSecretRefFieldBuilder().getBuilder(); } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getNodePublishSecretRefOrBuilder() { if (nodePublishSecretRefBuilder_ != null) { return nodePublishSecretRefBuilder_.getMessageOrBuilder(); } else { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : nodePublishSecretRef_; } } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getNodePublishSecretRefFieldBuilder() { if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getNodePublishSecretRef(), getParentForChildren(), isClean()); nodePublishSecretRef_ = null; } return nodePublishSecretRefBuilder_; } private io.kubernetes.client.proto.V1.SecretReference controllerExpandSecretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> controllerExpandSecretRefBuilder_; /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public boolean hasControllerExpandSecretRef() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public io.kubernetes.client.proto.V1.SecretReference getControllerExpandSecretRef() { if (controllerExpandSecretRefBuilder_ == null) { return controllerExpandSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerExpandSecretRef_; } else { return controllerExpandSecretRefBuilder_.getMessage(); } } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public Builder setControllerExpandSecretRef( io.kubernetes.client.proto.V1.SecretReference value) { if (controllerExpandSecretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } controllerExpandSecretRef_ = value; onChanged(); } else { controllerExpandSecretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public Builder setControllerExpandSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (controllerExpandSecretRefBuilder_ == null) { controllerExpandSecretRef_ = builderForValue.build(); onChanged(); } else { controllerExpandSecretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public Builder mergeControllerExpandSecretRef( io.kubernetes.client.proto.V1.SecretReference value) { if (controllerExpandSecretRefBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && controllerExpandSecretRef_ != null && controllerExpandSecretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { controllerExpandSecretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(controllerExpandSecretRef_) .mergeFrom(value) .buildPartial(); } else { controllerExpandSecretRef_ = value; } onChanged(); } else { controllerExpandSecretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public Builder clearControllerExpandSecretRef() { if (controllerExpandSecretRefBuilder_ == null) { controllerExpandSecretRef_ = null; onChanged(); } else { controllerExpandSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getControllerExpandSecretRefBuilder() { bitField0_ |= 0x00000100; onChanged(); return getControllerExpandSecretRefFieldBuilder().getBuilder(); } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getControllerExpandSecretRefOrBuilder() { if (controllerExpandSecretRefBuilder_ != null) { return controllerExpandSecretRefBuilder_.getMessageOrBuilder(); } else { return controllerExpandSecretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : controllerExpandSecretRef_; } } /** * * *
       * ControllerExpandSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * ControllerExpandVolume call.
       * This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       * This field is optional, and may be empty if no secret is required. If the
       * secret object contains more than one secret, all secrets are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getControllerExpandSecretRefFieldBuilder() { if (controllerExpandSecretRefBuilder_ == null) { controllerExpandSecretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getControllerExpandSecretRef(), getParentForChildren(), isClean()); controllerExpandSecretRef_ = null; } return controllerExpandSecretRefBuilder_; } @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.core.v1.CSIPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.CSIPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.CSIPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.CSIPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.CSIPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIPersistentVolumeSource(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.V1.CSIPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CSIVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CSIVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Driver is the name of the CSI driver that handles this volume.
     * Consult with your admin for the correct name as registered in the cluster.
     * 
* * optional string driver = 1; */ boolean hasDriver(); /** * * *
     * Driver is the name of the CSI driver that handles this volume.
     * Consult with your admin for the correct name as registered in the cluster.
     * 
* * optional string driver = 1; */ java.lang.String getDriver(); /** * * *
     * Driver is the name of the CSI driver that handles this volume.
     * Consult with your admin for the correct name as registered in the cluster.
     * 
* * optional string driver = 1; */ com.google.protobuf.ByteString getDriverBytes(); /** * * *
     * Specifies a read-only configuration for the volume.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean hasReadOnly(); /** * * *
     * Specifies a read-only configuration for the volume.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean getReadOnly(); /** * * *
     * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
     * If not provided, the empty value is passed to the associated CSI driver
     * which will determine the default filesystem to apply.
     * +optional
     * 
* * optional string fsType = 3; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
     * If not provided, the empty value is passed to the associated CSI driver
     * which will determine the default filesystem to apply.
     * +optional
     * 
* * optional string fsType = 3; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
     * If not provided, the empty value is passed to the associated CSI driver
     * which will determine the default filesystem to apply.
     * +optional
     * 
* * optional string fsType = 3; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ int getVolumeAttributesCount(); /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ boolean containsVolumeAttributes(java.lang.String key); /** Use {@link #getVolumeAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getVolumeAttributes(); /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ java.util.Map getVolumeAttributesMap(); /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ java.lang.String getVolumeAttributesOrDefault( java.lang.String key, java.lang.String defaultValue); /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ java.lang.String getVolumeAttributesOrThrow(java.lang.String key); /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and  may be empty if no secret is required. If the
     * secret object contains more than one secret, all secret references are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ boolean hasNodePublishSecretRef(); /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and  may be empty if no secret is required. If the
     * secret object contains more than one secret, all secret references are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ io.kubernetes.client.proto.V1.LocalObjectReference getNodePublishSecretRef(); /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and  may be empty if no secret is required. If the
     * secret object contains more than one secret, all secret references are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getNodePublishSecretRefOrBuilder(); } /** * * *
   * Represents a source location of a volume to mount, managed by an external CSI driver
   * 
* * Protobuf type {@code k8s.io.api.core.v1.CSIVolumeSource} */ public static final class CSIVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CSIVolumeSource) CSIVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use CSIVolumeSource.newBuilder() to construct. private CSIVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CSIVolumeSource() { driver_ = ""; readOnly_ = false; fsType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CSIVolumeSource( 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; driver_ = bs; break; } case 16: { bitField0_ |= 0x00000002; readOnly_ = input.readBool(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; fsType_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { volumeAttributes_ = com.google.protobuf.MapField.newMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry volumeAttributes__ = input.readMessage( VolumeAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); volumeAttributes_ .getMutableMap() .put(volumeAttributes__.getKey(), volumeAttributes__.getValue()); break; } case 42: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = nodePublishSecretRef_.toBuilder(); } nodePublishSecretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodePublishSecretRef_); nodePublishSecretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetVolumeAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CSIVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CSIVolumeSource.class, io.kubernetes.client.proto.V1.CSIVolumeSource.Builder.class); } private int bitField0_; public static final int DRIVER_FIELD_NUMBER = 1; private volatile java.lang.Object driver_; /** * * *
     * Driver is the name of the CSI driver that handles this volume.
     * Consult with your admin for the correct name as registered in the cluster.
     * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Driver is the name of the CSI driver that handles this volume.
     * Consult with your admin for the correct name as registered in the cluster.
     * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } } /** * * *
     * Driver is the name of the CSI driver that handles this volume.
     * Consult with your admin for the correct name as registered in the cluster.
     * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 2; private boolean readOnly_; /** * * *
     * Specifies a read-only configuration for the volume.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specifies a read-only configuration for the volume.
     * Defaults to false (read/write).
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } public static final int FSTYPE_FIELD_NUMBER = 3; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
     * If not provided, the empty value is passed to the associated CSI driver
     * which will determine the default filesystem to apply.
     * +optional
     * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
     * If not provided, the empty value is passed to the associated CSI driver
     * which will determine the default filesystem to apply.
     * +optional
     * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
     * If not provided, the empty value is passed to the associated CSI driver
     * which will determine the default filesystem to apply.
     * +optional
     * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMEATTRIBUTES_FIELD_NUMBER = 4; private static final class VolumeAttributesDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CSIVolumeSource_VolumeAttributesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField volumeAttributes_; private com.google.protobuf.MapField internalGetVolumeAttributes() { if (volumeAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); } return volumeAttributes_; } public int getVolumeAttributesCount() { return internalGetVolumeAttributes().getMap().size(); } /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ public boolean containsVolumeAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetVolumeAttributes().getMap().containsKey(key); } /** Use {@link #getVolumeAttributesMap()} instead. */ @java.lang.Deprecated public java.util.Map getVolumeAttributes() { return getVolumeAttributesMap(); } /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ public java.util.Map getVolumeAttributesMap() { return internalGetVolumeAttributes().getMap(); } /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ public java.lang.String getVolumeAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * VolumeAttributes stores driver-specific properties that are passed to the CSI
     * driver. Consult your driver's documentation for supported values.
     * +optional
     * 
* * map<string, string> volumeAttributes = 4; */ public java.lang.String getVolumeAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NODEPUBLISHSECRETREF_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.LocalObjectReference nodePublishSecretRef_; /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and  may be empty if no secret is required. If the
     * secret object contains more than one secret, all secret references are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public boolean hasNodePublishSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and  may be empty if no secret is required. If the
     * secret object contains more than one secret, all secret references are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference getNodePublishSecretRef() { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : nodePublishSecretRef_; } /** * * *
     * NodePublishSecretRef is a reference to the secret object containing
     * sensitive information to pass to the CSI driver to complete the CSI
     * NodePublishVolume and NodeUnpublishVolume calls.
     * This field is optional, and  may be empty if no secret is required. If the
     * secret object contains more than one secret, all secret references are passed.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getNodePublishSecretRefOrBuilder() { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : nodePublishSecretRef_; } 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, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, readOnly_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fsType_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetVolumeAttributes(), VolumeAttributesDefaultEntryHolder.defaultEntry, 4); if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getNodePublishSecretRef()); } 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, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, readOnly_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fsType_); } for (java.util.Map.Entry entry : internalGetVolumeAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry volumeAttributes__ = VolumeAttributesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, volumeAttributes__); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getNodePublishSecretRef()); } 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.V1.CSIVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.CSIVolumeSource other = (io.kubernetes.client.proto.V1.CSIVolumeSource) obj; boolean result = true; result = result && (hasDriver() == other.hasDriver()); if (hasDriver()) { result = result && getDriver().equals(other.getDriver()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && internalGetVolumeAttributes().equals(other.internalGetVolumeAttributes()); result = result && (hasNodePublishSecretRef() == other.hasNodePublishSecretRef()); if (hasNodePublishSecretRef()) { result = result && getNodePublishSecretRef().equals(other.getNodePublishSecretRef()); } 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 (hasDriver()) { hash = (37 * hash) + DRIVER_FIELD_NUMBER; hash = (53 * hash) + getDriver().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (!internalGetVolumeAttributes().getMap().isEmpty()) { hash = (37 * hash) + VOLUMEATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetVolumeAttributes().hashCode(); } if (hasNodePublishSecretRef()) { hash = (37 * hash) + NODEPUBLISHSECRETREF_FIELD_NUMBER; hash = (53 * hash) + getNodePublishSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.CSIVolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CSIVolumeSource 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.V1.CSIVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CSIVolumeSource 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.V1.CSIVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CSIVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.CSIVolumeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CSIVolumeSource 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.V1.CSIVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CSIVolumeSource 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.V1.CSIVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CSIVolumeSource 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.V1.CSIVolumeSource 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; } /** * * *
     * Represents a source location of a volume to mount, managed by an external CSI driver
     * 
* * Protobuf type {@code k8s.io.api.core.v1.CSIVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CSIVolumeSource) io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetVolumeAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableVolumeAttributes(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CSIVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CSIVolumeSource.class, io.kubernetes.client.proto.V1.CSIVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.CSIVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNodePublishSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); driver_ = ""; bitField0_ = (bitField0_ & ~0x00000001); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000002); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableVolumeAttributes().clear(); if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRef_ = null; } else { nodePublishSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.CSIVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.CSIVolumeSource build() { io.kubernetes.client.proto.V1.CSIVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.CSIVolumeSource buildPartial() { io.kubernetes.client.proto.V1.CSIVolumeSource result = new io.kubernetes.client.proto.V1.CSIVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.driver_ = driver_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.fsType_ = fsType_; result.volumeAttributes_ = internalGetVolumeAttributes(); result.volumeAttributes_.makeImmutable(); if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (nodePublishSecretRefBuilder_ == null) { result.nodePublishSecretRef_ = nodePublishSecretRef_; } else { result.nodePublishSecretRef_ = nodePublishSecretRefBuilder_.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.V1.CSIVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.CSIVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.CSIVolumeSource other) { if (other == io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance()) return this; if (other.hasDriver()) { bitField0_ |= 0x00000001; driver_ = other.driver_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasFsType()) { bitField0_ |= 0x00000004; fsType_ = other.fsType_; onChanged(); } internalGetMutableVolumeAttributes().mergeFrom(other.internalGetVolumeAttributes()); if (other.hasNodePublishSecretRef()) { mergeNodePublishSecretRef(other.getNodePublishSecretRef()); } 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.V1.CSIVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.CSIVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object driver_ = ""; /** * * *
       * Driver is the name of the CSI driver that handles this volume.
       * Consult with your admin for the correct name as registered in the cluster.
       * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Driver is the name of the CSI driver that handles this volume.
       * Consult with your admin for the correct name as registered in the cluster.
       * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Driver is the name of the CSI driver that handles this volume.
       * Consult with your admin for the correct name as registered in the cluster.
       * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Driver is the name of the CSI driver that handles this volume.
       * Consult with your admin for the correct name as registered in the cluster.
       * 
* * optional string driver = 1; */ public Builder setDriver(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } /** * * *
       * Driver is the name of the CSI driver that handles this volume.
       * Consult with your admin for the correct name as registered in the cluster.
       * 
* * optional string driver = 1; */ public Builder clearDriver() { bitField0_ = (bitField0_ & ~0x00000001); driver_ = getDefaultInstance().getDriver(); onChanged(); return this; } /** * * *
       * Driver is the name of the CSI driver that handles this volume.
       * Consult with your admin for the correct name as registered in the cluster.
       * 
* * optional string driver = 1; */ public Builder setDriverBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Specifies a read-only configuration for the volume.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specifies a read-only configuration for the volume.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Specifies a read-only configuration for the volume.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000002; readOnly_ = value; onChanged(); return this; } /** * * *
       * Specifies a read-only configuration for the volume.
       * Defaults to false (read/write).
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       * If not provided, the empty value is passed to the associated CSI driver
       * which will determine the default filesystem to apply.
       * +optional
       * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       * If not provided, the empty value is passed to the associated CSI driver
       * which will determine the default filesystem to apply.
       * +optional
       * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       * If not provided, the empty value is passed to the associated CSI driver
       * which will determine the default filesystem to apply.
       * +optional
       * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       * If not provided, the empty value is passed to the associated CSI driver
       * which will determine the default filesystem to apply.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       * If not provided, the empty value is passed to the associated CSI driver
       * which will determine the default filesystem to apply.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000004); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       * If not provided, the empty value is passed to the associated CSI driver
       * which will determine the default filesystem to apply.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } private com.google.protobuf.MapField volumeAttributes_; private com.google.protobuf.MapField internalGetVolumeAttributes() { if (volumeAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); } return volumeAttributes_; } private com.google.protobuf.MapField internalGetMutableVolumeAttributes() { onChanged(); ; if (volumeAttributes_ == null) { volumeAttributes_ = com.google.protobuf.MapField.newMapField( VolumeAttributesDefaultEntryHolder.defaultEntry); } if (!volumeAttributes_.isMutable()) { volumeAttributes_ = volumeAttributes_.copy(); } return volumeAttributes_; } public int getVolumeAttributesCount() { return internalGetVolumeAttributes().getMap().size(); } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public boolean containsVolumeAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetVolumeAttributes().getMap().containsKey(key); } /** Use {@link #getVolumeAttributesMap()} instead. */ @java.lang.Deprecated public java.util.Map getVolumeAttributes() { return getVolumeAttributesMap(); } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public java.util.Map getVolumeAttributesMap() { return internalGetVolumeAttributes().getMap(); } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public java.lang.String getVolumeAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public java.lang.String getVolumeAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetVolumeAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearVolumeAttributes() { internalGetMutableVolumeAttributes().getMutableMap().clear(); return this; } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public Builder removeVolumeAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableVolumeAttributes().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableVolumeAttributes() { return internalGetMutableVolumeAttributes().getMutableMap(); } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public Builder putVolumeAttributes(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableVolumeAttributes().getMutableMap().put(key, value); return this; } /** * * *
       * VolumeAttributes stores driver-specific properties that are passed to the CSI
       * driver. Consult your driver's documentation for supported values.
       * +optional
       * 
* * map<string, string> volumeAttributes = 4; */ public Builder putAllVolumeAttributes( java.util.Map values) { internalGetMutableVolumeAttributes().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference nodePublishSecretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> nodePublishSecretRefBuilder_; /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public boolean hasNodePublishSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference getNodePublishSecretRef() { if (nodePublishSecretRefBuilder_ == null) { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : nodePublishSecretRef_; } else { return nodePublishSecretRefBuilder_.getMessage(); } } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public Builder setNodePublishSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (nodePublishSecretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodePublishSecretRef_ = value; onChanged(); } else { nodePublishSecretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public Builder setNodePublishSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRef_ = builderForValue.build(); onChanged(); } else { nodePublishSecretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public Builder mergeNodePublishSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (nodePublishSecretRefBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && nodePublishSecretRef_ != null && nodePublishSecretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { nodePublishSecretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(nodePublishSecretRef_) .mergeFrom(value) .buildPartial(); } else { nodePublishSecretRef_ = value; } onChanged(); } else { nodePublishSecretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public Builder clearNodePublishSecretRef() { if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRef_ = null; onChanged(); } else { nodePublishSecretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getNodePublishSecretRefBuilder() { bitField0_ |= 0x00000010; onChanged(); return getNodePublishSecretRefFieldBuilder().getBuilder(); } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getNodePublishSecretRefOrBuilder() { if (nodePublishSecretRefBuilder_ != null) { return nodePublishSecretRefBuilder_.getMessageOrBuilder(); } else { return nodePublishSecretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : nodePublishSecretRef_; } } /** * * *
       * NodePublishSecretRef is a reference to the secret object containing
       * sensitive information to pass to the CSI driver to complete the CSI
       * NodePublishVolume and NodeUnpublishVolume calls.
       * This field is optional, and  may be empty if no secret is required. If the
       * secret object contains more than one secret, all secret references are passed.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getNodePublishSecretRefFieldBuilder() { if (nodePublishSecretRefBuilder_ == null) { nodePublishSecretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getNodePublishSecretRef(), getParentForChildren(), isClean()); nodePublishSecretRef_ = null; } return nodePublishSecretRefBuilder_; } @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.core.v1.CSIVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.CSIVolumeSource) private static final io.kubernetes.client.proto.V1.CSIVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.CSIVolumeSource(); } public static io.kubernetes.client.proto.V1.CSIVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CSIVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CSIVolumeSource(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.V1.CSIVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CapabilitiesOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Capabilities) com.google.protobuf.MessageOrBuilder { /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ java.util.List getAddList(); /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ int getAddCount(); /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ java.lang.String getAdd(int index); /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ com.google.protobuf.ByteString getAddBytes(int index); /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ java.util.List getDropList(); /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ int getDropCount(); /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ java.lang.String getDrop(int index); /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ com.google.protobuf.ByteString getDropBytes(int index); } /** * * *
   * Adds and removes POSIX capabilities from running containers.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Capabilities} */ public static final class Capabilities extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Capabilities) CapabilitiesOrBuilder { private static final long serialVersionUID = 0L; // Use Capabilities.newBuilder() to construct. private Capabilities(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Capabilities() { add_ = com.google.protobuf.LazyStringArrayList.EMPTY; drop_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Capabilities( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { add_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } add_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { drop_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } drop_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { add_ = add_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { drop_ = drop_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Capabilities_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Capabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Capabilities.class, io.kubernetes.client.proto.V1.Capabilities.Builder.class); } public static final int ADD_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList add_; /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ public com.google.protobuf.ProtocolStringList getAddList() { return add_; } /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ public int getAddCount() { return add_.size(); } /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ public java.lang.String getAdd(int index) { return add_.get(index); } /** * * *
     * Added capabilities
     * +optional
     * 
* * repeated string add = 1; */ public com.google.protobuf.ByteString getAddBytes(int index) { return add_.getByteString(index); } public static final int DROP_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList drop_; /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ public com.google.protobuf.ProtocolStringList getDropList() { return drop_; } /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ public int getDropCount() { return drop_.size(); } /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ public java.lang.String getDrop(int index) { return drop_.get(index); } /** * * *
     * Removed capabilities
     * +optional
     * 
* * repeated string drop = 2; */ public com.google.protobuf.ByteString getDropBytes(int index) { return drop_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < add_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, add_.getRaw(i)); } for (int i = 0; i < drop_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, drop_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < add_.size(); i++) { dataSize += computeStringSizeNoTag(add_.getRaw(i)); } size += dataSize; size += 1 * getAddList().size(); } { int dataSize = 0; for (int i = 0; i < drop_.size(); i++) { dataSize += computeStringSizeNoTag(drop_.getRaw(i)); } size += dataSize; size += 1 * getDropList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.Capabilities)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Capabilities other = (io.kubernetes.client.proto.V1.Capabilities) obj; boolean result = true; result = result && getAddList().equals(other.getAddList()); result = result && getDropList().equals(other.getDropList()); 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 (getAddCount() > 0) { hash = (37 * hash) + ADD_FIELD_NUMBER; hash = (53 * hash) + getAddList().hashCode(); } if (getDropCount() > 0) { hash = (37 * hash) + DROP_FIELD_NUMBER; hash = (53 * hash) + getDropList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Capabilities parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Capabilities 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.V1.Capabilities parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Capabilities 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.V1.Capabilities parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Capabilities parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Capabilities parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Capabilities 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.V1.Capabilities parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Capabilities 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.V1.Capabilities parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Capabilities 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.V1.Capabilities 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; } /** * * *
     * Adds and removes POSIX capabilities from running containers.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Capabilities} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Capabilities) io.kubernetes.client.proto.V1.CapabilitiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Capabilities_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Capabilities_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Capabilities.class, io.kubernetes.client.proto.V1.Capabilities.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Capabilities.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(); add_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); drop_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Capabilities_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Capabilities getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Capabilities build() { io.kubernetes.client.proto.V1.Capabilities result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Capabilities buildPartial() { io.kubernetes.client.proto.V1.Capabilities result = new io.kubernetes.client.proto.V1.Capabilities(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { add_ = add_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.add_ = add_; if (((bitField0_ & 0x00000002) == 0x00000002)) { drop_ = drop_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.drop_ = drop_; 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.V1.Capabilities) { return mergeFrom((io.kubernetes.client.proto.V1.Capabilities) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Capabilities other) { if (other == io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance()) return this; if (!other.add_.isEmpty()) { if (add_.isEmpty()) { add_ = other.add_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAddIsMutable(); add_.addAll(other.add_); } onChanged(); } if (!other.drop_.isEmpty()) { if (drop_.isEmpty()) { drop_ = other.drop_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDropIsMutable(); drop_.addAll(other.drop_); } 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.V1.Capabilities parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Capabilities) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList add_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAddIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { add_ = new com.google.protobuf.LazyStringArrayList(add_); bitField0_ |= 0x00000001; } } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public com.google.protobuf.ProtocolStringList getAddList() { return add_.getUnmodifiableView(); } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public int getAddCount() { return add_.size(); } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public java.lang.String getAdd(int index) { return add_.get(index); } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public com.google.protobuf.ByteString getAddBytes(int index) { return add_.getByteString(index); } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public Builder setAdd(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddIsMutable(); add_.set(index, value); onChanged(); return this; } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public Builder addAdd(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddIsMutable(); add_.add(value); onChanged(); return this; } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public Builder addAllAdd(java.lang.Iterable values) { ensureAddIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, add_); onChanged(); return this; } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public Builder clearAdd() { add_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Added capabilities
       * +optional
       * 
* * repeated string add = 1; */ public Builder addAddBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAddIsMutable(); add_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList drop_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDropIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { drop_ = new com.google.protobuf.LazyStringArrayList(drop_); bitField0_ |= 0x00000002; } } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public com.google.protobuf.ProtocolStringList getDropList() { return drop_.getUnmodifiableView(); } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public int getDropCount() { return drop_.size(); } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public java.lang.String getDrop(int index) { return drop_.get(index); } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public com.google.protobuf.ByteString getDropBytes(int index) { return drop_.getByteString(index); } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public Builder setDrop(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDropIsMutable(); drop_.set(index, value); onChanged(); return this; } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public Builder addDrop(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDropIsMutable(); drop_.add(value); onChanged(); return this; } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public Builder addAllDrop(java.lang.Iterable values) { ensureDropIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, drop_); onChanged(); return this; } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public Builder clearDrop() { drop_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Removed capabilities
       * +optional
       * 
* * repeated string drop = 2; */ public Builder addDropBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDropIsMutable(); drop_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.Capabilities) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Capabilities) private static final io.kubernetes.client.proto.V1.Capabilities DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Capabilities(); } public static io.kubernetes.client.proto.V1.Capabilities getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Capabilities parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Capabilities(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.V1.Capabilities getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CephFSPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CephFSPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.util.List getMonitorsList(); /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ int getMonitorsCount(); /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.lang.String getMonitors(int index); /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ com.google.protobuf.ByteString getMonitorsBytes(int index); /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ boolean hasPath(); /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ java.lang.String getPath(); /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ boolean hasUser(); /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ java.lang.String getUser(); /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ com.google.protobuf.ByteString getUserBytes(); /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ boolean hasSecretFile(); /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ java.lang.String getSecretFile(); /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ com.google.protobuf.ByteString getSecretFileBytes(); /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ boolean hasSecretRef(); /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ io.kubernetes.client.proto.V1.SecretReference getSecretRef(); /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean getReadOnly(); } /** * * *
   * Represents a Ceph Filesystem mount that lasts the lifetime of a pod
   * Cephfs volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.CephFSPersistentVolumeSource} */ public static final class CephFSPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CephFSPersistentVolumeSource) CephFSPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use CephFSPersistentVolumeSource.newBuilder() to construct. private CephFSPersistentVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CephFSPersistentVolumeSource() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; path_ = ""; user_ = ""; secretFile_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CephFSPersistentVolumeSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } monitors_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; path_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; user_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; secretFile_ = bs; break; } case 42: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 48: { bitField0_ |= 0x00000010; readOnly_ = 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_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.class, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int MONITORS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList monitors_; /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_; } /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 3; private volatile java.lang.Object user_; /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ public boolean hasUser() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETFILE_FIELD_NUMBER = 4; private volatile java.lang.Object secretFile_; /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ public boolean hasSecretFile() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ public java.lang.String getSecretFile() { java.lang.Object ref = secretFile_; 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()) { secretFile_ = s; } return s; } } /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ public com.google.protobuf.ByteString getSecretFileBytes() { java.lang.Object ref = secretFile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.SecretReference secretRef_; /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } public static final int READONLY_FIELD_NUMBER = 6; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } 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 < monitors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, monitors_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secretFile_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getSecretRef()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(6, readOnly_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < monitors_.size(); i++) { dataSize += computeStringSizeNoTag(monitors_.getRaw(i)); } size += dataSize; size += 1 * getMonitorsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secretFile_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecretRef()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, readOnly_); } 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.V1.CephFSPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource other = (io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource) obj; boolean result = true; result = result && getMonitorsList().equals(other.getMonitorsList()); result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser().equals(other.getUser()); } result = result && (hasSecretFile() == other.hasSecretFile()); if (hasSecretFile()) { result = result && getSecretFile().equals(other.getSecretFile()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (getMonitorsCount() > 0) { hash = (37 * hash) + MONITORS_FIELD_NUMBER; hash = (53 * hash) + getMonitorsList().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasSecretFile()) { hash = (37 * hash) + SECRETFILE_FIELD_NUMBER; hash = (53 * hash) + getSecretFile().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource 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.V1.CephFSPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource 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.V1.CephFSPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource 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.V1.CephFSPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource 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.V1.CephFSPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource 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.V1.CephFSPersistentVolumeSource 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; } /** * * *
     * Represents a Ceph Filesystem mount that lasts the lifetime of a pod
     * Cephfs volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.CephFSPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CephFSPersistentVolumeSource) io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.class, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); user_ = ""; bitField0_ = (bitField0_ & ~0x00000004); secretFile_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource build() { io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource result = new io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.monitors_ = monitors_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.user_ = user_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.secretFile_ = secretFile_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.readOnly_ = readOnly_; 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.V1.CephFSPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.getDefaultInstance()) return this; if (!other.monitors_.isEmpty()) { if (monitors_.isEmpty()) { monitors_ = other.monitors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMonitorsIsMutable(); monitors_.addAll(other.monitors_); } onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasUser()) { bitField0_ |= 0x00000004; user_ = other.user_; onChanged(); } if (other.hasSecretFile()) { bitField0_ |= 0x00000008; secretFile_ = other.secretFile_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.CephFSPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMonitorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(monitors_); bitField0_ |= 0x00000001; } } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_.getUnmodifiableView(); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder setMonitors(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.set(index, value); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitors(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addAllMonitors(java.lang.Iterable values) { ensureMonitorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitors_); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder clearMonitors() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } private java.lang.Object user_ = ""; /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public boolean hasUser() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public Builder setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000004); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public Builder setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } private java.lang.Object secretFile_ = ""; /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public boolean hasSecretFile() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public java.lang.String getSecretFile() { java.lang.Object ref = secretFile_; 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()) { secretFile_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public com.google.protobuf.ByteString getSecretFileBytes() { java.lang.Object ref = secretFile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public Builder setSecretFile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secretFile_ = value; onChanged(); return this; } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public Builder clearSecretFile() { bitField0_ = (bitField0_ & ~0x00000008); secretFile_ = getDefaultInstance().getSecretFile(); onChanged(); return this; } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public Builder setSecretFileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secretFile_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecretReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> secretRefBuilder_; /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000020; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000020); readOnly_ = 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.core.v1.CephFSPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.CephFSPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CephFSPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CephFSPersistentVolumeSource(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.V1.CephFSPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CephFSVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CephFSVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.util.List getMonitorsList(); /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ int getMonitorsCount(); /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.lang.String getMonitors(int index); /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ com.google.protobuf.ByteString getMonitorsBytes(int index); /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ boolean hasPath(); /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ java.lang.String getPath(); /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ boolean hasUser(); /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ java.lang.String getUser(); /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ com.google.protobuf.ByteString getUserBytes(); /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ boolean hasSecretFile(); /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ java.lang.String getSecretFile(); /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ com.google.protobuf.ByteString getSecretFileBytes(); /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ boolean hasSecretRef(); /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean getReadOnly(); } /** * * *
   * Represents a Ceph Filesystem mount that lasts the lifetime of a pod
   * Cephfs volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.CephFSVolumeSource} */ public static final class CephFSVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CephFSVolumeSource) CephFSVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use CephFSVolumeSource.newBuilder() to construct. private CephFSVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CephFSVolumeSource() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; path_ = ""; user_ = ""; secretFile_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CephFSVolumeSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } monitors_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; path_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; user_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; secretFile_ = bs; break; } case 42: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 48: { bitField0_ |= 0x00000010; readOnly_ = 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_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CephFSVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CephFSVolumeSource.class, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder.class); } private int bitField0_; public static final int MONITORS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList monitors_; /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_; } /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
     * Required: Monitors is a collection of Ceph monitors
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
     * +optional
     * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 3; private volatile java.lang.Object user_; /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ public boolean hasUser() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * * *
     * Optional: User is the rados user name, default is admin
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 3; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETFILE_FIELD_NUMBER = 4; private volatile java.lang.Object secretFile_; /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ public boolean hasSecretFile() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ public java.lang.String getSecretFile() { java.lang.Object ref = secretFile_; 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()) { secretFile_ = s; } return s; } } /** * * *
     * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional string secretFile = 4; */ public com.google.protobuf.ByteString getSecretFileBytes() { java.lang.Object ref = secretFile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * Optional: SecretRef is reference to the authentication secret for User, default is empty.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } public static final int READONLY_FIELD_NUMBER = 6; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } 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 < monitors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, monitors_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secretFile_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, getSecretRef()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(6, readOnly_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < monitors_.size(); i++) { dataSize += computeStringSizeNoTag(monitors_.getRaw(i)); } size += dataSize; size += 1 * getMonitorsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secretFile_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecretRef()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, readOnly_); } 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.V1.CephFSVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.CephFSVolumeSource other = (io.kubernetes.client.proto.V1.CephFSVolumeSource) obj; boolean result = true; result = result && getMonitorsList().equals(other.getMonitorsList()); result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser().equals(other.getUser()); } result = result && (hasSecretFile() == other.hasSecretFile()); if (hasSecretFile()) { result = result && getSecretFile().equals(other.getSecretFile()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (getMonitorsCount() > 0) { hash = (37 * hash) + MONITORS_FIELD_NUMBER; hash = (53 * hash) + getMonitorsList().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasSecretFile()) { hash = (37 * hash) + SECRETFILE_FIELD_NUMBER; hash = (53 * hash) + getSecretFile().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.CephFSVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource 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.V1.CephFSVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource 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.V1.CephFSVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource 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.V1.CephFSVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource 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.V1.CephFSVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource 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.V1.CephFSVolumeSource 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; } /** * * *
     * Represents a Ceph Filesystem mount that lasts the lifetime of a pod
     * Cephfs volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.CephFSVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CephFSVolumeSource) io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CephFSVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CephFSVolumeSource.class, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.CephFSVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); user_ = ""; bitField0_ = (bitField0_ & ~0x00000004); secretFile_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.CephFSVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.CephFSVolumeSource build() { io.kubernetes.client.proto.V1.CephFSVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.CephFSVolumeSource buildPartial() { io.kubernetes.client.proto.V1.CephFSVolumeSource result = new io.kubernetes.client.proto.V1.CephFSVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.monitors_ = monitors_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.user_ = user_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.secretFile_ = secretFile_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.readOnly_ = readOnly_; 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.V1.CephFSVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.CephFSVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.CephFSVolumeSource other) { if (other == io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance()) return this; if (!other.monitors_.isEmpty()) { if (monitors_.isEmpty()) { monitors_ = other.monitors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMonitorsIsMutable(); monitors_.addAll(other.monitors_); } onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasUser()) { bitField0_ |= 0x00000004; user_ = other.user_; onChanged(); } if (other.hasSecretFile()) { bitField0_ |= 0x00000008; secretFile_ = other.secretFile_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.CephFSVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.CephFSVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMonitorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(monitors_); bitField0_ |= 0x00000001; } } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_.getUnmodifiableView(); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder setMonitors(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.set(index, value); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitors(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addAllMonitors(java.lang.Iterable values) { ensureMonitorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitors_); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder clearMonitors() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Required: Monitors is a collection of Ceph monitors
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Optional: Used as the mounted root, rather than the full Ceph tree, default is /
       * +optional
       * 
* * optional string path = 2; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } private java.lang.Object user_ = ""; /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public boolean hasUser() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public Builder setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000004); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * * *
       * Optional: User is the rados user name, default is admin
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 3; */ public Builder setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } private java.lang.Object secretFile_ = ""; /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public boolean hasSecretFile() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public java.lang.String getSecretFile() { java.lang.Object ref = secretFile_; 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()) { secretFile_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public com.google.protobuf.ByteString getSecretFileBytes() { java.lang.Object ref = secretFile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretFile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public Builder setSecretFile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secretFile_ = value; onChanged(); return this; } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public Builder clearSecretFile() { bitField0_ = (bitField0_ & ~0x00000008); secretFile_ = getDefaultInstance().getSecretFile(); onChanged(); return this; } /** * * *
       * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional string secretFile = 4; */ public Builder setSecretFileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secretFile_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * Optional: SecretRef is reference to the authentication secret for User, default is empty.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000020; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000020); readOnly_ = 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.core.v1.CephFSVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.CephFSVolumeSource) private static final io.kubernetes.client.proto.V1.CephFSVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.CephFSVolumeSource(); } public static io.kubernetes.client.proto.V1.CephFSVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CephFSVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CephFSVolumeSource(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.V1.CephFSVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CinderPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CinderPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ boolean hasVolumeID(); /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ java.lang.String getVolumeID(); /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ com.google.protobuf.ByteString getVolumeIDBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ boolean hasSecretRef(); /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ io.kubernetes.client.proto.V1.SecretReference getSecretRef(); /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder(); } /** * * *
   * Represents a cinder volume resource in Openstack.
   * A Cinder volume must exist before mounting to a container.
   * The volume must also be in the same region as the kubelet.
   * Cinder volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.CinderPersistentVolumeSource} */ public static final class CinderPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CinderPersistentVolumeSource) CinderPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use CinderPersistentVolumeSource.newBuilder() to construct. private CinderPersistentVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CinderPersistentVolumeSource() { volumeID_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CinderPersistentVolumeSource( 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; volumeID_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.class, io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMEID_FIELD_NUMBER = 1; private volatile java.lang.Object volumeID_; /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } } /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int SECRETREF_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.SecretReference secretRef_; /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getSecretRef()); } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSecretRef()); } 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.V1.CinderPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.CinderPersistentVolumeSource other = (io.kubernetes.client.proto.V1.CinderPersistentVolumeSource) obj; boolean result = true; result = result && (hasVolumeID() == other.hasVolumeID()); if (hasVolumeID()) { result = result && getVolumeID().equals(other.getVolumeID()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } 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 (hasVolumeID()) { hash = (37 * hash) + VOLUMEID_FIELD_NUMBER; hash = (53 * hash) + getVolumeID().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource 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.V1.CinderPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource 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.V1.CinderPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource 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.V1.CinderPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource 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.V1.CinderPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource 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.V1.CinderPersistentVolumeSource 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; } /** * * *
     * Represents a cinder volume resource in Openstack.
     * A Cinder volume must exist before mounting to a container.
     * The volume must also be in the same region as the kubelet.
     * Cinder volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.CinderPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CinderPersistentVolumeSource) io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.class, io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); volumeID_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.CinderPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.CinderPersistentVolumeSource build() { io.kubernetes.client.proto.V1.CinderPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.CinderPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.CinderPersistentVolumeSource result = new io.kubernetes.client.proto.V1.CinderPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumeID_ = volumeID_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.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.V1.CinderPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.CinderPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.CinderPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeID()) { bitField0_ |= 0x00000001; volumeID_ = other.volumeID_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } 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.V1.CinderPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.CinderPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumeID_ = ""; /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public Builder setVolumeID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public Builder clearVolumeID() { bitField0_ = (bitField0_ & ~0x00000001); volumeID_ = getDefaultInstance().getVolumeID(); onChanged(); return this; } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public Builder setVolumeIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecretReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> secretRefBuilder_; /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } @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.core.v1.CinderPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.CinderPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.CinderPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.CinderPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.CinderPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CinderPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CinderPersistentVolumeSource(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.V1.CinderPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CinderVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.CinderVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ boolean hasVolumeID(); /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ java.lang.String getVolumeID(); /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ com.google.protobuf.ByteString getVolumeIDBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ boolean hasSecretRef(); /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); } /** * * *
   * Represents a cinder volume resource in Openstack.
   * A Cinder volume must exist before mounting to a container.
   * The volume must also be in the same region as the kubelet.
   * Cinder volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.CinderVolumeSource} */ public static final class CinderVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.CinderVolumeSource) CinderVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use CinderVolumeSource.newBuilder() to construct. private CinderVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CinderVolumeSource() { volumeID_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CinderVolumeSource( 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; volumeID_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CinderVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CinderVolumeSource.class, io.kubernetes.client.proto.V1.CinderVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMEID_FIELD_NUMBER = 1; private volatile java.lang.Object volumeID_; /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } } /** * * *
     * volume id used to identify the volume in cinder.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int SECRETREF_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * Optional: points to a secret object containing parameters used to connect
     * to OpenStack.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getSecretRef()); } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSecretRef()); } 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.V1.CinderVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.CinderVolumeSource other = (io.kubernetes.client.proto.V1.CinderVolumeSource) obj; boolean result = true; result = result && (hasVolumeID() == other.hasVolumeID()); if (hasVolumeID()) { result = result && getVolumeID().equals(other.getVolumeID()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } 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 (hasVolumeID()) { hash = (37 * hash) + VOLUMEID_FIELD_NUMBER; hash = (53 * hash) + getVolumeID().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.CinderVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CinderVolumeSource 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.V1.CinderVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CinderVolumeSource 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.V1.CinderVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.CinderVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.CinderVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CinderVolumeSource 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.V1.CinderVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CinderVolumeSource 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.V1.CinderVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.CinderVolumeSource 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.V1.CinderVolumeSource 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; } /** * * *
     * Represents a cinder volume resource in Openstack.
     * A Cinder volume must exist before mounting to a container.
     * The volume must also be in the same region as the kubelet.
     * Cinder volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.CinderVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.CinderVolumeSource) io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_CinderVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.CinderVolumeSource.class, io.kubernetes.client.proto.V1.CinderVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.CinderVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); volumeID_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.CinderVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.CinderVolumeSource build() { io.kubernetes.client.proto.V1.CinderVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.CinderVolumeSource buildPartial() { io.kubernetes.client.proto.V1.CinderVolumeSource result = new io.kubernetes.client.proto.V1.CinderVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumeID_ = volumeID_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.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.V1.CinderVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.CinderVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.CinderVolumeSource other) { if (other == io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeID()) { bitField0_ |= 0x00000001; volumeID_ = other.volumeID_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } 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.V1.CinderVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.CinderVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumeID_ = ""; /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public Builder setVolumeID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public Builder clearVolumeID() { bitField0_ = (bitField0_ & ~0x00000001); volumeID_ = getDefaultInstance().getVolumeID(); onChanged(); return this; } /** * * *
       * volume id used to identify the volume in cinder.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * 
* * optional string volumeID = 1; */ public Builder setVolumeIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * Optional: points to a secret object containing parameters used to connect
       * to OpenStack.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } @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.core.v1.CinderVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.CinderVolumeSource) private static final io.kubernetes.client.proto.V1.CinderVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.CinderVolumeSource(); } public static io.kubernetes.client.proto.V1.CinderVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CinderVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CinderVolumeSource(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.V1.CinderVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClientIPConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ClientIPConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
     * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
     * Default value is 10800(for 3 hours).
     * +optional
     * 
* * optional int32 timeoutSeconds = 1; */ boolean hasTimeoutSeconds(); /** * * *
     * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
     * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
     * Default value is 10800(for 3 hours).
     * +optional
     * 
* * optional int32 timeoutSeconds = 1; */ int getTimeoutSeconds(); } /** * * *
   * ClientIPConfig represents the configurations of Client IP based session affinity.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ClientIPConfig} */ public static final class ClientIPConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ClientIPConfig) ClientIPConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ClientIPConfig.newBuilder() to construct. private ClientIPConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientIPConfig() { timeoutSeconds_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClientIPConfig( 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; timeoutSeconds_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ClientIPConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ClientIPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ClientIPConfig.class, io.kubernetes.client.proto.V1.ClientIPConfig.Builder.class); } private int bitField0_; public static final int TIMEOUTSECONDS_FIELD_NUMBER = 1; private int timeoutSeconds_; /** * * *
     * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
     * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
     * Default value is 10800(for 3 hours).
     * +optional
     * 
* * optional int32 timeoutSeconds = 1; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
     * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
     * Default value is 10800(for 3 hours).
     * +optional
     * 
* * optional int32 timeoutSeconds = 1; */ public int getTimeoutSeconds() { return timeoutSeconds_; } 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, timeoutSeconds_); } 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, timeoutSeconds_); } 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.V1.ClientIPConfig)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ClientIPConfig other = (io.kubernetes.client.proto.V1.ClientIPConfig) obj; boolean result = true; result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds()); if (hasTimeoutSeconds()) { result = result && (getTimeoutSeconds() == other.getTimeoutSeconds()); } 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 (hasTimeoutSeconds()) { hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER; hash = (53 * hash) + getTimeoutSeconds(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ClientIPConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ClientIPConfig 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.V1.ClientIPConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ClientIPConfig 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.V1.ClientIPConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ClientIPConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ClientIPConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ClientIPConfig 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.V1.ClientIPConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ClientIPConfig 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.V1.ClientIPConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ClientIPConfig 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.V1.ClientIPConfig 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; } /** * * *
     * ClientIPConfig represents the configurations of Client IP based session affinity.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ClientIPConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ClientIPConfig) io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ClientIPConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ClientIPConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ClientIPConfig.class, io.kubernetes.client.proto.V1.ClientIPConfig.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ClientIPConfig.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(); timeoutSeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ClientIPConfig_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ClientIPConfig getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ClientIPConfig build() { io.kubernetes.client.proto.V1.ClientIPConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ClientIPConfig buildPartial() { io.kubernetes.client.proto.V1.ClientIPConfig result = new io.kubernetes.client.proto.V1.ClientIPConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.timeoutSeconds_ = timeoutSeconds_; 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.V1.ClientIPConfig) { return mergeFrom((io.kubernetes.client.proto.V1.ClientIPConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ClientIPConfig other) { if (other == io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance()) return this; if (other.hasTimeoutSeconds()) { setTimeoutSeconds(other.getTimeoutSeconds()); } 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.V1.ClientIPConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ClientIPConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int timeoutSeconds_; /** * * *
       * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
       * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
       * Default value is 10800(for 3 hours).
       * +optional
       * 
* * optional int32 timeoutSeconds = 1; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
       * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
       * Default value is 10800(for 3 hours).
       * +optional
       * 
* * optional int32 timeoutSeconds = 1; */ public int getTimeoutSeconds() { return timeoutSeconds_; } /** * * *
       * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
       * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
       * Default value is 10800(for 3 hours).
       * +optional
       * 
* * optional int32 timeoutSeconds = 1; */ public Builder setTimeoutSeconds(int value) { bitField0_ |= 0x00000001; timeoutSeconds_ = value; onChanged(); return this; } /** * * *
       * timeoutSeconds specifies the seconds of ClientIP type session sticky time.
       * The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
       * Default value is 10800(for 3 hours).
       * +optional
       * 
* * optional int32 timeoutSeconds = 1; */ public Builder clearTimeoutSeconds() { bitField0_ = (bitField0_ & ~0x00000001); timeoutSeconds_ = 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.core.v1.ClientIPConfig) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ClientIPConfig) private static final io.kubernetes.client.proto.V1.ClientIPConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ClientIPConfig(); } public static io.kubernetes.client.proto.V1.ClientIPConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientIPConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClientIPConfig(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.V1.ClientIPConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ComponentConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ComponentCondition) com.google.protobuf.MessageOrBuilder { /** * * *
     * Type of condition for a component.
     * Valid value: "Healthy"
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Type of condition for a component.
     * Valid value: "Healthy"
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Type of condition for a component.
     * Valid value: "Healthy"
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Status of the condition for a component.
     * Valid values for "Healthy": "True", "False", or "Unknown".
     * 
* * optional string status = 2; */ boolean hasStatus(); /** * * *
     * Status of the condition for a component.
     * Valid values for "Healthy": "True", "False", or "Unknown".
     * 
* * optional string status = 2; */ java.lang.String getStatus(); /** * * *
     * Status of the condition for a component.
     * Valid values for "Healthy": "True", "False", or "Unknown".
     * 
* * optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * Message about the condition for a component.
     * For example, information about a health check.
     * +optional
     * 
* * optional string message = 3; */ boolean hasMessage(); /** * * *
     * Message about the condition for a component.
     * For example, information about a health check.
     * +optional
     * 
* * optional string message = 3; */ java.lang.String getMessage(); /** * * *
     * Message about the condition for a component.
     * For example, information about a health check.
     * +optional
     * 
* * optional string message = 3; */ com.google.protobuf.ByteString getMessageBytes(); /** * * *
     * Condition error code for a component.
     * For example, a health check error code.
     * +optional
     * 
* * optional string error = 4; */ boolean hasError(); /** * * *
     * Condition error code for a component.
     * For example, a health check error code.
     * +optional
     * 
* * optional string error = 4; */ java.lang.String getError(); /** * * *
     * Condition error code for a component.
     * For example, a health check error code.
     * +optional
     * 
* * optional string error = 4; */ com.google.protobuf.ByteString getErrorBytes(); } /** * * *
   * Information about the condition of a component.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ComponentCondition} */ public static final class ComponentCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ComponentCondition) ComponentConditionOrBuilder { private static final long serialVersionUID = 0L; // Use ComponentCondition.newBuilder() to construct. private ComponentCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ComponentCondition() { type_ = ""; status_ = ""; message_ = ""; error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComponentCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; message_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; error_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ComponentCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ComponentCondition.class, io.kubernetes.client.proto.V1.ComponentCondition.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Type of condition for a component.
     * Valid value: "Healthy"
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Type of condition for a component.
     * Valid value: "Healthy"
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type of condition for a component.
     * Valid value: "Healthy"
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** * * *
     * Status of the condition for a component.
     * Valid values for "Healthy": "True", "False", or "Unknown".
     * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Status of the condition for a component.
     * Valid values for "Healthy": "True", "False", or "Unknown".
     * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** * * *
     * Status of the condition for a component.
     * Valid values for "Healthy": "True", "False", or "Unknown".
     * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** * * *
     * Message about the condition for a component.
     * For example, information about a health check.
     * +optional
     * 
* * optional string message = 3; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Message about the condition for a component.
     * For example, information about a health check.
     * +optional
     * 
* * optional string message = 3; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } } /** * * *
     * Message about the condition for a component.
     * For example, information about a health check.
     * +optional
     * 
* * optional string message = 3; */ 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; } } public static final int ERROR_FIELD_NUMBER = 4; private volatile java.lang.Object error_; /** * * *
     * Condition error code for a component.
     * For example, a health check error code.
     * +optional
     * 
* * optional string error = 4; */ public boolean hasError() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Condition error code for a component.
     * For example, a health check error code.
     * +optional
     * 
* * optional string error = 4; */ public java.lang.String getError() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { error_ = s; } return s; } } /** * * *
     * Condition error code for a component.
     * For example, a health check error code.
     * +optional
     * 
* * optional string error = 4; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_); } 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.V1.ComponentCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ComponentCondition other = (io.kubernetes.client.proto.V1.ComponentCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError().equals(other.getError()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentCondition 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.V1.ComponentCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentCondition 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.V1.ComponentCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ComponentCondition parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentCondition 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.V1.ComponentCondition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentCondition 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.V1.ComponentCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentCondition 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.V1.ComponentCondition 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; } /** * * *
     * Information about the condition of a component.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ComponentCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ComponentCondition) io.kubernetes.client.proto.V1.ComponentConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ComponentCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ComponentCondition.class, io.kubernetes.client.proto.V1.ComponentCondition.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ComponentCondition.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(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); message_ = ""; bitField0_ = (bitField0_ & ~0x00000004); error_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentCondition build() { io.kubernetes.client.proto.V1.ComponentCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentCondition buildPartial() { io.kubernetes.client.proto.V1.ComponentCondition result = new io.kubernetes.client.proto.V1.ComponentCondition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.message_ = message_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.error_ = error_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.ComponentCondition) { return mergeFrom((io.kubernetes.client.proto.V1.ComponentCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ComponentCondition other) { if (other == io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000004; message_ = other.message_; onChanged(); } if (other.hasError()) { bitField0_ |= 0x00000008; error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.ComponentCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ComponentCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Type of condition for a component.
       * Valid value: "Healthy"
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Type of condition for a component.
       * Valid value: "Healthy"
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type of condition for a component.
       * Valid value: "Healthy"
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type of condition for a component.
       * Valid value: "Healthy"
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Type of condition for a component.
       * Valid value: "Healthy"
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type of condition for a component.
       * Valid value: "Healthy"
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
       * Status of the condition for a component.
       * Valid values for "Healthy": "True", "False", or "Unknown".
       * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Status of the condition for a component.
       * Valid values for "Healthy": "True", "False", or "Unknown".
       * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Status of the condition for a component.
       * Valid values for "Healthy": "True", "False", or "Unknown".
       * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Status of the condition for a component.
       * Valid values for "Healthy": "True", "False", or "Unknown".
       * 
* * optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * * *
       * Status of the condition for a component.
       * Valid values for "Healthy": "True", "False", or "Unknown".
       * 
* * optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * * *
       * Status of the condition for a component.
       * Valid values for "Healthy": "True", "False", or "Unknown".
       * 
* * optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Message about the condition for a component.
       * For example, information about a health check.
       * +optional
       * 
* * optional string message = 3; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Message about the condition for a component.
       * For example, information about a health check.
       * +optional
       * 
* * optional string message = 3; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Message about the condition for a component.
       * For example, information about a health check.
       * +optional
       * 
* * optional string message = 3; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Message about the condition for a component.
       * For example, information about a health check.
       * +optional
       * 
* * optional string message = 3; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } /** * * *
       * Message about the condition for a component.
       * For example, information about a health check.
       * +optional
       * 
* * optional string message = 3; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Message about the condition for a component.
       * For example, information about a health check.
       * +optional
       * 
* * optional string message = 3; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } private java.lang.Object error_ = ""; /** * * *
       * Condition error code for a component.
       * For example, a health check error code.
       * +optional
       * 
* * optional string error = 4; */ public boolean hasError() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Condition error code for a component.
       * For example, a health check error code.
       * +optional
       * 
* * optional string error = 4; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { error_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Condition error code for a component.
       * For example, a health check error code.
       * +optional
       * 
* * optional string error = 4; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Condition error code for a component.
       * For example, a health check error code.
       * +optional
       * 
* * optional string error = 4; */ public Builder setError(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; error_ = value; onChanged(); return this; } /** * * *
       * Condition error code for a component.
       * For example, a health check error code.
       * +optional
       * 
* * optional string error = 4; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000008); error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * * *
       * Condition error code for a component.
       * For example, a health check error code.
       * +optional
       * 
* * optional string error = 4; */ public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; error_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ComponentCondition) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ComponentCondition) private static final io.kubernetes.client.proto.V1.ComponentCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ComponentCondition(); } public static io.kubernetes.client.proto.V1.ComponentCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ComponentCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComponentCondition(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.V1.ComponentCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ComponentStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ComponentStatus) 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(); /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ java.util.List getConditionsList(); /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ io.kubernetes.client.proto.V1.ComponentCondition getConditions(int index); /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ int getConditionsCount(); /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ io.kubernetes.client.proto.V1.ComponentConditionOrBuilder getConditionsOrBuilder(int index); } /** * * *
   * ComponentStatus (and ComponentStatusList) holds the cluster validation info.
   * Deprecated: This API is deprecated in v1.19+
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ComponentStatus} */ public static final class ComponentStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ComponentStatus) ComponentStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ComponentStatus.newBuilder() to construct. private ComponentStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ComponentStatus() { conditions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComponentStatus( 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: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1.ComponentCondition.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)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ComponentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ComponentStatus.class, io.kubernetes.client.proto.V1.ComponentStatus.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 CONDITIONS_FIELD_NUMBER = 2; private java.util.List conditions_; /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * List of component conditions observed
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentConditionOrBuilder getConditionsOrBuilder( int index) { return conditions_.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 < conditions_.size(); i++) { output.writeMessage(2, conditions_.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 < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, conditions_.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.V1.ComponentStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ComponentStatus other = (io.kubernetes.client.proto.V1.ComponentStatus) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getConditionsList().equals(other.getConditionsList()); 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 (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentStatus 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.V1.ComponentStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentStatus 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.V1.ComponentStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ComponentStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentStatus 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.V1.ComponentStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentStatus 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.V1.ComponentStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentStatus 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.V1.ComponentStatus 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; } /** * * *
     * ComponentStatus (and ComponentStatusList) holds the cluster validation info.
     * Deprecated: This API is deprecated in v1.19+
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ComponentStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ComponentStatus) io.kubernetes.client.proto.V1.ComponentStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ComponentStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ComponentStatus.class, io.kubernetes.client.proto.V1.ComponentStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ComponentStatus.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(); getConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { conditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentStatus build() { io.kubernetes.client.proto.V1.ComponentStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentStatus buildPartial() { io.kubernetes.client.proto.V1.ComponentStatus result = new io.kubernetes.client.proto.V1.ComponentStatus(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 (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000002); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.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.V1.ComponentStatus) { return mergeFrom((io.kubernetes.client.proto.V1.ComponentStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ComponentStatus other) { if (other == io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } 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.V1.ComponentStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ComponentStatus) 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.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList( conditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ComponentCondition, io.kubernetes.client.proto.V1.ComponentCondition.Builder, io.kubernetes.client.proto.V1.ComponentConditionOrBuilder> conditionsBuilder_; /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.ComponentCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.ComponentCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder addConditions(io.kubernetes.client.proto.V1.ComponentCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.ComponentCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder addConditions( io.kubernetes.client.proto.V1.ComponentCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.ComponentCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentCondition.Builder getConditionsBuilder( int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentConditionOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance()); } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public io.kubernetes.client.proto.V1.ComponentCondition.Builder addConditionsBuilder( int index) { return getConditionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.ComponentCondition.getDefaultInstance()); } /** * * *
       * List of component conditions observed
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ComponentCondition conditions = 2; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ComponentCondition, io.kubernetes.client.proto.V1.ComponentCondition.Builder, io.kubernetes.client.proto.V1.ComponentConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ComponentCondition, io.kubernetes.client.proto.V1.ComponentCondition.Builder, io.kubernetes.client.proto.V1.ComponentConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } @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.core.v1.ComponentStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ComponentStatus) private static final io.kubernetes.client.proto.V1.ComponentStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ComponentStatus(); } public static io.kubernetes.client.proto.V1.ComponentStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ComponentStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComponentStatus(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.V1.ComponentStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ComponentStatusListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ComponentStatusList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ java.util.List getItemsList(); /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ io.kubernetes.client.proto.V1.ComponentStatus getItems(int index); /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ int getItemsCount(); /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ io.kubernetes.client.proto.V1.ComponentStatusOrBuilder getItemsOrBuilder(int index); } /** * * *
   * Status of all the conditions for the component as a list of ComponentStatus objects.
   * Deprecated: This API is deprecated in v1.19+
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ComponentStatusList} */ public static final class ComponentStatusList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ComponentStatusList) ComponentStatusListOrBuilder { private static final long serialVersionUID = 0L; // Use ComponentStatusList.newBuilder() to construct. private ComponentStatusList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ComponentStatusList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComponentStatusList( 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.V1.ComponentStatus.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 .V1 .internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ComponentStatusList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ComponentStatusList.class, io.kubernetes.client.proto.V1.ComponentStatusList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatus getItems(int index) { return items_.get(index); } /** * * *
     * List of ComponentStatus objects.
     * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatusOrBuilder 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.V1.ComponentStatusList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ComponentStatusList other = (io.kubernetes.client.proto.V1.ComponentStatusList) 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.V1.ComponentStatusList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentStatusList 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.V1.ComponentStatusList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentStatusList 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.V1.ComponentStatusList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ComponentStatusList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentStatusList 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.V1.ComponentStatusList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentStatusList 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.V1.ComponentStatusList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ComponentStatusList 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.V1.ComponentStatusList 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; } /** * * *
     * Status of all the conditions for the component as a list of ComponentStatus objects.
     * Deprecated: This API is deprecated in v1.19+
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ComponentStatusList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ComponentStatusList) io.kubernetes.client.proto.V1.ComponentStatusListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ComponentStatusList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ComponentStatusList.class, io.kubernetes.client.proto.V1.ComponentStatusList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ComponentStatusList.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 .V1 .internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentStatusList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ComponentStatusList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentStatusList build() { io.kubernetes.client.proto.V1.ComponentStatusList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ComponentStatusList buildPartial() { io.kubernetes.client.proto.V1.ComponentStatusList result = new io.kubernetes.client.proto.V1.ComponentStatusList(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.V1.ComponentStatusList) { return mergeFrom((io.kubernetes.client.proto.V1.ComponentStatusList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ComponentStatusList other) { if (other == io.kubernetes.client.proto.V1.ComponentStatusList.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.V1.ComponentStatusList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ComponentStatusList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.ComponentStatus, io.kubernetes.client.proto.V1.ComponentStatus.Builder, io.kubernetes.client.proto.V1.ComponentStatusOrBuilder> itemsBuilder_; /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatus getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.ComponentStatus value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.ComponentStatus.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ComponentStatus value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.ComponentStatus value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1.ComponentStatus.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.ComponentStatus.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus 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; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatus.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatusOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatus.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance()); } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public io.kubernetes.client.proto.V1.ComponentStatus.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ComponentStatus.getDefaultInstance()); } /** * * *
       * List of ComponentStatus objects.
       * 
* * repeated .k8s.io.api.core.v1.ComponentStatus items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ComponentStatus, io.kubernetes.client.proto.V1.ComponentStatus.Builder, io.kubernetes.client.proto.V1.ComponentStatusOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ComponentStatus, io.kubernetes.client.proto.V1.ComponentStatus.Builder, io.kubernetes.client.proto.V1.ComponentStatusOrBuilder>( 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.core.v1.ComponentStatusList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ComponentStatusList) private static final io.kubernetes.client.proto.V1.ComponentStatusList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ComponentStatusList(); } public static io.kubernetes.client.proto.V1.ComponentStatusList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ComponentStatusList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComponentStatusList(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.V1.ComponentStatusList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMap) 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(); /** * * *
     * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 4; */ boolean hasImmutable(); /** * * *
     * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 4; */ boolean getImmutable(); /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ int getDataCount(); /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ boolean containsData(java.lang.String key); /** Use {@link #getDataMap()} instead. */ @java.lang.Deprecated java.util.Map getData(); /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ java.util.Map getDataMap(); /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ java.lang.String getDataOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ java.lang.String getDataOrThrow(java.lang.String key); /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ int getBinaryDataCount(); /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ boolean containsBinaryData(java.lang.String key); /** Use {@link #getBinaryDataMap()} instead. */ @java.lang.Deprecated java.util.Map getBinaryData(); /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ java.util.Map getBinaryDataMap(); /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ com.google.protobuf.ByteString getBinaryDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue); /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ com.google.protobuf.ByteString getBinaryDataOrThrow(java.lang.String key); } /** * * *
   * ConfigMap holds configuration data for pods to consume.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMap} */ public static final class ConfigMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMap) ConfigMapOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMap.newBuilder() to construct. private ConfigMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMap() { immutable_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMap( 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: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry data__ = input.readMessage( DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); data_.getMutableMap().put(data__.getKey(), data__.getValue()); break; } case 26: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { binaryData_ = com.google.protobuf.MapField.newMapField( BinaryDataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry binaryData__ = input.readMessage( BinaryDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); binaryData_.getMutableMap().put(binaryData__.getKey(), binaryData__.getValue()); break; } case 32: { bitField0_ |= 0x00000002; immutable_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ConfigMap_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetData(); case 3: return internalGetBinaryData(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMap_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMap.class, io.kubernetes.client.proto.V1.ConfigMap.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 IMMUTABLE_FIELD_NUMBER = 4; private boolean immutable_; /** * * *
     * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 4; */ public boolean hasImmutable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 4; */ public boolean getImmutable() { return immutable_; } public static final int DATA_FIELD_NUMBER = 2; private static final class DataDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMap_DataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField data_; private com.google.protobuf.MapField internalGetData() { if (data_ == null) { return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); } return data_; } public int getDataCount() { return internalGetData().getMap().size(); } /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ public boolean containsData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetData().getMap().containsKey(key); } /** Use {@link #getDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ public java.util.Map getDataMap() { return internalGetData().getMap(); } /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ public java.lang.String getDataOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Data contains the configuration data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * Values with non-UTF-8 byte sequences must use the BinaryData field.
     * The keys stored in Data must not overlap with the keys in
     * the BinaryData field, this is enforced during validation process.
     * +optional
     * 
* * map<string, string> data = 2; */ public java.lang.String getDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int BINARYDATA_FIELD_NUMBER = 3; private static final class BinaryDataDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMap_BinaryDataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapField binaryData_; private com.google.protobuf.MapField internalGetBinaryData() { if (binaryData_ == null) { return com.google.protobuf.MapField.emptyMapField( BinaryDataDefaultEntryHolder.defaultEntry); } return binaryData_; } public int getBinaryDataCount() { return internalGetBinaryData().getMap().size(); } /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ public boolean containsBinaryData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetBinaryData().getMap().containsKey(key); } /** Use {@link #getBinaryDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getBinaryData() { return getBinaryDataMap(); } /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ public java.util.Map getBinaryDataMap() { return internalGetBinaryData().getMap(); } /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ public com.google.protobuf.ByteString getBinaryDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBinaryData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * BinaryData contains the binary data.
     * Each key must consist of alphanumeric characters, '-', '_' or '.'.
     * BinaryData can contain byte sequences that are not in the UTF-8 range.
     * The keys stored in BinaryData must not overlap with the ones in
     * the Data field, this is enforced during validation process.
     * Using this field will require 1.10+ apiserver and
     * kubelet.
     * +optional
     * 
* * map<string, bytes> binaryData = 3; */ public com.google.protobuf.ByteString getBinaryDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBinaryData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMetadata()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetData(), DataDefaultEntryHolder.defaultEntry, 2); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetBinaryData(), BinaryDataDefaultEntryHolder.defaultEntry, 3); if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(4, immutable_); } 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 (java.util.Map.Entry entry : internalGetData().getMap().entrySet()) { com.google.protobuf.MapEntry data__ = DataDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, data__); } for (java.util.Map.Entry entry : internalGetBinaryData().getMap().entrySet()) { com.google.protobuf.MapEntry binaryData__ = BinaryDataDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, binaryData__); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, immutable_); } 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.V1.ConfigMap)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMap other = (io.kubernetes.client.proto.V1.ConfigMap) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasImmutable() == other.hasImmutable()); if (hasImmutable()) { result = result && (getImmutable() == other.getImmutable()); } result = result && internalGetData().equals(other.internalGetData()); result = result && internalGetBinaryData().equals(other.internalGetBinaryData()); 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 (hasImmutable()) { hash = (37 * hash) + IMMUTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImmutable()); } if (!internalGetData().getMap().isEmpty()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + internalGetData().hashCode(); } if (!internalGetBinaryData().getMap().isEmpty()) { hash = (37 * hash) + BINARYDATA_FIELD_NUMBER; hash = (53 * hash) + internalGetBinaryData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ConfigMap parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMap 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.V1.ConfigMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMap 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.V1.ConfigMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMap 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.V1.ConfigMap parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMap 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.V1.ConfigMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMap 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.V1.ConfigMap 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; } /** * * *
     * ConfigMap holds configuration data for pods to consume.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMap) io.kubernetes.client.proto.V1.ConfigMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMap_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetData(); case 3: return internalGetBinaryData(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableData(); case 3: return internalGetMutableBinaryData(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMap_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMap.class, io.kubernetes.client.proto.V1.ConfigMap.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMap.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); immutable_ = false; bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableData().clear(); internalGetMutableBinaryData().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMap_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMap getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMap build() { io.kubernetes.client.proto.V1.ConfigMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMap buildPartial() { io.kubernetes.client.proto.V1.ConfigMap result = new io.kubernetes.client.proto.V1.ConfigMap(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.immutable_ = immutable_; result.data_ = internalGetData(); result.data_.makeImmutable(); result.binaryData_ = internalGetBinaryData(); result.binaryData_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.ConfigMap) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMap) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMap other) { if (other == io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasImmutable()) { setImmutable(other.getImmutable()); } internalGetMutableData().mergeFrom(other.internalGetData()); internalGetMutableBinaryData().mergeFrom(other.internalGetBinaryData()); 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.V1.ConfigMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMap) 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 boolean immutable_; /** * * *
       * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 4; */ public boolean hasImmutable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 4; */ public boolean getImmutable() { return immutable_; } /** * * *
       * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 4; */ public Builder setImmutable(boolean value) { bitField0_ |= 0x00000002; immutable_ = value; onChanged(); return this; } /** * * *
       * Immutable, if set to true, ensures that data stored in the ConfigMap cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 4; */ public Builder clearImmutable() { bitField0_ = (bitField0_ & ~0x00000002); immutable_ = false; onChanged(); return this; } private com.google.protobuf.MapField data_; private com.google.protobuf.MapField internalGetData() { if (data_ == null) { return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); } return data_; } private com.google.protobuf.MapField internalGetMutableData() { onChanged(); ; if (data_ == null) { data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); } if (!data_.isMutable()) { data_ = data_.copy(); } return data_; } public int getDataCount() { return internalGetData().getMap().size(); } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public boolean containsData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetData().getMap().containsKey(key); } /** Use {@link #getDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public java.util.Map getDataMap() { return internalGetData().getMap(); } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public java.lang.String getDataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public java.lang.String getDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearData() { internalGetMutableData().getMutableMap().clear(); return this; } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public Builder removeData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableData().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableData() { return internalGetMutableData().getMutableMap(); } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public Builder putData(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableData().getMutableMap().put(key, value); return this; } /** * * *
       * Data contains the configuration data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * Values with non-UTF-8 byte sequences must use the BinaryData field.
       * The keys stored in Data must not overlap with the keys in
       * the BinaryData field, this is enforced during validation process.
       * +optional
       * 
* * map<string, string> data = 2; */ public Builder putAllData(java.util.Map values) { internalGetMutableData().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField binaryData_; private com.google.protobuf.MapField internalGetBinaryData() { if (binaryData_ == null) { return com.google.protobuf.MapField.emptyMapField( BinaryDataDefaultEntryHolder.defaultEntry); } return binaryData_; } private com.google.protobuf.MapField internalGetMutableBinaryData() { onChanged(); ; if (binaryData_ == null) { binaryData_ = com.google.protobuf.MapField.newMapField(BinaryDataDefaultEntryHolder.defaultEntry); } if (!binaryData_.isMutable()) { binaryData_ = binaryData_.copy(); } return binaryData_; } public int getBinaryDataCount() { return internalGetBinaryData().getMap().size(); } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public boolean containsBinaryData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetBinaryData().getMap().containsKey(key); } /** Use {@link #getBinaryDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getBinaryData() { return getBinaryDataMap(); } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public java.util.Map getBinaryDataMap() { return internalGetBinaryData().getMap(); } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public com.google.protobuf.ByteString getBinaryDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBinaryData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public com.google.protobuf.ByteString getBinaryDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetBinaryData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearBinaryData() { internalGetMutableBinaryData().getMutableMap().clear(); return this; } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public Builder removeBinaryData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableBinaryData().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableBinaryData() { return internalGetMutableBinaryData().getMutableMap(); } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public Builder putBinaryData(java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableBinaryData().getMutableMap().put(key, value); return this; } /** * * *
       * BinaryData contains the binary data.
       * Each key must consist of alphanumeric characters, '-', '_' or '.'.
       * BinaryData can contain byte sequences that are not in the UTF-8 range.
       * The keys stored in BinaryData must not overlap with the ones in
       * the Data field, this is enforced during validation process.
       * Using this field will require 1.10+ apiserver and
       * kubelet.
       * +optional
       * 
* * map<string, bytes> binaryData = 3; */ public Builder putAllBinaryData( java.util.Map values) { internalGetMutableBinaryData().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ConfigMap) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMap) private static final io.kubernetes.client.proto.V1.ConfigMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMap(); } public static io.kubernetes.client.proto.V1.ConfigMap getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMap(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.V1.ConfigMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapEnvSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapEnvSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * Specify whether the ConfigMap must be defined
     * +optional
     * 
* * optional bool optional = 2; */ boolean hasOptional(); /** * * *
     * Specify whether the ConfigMap must be defined
     * +optional
     * 
* * optional bool optional = 2; */ boolean getOptional(); } /** * * *
   * ConfigMapEnvSource selects a ConfigMap to populate the environment
   * variables with.
   * The contents of the target ConfigMap's Data field will represent the
   * key-value pairs as environment variables.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapEnvSource} */ public static final class ConfigMapEnvSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapEnvSource) ConfigMapEnvSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMapEnvSource.newBuilder() to construct. private ConfigMapEnvSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMapEnvSource() { optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMapEnvSource( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; optional_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapEnvSource.class, io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int OPTIONAL_FIELD_NUMBER = 2; private boolean optional_; /** * * *
     * Specify whether the ConfigMap must be defined
     * +optional
     * 
* * optional bool optional = 2; */ public boolean hasOptional() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specify whether the ConfigMap must be defined
     * +optional
     * 
* * optional bool optional = 2; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, optional_); } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, optional_); } 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.V1.ConfigMapEnvSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMapEnvSource other = (io.kubernetes.client.proto.V1.ConfigMapEnvSource) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource 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.V1.ConfigMapEnvSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource 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.V1.ConfigMapEnvSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource 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.V1.ConfigMapEnvSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource 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.V1.ConfigMapEnvSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource 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.V1.ConfigMapEnvSource 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; } /** * * *
     * ConfigMapEnvSource selects a ConfigMap to populate the environment
     * variables with.
     * The contents of the target ConfigMap's Data field will represent the
     * key-value pairs as environment variables.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapEnvSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapEnvSource) io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapEnvSource.class, io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMapEnvSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); optional_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapEnvSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapEnvSource build() { io.kubernetes.client.proto.V1.ConfigMapEnvSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapEnvSource buildPartial() { io.kubernetes.client.proto.V1.ConfigMapEnvSource result = new io.kubernetes.client.proto.V1.ConfigMapEnvSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.optional_ = optional_; 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.V1.ConfigMapEnvSource) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapEnvSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapEnvSource other) { if (other == io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.ConfigMapEnvSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapEnvSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } private boolean optional_; /** * * *
       * Specify whether the ConfigMap must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public boolean hasOptional() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specify whether the ConfigMap must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the ConfigMap must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000002; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the ConfigMap must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000002); optional_ = 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.core.v1.ConfigMapEnvSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapEnvSource) private static final io.kubernetes.client.proto.V1.ConfigMapEnvSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapEnvSource(); } public static io.kubernetes.client.proto.V1.ConfigMapEnvSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMapEnvSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMapEnvSource(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.V1.ConfigMapEnvSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapKeySelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapKeySelector) com.google.protobuf.MessageOrBuilder { /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * The key to select.
     * 
* * optional string key = 2; */ boolean hasKey(); /** * * *
     * The key to select.
     * 
* * optional string key = 2; */ java.lang.String getKey(); /** * * *
     * The key to select.
     * 
* * optional string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * Specify whether the ConfigMap or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ boolean hasOptional(); /** * * *
     * Specify whether the ConfigMap or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ boolean getOptional(); } /** * * *
   * Selects a key from a ConfigMap.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapKeySelector} */ public static final class ConfigMapKeySelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapKeySelector) ConfigMapKeySelectorOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMapKeySelector.newBuilder() to construct. private ConfigMapKeySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMapKeySelector() { key_ = ""; optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMapKeySelector( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; key_ = bs; break; } case 24: { bitField0_ |= 0x00000004; optional_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapKeySelector.class, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** * * *
     * The ConfigMap to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** * * *
     * The key to select.
     * 
* * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The key to select.
     * 
* * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * The key to select.
     * 
* * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_FIELD_NUMBER = 3; private boolean optional_; /** * * *
     * Specify whether the ConfigMap or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Specify whether the ConfigMap or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, optional_); } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, optional_); } 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.V1.ConfigMapKeySelector)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMapKeySelector other = (io.kubernetes.client.proto.V1.ConfigMapKeySelector) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector 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.V1.ConfigMapKeySelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector 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.V1.ConfigMapKeySelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector 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.V1.ConfigMapKeySelector parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector 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.V1.ConfigMapKeySelector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector 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.V1.ConfigMapKeySelector 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; } /** * * *
     * Selects a key from a ConfigMap.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapKeySelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapKeySelector) io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapKeySelector.class, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMapKeySelector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); optional_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapKeySelector getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapKeySelector build() { io.kubernetes.client.proto.V1.ConfigMapKeySelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapKeySelector buildPartial() { io.kubernetes.client.proto.V1.ConfigMapKeySelector result = new io.kubernetes.client.proto.V1.ConfigMapKeySelector(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.optional_ = optional_; 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.V1.ConfigMapKeySelector) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapKeySelector) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapKeySelector other) { if (other == io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } if (other.hasKey()) { bitField0_ |= 0x00000002; key_ = other.key_; onChanged(); } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.ConfigMapKeySelector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapKeySelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * * *
       * The ConfigMap to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } private java.lang.Object key_ = ""; /** * * *
       * The key to select.
       * 
* * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The key to select.
       * 
* * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The key to select.
       * 
* * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The key to select.
       * 
* * optional string key = 2; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * * *
       * The key to select.
       * 
* * optional string key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * The key to select.
       * 
* * optional string key = 2; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } private boolean optional_; /** * * *
       * Specify whether the ConfigMap or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Specify whether the ConfigMap or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the ConfigMap or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000004; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the ConfigMap or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000004); optional_ = 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.core.v1.ConfigMapKeySelector) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapKeySelector) private static final io.kubernetes.client.proto.V1.ConfigMapKeySelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapKeySelector(); } public static io.kubernetes.client.proto.V1.ConfigMapKeySelector getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMapKeySelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMapKeySelector(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.V1.ConfigMapKeySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapList) com.google.protobuf.MessageOrBuilder { /** * * *
     * 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(); /** * * *
     * 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(); /** * * *
     * 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 ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ io.kubernetes.client.proto.V1.ConfigMap getItems(int index); /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ int getItemsCount(); /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ io.kubernetes.client.proto.V1.ConfigMapOrBuilder getItemsOrBuilder(int index); } /** * * *
   * ConfigMapList is a resource containing a list of ConfigMap objects.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapList} */ public static final class ConfigMapList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapList) ConfigMapListOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMapList.newBuilder() to construct. private ConfigMapList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMapList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMapList( 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.V1.ConfigMap.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 .V1 .internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapList.class, io.kubernetes.client.proto.V1.ConfigMapList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta 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); } /** * * *
     * 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_; } /** * * *
     * 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 ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMap getItems(int index) { return items_.get(index); } /** * * *
     * Items is the list of ConfigMaps.
     * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMapOrBuilder 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.V1.ConfigMapList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMapList other = (io.kubernetes.client.proto.V1.ConfigMapList) 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.V1.ConfigMapList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapList 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.V1.ConfigMapList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapList 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.V1.ConfigMapList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMapList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapList 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.V1.ConfigMapList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapList 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.V1.ConfigMapList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapList 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.V1.ConfigMapList 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; } /** * * *
     * ConfigMapList is a resource containing a list of ConfigMap objects.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapList) io.kubernetes.client.proto.V1.ConfigMapListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapList.class, io.kubernetes.client.proto.V1.ConfigMapList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMapList.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 .V1 .internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMapList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapList build() { io.kubernetes.client.proto.V1.ConfigMapList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapList buildPartial() { io.kubernetes.client.proto.V1.ConfigMapList result = new io.kubernetes.client.proto.V1.ConfigMapList(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.V1.ConfigMapList) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapList other) { if (other == io.kubernetes.client.proto.V1.ConfigMapList.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.V1.ConfigMapList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapList) 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_; /** * * *
       * 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); } /** * * *
       * 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(); } } /** * * *
       * 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; } /** * * *
       * 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; } /** * * *
       * 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; } /** * * *
       * 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; } /** * * *
       * 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(); } /** * * *
       * 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_; } } /** * * *
       * 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.V1.ConfigMap, io.kubernetes.client.proto.V1.ConfigMap.Builder, io.kubernetes.client.proto.V1.ConfigMapOrBuilder> itemsBuilder_; /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMap getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.ConfigMap.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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ConfigMap.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.ConfigMap.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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMap.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMapOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap 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 ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMap.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance()); } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public io.kubernetes.client.proto.V1.ConfigMap.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ConfigMap.getDefaultInstance()); } /** * * *
       * Items is the list of ConfigMaps.
       * 
* * repeated .k8s.io.api.core.v1.ConfigMap items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMap, io.kubernetes.client.proto.V1.ConfigMap.Builder, io.kubernetes.client.proto.V1.ConfigMapOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMap, io.kubernetes.client.proto.V1.ConfigMap.Builder, io.kubernetes.client.proto.V1.ConfigMapOrBuilder>( 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.core.v1.ConfigMapList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapList) private static final io.kubernetes.client.proto.V1.ConfigMapList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapList(); } public static io.kubernetes.client.proto.V1.ConfigMapList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMapList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMapList(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.V1.ConfigMapList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapNodeConfigSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapNodeConfigSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Namespace is the metadata.namespace of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string namespace = 1; */ boolean hasNamespace(); /** * * *
     * Namespace is the metadata.namespace of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string namespace = 1; */ java.lang.String getNamespace(); /** * * *
     * Namespace is the metadata.namespace of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string namespace = 1; */ com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
     * Name is the metadata.name of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string name = 2; */ boolean hasName(); /** * * *
     * Name is the metadata.name of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string name = 2; */ java.lang.String getName(); /** * * *
     * Name is the metadata.name of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * UID is the metadata.UID of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string uid = 3; */ boolean hasUid(); /** * * *
     * UID is the metadata.UID of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string uid = 3; */ java.lang.String getUid(); /** * * *
     * UID is the metadata.UID of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string uid = 3; */ com.google.protobuf.ByteString getUidBytes(); /** * * *
     * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string resourceVersion = 4; */ boolean hasResourceVersion(); /** * * *
     * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string resourceVersion = 4; */ java.lang.String getResourceVersion(); /** * * *
     * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string resourceVersion = 4; */ com.google.protobuf.ByteString getResourceVersionBytes(); /** * * *
     * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
     * This field is required in all cases.
     * 
* * optional string kubeletConfigKey = 5; */ boolean hasKubeletConfigKey(); /** * * *
     * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
     * This field is required in all cases.
     * 
* * optional string kubeletConfigKey = 5; */ java.lang.String getKubeletConfigKey(); /** * * *
     * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
     * This field is required in all cases.
     * 
* * optional string kubeletConfigKey = 5; */ com.google.protobuf.ByteString getKubeletConfigKeyBytes(); } /** * * *
   * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.
   * This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapNodeConfigSource} */ public static final class ConfigMapNodeConfigSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapNodeConfigSource) ConfigMapNodeConfigSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMapNodeConfigSource.newBuilder() to construct. private ConfigMapNodeConfigSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMapNodeConfigSource() { namespace_ = ""; name_ = ""; uid_ = ""; resourceVersion_ = ""; kubeletConfigKey_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMapNodeConfigSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; namespace_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; uid_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; resourceVersion_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; kubeletConfigKey_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.class, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder.class); } private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** * * *
     * Namespace is the metadata.namespace of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string namespace = 1; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Namespace is the metadata.namespace of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string namespace = 1; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } } /** * * *
     * Namespace is the metadata.namespace of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string namespace = 1; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * * *
     * Name is the metadata.name of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Name is the metadata.name of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name is the metadata.name of the referenced ConfigMap.
     * This field is required in all cases.
     * 
* * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UID_FIELD_NUMBER = 3; private volatile java.lang.Object uid_; /** * * *
     * UID is the metadata.UID of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string uid = 3; */ public boolean hasUid() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * UID is the metadata.UID of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string uid = 3; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } } /** * * *
     * UID is the metadata.UID of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string uid = 3; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCEVERSION_FIELD_NUMBER = 4; private volatile java.lang.Object resourceVersion_; /** * * *
     * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string resourceVersion = 4; */ public boolean hasResourceVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string resourceVersion = 4; */ public java.lang.String getResourceVersion() { java.lang.Object ref = resourceVersion_; 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()) { resourceVersion_ = s; } return s; } } /** * * *
     * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
     * This field is forbidden in Node.Spec, and required in Node.Status.
     * +optional
     * 
* * optional string resourceVersion = 4; */ public com.google.protobuf.ByteString getResourceVersionBytes() { java.lang.Object ref = resourceVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KUBELETCONFIGKEY_FIELD_NUMBER = 5; private volatile java.lang.Object kubeletConfigKey_; /** * * *
     * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
     * This field is required in all cases.
     * 
* * optional string kubeletConfigKey = 5; */ public boolean hasKubeletConfigKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
     * This field is required in all cases.
     * 
* * optional string kubeletConfigKey = 5; */ public java.lang.String getKubeletConfigKey() { java.lang.Object ref = kubeletConfigKey_; 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()) { kubeletConfigKey_ = s; } return s; } } /** * * *
     * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
     * This field is required in all cases.
     * 
* * optional string kubeletConfigKey = 5; */ public com.google.protobuf.ByteString getKubeletConfigKeyBytes() { java.lang.Object ref = kubeletConfigKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubeletConfigKey_ = 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, namespace_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kubeletConfigKey_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kubeletConfigKey_); } 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.V1.ConfigMapNodeConfigSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource other = (io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource) obj; boolean result = true; result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { result = result && getNamespace().equals(other.getNamespace()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasUid() == other.hasUid()); if (hasUid()) { result = result && getUid().equals(other.getUid()); } result = result && (hasResourceVersion() == other.hasResourceVersion()); if (hasResourceVersion()) { result = result && getResourceVersion().equals(other.getResourceVersion()); } result = result && (hasKubeletConfigKey() == other.hasKubeletConfigKey()); if (hasKubeletConfigKey()) { result = result && getKubeletConfigKey().equals(other.getKubeletConfigKey()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasUid()) { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); } if (hasResourceVersion()) { hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER; hash = (53 * hash) + getResourceVersion().hashCode(); } if (hasKubeletConfigKey()) { hash = (37 * hash) + KUBELETCONFIGKEY_FIELD_NUMBER; hash = (53 * hash) + getKubeletConfigKey().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource 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.V1.ConfigMapNodeConfigSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource 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.V1.ConfigMapNodeConfigSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource 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.V1.ConfigMapNodeConfigSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource 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.V1.ConfigMapNodeConfigSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource 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.V1.ConfigMapNodeConfigSource 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; } /** * * *
     * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.
     * This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapNodeConfigSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapNodeConfigSource) io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.class, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); namespace_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); uid_ = ""; bitField0_ = (bitField0_ & ~0x00000004); resourceVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000008); kubeletConfigKey_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource build() { io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource buildPartial() { io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource result = new io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.namespace_ = namespace_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.uid_ = uid_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.resourceVersion_ = resourceVersion_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.kubeletConfigKey_ = kubeletConfigKey_; 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.V1.ConfigMapNodeConfigSource) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource other) { if (other == io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance()) return this; if (other.hasNamespace()) { bitField0_ |= 0x00000001; namespace_ = other.namespace_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasUid()) { bitField0_ |= 0x00000004; uid_ = other.uid_; onChanged(); } if (other.hasResourceVersion()) { bitField0_ |= 0x00000008; resourceVersion_ = other.resourceVersion_; onChanged(); } if (other.hasKubeletConfigKey()) { bitField0_ |= 0x00000010; kubeletConfigKey_ = other.kubeletConfigKey_; 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.V1.ConfigMapNodeConfigSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object namespace_ = ""; /** * * *
       * Namespace is the metadata.namespace of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string namespace = 1; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Namespace is the metadata.namespace of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string namespace = 1; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Namespace is the metadata.namespace of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string namespace = 1; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Namespace is the metadata.namespace of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string namespace = 1; */ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namespace_ = value; onChanged(); return this; } /** * * *
       * Namespace is the metadata.namespace of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string namespace = 1; */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000001); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * * *
       * Namespace is the metadata.namespace of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string namespace = 1; */ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namespace_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
       * Name is the metadata.name of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Name is the metadata.name of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name is the metadata.name of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name is the metadata.name of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string name = 2; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * * *
       * Name is the metadata.name of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name is the metadata.name of the referenced ConfigMap.
       * This field is required in all cases.
       * 
* * optional string name = 2; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object uid_ = ""; /** * * *
       * UID is the metadata.UID of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string uid = 3; */ public boolean hasUid() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * UID is the metadata.UID of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string uid = 3; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * UID is the metadata.UID of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string uid = 3; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * UID is the metadata.UID of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string uid = 3; */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; uid_ = value; onChanged(); return this; } /** * * *
       * UID is the metadata.UID of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string uid = 3; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000004); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * * *
       * UID is the metadata.UID of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string uid = 3; */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; uid_ = value; onChanged(); return this; } private java.lang.Object resourceVersion_ = ""; /** * * *
       * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string resourceVersion = 4; */ public boolean hasResourceVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string resourceVersion = 4; */ public java.lang.String getResourceVersion() { java.lang.Object ref = resourceVersion_; 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()) { resourceVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string resourceVersion = 4; */ public com.google.protobuf.ByteString getResourceVersionBytes() { java.lang.Object ref = resourceVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string resourceVersion = 4; */ public Builder setResourceVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; resourceVersion_ = value; onChanged(); return this; } /** * * *
       * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string resourceVersion = 4; */ public Builder clearResourceVersion() { bitField0_ = (bitField0_ & ~0x00000008); resourceVersion_ = getDefaultInstance().getResourceVersion(); onChanged(); return this; } /** * * *
       * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
       * This field is forbidden in Node.Spec, and required in Node.Status.
       * +optional
       * 
* * optional string resourceVersion = 4; */ public Builder setResourceVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; resourceVersion_ = value; onChanged(); return this; } private java.lang.Object kubeletConfigKey_ = ""; /** * * *
       * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
       * This field is required in all cases.
       * 
* * optional string kubeletConfigKey = 5; */ public boolean hasKubeletConfigKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
       * This field is required in all cases.
       * 
* * optional string kubeletConfigKey = 5; */ public java.lang.String getKubeletConfigKey() { java.lang.Object ref = kubeletConfigKey_; 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()) { kubeletConfigKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
       * This field is required in all cases.
       * 
* * optional string kubeletConfigKey = 5; */ public com.google.protobuf.ByteString getKubeletConfigKeyBytes() { java.lang.Object ref = kubeletConfigKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubeletConfigKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
       * This field is required in all cases.
       * 
* * optional string kubeletConfigKey = 5; */ public Builder setKubeletConfigKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; kubeletConfigKey_ = value; onChanged(); return this; } /** * * *
       * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
       * This field is required in all cases.
       * 
* * optional string kubeletConfigKey = 5; */ public Builder clearKubeletConfigKey() { bitField0_ = (bitField0_ & ~0x00000010); kubeletConfigKey_ = getDefaultInstance().getKubeletConfigKey(); onChanged(); return this; } /** * * *
       * KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
       * This field is required in all cases.
       * 
* * optional string kubeletConfigKey = 5; */ public Builder setKubeletConfigKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; kubeletConfigKey_ = 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.core.v1.ConfigMapNodeConfigSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapNodeConfigSource) private static final io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource(); } public static io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMapNodeConfigSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMapNodeConfigSource(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.V1.ConfigMapNodeConfigSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapProjection) com.google.protobuf.MessageOrBuilder { /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPath getItems(int index); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ int getItemsCount(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index); /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean hasOptional(); /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean getOptional(); } /** * * *
   * Adapts a ConfigMap into a projected volume.
   * The contents of the target ConfigMap's Data field will be presented in a
   * projected volume as files using the keys in the Data field as the file names,
   * unless the items element is populated with specific mappings of keys to paths.
   * Note that this is identical to a configmap volume source without the default
   * mode.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapProjection} */ public static final class ConfigMapProjection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapProjection) ConfigMapProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMapProjection.newBuilder() to construct. private ConfigMapProjection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMapProjection() { items_ = java.util.Collections.emptyList(); optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMapProjection( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = 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.V1.KeyToPath.PARSER, extensionRegistry)); break; } case 32: { bitField0_ |= 0x00000002; optional_ = 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_ & 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 .V1 .internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapProjection.class, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { return items_.get(index); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int OPTIONAL_FIELD_NUMBER = 4; private boolean optional_; /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(4, optional_); } 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, getLocalObjectReference()); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, optional_); } 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.V1.ConfigMapProjection)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMapProjection other = (io.kubernetes.client.proto.V1.ConfigMapProjection) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && getItemsList().equals(other.getItemsList()); result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapProjection 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.V1.ConfigMapProjection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapProjection 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.V1.ConfigMapProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMapProjection parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapProjection 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.V1.ConfigMapProjection parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapProjection 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.V1.ConfigMapProjection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapProjection 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.V1.ConfigMapProjection 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; } /** * * *
     * Adapts a ConfigMap into a projected volume.
     * The contents of the target ConfigMap's Data field will be presented in a
     * projected volume as files using the keys in the Data field as the file names,
     * unless the items element is populated with specific mappings of keys to paths.
     * Note that this is identical to a configmap volume source without the default
     * mode.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapProjection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapProjection) io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapProjection.class, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMapProjection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.clear(); } optional_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapProjection getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapProjection build() { io.kubernetes.client.proto.V1.ConfigMapProjection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapProjection buildPartial() { io.kubernetes.client.proto.V1.ConfigMapProjection result = new io.kubernetes.client.proto.V1.ConfigMapProjection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.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(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.optional_ = optional_; 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.V1.ConfigMapProjection) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapProjection) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapProjection other) { if (other == io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } 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_); } } } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.ConfigMapProjection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapProjection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } 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.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> itemsBuilder_; /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath 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; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>( items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private boolean optional_; /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000004; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000004); optional_ = 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.core.v1.ConfigMapProjection) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapProjection) private static final io.kubernetes.client.proto.V1.ConfigMapProjection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapProjection(); } public static io.kubernetes.client.proto.V1.ConfigMapProjection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMapProjection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMapProjection(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.V1.ConfigMapProjection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigMapVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ConfigMapVolumeSource) com.google.protobuf.MessageOrBuilder { /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPath getItems(int index); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ int getItemsCount(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index); /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ boolean hasDefaultMode(); /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ int getDefaultMode(); /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean hasOptional(); /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean getOptional(); } /** * * *
   * Adapts a ConfigMap into a volume.
   * The contents of the target ConfigMap's Data field will be presented in a
   * volume as files using the keys in the Data field as the file names, unless
   * the items element is populated with specific mappings of keys to paths.
   * ConfigMap volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapVolumeSource} */ public static final class ConfigMapVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ConfigMapVolumeSource) ConfigMapVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigMapVolumeSource.newBuilder() to construct. private ConfigMapVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigMapVolumeSource() { items_ = java.util.Collections.emptyList(); defaultMode_ = 0; optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigMapVolumeSource( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = 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.V1.KeyToPath.PARSER, extensionRegistry)); break; } case 24: { bitField0_ |= 0x00000002; defaultMode_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000004; optional_ = 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_ & 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 .V1 .internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapVolumeSource.class, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { return items_.get(index); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * ConfigMap will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the ConfigMap,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int DEFAULTMODE_FIELD_NUMBER = 3; private int defaultMode_; /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ public int getDefaultMode() { return defaultMode_; } public static final int OPTIONAL_FIELD_NUMBER = 4; private boolean optional_; /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Specify whether the ConfigMap or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(3, defaultMode_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, optional_); } 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, getLocalObjectReference()); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, defaultMode_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, optional_); } 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.V1.ConfigMapVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ConfigMapVolumeSource other = (io.kubernetes.client.proto.V1.ConfigMapVolumeSource) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && getItemsList().equals(other.getItemsList()); result = result && (hasDefaultMode() == other.hasDefaultMode()); if (hasDefaultMode()) { result = result && (getDefaultMode() == other.getDefaultMode()); } result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } if (hasDefaultMode()) { hash = (37 * hash) + DEFAULTMODE_FIELD_NUMBER; hash = (53 * hash) + getDefaultMode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource 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.V1.ConfigMapVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource 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.V1.ConfigMapVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource 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.V1.ConfigMapVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource 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.V1.ConfigMapVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource 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.V1.ConfigMapVolumeSource 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; } /** * * *
     * Adapts a ConfigMap into a volume.
     * The contents of the target ConfigMap's Data field will be presented in a
     * volume as files using the keys in the Data field as the file names, unless
     * the items element is populated with specific mappings of keys to paths.
     * ConfigMap volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ConfigMapVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ConfigMapVolumeSource) io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ConfigMapVolumeSource.class, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ConfigMapVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.clear(); } defaultMode_ = 0; bitField0_ = (bitField0_ & ~0x00000004); optional_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapVolumeSource build() { io.kubernetes.client.proto.V1.ConfigMapVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ConfigMapVolumeSource buildPartial() { io.kubernetes.client.proto.V1.ConfigMapVolumeSource result = new io.kubernetes.client.proto.V1.ConfigMapVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.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(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.defaultMode_ = defaultMode_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.optional_ = optional_; 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.V1.ConfigMapVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.ConfigMapVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapVolumeSource other) { if (other == io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } 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_); } } } if (other.hasDefaultMode()) { setDefaultMode(other.getDefaultMode()); } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.ConfigMapVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ConfigMapVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } 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.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> itemsBuilder_; /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath 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; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * ConfigMap will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the ConfigMap,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>( items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private int defaultMode_; /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public int getDefaultMode() { return defaultMode_; } /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public Builder setDefaultMode(int value) { bitField0_ |= 0x00000004; defaultMode_ = value; onChanged(); return this; } /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public Builder clearDefaultMode() { bitField0_ = (bitField0_ & ~0x00000004); defaultMode_ = 0; onChanged(); return this; } private boolean optional_; /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000008; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the ConfigMap or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000008); optional_ = 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.core.v1.ConfigMapVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ConfigMapVolumeSource) private static final io.kubernetes.client.proto.V1.ConfigMapVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ConfigMapVolumeSource(); } public static io.kubernetes.client.proto.V1.ConfigMapVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigMapVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigMapVolumeSource(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.V1.ConfigMapVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Container) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the container specified as a DNS_LABEL.
     * Each container in a pod must have a unique name (DNS_LABEL).
     * Cannot be updated.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name of the container specified as a DNS_LABEL.
     * Each container in a pod must have a unique name (DNS_LABEL).
     * Cannot be updated.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name of the container specified as a DNS_LABEL.
     * Each container in a pod must have a unique name (DNS_LABEL).
     * Cannot be updated.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * This field is optional to allow higher level config management to default or override
     * container images in workload controllers like Deployments and StatefulSets.
     * +optional
     * 
* * optional string image = 2; */ boolean hasImage(); /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * This field is optional to allow higher level config management to default or override
     * container images in workload controllers like Deployments and StatefulSets.
     * +optional
     * 
* * optional string image = 2; */ java.lang.String getImage(); /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * This field is optional to allow higher level config management to default or override
     * container images in workload controllers like Deployments and StatefulSets.
     * +optional
     * 
* * optional string image = 2; */ com.google.protobuf.ByteString getImageBytes(); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ java.util.List getCommandList(); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ int getCommandCount(); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ java.lang.String getCommand(int index); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ com.google.protobuf.ByteString getCommandBytes(int index); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ java.util.List getArgsList(); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ int getArgsCount(); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ java.lang.String getArgs(int index); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ com.google.protobuf.ByteString getArgsBytes(int index); /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ boolean hasWorkingDir(); /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ java.lang.String getWorkingDir(); /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ com.google.protobuf.ByteString getWorkingDirBytes(); /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ java.util.List getPortsList(); /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ io.kubernetes.client.proto.V1.ContainerPort getPorts(int index); /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ int getPortsCount(); /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ java.util.List getPortsOrBuilderList(); /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(int index); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ java.util.List getEnvFromList(); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ int getEnvFromCount(); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ java.util.List getEnvFromOrBuilderList(); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ java.util.List getEnvList(); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ io.kubernetes.client.proto.V1.EnvVar getEnv(int index); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ int getEnvCount(); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ java.util.List getEnvOrBuilderList(); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(int index); /** * * *
     * Compute Resources required by this container.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ boolean hasResources(); /** * * *
     * Compute Resources required by this container.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ io.kubernetes.client.proto.V1.ResourceRequirements getResources(); /** * * *
     * Compute Resources required by this container.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder(); /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ java.util.List getVolumeMountsList(); /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index); /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ int getVolumeMountsCount(); /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ java.util.List getVolumeMountsOrBuilderList(); /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ java.util.List getVolumeDevicesList(); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ io.kubernetes.client.proto.V1.VolumeDevice getVolumeDevices(int index); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ int getVolumeDevicesCount(); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ java.util.List getVolumeDevicesOrBuilderList(); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder(int index); /** * * *
     * Periodic probe of container liveness.
     * Container will be restarted if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ boolean hasLivenessProbe(); /** * * *
     * Periodic probe of container liveness.
     * Container will be restarted if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ io.kubernetes.client.proto.V1.Probe getLivenessProbe(); /** * * *
     * Periodic probe of container liveness.
     * Container will be restarted if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder(); /** * * *
     * Periodic probe of container service readiness.
     * Container will be removed from service endpoints if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ boolean hasReadinessProbe(); /** * * *
     * Periodic probe of container service readiness.
     * Container will be removed from service endpoints if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ io.kubernetes.client.proto.V1.Probe getReadinessProbe(); /** * * *
     * Periodic probe of container service readiness.
     * Container will be removed from service endpoints if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder(); /** * * *
     * StartupProbe indicates that the Pod has successfully initialized.
     * If specified, no other probes are executed until this completes successfully.
     * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
     * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
     * when it might take a long time to load data or warm a cache, than during steady-state operation.
     * This cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ boolean hasStartupProbe(); /** * * *
     * StartupProbe indicates that the Pod has successfully initialized.
     * If specified, no other probes are executed until this completes successfully.
     * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
     * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
     * when it might take a long time to load data or warm a cache, than during steady-state operation.
     * This cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ io.kubernetes.client.proto.V1.Probe getStartupProbe(); /** * * *
     * StartupProbe indicates that the Pod has successfully initialized.
     * If specified, no other probes are executed until this completes successfully.
     * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
     * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
     * when it might take a long time to load data or warm a cache, than during steady-state operation.
     * This cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ io.kubernetes.client.proto.V1.ProbeOrBuilder getStartupProbeOrBuilder(); /** * * *
     * Actions that the management system should take in response to container lifecycle events.
     * Cannot be updated.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ boolean hasLifecycle(); /** * * *
     * Actions that the management system should take in response to container lifecycle events.
     * Cannot be updated.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ io.kubernetes.client.proto.V1.Lifecycle getLifecycle(); /** * * *
     * Actions that the management system should take in response to container lifecycle events.
     * Cannot be updated.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder(); /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ boolean hasTerminationMessagePath(); /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ java.lang.String getTerminationMessagePath(); /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ com.google.protobuf.ByteString getTerminationMessagePathBytes(); /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ boolean hasTerminationMessagePolicy(); /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ java.lang.String getTerminationMessagePolicy(); /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ com.google.protobuf.ByteString getTerminationMessagePolicyBytes(); /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ boolean hasImagePullPolicy(); /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ java.lang.String getImagePullPolicy(); /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ com.google.protobuf.ByteString getImagePullPolicyBytes(); /** * * *
     * SecurityContext defines the security options the container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ boolean hasSecurityContext(); /** * * *
     * SecurityContext defines the security options the container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ io.kubernetes.client.proto.V1.SecurityContext getSecurityContext(); /** * * *
     * SecurityContext defines the security options the container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder(); /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ boolean hasStdin(); /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ boolean getStdin(); /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ boolean hasStdinOnce(); /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ boolean getStdinOnce(); /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ boolean hasTty(); /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ boolean getTty(); } /** * * *
   * A single application container that you want to run within a pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Container} */ public static final class Container extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Container) ContainerOrBuilder { private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Container() { name_ = ""; image_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; args_ = com.google.protobuf.LazyStringArrayList.EMPTY; workingDir_ = ""; ports_ = java.util.Collections.emptyList(); envFrom_ = java.util.Collections.emptyList(); env_ = java.util.Collections.emptyList(); volumeMounts_ = java.util.Collections.emptyList(); volumeDevices_ = java.util.Collections.emptyList(); terminationMessagePath_ = ""; terminationMessagePolicy_ = ""; imagePullPolicy_ = ""; stdin_ = false; stdinOnce_ = false; tty_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Container( 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; image_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { command_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } command_.add(bs); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { args_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } args_.add(bs); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; workingDir_ = bs; break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } ports_.add( input.readMessage( io.kubernetes.client.proto.V1.ContainerPort.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { env_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } env_.add( input.readMessage( io.kubernetes.client.proto.V1.EnvVar.PARSER, extensionRegistry)); break; } case 66: { io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 74: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } volumeMounts_.add( input.readMessage( io.kubernetes.client.proto.V1.VolumeMount.PARSER, extensionRegistry)); break; } case 82: { io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = livenessProbe_.toBuilder(); } livenessProbe_ = input.readMessage( io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(livenessProbe_); livenessProbe_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 90: { io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = readinessProbe_.toBuilder(); } readinessProbe_ = input.readMessage( io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readinessProbe_); readinessProbe_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 98: { io.kubernetes.client.proto.V1.Lifecycle.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = lifecycle_.toBuilder(); } lifecycle_ = input.readMessage( io.kubernetes.client.proto.V1.Lifecycle.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lifecycle_); lifecycle_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 106: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; terminationMessagePath_ = bs; break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; imagePullPolicy_ = bs; break; } case 122: { io.kubernetes.client.proto.V1.SecurityContext.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = securityContext_.toBuilder(); } securityContext_ = input.readMessage( io.kubernetes.client.proto.V1.SecurityContext.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(securityContext_); securityContext_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 128: { bitField0_ |= 0x00001000; stdin_ = input.readBool(); break; } case 136: { bitField0_ |= 0x00002000; stdinOnce_ = input.readBool(); break; } case 144: { bitField0_ |= 0x00004000; tty_ = input.readBool(); break; } case 154: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } envFrom_.add( input.readMessage( io.kubernetes.client.proto.V1.EnvFromSource.PARSER, extensionRegistry)); break; } case 162: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; terminationMessagePolicy_ = bs; break; } case 170: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } volumeDevices_.add( input.readMessage( io.kubernetes.client.proto.V1.VolumeDevice.PARSER, extensionRegistry)); break; } case 178: { io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = startupProbe_.toBuilder(); } startupProbe_ = input.readMessage( io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startupProbe_); startupProbe_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; 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)) { command_ = command_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { args_ = args_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ports_ = java.util.Collections.unmodifiableList(ports_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { env_ = java.util.Collections.unmodifiableList(env_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = java.util.Collections.unmodifiableList(envFrom_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = java.util.Collections.unmodifiableList(volumeDevices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Container.class, io.kubernetes.client.proto.V1.Container.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name of the container specified as a DNS_LABEL.
     * Each container in a pod must have a unique name (DNS_LABEL).
     * Cannot be updated.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the container specified as a DNS_LABEL.
     * Each container in a pod must have a unique name (DNS_LABEL).
     * Cannot be updated.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of the container specified as a DNS_LABEL.
     * Each container in a pod must have a unique name (DNS_LABEL).
     * Cannot be updated.
     * 
* * 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 IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * This field is optional to allow higher level config management to default or override
     * container images in workload controllers like Deployments and StatefulSets.
     * +optional
     * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * This field is optional to allow higher level config management to default or override
     * container images in workload controllers like Deployments and StatefulSets.
     * +optional
     * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } } /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * This field is optional to allow higher level config management to default or override
     * container images in workload controllers like Deployments and StatefulSets.
     * +optional
     * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMAND_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList command_; /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public int getCommandCount() { return command_.size(); } /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList args_; /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public int getArgsCount() { return args_.size(); } /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public java.lang.String getArgs(int index) { return args_.get(index); } /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int WORKINGDIR_FIELD_NUMBER = 5; private volatile java.lang.Object workingDir_; /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ public boolean hasWorkingDir() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; 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()) { workingDir_ = s; } return s; } } /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORTS_FIELD_NUMBER = 6; private java.util.List ports_; /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsList() { return ports_; } /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsOrBuilderList() { return ports_; } /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public int getPortsCount() { return ports_.size(); } /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort getPorts(int index) { return ports_.get(index); } /** * * *
     * List of ports to expose from the container. Exposing a port here gives
     * the system additional information about the network connections a
     * container uses, but is primarily informational. Not specifying a port here
     * DOES NOT prevent that port from being exposed. Any port which is
     * listening on the default "0.0.0.0" address inside a container will be
     * accessible from the network.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(int index) { return ports_.get(index); } public static final int ENVFROM_FIELD_NUMBER = 19; private java.util.List envFrom_; /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromList() { return envFrom_; } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromOrBuilderList() { return envFrom_; } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public int getEnvFromCount() { return envFrom_.size(); } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index) { return envFrom_.get(index); } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index) { return envFrom_.get(index); } public static final int ENV_FIELD_NUMBER = 7; private java.util.List env_; /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvList() { return env_; } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvOrBuilderList() { return env_; } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public int getEnvCount() { return env_.size(); } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) { return env_.get(index); } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(int index) { return env_.get(index); } public static final int RESOURCES_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.ResourceRequirements resources_; /** * * *
     * Compute Resources required by this container.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public boolean hasResources() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Compute Resources required by this container.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } /** * * *
     * Compute Resources required by this container.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } public static final int VOLUMEMOUNTS_FIELD_NUMBER = 9; private java.util.List volumeMounts_; /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsList() { return volumeMounts_; } /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsOrBuilderList() { return volumeMounts_; } /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** * * *
     * Pod volumes to mount into the container's filesystem.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index) { return volumeMounts_.get(index); } public static final int VOLUMEDEVICES_FIELD_NUMBER = 21; private java.util.List volumeDevices_; /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesList() { return volumeDevices_; } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesOrBuilderList() { return volumeDevices_; } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public int getVolumeDevicesCount() { return volumeDevices_.size(); } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice getVolumeDevices(int index) { return volumeDevices_.get(index); } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder( int index) { return volumeDevices_.get(index); } public static final int LIVENESSPROBE_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.Probe livenessProbe_; /** * * *
     * Periodic probe of container liveness.
     * Container will be restarted if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public boolean hasLivenessProbe() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Periodic probe of container liveness.
     * Container will be restarted if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.Probe getLivenessProbe() { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } /** * * *
     * Periodic probe of container liveness.
     * Container will be restarted if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder() { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } public static final int READINESSPROBE_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.Probe readinessProbe_; /** * * *
     * Periodic probe of container service readiness.
     * Container will be removed from service endpoints if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public boolean hasReadinessProbe() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Periodic probe of container service readiness.
     * Container will be removed from service endpoints if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.Probe getReadinessProbe() { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } /** * * *
     * Periodic probe of container service readiness.
     * Container will be removed from service endpoints if the probe fails.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder() { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } public static final int STARTUPPROBE_FIELD_NUMBER = 22; private io.kubernetes.client.proto.V1.Probe startupProbe_; /** * * *
     * StartupProbe indicates that the Pod has successfully initialized.
     * If specified, no other probes are executed until this completes successfully.
     * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
     * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
     * when it might take a long time to load data or warm a cache, than during steady-state operation.
     * This cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public boolean hasStartupProbe() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * StartupProbe indicates that the Pod has successfully initialized.
     * If specified, no other probes are executed until this completes successfully.
     * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
     * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
     * when it might take a long time to load data or warm a cache, than during steady-state operation.
     * This cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.Probe getStartupProbe() { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } /** * * *
     * StartupProbe indicates that the Pod has successfully initialized.
     * If specified, no other probes are executed until this completes successfully.
     * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
     * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
     * when it might take a long time to load data or warm a cache, than during steady-state operation.
     * This cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getStartupProbeOrBuilder() { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } public static final int LIFECYCLE_FIELD_NUMBER = 12; private io.kubernetes.client.proto.V1.Lifecycle lifecycle_; /** * * *
     * Actions that the management system should take in response to container lifecycle events.
     * Cannot be updated.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public boolean hasLifecycle() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * Actions that the management system should take in response to container lifecycle events.
     * Cannot be updated.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.Lifecycle getLifecycle() { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } /** * * *
     * Actions that the management system should take in response to container lifecycle events.
     * Cannot be updated.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder() { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } public static final int TERMINATIONMESSAGEPATH_FIELD_NUMBER = 13; private volatile java.lang.Object terminationMessagePath_; /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ public boolean hasTerminationMessagePath() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ public java.lang.String getTerminationMessagePath() { java.lang.Object ref = terminationMessagePath_; 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()) { terminationMessagePath_ = s; } return s; } } /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ public com.google.protobuf.ByteString getTerminationMessagePathBytes() { java.lang.Object ref = terminationMessagePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TERMINATIONMESSAGEPOLICY_FIELD_NUMBER = 20; private volatile java.lang.Object terminationMessagePolicy_; /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ public boolean hasTerminationMessagePolicy() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ public java.lang.String getTerminationMessagePolicy() { java.lang.Object ref = terminationMessagePolicy_; 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()) { terminationMessagePolicy_ = s; } return s; } } /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ public com.google.protobuf.ByteString getTerminationMessagePolicyBytes() { java.lang.Object ref = terminationMessagePolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGEPULLPOLICY_FIELD_NUMBER = 14; private volatile java.lang.Object imagePullPolicy_; /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ public boolean hasImagePullPolicy() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ public java.lang.String getImagePullPolicy() { java.lang.Object ref = imagePullPolicy_; 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()) { imagePullPolicy_ = s; } return s; } } /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ public com.google.protobuf.ByteString getImagePullPolicyBytes() { java.lang.Object ref = imagePullPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imagePullPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITYCONTEXT_FIELD_NUMBER = 15; private io.kubernetes.client.proto.V1.SecurityContext securityContext_; /** * * *
     * SecurityContext defines the security options the container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public boolean hasSecurityContext() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * SecurityContext defines the security options the container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContext getSecurityContext() { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } /** * * *
     * SecurityContext defines the security options the container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder() { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } public static final int STDIN_FIELD_NUMBER = 16; private boolean stdin_; /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ public boolean hasStdin() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ public boolean getStdin() { return stdin_; } public static final int STDINONCE_FIELD_NUMBER = 17; private boolean stdinOnce_; /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ public boolean hasStdinOnce() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ public boolean getStdinOnce() { return stdinOnce_; } public static final int TTY_FIELD_NUMBER = 18; private boolean tty_; /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ public boolean hasTty() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ public boolean getTty() { return tty_; } 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, image_); } for (int i = 0; i < command_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, command_.getRaw(i)); } for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, args_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } for (int i = 0; i < ports_.size(); i++) { output.writeMessage(6, ports_.get(i)); } for (int i = 0; i < env_.size(); i++) { output.writeMessage(7, env_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(8, getResources()); } for (int i = 0; i < volumeMounts_.size(); i++) { output.writeMessage(9, volumeMounts_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(10, getLivenessProbe()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(11, getReadinessProbe()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(12, getLifecycle()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, terminationMessagePath_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, imagePullPolicy_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(15, getSecurityContext()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(16, stdin_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBool(17, stdinOnce_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBool(18, tty_); } for (int i = 0; i < envFrom_.size(); i++) { output.writeMessage(19, envFrom_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, terminationMessagePolicy_); } for (int i = 0; i < volumeDevices_.size(); i++) { output.writeMessage(21, volumeDevices_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(22, getStartupProbe()); } 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, image_); } { int dataSize = 0; for (int i = 0; i < command_.size(); i++) { dataSize += computeStringSizeNoTag(command_.getRaw(i)); } size += dataSize; size += 1 * getCommandList().size(); } { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += computeStringSizeNoTag(args_.getRaw(i)); } size += dataSize; size += 1 * getArgsList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } for (int i = 0; i < ports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, ports_.get(i)); } for (int i = 0; i < env_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, env_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResources()); } for (int i = 0; i < volumeMounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, volumeMounts_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLivenessProbe()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReadinessProbe()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLifecycle()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, terminationMessagePath_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, imagePullPolicy_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getSecurityContext()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, stdin_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, stdinOnce_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, tty_); } for (int i = 0; i < envFrom_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, envFrom_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, terminationMessagePolicy_); } for (int i = 0; i < volumeDevices_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, volumeDevices_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStartupProbe()); } 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.V1.Container)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Container other = (io.kubernetes.client.proto.V1.Container) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && getCommandList().equals(other.getCommandList()); result = result && getArgsList().equals(other.getArgsList()); result = result && (hasWorkingDir() == other.hasWorkingDir()); if (hasWorkingDir()) { result = result && getWorkingDir().equals(other.getWorkingDir()); } result = result && getPortsList().equals(other.getPortsList()); result = result && getEnvFromList().equals(other.getEnvFromList()); result = result && getEnvList().equals(other.getEnvList()); result = result && (hasResources() == other.hasResources()); if (hasResources()) { result = result && getResources().equals(other.getResources()); } result = result && getVolumeMountsList().equals(other.getVolumeMountsList()); result = result && getVolumeDevicesList().equals(other.getVolumeDevicesList()); result = result && (hasLivenessProbe() == other.hasLivenessProbe()); if (hasLivenessProbe()) { result = result && getLivenessProbe().equals(other.getLivenessProbe()); } result = result && (hasReadinessProbe() == other.hasReadinessProbe()); if (hasReadinessProbe()) { result = result && getReadinessProbe().equals(other.getReadinessProbe()); } result = result && (hasStartupProbe() == other.hasStartupProbe()); if (hasStartupProbe()) { result = result && getStartupProbe().equals(other.getStartupProbe()); } result = result && (hasLifecycle() == other.hasLifecycle()); if (hasLifecycle()) { result = result && getLifecycle().equals(other.getLifecycle()); } result = result && (hasTerminationMessagePath() == other.hasTerminationMessagePath()); if (hasTerminationMessagePath()) { result = result && getTerminationMessagePath().equals(other.getTerminationMessagePath()); } result = result && (hasTerminationMessagePolicy() == other.hasTerminationMessagePolicy()); if (hasTerminationMessagePolicy()) { result = result && getTerminationMessagePolicy().equals(other.getTerminationMessagePolicy()); } result = result && (hasImagePullPolicy() == other.hasImagePullPolicy()); if (hasImagePullPolicy()) { result = result && getImagePullPolicy().equals(other.getImagePullPolicy()); } result = result && (hasSecurityContext() == other.hasSecurityContext()); if (hasSecurityContext()) { result = result && getSecurityContext().equals(other.getSecurityContext()); } result = result && (hasStdin() == other.hasStdin()); if (hasStdin()) { result = result && (getStdin() == other.getStdin()); } result = result && (hasStdinOnce() == other.hasStdinOnce()); if (hasStdinOnce()) { result = result && (getStdinOnce() == other.getStdinOnce()); } result = result && (hasTty() == other.hasTty()); if (hasTty()) { result = result && (getTty() == other.getTty()); } 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 (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (getCommandCount() > 0) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommandList().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (hasWorkingDir()) { hash = (37 * hash) + WORKINGDIR_FIELD_NUMBER; hash = (53 * hash) + getWorkingDir().hashCode(); } if (getPortsCount() > 0) { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } if (getEnvFromCount() > 0) { hash = (37 * hash) + ENVFROM_FIELD_NUMBER; hash = (53 * hash) + getEnvFromList().hashCode(); } if (getEnvCount() > 0) { hash = (37 * hash) + ENV_FIELD_NUMBER; hash = (53 * hash) + getEnvList().hashCode(); } if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } if (getVolumeMountsCount() > 0) { hash = (37 * hash) + VOLUMEMOUNTS_FIELD_NUMBER; hash = (53 * hash) + getVolumeMountsList().hashCode(); } if (getVolumeDevicesCount() > 0) { hash = (37 * hash) + VOLUMEDEVICES_FIELD_NUMBER; hash = (53 * hash) + getVolumeDevicesList().hashCode(); } if (hasLivenessProbe()) { hash = (37 * hash) + LIVENESSPROBE_FIELD_NUMBER; hash = (53 * hash) + getLivenessProbe().hashCode(); } if (hasReadinessProbe()) { hash = (37 * hash) + READINESSPROBE_FIELD_NUMBER; hash = (53 * hash) + getReadinessProbe().hashCode(); } if (hasStartupProbe()) { hash = (37 * hash) + STARTUPPROBE_FIELD_NUMBER; hash = (53 * hash) + getStartupProbe().hashCode(); } if (hasLifecycle()) { hash = (37 * hash) + LIFECYCLE_FIELD_NUMBER; hash = (53 * hash) + getLifecycle().hashCode(); } if (hasTerminationMessagePath()) { hash = (37 * hash) + TERMINATIONMESSAGEPATH_FIELD_NUMBER; hash = (53 * hash) + getTerminationMessagePath().hashCode(); } if (hasTerminationMessagePolicy()) { hash = (37 * hash) + TERMINATIONMESSAGEPOLICY_FIELD_NUMBER; hash = (53 * hash) + getTerminationMessagePolicy().hashCode(); } if (hasImagePullPolicy()) { hash = (37 * hash) + IMAGEPULLPOLICY_FIELD_NUMBER; hash = (53 * hash) + getImagePullPolicy().hashCode(); } if (hasSecurityContext()) { hash = (37 * hash) + SECURITYCONTEXT_FIELD_NUMBER; hash = (53 * hash) + getSecurityContext().hashCode(); } if (hasStdin()) { hash = (37 * hash) + STDIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdin()); } if (hasStdinOnce()) { hash = (37 * hash) + STDINONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdinOnce()); } if (hasTty()) { hash = (37 * hash) + TTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTty()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Container parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Container 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.V1.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Container 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.V1.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Container parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Container parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Container 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.V1.Container parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Container 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.V1.Container parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Container 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.V1.Container 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; } /** * * *
     * A single application container that you want to run within a pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Container} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Container) io.kubernetes.client.proto.V1.ContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Container_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Container.class, io.kubernetes.client.proto.V1.Container.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Container.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPortsFieldBuilder(); getEnvFromFieldBuilder(); getEnvFieldBuilder(); getResourcesFieldBuilder(); getVolumeMountsFieldBuilder(); getVolumeDevicesFieldBuilder(); getLivenessProbeFieldBuilder(); getReadinessProbeFieldBuilder(); getStartupProbeFieldBuilder(); getLifecycleFieldBuilder(); getSecurityContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); image_ = ""; bitField0_ = (bitField0_ & ~0x00000002); command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); workingDir_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { portsBuilder_.clear(); } if (envFromBuilder_ == null) { envFrom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { envFromBuilder_.clear(); } if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { envBuilder_.clear(); } if (resourcesBuilder_ == null) { resources_ = null; } else { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (volumeMountsBuilder_ == null) { volumeMounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { volumeMountsBuilder_.clear(); } if (volumeDevicesBuilder_ == null) { volumeDevices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { volumeDevicesBuilder_.clear(); } if (livenessProbeBuilder_ == null) { livenessProbe_ = null; } else { livenessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (readinessProbeBuilder_ == null) { readinessProbe_ = null; } else { readinessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (startupProbeBuilder_ == null) { startupProbe_ = null; } else { startupProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (lifecycleBuilder_ == null) { lifecycle_ = null; } else { lifecycleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); terminationMessagePath_ = ""; bitField0_ = (bitField0_ & ~0x00008000); terminationMessagePolicy_ = ""; bitField0_ = (bitField0_ & ~0x00010000); imagePullPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00020000); if (securityContextBuilder_ == null) { securityContext_ = null; } else { securityContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); stdin_ = false; bitField0_ = (bitField0_ & ~0x00080000); stdinOnce_ = false; bitField0_ = (bitField0_ & ~0x00100000); tty_ = false; bitField0_ = (bitField0_ & ~0x00200000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Container_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Container getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Container.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Container build() { io.kubernetes.client.proto.V1.Container result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Container buildPartial() { io.kubernetes.client.proto.V1.Container result = new io.kubernetes.client.proto.V1.Container(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.image_ = image_; if (((bitField0_ & 0x00000004) == 0x00000004)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.command_ = command_; if (((bitField0_ & 0x00000008) == 0x00000008)) { args_ = args_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.workingDir_ = workingDir_; if (portsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { ports_ = java.util.Collections.unmodifiableList(ports_); bitField0_ = (bitField0_ & ~0x00000020); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.build(); } if (envFromBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = java.util.Collections.unmodifiableList(envFrom_); bitField0_ = (bitField0_ & ~0x00000040); } result.envFrom_ = envFrom_; } else { result.envFrom_ = envFromBuilder_.build(); } if (envBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { env_ = java.util.Collections.unmodifiableList(env_); bitField0_ = (bitField0_ & ~0x00000080); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000008; } if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (volumeMountsBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_); bitField0_ = (bitField0_ & ~0x00000200); } result.volumeMounts_ = volumeMounts_; } else { result.volumeMounts_ = volumeMountsBuilder_.build(); } if (volumeDevicesBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = java.util.Collections.unmodifiableList(volumeDevices_); bitField0_ = (bitField0_ & ~0x00000400); } result.volumeDevices_ = volumeDevices_; } else { result.volumeDevices_ = volumeDevicesBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000010; } if (livenessProbeBuilder_ == null) { result.livenessProbe_ = livenessProbe_; } else { result.livenessProbe_ = livenessProbeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000020; } if (readinessProbeBuilder_ == null) { result.readinessProbe_ = readinessProbe_; } else { result.readinessProbe_ = readinessProbeBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000040; } if (startupProbeBuilder_ == null) { result.startupProbe_ = startupProbe_; } else { result.startupProbe_ = startupProbeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000080; } if (lifecycleBuilder_ == null) { result.lifecycle_ = lifecycle_; } else { result.lifecycle_ = lifecycleBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00000100; } result.terminationMessagePath_ = terminationMessagePath_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00000200; } result.terminationMessagePolicy_ = terminationMessagePolicy_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00000400; } result.imagePullPolicy_ = imagePullPolicy_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00000800; } if (securityContextBuilder_ == null) { result.securityContext_ = securityContext_; } else { result.securityContext_ = securityContextBuilder_.build(); } if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00001000; } result.stdin_ = stdin_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00002000; } result.stdinOnce_ = stdinOnce_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00004000; } result.tty_ = tty_; 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.V1.Container) { return mergeFrom((io.kubernetes.client.proto.V1.Container) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Container other) { if (other == io.kubernetes.client.proto.V1.Container.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasImage()) { bitField0_ |= 0x00000002; image_ = other.image_; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCommandIsMutable(); command_.addAll(other.command_); } onChanged(); } if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } if (other.hasWorkingDir()) { bitField0_ |= 0x00000010; workingDir_ = other.workingDir_; onChanged(); } if (portsBuilder_ == null) { if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); } onChanged(); } } else { if (!other.ports_.isEmpty()) { if (portsBuilder_.isEmpty()) { portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000020); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() : null; } else { portsBuilder_.addAllMessages(other.ports_); } } } if (envFromBuilder_ == null) { if (!other.envFrom_.isEmpty()) { if (envFrom_.isEmpty()) { envFrom_ = other.envFrom_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEnvFromIsMutable(); envFrom_.addAll(other.envFrom_); } onChanged(); } } else { if (!other.envFrom_.isEmpty()) { if (envFromBuilder_.isEmpty()) { envFromBuilder_.dispose(); envFromBuilder_ = null; envFrom_ = other.envFrom_; bitField0_ = (bitField0_ & ~0x00000040); envFromBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFromFieldBuilder() : null; } else { envFromBuilder_.addAllMessages(other.envFrom_); } } } if (envBuilder_ == null) { if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureEnvIsMutable(); env_.addAll(other.env_); } onChanged(); } } else { if (!other.env_.isEmpty()) { if (envBuilder_.isEmpty()) { envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; bitField0_ = (bitField0_ & ~0x00000080); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() : null; } else { envBuilder_.addAllMessages(other.env_); } } } if (other.hasResources()) { mergeResources(other.getResources()); } if (volumeMountsBuilder_ == null) { if (!other.volumeMounts_.isEmpty()) { if (volumeMounts_.isEmpty()) { volumeMounts_ = other.volumeMounts_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureVolumeMountsIsMutable(); volumeMounts_.addAll(other.volumeMounts_); } onChanged(); } } else { if (!other.volumeMounts_.isEmpty()) { if (volumeMountsBuilder_.isEmpty()) { volumeMountsBuilder_.dispose(); volumeMountsBuilder_ = null; volumeMounts_ = other.volumeMounts_; bitField0_ = (bitField0_ & ~0x00000200); volumeMountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumeMountsFieldBuilder() : null; } else { volumeMountsBuilder_.addAllMessages(other.volumeMounts_); } } } if (volumeDevicesBuilder_ == null) { if (!other.volumeDevices_.isEmpty()) { if (volumeDevices_.isEmpty()) { volumeDevices_ = other.volumeDevices_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureVolumeDevicesIsMutable(); volumeDevices_.addAll(other.volumeDevices_); } onChanged(); } } else { if (!other.volumeDevices_.isEmpty()) { if (volumeDevicesBuilder_.isEmpty()) { volumeDevicesBuilder_.dispose(); volumeDevicesBuilder_ = null; volumeDevices_ = other.volumeDevices_; bitField0_ = (bitField0_ & ~0x00000400); volumeDevicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumeDevicesFieldBuilder() : null; } else { volumeDevicesBuilder_.addAllMessages(other.volumeDevices_); } } } if (other.hasLivenessProbe()) { mergeLivenessProbe(other.getLivenessProbe()); } if (other.hasReadinessProbe()) { mergeReadinessProbe(other.getReadinessProbe()); } if (other.hasStartupProbe()) { mergeStartupProbe(other.getStartupProbe()); } if (other.hasLifecycle()) { mergeLifecycle(other.getLifecycle()); } if (other.hasTerminationMessagePath()) { bitField0_ |= 0x00008000; terminationMessagePath_ = other.terminationMessagePath_; onChanged(); } if (other.hasTerminationMessagePolicy()) { bitField0_ |= 0x00010000; terminationMessagePolicy_ = other.terminationMessagePolicy_; onChanged(); } if (other.hasImagePullPolicy()) { bitField0_ |= 0x00020000; imagePullPolicy_ = other.imagePullPolicy_; onChanged(); } if (other.hasSecurityContext()) { mergeSecurityContext(other.getSecurityContext()); } if (other.hasStdin()) { setStdin(other.getStdin()); } if (other.hasStdinOnce()) { setStdinOnce(other.getStdinOnce()); } if (other.hasTty()) { setTty(other.getTty()); } 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.V1.Container parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Container) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name of the container specified as a DNS_LABEL.
       * Each container in a pod must have a unique name (DNS_LABEL).
       * Cannot be updated.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the container specified as a DNS_LABEL.
       * Each container in a pod must have a unique name (DNS_LABEL).
       * Cannot be updated.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the container specified as a DNS_LABEL.
       * Each container in a pod must have a unique name (DNS_LABEL).
       * Cannot be updated.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the container specified as a DNS_LABEL.
       * Each container in a pod must have a unique name (DNS_LABEL).
       * Cannot be updated.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name of the container specified as a DNS_LABEL.
       * Each container in a pod must have a unique name (DNS_LABEL).
       * Cannot be updated.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of the container specified as a DNS_LABEL.
       * Each container in a pod must have a unique name (DNS_LABEL).
       * Cannot be updated.
       * 
* * 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 image_ = ""; /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * This field is optional to allow higher level config management to default or override
       * container images in workload controllers like Deployments and StatefulSets.
       * +optional
       * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * This field is optional to allow higher level config management to default or override
       * container images in workload controllers like Deployments and StatefulSets.
       * +optional
       * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * This field is optional to allow higher level config management to default or override
       * container images in workload controllers like Deployments and StatefulSets.
       * +optional
       * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * This field is optional to allow higher level config management to default or override
       * container images in workload controllers like Deployments and StatefulSets.
       * +optional
       * 
* * optional string image = 2; */ public Builder setImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * This field is optional to allow higher level config management to default or override
       * container images in workload controllers like Deployments and StatefulSets.
       * +optional
       * 
* * optional string image = 2; */ public Builder clearImage() { bitField0_ = (bitField0_ & ~0x00000002); image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * This field is optional to allow higher level config management to default or override
       * container images in workload controllers like Deployments and StatefulSets.
       * +optional
       * 
* * optional string image = 2; */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000004; } } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public int getCommandCount() { return command_.size(); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder setCommand(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder addCommand(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder addCommandBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000008; } } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public int getArgsCount() { return args_.size(); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public java.lang.String getArgs(int index) { return args_.get(index); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder setArgs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder addArgs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } private java.lang.Object workingDir_ = ""; /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public boolean hasWorkingDir() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; 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()) { workingDir_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public Builder setWorkingDir(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; workingDir_ = value; onChanged(); return this; } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public Builder clearWorkingDir() { bitField0_ = (bitField0_ & ~0x00000010); workingDir_ = getDefaultInstance().getWorkingDir(); onChanged(); return this; } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; workingDir_ = value; onChanged(); return this; } private java.util.List ports_ = java.util.Collections.emptyList(); private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { ports_ = new java.util.ArrayList(ports_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder> portsBuilder_; /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsList() { if (portsBuilder_ == null) { return java.util.Collections.unmodifiableList(ports_); } else { return portsBuilder_.getMessageList(); } } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public int getPortsCount() { if (portsBuilder_ == null) { return ports_.size(); } else { return portsBuilder_.getCount(); } } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort getPorts(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessage(index); } } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder setPorts(int index, io.kubernetes.client.proto.V1.ContainerPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.set(index, value); onChanged(); } else { portsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder setPorts( int index, io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.set(index, builderForValue.build()); onChanged(); } else { portsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts(io.kubernetes.client.proto.V1.ContainerPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(value); onChanged(); } else { portsBuilder_.addMessage(value); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts(int index, io.kubernetes.client.proto.V1.ContainerPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(index, value); onChanged(); } else { portsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts(io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts( int index, io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(index, builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addAllPorts( java.lang.Iterable values) { if (portsBuilder_ == null) { ensurePortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); onChanged(); } else { portsBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { portsBuilder_.clear(); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder removePorts(int index) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.remove(index); onChanged(); } else { portsBuilder_.remove(index); } return this; } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort.Builder getPortsBuilder(int index) { return getPortsFieldBuilder().getBuilder(index); } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsOrBuilderList() { if (portsBuilder_ != null) { return portsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ports_); } } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort.Builder addPortsBuilder() { return getPortsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance()); } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort.Builder addPortsBuilder(int index) { return getPortsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance()); } /** * * *
       * List of ports to expose from the container. Exposing a port here gives
       * the system additional information about the network connections a
       * container uses, but is primarily informational. Not specifying a port here
       * DOES NOT prevent that port from being exposed. Any port which is
       * listening on the default "0.0.0.0" address inside a container will be
       * accessible from the network.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsBuilderList() { return getPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder> getPortsFieldBuilder() { if (portsBuilder_ == null) { portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder>( ports_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; } private java.util.List envFrom_ = java.util.Collections.emptyList(); private void ensureEnvFromIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = new java.util.ArrayList(envFrom_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder> envFromBuilder_; /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromList() { if (envFromBuilder_ == null) { return java.util.Collections.unmodifiableList(envFrom_); } else { return envFromBuilder_.getMessageList(); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public int getEnvFromCount() { if (envFromBuilder_ == null) { return envFrom_.size(); } else { return envFromBuilder_.getCount(); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index) { if (envFromBuilder_ == null) { return envFrom_.get(index); } else { return envFromBuilder_.getMessage(index); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder setEnvFrom(int index, io.kubernetes.client.proto.V1.EnvFromSource value) { if (envFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvFromIsMutable(); envFrom_.set(index, value); onChanged(); } else { envFromBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder setEnvFrom( int index, io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.set(index, builderForValue.build()); onChanged(); } else { envFromBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom(io.kubernetes.client.proto.V1.EnvFromSource value) { if (envFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvFromIsMutable(); envFrom_.add(value); onChanged(); } else { envFromBuilder_.addMessage(value); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom(int index, io.kubernetes.client.proto.V1.EnvFromSource value) { if (envFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvFromIsMutable(); envFrom_.add(index, value); onChanged(); } else { envFromBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom( io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.add(builderForValue.build()); onChanged(); } else { envFromBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom( int index, io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.add(index, builderForValue.build()); onChanged(); } else { envFromBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addAllEnvFrom( java.lang.Iterable values) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, envFrom_); onChanged(); } else { envFromBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder clearEnvFrom() { if (envFromBuilder_ == null) { envFrom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { envFromBuilder_.clear(); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder removeEnvFrom(int index) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.remove(index); onChanged(); } else { envFromBuilder_.remove(index); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource.Builder getEnvFromBuilder(int index) { return getEnvFromFieldBuilder().getBuilder(index); } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index) { if (envFromBuilder_ == null) { return envFrom_.get(index); } else { return envFromBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromOrBuilderList() { if (envFromBuilder_ != null) { return envFromBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(envFrom_); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource.Builder addEnvFromBuilder() { return getEnvFromFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance()); } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource.Builder addEnvFromBuilder(int index) { return getEnvFromFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance()); } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromBuilderList() { return getEnvFromFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder> getEnvFromFieldBuilder() { if (envFromBuilder_ == null) { envFromBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>( envFrom_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); envFrom_ = null; } return envFromBuilder_; } private java.util.List env_ = java.util.Collections.emptyList(); private void ensureEnvIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { env_ = new java.util.ArrayList(env_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> envBuilder_; /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvList() { if (envBuilder_ == null) { return java.util.Collections.unmodifiableList(env_); } else { return envBuilder_.getMessageList(); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public int getEnvCount() { if (envBuilder_ == null) { return env_.size(); } else { return envBuilder_.getCount(); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) { if (envBuilder_ == null) { return env_.get(index); } else { return envBuilder_.getMessage(index); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder setEnv(int index, io.kubernetes.client.proto.V1.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvIsMutable(); env_.set(index, value); onChanged(); } else { envBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder setEnv( int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.set(index, builderForValue.build()); onChanged(); } else { envBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv(io.kubernetes.client.proto.V1.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvIsMutable(); env_.add(value); onChanged(); } else { envBuilder_.addMessage(value); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv(int index, io.kubernetes.client.proto.V1.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvIsMutable(); env_.add(index, value); onChanged(); } else { envBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv(io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(builderForValue.build()); onChanged(); } else { envBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv( int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(index, builderForValue.build()); onChanged(); } else { envBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addAllEnv( java.lang.Iterable values) { if (envBuilder_ == null) { ensureEnvIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); onChanged(); } else { envBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { envBuilder_.clear(); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder removeEnv(int index) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.remove(index); onChanged(); } else { envBuilder_.remove(index); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar.Builder getEnvBuilder(int index) { return getEnvFieldBuilder().getBuilder(index); } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(int index) { if (envBuilder_ == null) { return env_.get(index); } else { return envBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvOrBuilderList() { if (envBuilder_ != null) { return envBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(env_); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder() { return getEnvFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()); } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder(int index) { return getEnvFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()); } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvBuilderList() { return getEnvFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder>( env_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; } private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public boolean hasResources() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder setResources( io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && resources_ != null && resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { resources_ = io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_) .mergeFrom(value) .buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } } /** * * *
       * Compute Resources required by this container.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List volumeMounts_ = java.util.Collections.emptyList(); private void ensureVolumeMountsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = new java.util.ArrayList(volumeMounts_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder> volumeMountsBuilder_; /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsList() { if (volumeMountsBuilder_ == null) { return java.util.Collections.unmodifiableList(volumeMounts_); } else { return volumeMountsBuilder_.getMessageList(); } } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public int getVolumeMountsCount() { if (volumeMountsBuilder_ == null) { return volumeMounts_.size(); } else { return volumeMountsBuilder_.getCount(); } } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index) { if (volumeMountsBuilder_ == null) { return volumeMounts_.get(index); } else { return volumeMountsBuilder_.getMessage(index); } } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder setVolumeMounts(int index, io.kubernetes.client.proto.V1.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeMountsIsMutable(); volumeMounts_.set(index, value); onChanged(); } else { volumeMountsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder setVolumeMounts( int index, io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.set(index, builderForValue.build()); onChanged(); } else { volumeMountsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts(io.kubernetes.client.proto.V1.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeMountsIsMutable(); volumeMounts_.add(value); onChanged(); } else { volumeMountsBuilder_.addMessage(value); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts(int index, io.kubernetes.client.proto.V1.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeMountsIsMutable(); volumeMounts_.add(index, value); onChanged(); } else { volumeMountsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts( io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.add(builderForValue.build()); onChanged(); } else { volumeMountsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts( int index, io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.add(index, builderForValue.build()); onChanged(); } else { volumeMountsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addAllVolumeMounts( java.lang.Iterable values) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeMounts_); onChanged(); } else { volumeMountsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder clearVolumeMounts() { if (volumeMountsBuilder_ == null) { volumeMounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { volumeMountsBuilder_.clear(); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder removeVolumeMounts(int index) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.remove(index); onChanged(); } else { volumeMountsBuilder_.remove(index); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount.Builder getVolumeMountsBuilder(int index) { return getVolumeMountsFieldBuilder().getBuilder(index); } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder( int index) { if (volumeMountsBuilder_ == null) { return volumeMounts_.get(index); } else { return volumeMountsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsOrBuilderList() { if (volumeMountsBuilder_ != null) { return volumeMountsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumeMounts_); } } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount.Builder addVolumeMountsBuilder() { return getVolumeMountsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance()); } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount.Builder addVolumeMountsBuilder(int index) { return getVolumeMountsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance()); } /** * * *
       * Pod volumes to mount into the container's filesystem.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsBuilderList() { return getVolumeMountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder> getVolumeMountsFieldBuilder() { if (volumeMountsBuilder_ == null) { volumeMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder>( volumeMounts_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); volumeMounts_ = null; } return volumeMountsBuilder_; } private java.util.List volumeDevices_ = java.util.Collections.emptyList(); private void ensureVolumeDevicesIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = new java.util.ArrayList(volumeDevices_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeDevice, io.kubernetes.client.proto.V1.VolumeDevice.Builder, io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder> volumeDevicesBuilder_; /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesList() { if (volumeDevicesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumeDevices_); } else { return volumeDevicesBuilder_.getMessageList(); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public int getVolumeDevicesCount() { if (volumeDevicesBuilder_ == null) { return volumeDevices_.size(); } else { return volumeDevicesBuilder_.getCount(); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice getVolumeDevices(int index) { if (volumeDevicesBuilder_ == null) { return volumeDevices_.get(index); } else { return volumeDevicesBuilder_.getMessage(index); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder setVolumeDevices(int index, io.kubernetes.client.proto.V1.VolumeDevice value) { if (volumeDevicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDevicesIsMutable(); volumeDevices_.set(index, value); onChanged(); } else { volumeDevicesBuilder_.setMessage(index, value); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder setVolumeDevices( int index, io.kubernetes.client.proto.V1.VolumeDevice.Builder builderForValue) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.set(index, builderForValue.build()); onChanged(); } else { volumeDevicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices(io.kubernetes.client.proto.V1.VolumeDevice value) { if (volumeDevicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDevicesIsMutable(); volumeDevices_.add(value); onChanged(); } else { volumeDevicesBuilder_.addMessage(value); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices(int index, io.kubernetes.client.proto.V1.VolumeDevice value) { if (volumeDevicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDevicesIsMutable(); volumeDevices_.add(index, value); onChanged(); } else { volumeDevicesBuilder_.addMessage(index, value); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices( io.kubernetes.client.proto.V1.VolumeDevice.Builder builderForValue) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.add(builderForValue.build()); onChanged(); } else { volumeDevicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices( int index, io.kubernetes.client.proto.V1.VolumeDevice.Builder builderForValue) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.add(index, builderForValue.build()); onChanged(); } else { volumeDevicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addAllVolumeDevices( java.lang.Iterable values) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeDevices_); onChanged(); } else { volumeDevicesBuilder_.addAllMessages(values); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder clearVolumeDevices() { if (volumeDevicesBuilder_ == null) { volumeDevices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { volumeDevicesBuilder_.clear(); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder removeVolumeDevices(int index) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.remove(index); onChanged(); } else { volumeDevicesBuilder_.remove(index); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice.Builder getVolumeDevicesBuilder(int index) { return getVolumeDevicesFieldBuilder().getBuilder(index); } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder( int index) { if (volumeDevicesBuilder_ == null) { return volumeDevices_.get(index); } else { return volumeDevicesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesOrBuilderList() { if (volumeDevicesBuilder_ != null) { return volumeDevicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumeDevices_); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice.Builder addVolumeDevicesBuilder() { return getVolumeDevicesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.VolumeDevice.getDefaultInstance()); } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice.Builder addVolumeDevicesBuilder(int index) { return getVolumeDevicesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.VolumeDevice.getDefaultInstance()); } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesBuilderList() { return getVolumeDevicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeDevice, io.kubernetes.client.proto.V1.VolumeDevice.Builder, io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder> getVolumeDevicesFieldBuilder() { if (volumeDevicesBuilder_ == null) { volumeDevicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeDevice, io.kubernetes.client.proto.V1.VolumeDevice.Builder, io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder>( volumeDevices_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); volumeDevices_ = null; } return volumeDevicesBuilder_; } private io.kubernetes.client.proto.V1.Probe livenessProbe_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> livenessProbeBuilder_; /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public boolean hasLivenessProbe() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.Probe getLivenessProbe() { if (livenessProbeBuilder_ == null) { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } else { return livenessProbeBuilder_.getMessage(); } } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder setLivenessProbe(io.kubernetes.client.proto.V1.Probe value) { if (livenessProbeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } livenessProbe_ = value; onChanged(); } else { livenessProbeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder setLivenessProbe(io.kubernetes.client.proto.V1.Probe.Builder builderForValue) { if (livenessProbeBuilder_ == null) { livenessProbe_ = builderForValue.build(); onChanged(); } else { livenessProbeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder mergeLivenessProbe(io.kubernetes.client.proto.V1.Probe value) { if (livenessProbeBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && livenessProbe_ != null && livenessProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) { livenessProbe_ = io.kubernetes.client.proto.V1.Probe.newBuilder(livenessProbe_) .mergeFrom(value) .buildPartial(); } else { livenessProbe_ = value; } onChanged(); } else { livenessProbeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder clearLivenessProbe() { if (livenessProbeBuilder_ == null) { livenessProbe_ = null; onChanged(); } else { livenessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.Probe.Builder getLivenessProbeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLivenessProbeFieldBuilder().getBuilder(); } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder() { if (livenessProbeBuilder_ != null) { return livenessProbeBuilder_.getMessageOrBuilder(); } else { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } } /** * * *
       * Periodic probe of container liveness.
       * Container will be restarted if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> getLivenessProbeFieldBuilder() { if (livenessProbeBuilder_ == null) { livenessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>( getLivenessProbe(), getParentForChildren(), isClean()); livenessProbe_ = null; } return livenessProbeBuilder_; } private io.kubernetes.client.proto.V1.Probe readinessProbe_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> readinessProbeBuilder_; /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public boolean hasReadinessProbe() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.Probe getReadinessProbe() { if (readinessProbeBuilder_ == null) { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } else { return readinessProbeBuilder_.getMessage(); } } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder setReadinessProbe(io.kubernetes.client.proto.V1.Probe value) { if (readinessProbeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readinessProbe_ = value; onChanged(); } else { readinessProbeBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder setReadinessProbe( io.kubernetes.client.proto.V1.Probe.Builder builderForValue) { if (readinessProbeBuilder_ == null) { readinessProbe_ = builderForValue.build(); onChanged(); } else { readinessProbeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder mergeReadinessProbe(io.kubernetes.client.proto.V1.Probe value) { if (readinessProbeBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && readinessProbe_ != null && readinessProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) { readinessProbe_ = io.kubernetes.client.proto.V1.Probe.newBuilder(readinessProbe_) .mergeFrom(value) .buildPartial(); } else { readinessProbe_ = value; } onChanged(); } else { readinessProbeBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder clearReadinessProbe() { if (readinessProbeBuilder_ == null) { readinessProbe_ = null; onChanged(); } else { readinessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.Probe.Builder getReadinessProbeBuilder() { bitField0_ |= 0x00001000; onChanged(); return getReadinessProbeFieldBuilder().getBuilder(); } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder() { if (readinessProbeBuilder_ != null) { return readinessProbeBuilder_.getMessageOrBuilder(); } else { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } } /** * * *
       * Periodic probe of container service readiness.
       * Container will be removed from service endpoints if the probe fails.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> getReadinessProbeFieldBuilder() { if (readinessProbeBuilder_ == null) { readinessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>( getReadinessProbe(), getParentForChildren(), isClean()); readinessProbe_ = null; } return readinessProbeBuilder_; } private io.kubernetes.client.proto.V1.Probe startupProbe_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> startupProbeBuilder_; /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public boolean hasStartupProbe() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.Probe getStartupProbe() { if (startupProbeBuilder_ == null) { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } else { return startupProbeBuilder_.getMessage(); } } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder setStartupProbe(io.kubernetes.client.proto.V1.Probe value) { if (startupProbeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startupProbe_ = value; onChanged(); } else { startupProbeBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder setStartupProbe(io.kubernetes.client.proto.V1.Probe.Builder builderForValue) { if (startupProbeBuilder_ == null) { startupProbe_ = builderForValue.build(); onChanged(); } else { startupProbeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder mergeStartupProbe(io.kubernetes.client.proto.V1.Probe value) { if (startupProbeBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && startupProbe_ != null && startupProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) { startupProbe_ = io.kubernetes.client.proto.V1.Probe.newBuilder(startupProbe_) .mergeFrom(value) .buildPartial(); } else { startupProbe_ = value; } onChanged(); } else { startupProbeBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder clearStartupProbe() { if (startupProbeBuilder_ == null) { startupProbe_ = null; onChanged(); } else { startupProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.Probe.Builder getStartupProbeBuilder() { bitField0_ |= 0x00002000; onChanged(); return getStartupProbeFieldBuilder().getBuilder(); } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getStartupProbeOrBuilder() { if (startupProbeBuilder_ != null) { return startupProbeBuilder_.getMessageOrBuilder(); } else { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } } /** * * *
       * StartupProbe indicates that the Pod has successfully initialized.
       * If specified, no other probes are executed until this completes successfully.
       * If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
       * This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
       * when it might take a long time to load data or warm a cache, than during steady-state operation.
       * This cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> getStartupProbeFieldBuilder() { if (startupProbeBuilder_ == null) { startupProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>( getStartupProbe(), getParentForChildren(), isClean()); startupProbe_ = null; } return startupProbeBuilder_; } private io.kubernetes.client.proto.V1.Lifecycle lifecycle_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder> lifecycleBuilder_; /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public boolean hasLifecycle() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.Lifecycle getLifecycle() { if (lifecycleBuilder_ == null) { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } else { return lifecycleBuilder_.getMessage(); } } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder setLifecycle(io.kubernetes.client.proto.V1.Lifecycle value) { if (lifecycleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lifecycle_ = value; onChanged(); } else { lifecycleBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder setLifecycle(io.kubernetes.client.proto.V1.Lifecycle.Builder builderForValue) { if (lifecycleBuilder_ == null) { lifecycle_ = builderForValue.build(); onChanged(); } else { lifecycleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder mergeLifecycle(io.kubernetes.client.proto.V1.Lifecycle value) { if (lifecycleBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && lifecycle_ != null && lifecycle_ != io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance()) { lifecycle_ = io.kubernetes.client.proto.V1.Lifecycle.newBuilder(lifecycle_) .mergeFrom(value) .buildPartial(); } else { lifecycle_ = value; } onChanged(); } else { lifecycleBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder clearLifecycle() { if (lifecycleBuilder_ == null) { lifecycle_ = null; onChanged(); } else { lifecycleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.Lifecycle.Builder getLifecycleBuilder() { bitField0_ |= 0x00004000; onChanged(); return getLifecycleFieldBuilder().getBuilder(); } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder() { if (lifecycleBuilder_ != null) { return lifecycleBuilder_.getMessageOrBuilder(); } else { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } } /** * * *
       * Actions that the management system should take in response to container lifecycle events.
       * Cannot be updated.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder> getLifecycleFieldBuilder() { if (lifecycleBuilder_ == null) { lifecycleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder>( getLifecycle(), getParentForChildren(), isClean()); lifecycle_ = null; } return lifecycleBuilder_; } private java.lang.Object terminationMessagePath_ = ""; /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public boolean hasTerminationMessagePath() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public java.lang.String getTerminationMessagePath() { java.lang.Object ref = terminationMessagePath_; 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()) { terminationMessagePath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public com.google.protobuf.ByteString getTerminationMessagePathBytes() { java.lang.Object ref = terminationMessagePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public Builder setTerminationMessagePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; terminationMessagePath_ = value; onChanged(); return this; } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public Builder clearTerminationMessagePath() { bitField0_ = (bitField0_ & ~0x00008000); terminationMessagePath_ = getDefaultInstance().getTerminationMessagePath(); onChanged(); return this; } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public Builder setTerminationMessagePathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; terminationMessagePath_ = value; onChanged(); return this; } private java.lang.Object terminationMessagePolicy_ = ""; /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public boolean hasTerminationMessagePolicy() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public java.lang.String getTerminationMessagePolicy() { java.lang.Object ref = terminationMessagePolicy_; 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()) { terminationMessagePolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public com.google.protobuf.ByteString getTerminationMessagePolicyBytes() { java.lang.Object ref = terminationMessagePolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public Builder setTerminationMessagePolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; terminationMessagePolicy_ = value; onChanged(); return this; } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public Builder clearTerminationMessagePolicy() { bitField0_ = (bitField0_ & ~0x00010000); terminationMessagePolicy_ = getDefaultInstance().getTerminationMessagePolicy(); onChanged(); return this; } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public Builder setTerminationMessagePolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; terminationMessagePolicy_ = value; onChanged(); return this; } private java.lang.Object imagePullPolicy_ = ""; /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public boolean hasImagePullPolicy() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public java.lang.String getImagePullPolicy() { java.lang.Object ref = imagePullPolicy_; 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()) { imagePullPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public com.google.protobuf.ByteString getImagePullPolicyBytes() { java.lang.Object ref = imagePullPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imagePullPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public Builder setImagePullPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; imagePullPolicy_ = value; onChanged(); return this; } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public Builder clearImagePullPolicy() { bitField0_ = (bitField0_ & ~0x00020000); imagePullPolicy_ = getDefaultInstance().getImagePullPolicy(); onChanged(); return this; } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public Builder setImagePullPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; imagePullPolicy_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecurityContext securityContext_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder> securityContextBuilder_; /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public boolean hasSecurityContext() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContext getSecurityContext() { if (securityContextBuilder_ == null) { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } else { return securityContextBuilder_.getMessage(); } } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder setSecurityContext(io.kubernetes.client.proto.V1.SecurityContext value) { if (securityContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityContext_ = value; onChanged(); } else { securityContextBuilder_.setMessage(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder setSecurityContext( io.kubernetes.client.proto.V1.SecurityContext.Builder builderForValue) { if (securityContextBuilder_ == null) { securityContext_ = builderForValue.build(); onChanged(); } else { securityContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; return this; } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder mergeSecurityContext(io.kubernetes.client.proto.V1.SecurityContext value) { if (securityContextBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000) && securityContext_ != null && securityContext_ != io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance()) { securityContext_ = io.kubernetes.client.proto.V1.SecurityContext.newBuilder(securityContext_) .mergeFrom(value) .buildPartial(); } else { securityContext_ = value; } onChanged(); } else { securityContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder clearSecurityContext() { if (securityContextBuilder_ == null) { securityContext_ = null; onChanged(); } else { securityContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); return this; } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContext.Builder getSecurityContextBuilder() { bitField0_ |= 0x00040000; onChanged(); return getSecurityContextFieldBuilder().getBuilder(); } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder() { if (securityContextBuilder_ != null) { return securityContextBuilder_.getMessageOrBuilder(); } else { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } } /** * * *
       * SecurityContext defines the security options the container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder> getSecurityContextFieldBuilder() { if (securityContextBuilder_ == null) { securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder>( getSecurityContext(), getParentForChildren(), isClean()); securityContext_ = null; } return securityContextBuilder_; } private boolean stdin_; /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public boolean hasStdin() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public boolean getStdin() { return stdin_; } /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public Builder setStdin(boolean value) { bitField0_ |= 0x00080000; stdin_ = value; onChanged(); return this; } /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public Builder clearStdin() { bitField0_ = (bitField0_ & ~0x00080000); stdin_ = false; onChanged(); return this; } private boolean stdinOnce_; /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public boolean hasStdinOnce() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public boolean getStdinOnce() { return stdinOnce_; } /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public Builder setStdinOnce(boolean value) { bitField0_ |= 0x00100000; stdinOnce_ = value; onChanged(); return this; } /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public Builder clearStdinOnce() { bitField0_ = (bitField0_ & ~0x00100000); stdinOnce_ = false; onChanged(); return this; } private boolean tty_; /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public boolean hasTty() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public boolean getTty() { return tty_; } /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public Builder setTty(boolean value) { bitField0_ |= 0x00200000; tty_ = value; onChanged(); return this; } /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public Builder clearTty() { bitField0_ = (bitField0_ & ~0x00200000); tty_ = 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.core.v1.Container) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Container) private static final io.kubernetes.client.proto.V1.Container DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Container(); } public static io.kubernetes.client.proto.V1.Container getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Container parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Container(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.V1.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerImageOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerImage) com.google.protobuf.MessageOrBuilder { /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ java.util.List getNamesList(); /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ int getNamesCount(); /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ java.lang.String getNames(int index); /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ com.google.protobuf.ByteString getNamesBytes(int index); /** * * *
     * The size of the image in bytes.
     * +optional
     * 
* * optional int64 sizeBytes = 2; */ boolean hasSizeBytes(); /** * * *
     * The size of the image in bytes.
     * +optional
     * 
* * optional int64 sizeBytes = 2; */ long getSizeBytes(); } /** * * *
   * Describe a container image
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerImage} */ public static final class ContainerImage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerImage) ContainerImageOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerImage.newBuilder() to construct. private ContainerImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerImage() { names_ = com.google.protobuf.LazyStringArrayList.EMPTY; sizeBytes_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerImage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { names_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } names_.add(bs); break; } case 16: { bitField0_ |= 0x00000001; sizeBytes_ = input.readInt64(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { names_ = names_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerImage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerImage.class, io.kubernetes.client.proto.V1.ContainerImage.Builder.class); } private int bitField0_; public static final int NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList names_; /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ public com.google.protobuf.ProtocolStringList getNamesList() { return names_; } /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ public int getNamesCount() { return names_.size(); } /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ public java.lang.String getNames(int index) { return names_.get(index); } /** * * *
     * Names by which this image is known.
     * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
     * +optional
     * 
* * repeated string names = 1; */ public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } public static final int SIZEBYTES_FIELD_NUMBER = 2; private long sizeBytes_; /** * * *
     * The size of the image in bytes.
     * +optional
     * 
* * optional int64 sizeBytes = 2; */ public boolean hasSizeBytes() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The size of the image in bytes.
     * +optional
     * 
* * optional int64 sizeBytes = 2; */ public long getSizeBytes() { return sizeBytes_; } 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 < names_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(2, sizeBytes_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < names_.size(); i++) { dataSize += computeStringSizeNoTag(names_.getRaw(i)); } size += dataSize; size += 1 * getNamesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeBytes_); } 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.V1.ContainerImage)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerImage other = (io.kubernetes.client.proto.V1.ContainerImage) obj; boolean result = true; result = result && getNamesList().equals(other.getNamesList()); result = result && (hasSizeBytes() == other.hasSizeBytes()); if (hasSizeBytes()) { result = result && (getSizeBytes() == other.getSizeBytes()); } 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 (getNamesCount() > 0) { hash = (37 * hash) + NAMES_FIELD_NUMBER; hash = (53 * hash) + getNamesList().hashCode(); } if (hasSizeBytes()) { hash = (37 * hash) + SIZEBYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerImage 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.V1.ContainerImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerImage 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.V1.ContainerImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerImage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerImage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerImage 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.V1.ContainerImage parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerImage 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.V1.ContainerImage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerImage 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.V1.ContainerImage 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; } /** * * *
     * Describe a container image
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerImage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerImage) io.kubernetes.client.proto.V1.ContainerImageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerImage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerImage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerImage.class, io.kubernetes.client.proto.V1.ContainerImage.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerImage.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(); names_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); sizeBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerImage_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerImage getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerImage.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerImage build() { io.kubernetes.client.proto.V1.ContainerImage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerImage buildPartial() { io.kubernetes.client.proto.V1.ContainerImage result = new io.kubernetes.client.proto.V1.ContainerImage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { names_ = names_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.names_ = names_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.sizeBytes_ = sizeBytes_; 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.V1.ContainerImage) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerImage) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerImage other) { if (other == io.kubernetes.client.proto.V1.ContainerImage.getDefaultInstance()) return this; if (!other.names_.isEmpty()) { if (names_.isEmpty()) { names_ = other.names_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNamesIsMutable(); names_.addAll(other.names_); } onChanged(); } if (other.hasSizeBytes()) { setSizeBytes(other.getSizeBytes()); } 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.V1.ContainerImage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerImage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { names_ = new com.google.protobuf.LazyStringArrayList(names_); bitField0_ |= 0x00000001; } } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public com.google.protobuf.ProtocolStringList getNamesList() { return names_.getUnmodifiableView(); } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public int getNamesCount() { return names_.size(); } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public java.lang.String getNames(int index) { return names_.get(index); } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public com.google.protobuf.ByteString getNamesBytes(int index) { return names_.getByteString(index); } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public Builder setNames(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.set(index, value); onChanged(); return this; } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public Builder addNames(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public Builder addAllNames(java.lang.Iterable values) { ensureNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); onChanged(); return this; } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public Builder clearNames() { names_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Names by which this image is known.
       * e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
       * +optional
       * 
* * repeated string names = 1; */ public Builder addNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureNamesIsMutable(); names_.add(value); onChanged(); return this; } private long sizeBytes_; /** * * *
       * The size of the image in bytes.
       * +optional
       * 
* * optional int64 sizeBytes = 2; */ public boolean hasSizeBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The size of the image in bytes.
       * +optional
       * 
* * optional int64 sizeBytes = 2; */ public long getSizeBytes() { return sizeBytes_; } /** * * *
       * The size of the image in bytes.
       * +optional
       * 
* * optional int64 sizeBytes = 2; */ public Builder setSizeBytes(long value) { bitField0_ |= 0x00000002; sizeBytes_ = value; onChanged(); return this; } /** * * *
       * The size of the image in bytes.
       * +optional
       * 
* * optional int64 sizeBytes = 2; */ public Builder clearSizeBytes() { bitField0_ = (bitField0_ & ~0x00000002); sizeBytes_ = 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.core.v1.ContainerImage) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerImage) private static final io.kubernetes.client.proto.V1.ContainerImage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerImage(); } public static io.kubernetes.client.proto.V1.ContainerImage getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerImage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerImage(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.V1.ContainerImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerPortOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerPort) com.google.protobuf.MessageOrBuilder { /** * * *
     * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
     * named port in a pod must have a unique name. Name for the port that can be
     * referred to by services.
     * +optional
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
     * named port in a pod must have a unique name. Name for the port that can be
     * referred to by services.
     * +optional
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
     * named port in a pod must have a unique name. Name for the port that can be
     * referred to by services.
     * +optional
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Number of port to expose on the host.
     * If specified, this must be a valid port number, 0 < x < 65536.
     * If HostNetwork is specified, this must match ContainerPort.
     * Most containers do not need this.
     * +optional
     * 
* * optional int32 hostPort = 2; */ boolean hasHostPort(); /** * * *
     * Number of port to expose on the host.
     * If specified, this must be a valid port number, 0 < x < 65536.
     * If HostNetwork is specified, this must match ContainerPort.
     * Most containers do not need this.
     * +optional
     * 
* * optional int32 hostPort = 2; */ int getHostPort(); /** * * *
     * Number of port to expose on the pod's IP address.
     * This must be a valid port number, 0 < x < 65536.
     * 
* * optional int32 containerPort = 3; */ boolean hasContainerPort(); /** * * *
     * Number of port to expose on the pod's IP address.
     * This must be a valid port number, 0 < x < 65536.
     * 
* * optional int32 containerPort = 3; */ int getContainerPort(); /** * * *
     * Protocol for port. Must be UDP, TCP, or SCTP.
     * Defaults to "TCP".
     * +optional
     * +default="TCP"
     * 
* * optional string protocol = 4; */ boolean hasProtocol(); /** * * *
     * Protocol for port. Must be UDP, TCP, or SCTP.
     * Defaults to "TCP".
     * +optional
     * +default="TCP"
     * 
* * optional string protocol = 4; */ java.lang.String getProtocol(); /** * * *
     * Protocol for port. Must be UDP, TCP, or SCTP.
     * Defaults to "TCP".
     * +optional
     * +default="TCP"
     * 
* * optional string protocol = 4; */ com.google.protobuf.ByteString getProtocolBytes(); /** * * *
     * What host IP to bind the external port to.
     * +optional
     * 
* * optional string hostIP = 5; */ boolean hasHostIP(); /** * * *
     * What host IP to bind the external port to.
     * +optional
     * 
* * optional string hostIP = 5; */ java.lang.String getHostIP(); /** * * *
     * What host IP to bind the external port to.
     * +optional
     * 
* * optional string hostIP = 5; */ com.google.protobuf.ByteString getHostIPBytes(); } /** * * *
   * ContainerPort represents a network port in a single container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerPort} */ public static final class ContainerPort extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerPort) ContainerPortOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerPort.newBuilder() to construct. private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerPort() { name_ = ""; hostPort_ = 0; containerPort_ = 0; protocol_ = ""; hostIP_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerPort( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { bitField0_ |= 0x00000002; hostPort_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; containerPort_ = input.readInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; protocol_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; hostIP_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ContainerPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerPort_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerPort.class, io.kubernetes.client.proto.V1.ContainerPort.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
     * named port in a pod must have a unique name. Name for the port that can be
     * referred to by services.
     * +optional
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
     * named port in a pod must have a unique name. Name for the port that can be
     * referred to by services.
     * +optional
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
     * named port in a pod must have a unique name. Name for the port that can be
     * referred to by services.
     * +optional
     * 
* * 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 HOSTPORT_FIELD_NUMBER = 2; private int hostPort_; /** * * *
     * Number of port to expose on the host.
     * If specified, this must be a valid port number, 0 < x < 65536.
     * If HostNetwork is specified, this must match ContainerPort.
     * Most containers do not need this.
     * +optional
     * 
* * optional int32 hostPort = 2; */ public boolean hasHostPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Number of port to expose on the host.
     * If specified, this must be a valid port number, 0 < x < 65536.
     * If HostNetwork is specified, this must match ContainerPort.
     * Most containers do not need this.
     * +optional
     * 
* * optional int32 hostPort = 2; */ public int getHostPort() { return hostPort_; } public static final int CONTAINERPORT_FIELD_NUMBER = 3; private int containerPort_; /** * * *
     * Number of port to expose on the pod's IP address.
     * This must be a valid port number, 0 < x < 65536.
     * 
* * optional int32 containerPort = 3; */ public boolean hasContainerPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Number of port to expose on the pod's IP address.
     * This must be a valid port number, 0 < x < 65536.
     * 
* * optional int32 containerPort = 3; */ public int getContainerPort() { return containerPort_; } public static final int PROTOCOL_FIELD_NUMBER = 4; private volatile java.lang.Object protocol_; /** * * *
     * Protocol for port. Must be UDP, TCP, or SCTP.
     * Defaults to "TCP".
     * +optional
     * +default="TCP"
     * 
* * optional string protocol = 4; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Protocol for port. Must be UDP, TCP, or SCTP.
     * Defaults to "TCP".
     * +optional
     * +default="TCP"
     * 
* * optional string protocol = 4; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } } /** * * *
     * Protocol for port. Must be UDP, TCP, or SCTP.
     * Defaults to "TCP".
     * +optional
     * +default="TCP"
     * 
* * optional string protocol = 4; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTIP_FIELD_NUMBER = 5; private volatile java.lang.Object hostIP_; /** * * *
     * What host IP to bind the external port to.
     * +optional
     * 
* * optional string hostIP = 5; */ public boolean hasHostIP() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * What host IP to bind the external port to.
     * +optional
     * 
* * optional string hostIP = 5; */ public java.lang.String getHostIP() { java.lang.Object ref = hostIP_; 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()) { hostIP_ = s; } return s; } } /** * * *
     * What host IP to bind the external port to.
     * +optional
     * 
* * optional string hostIP = 5; */ public com.google.protobuf.ByteString getHostIPBytes() { java.lang.Object ref = hostIP_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, hostPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, containerPort_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, protocol_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostIP_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, hostPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, containerPort_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, protocol_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostIP_); } 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.V1.ContainerPort)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerPort other = (io.kubernetes.client.proto.V1.ContainerPort) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasHostPort() == other.hasHostPort()); if (hasHostPort()) { result = result && (getHostPort() == other.getHostPort()); } result = result && (hasContainerPort() == other.hasContainerPort()); if (hasContainerPort()) { result = result && (getContainerPort() == other.getContainerPort()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol().equals(other.getProtocol()); } result = result && (hasHostIP() == other.hasHostIP()); if (hasHostIP()) { result = result && getHostIP().equals(other.getHostIP()); } 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 (hasHostPort()) { hash = (37 * hash) + HOSTPORT_FIELD_NUMBER; hash = (53 * hash) + getHostPort(); } if (hasContainerPort()) { hash = (37 * hash) + CONTAINERPORT_FIELD_NUMBER; hash = (53 * hash) + getContainerPort(); } if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); } if (hasHostIP()) { hash = (37 * hash) + HOSTIP_FIELD_NUMBER; hash = (53 * hash) + getHostIP().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerPort 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.V1.ContainerPort parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerPort 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.V1.ContainerPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerPort parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerPort parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerPort 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.V1.ContainerPort parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerPort 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.V1.ContainerPort parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerPort 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.V1.ContainerPort 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; } /** * * *
     * ContainerPort represents a network port in a single container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerPort} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerPort) io.kubernetes.client.proto.V1.ContainerPortOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerPort_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerPort.class, io.kubernetes.client.proto.V1.ContainerPort.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerPort.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); hostPort_ = 0; bitField0_ = (bitField0_ & ~0x00000002); containerPort_ = 0; bitField0_ = (bitField0_ & ~0x00000004); protocol_ = ""; bitField0_ = (bitField0_ & ~0x00000008); hostIP_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerPort_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerPort getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerPort build() { io.kubernetes.client.proto.V1.ContainerPort result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerPort buildPartial() { io.kubernetes.client.proto.V1.ContainerPort result = new io.kubernetes.client.proto.V1.ContainerPort(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.hostPort_ = hostPort_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.containerPort_ = containerPort_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.protocol_ = protocol_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.hostIP_ = hostIP_; 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.V1.ContainerPort) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerPort) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerPort other) { if (other == io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasHostPort()) { setHostPort(other.getHostPort()); } if (other.hasContainerPort()) { setContainerPort(other.getContainerPort()); } if (other.hasProtocol()) { bitField0_ |= 0x00000008; protocol_ = other.protocol_; onChanged(); } if (other.hasHostIP()) { bitField0_ |= 0x00000010; hostIP_ = other.hostIP_; 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.V1.ContainerPort parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerPort) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
       * named port in a pod must have a unique name. Name for the port that can be
       * referred to by services.
       * +optional
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
       * named port in a pod must have a unique name. Name for the port that can be
       * referred to by services.
       * +optional
       * 
* * 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; } } /** * * *
       * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
       * named port in a pod must have a unique name. Name for the port that can be
       * referred to by services.
       * +optional
       * 
* * 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; } } /** * * *
       * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
       * named port in a pod must have a unique name. Name for the port that can be
       * referred to by services.
       * +optional
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
       * named port in a pod must have a unique name. Name for the port that can be
       * referred to by services.
       * +optional
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
       * named port in a pod must have a unique name. Name for the port that can be
       * referred to by services.
       * +optional
       * 
* * 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 int hostPort_; /** * * *
       * Number of port to expose on the host.
       * If specified, this must be a valid port number, 0 < x < 65536.
       * If HostNetwork is specified, this must match ContainerPort.
       * Most containers do not need this.
       * +optional
       * 
* * optional int32 hostPort = 2; */ public boolean hasHostPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Number of port to expose on the host.
       * If specified, this must be a valid port number, 0 < x < 65536.
       * If HostNetwork is specified, this must match ContainerPort.
       * Most containers do not need this.
       * +optional
       * 
* * optional int32 hostPort = 2; */ public int getHostPort() { return hostPort_; } /** * * *
       * Number of port to expose on the host.
       * If specified, this must be a valid port number, 0 < x < 65536.
       * If HostNetwork is specified, this must match ContainerPort.
       * Most containers do not need this.
       * +optional
       * 
* * optional int32 hostPort = 2; */ public Builder setHostPort(int value) { bitField0_ |= 0x00000002; hostPort_ = value; onChanged(); return this; } /** * * *
       * Number of port to expose on the host.
       * If specified, this must be a valid port number, 0 < x < 65536.
       * If HostNetwork is specified, this must match ContainerPort.
       * Most containers do not need this.
       * +optional
       * 
* * optional int32 hostPort = 2; */ public Builder clearHostPort() { bitField0_ = (bitField0_ & ~0x00000002); hostPort_ = 0; onChanged(); return this; } private int containerPort_; /** * * *
       * Number of port to expose on the pod's IP address.
       * This must be a valid port number, 0 < x < 65536.
       * 
* * optional int32 containerPort = 3; */ public boolean hasContainerPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Number of port to expose on the pod's IP address.
       * This must be a valid port number, 0 < x < 65536.
       * 
* * optional int32 containerPort = 3; */ public int getContainerPort() { return containerPort_; } /** * * *
       * Number of port to expose on the pod's IP address.
       * This must be a valid port number, 0 < x < 65536.
       * 
* * optional int32 containerPort = 3; */ public Builder setContainerPort(int value) { bitField0_ |= 0x00000004; containerPort_ = value; onChanged(); return this; } /** * * *
       * Number of port to expose on the pod's IP address.
       * This must be a valid port number, 0 < x < 65536.
       * 
* * optional int32 containerPort = 3; */ public Builder clearContainerPort() { bitField0_ = (bitField0_ & ~0x00000004); containerPort_ = 0; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** * * *
       * Protocol for port. Must be UDP, TCP, or SCTP.
       * Defaults to "TCP".
       * +optional
       * +default="TCP"
       * 
* * optional string protocol = 4; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Protocol for port. Must be UDP, TCP, or SCTP.
       * Defaults to "TCP".
       * +optional
       * +default="TCP"
       * 
* * optional string protocol = 4; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Protocol for port. Must be UDP, TCP, or SCTP.
       * Defaults to "TCP".
       * +optional
       * +default="TCP"
       * 
* * optional string protocol = 4; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Protocol for port. Must be UDP, TCP, or SCTP.
       * Defaults to "TCP".
       * +optional
       * +default="TCP"
       * 
* * optional string protocol = 4; */ public Builder setProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; protocol_ = value; onChanged(); return this; } /** * * *
       * Protocol for port. Must be UDP, TCP, or SCTP.
       * Defaults to "TCP".
       * +optional
       * +default="TCP"
       * 
* * optional string protocol = 4; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000008); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** * * *
       * Protocol for port. Must be UDP, TCP, or SCTP.
       * Defaults to "TCP".
       * +optional
       * +default="TCP"
       * 
* * optional string protocol = 4; */ public Builder setProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; protocol_ = value; onChanged(); return this; } private java.lang.Object hostIP_ = ""; /** * * *
       * What host IP to bind the external port to.
       * +optional
       * 
* * optional string hostIP = 5; */ public boolean hasHostIP() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * What host IP to bind the external port to.
       * +optional
       * 
* * optional string hostIP = 5; */ public java.lang.String getHostIP() { java.lang.Object ref = hostIP_; 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()) { hostIP_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * What host IP to bind the external port to.
       * +optional
       * 
* * optional string hostIP = 5; */ public com.google.protobuf.ByteString getHostIPBytes() { java.lang.Object ref = hostIP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * What host IP to bind the external port to.
       * +optional
       * 
* * optional string hostIP = 5; */ public Builder setHostIP(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; hostIP_ = value; onChanged(); return this; } /** * * *
       * What host IP to bind the external port to.
       * +optional
       * 
* * optional string hostIP = 5; */ public Builder clearHostIP() { bitField0_ = (bitField0_ & ~0x00000010); hostIP_ = getDefaultInstance().getHostIP(); onChanged(); return this; } /** * * *
       * What host IP to bind the external port to.
       * +optional
       * 
* * optional string hostIP = 5; */ public Builder setHostIPBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; hostIP_ = 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.core.v1.ContainerPort) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerPort) private static final io.kubernetes.client.proto.V1.ContainerPort DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerPort(); } public static io.kubernetes.client.proto.V1.ContainerPort getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerPort parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerPort(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.V1.ContainerPort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerState) com.google.protobuf.MessageOrBuilder { /** * * *
     * Details about a waiting container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ boolean hasWaiting(); /** * * *
     * Details about a waiting container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ io.kubernetes.client.proto.V1.ContainerStateWaiting getWaiting(); /** * * *
     * Details about a waiting container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder getWaitingOrBuilder(); /** * * *
     * Details about a running container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ boolean hasRunning(); /** * * *
     * Details about a running container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ io.kubernetes.client.proto.V1.ContainerStateRunning getRunning(); /** * * *
     * Details about a running container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder getRunningOrBuilder(); /** * * *
     * Details about a terminated container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ boolean hasTerminated(); /** * * *
     * Details about a terminated container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ io.kubernetes.client.proto.V1.ContainerStateTerminated getTerminated(); /** * * *
     * Details about a terminated container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder(); } /** * * *
   * ContainerState holds a possible state of container.
   * Only one of its members may be specified.
   * If none of them is specified, the default one is ContainerStateWaiting.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerState} */ public static final class ContainerState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerState) ContainerStateOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerState.newBuilder() to construct. private ContainerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerState() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerState( 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.V1.ContainerStateWaiting.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = waiting_.toBuilder(); } waiting_ = input.readMessage( io.kubernetes.client.proto.V1.ContainerStateWaiting.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(waiting_); waiting_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.ContainerStateRunning.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = running_.toBuilder(); } running_ = input.readMessage( io.kubernetes.client.proto.V1.ContainerStateRunning.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(running_); running_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = terminated_.toBuilder(); } terminated_ = input.readMessage( io.kubernetes.client.proto.V1.ContainerStateTerminated.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(terminated_); terminated_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ContainerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerState_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerState.class, io.kubernetes.client.proto.V1.ContainerState.Builder.class); } private int bitField0_; public static final int WAITING_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ContainerStateWaiting waiting_; /** * * *
     * Details about a waiting container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public boolean hasWaiting() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Details about a waiting container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public io.kubernetes.client.proto.V1.ContainerStateWaiting getWaiting() { return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_; } /** * * *
     * Details about a waiting container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder getWaitingOrBuilder() { return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_; } public static final int RUNNING_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ContainerStateRunning running_; /** * * *
     * Details about a running container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public boolean hasRunning() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Details about a running container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public io.kubernetes.client.proto.V1.ContainerStateRunning getRunning() { return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_; } /** * * *
     * Details about a running container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder getRunningOrBuilder() { return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_; } public static final int TERMINATED_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ContainerStateTerminated terminated_; /** * * *
     * Details about a terminated container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public boolean hasTerminated() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Details about a terminated container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public io.kubernetes.client.proto.V1.ContainerStateTerminated getTerminated() { return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_; } /** * * *
     * Details about a terminated container
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() { return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_; } 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, getWaiting()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getRunning()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getTerminated()); } 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, getWaiting()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRunning()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTerminated()); } 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.V1.ContainerState)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerState other = (io.kubernetes.client.proto.V1.ContainerState) obj; boolean result = true; result = result && (hasWaiting() == other.hasWaiting()); if (hasWaiting()) { result = result && getWaiting().equals(other.getWaiting()); } result = result && (hasRunning() == other.hasRunning()); if (hasRunning()) { result = result && getRunning().equals(other.getRunning()); } result = result && (hasTerminated() == other.hasTerminated()); if (hasTerminated()) { result = result && getTerminated().equals(other.getTerminated()); } 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 (hasWaiting()) { hash = (37 * hash) + WAITING_FIELD_NUMBER; hash = (53 * hash) + getWaiting().hashCode(); } if (hasRunning()) { hash = (37 * hash) + RUNNING_FIELD_NUMBER; hash = (53 * hash) + getRunning().hashCode(); } if (hasTerminated()) { hash = (37 * hash) + TERMINATED_FIELD_NUMBER; hash = (53 * hash) + getTerminated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerState 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.V1.ContainerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerState 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.V1.ContainerState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerState 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.V1.ContainerState parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerState 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.V1.ContainerState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerState 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.V1.ContainerState 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; } /** * * *
     * ContainerState holds a possible state of container.
     * Only one of its members may be specified.
     * If none of them is specified, the default one is ContainerStateWaiting.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerState) io.kubernetes.client.proto.V1.ContainerStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerState_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerState.class, io.kubernetes.client.proto.V1.ContainerState.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWaitingFieldBuilder(); getRunningFieldBuilder(); getTerminatedFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (waitingBuilder_ == null) { waiting_ = null; } else { waitingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (runningBuilder_ == null) { running_ = null; } else { runningBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (terminatedBuilder_ == null) { terminated_ = null; } else { terminatedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerState_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerState getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerState build() { io.kubernetes.client.proto.V1.ContainerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerState buildPartial() { io.kubernetes.client.proto.V1.ContainerState result = new io.kubernetes.client.proto.V1.ContainerState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (waitingBuilder_ == null) { result.waiting_ = waiting_; } else { result.waiting_ = waitingBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (runningBuilder_ == null) { result.running_ = running_; } else { result.running_ = runningBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (terminatedBuilder_ == null) { result.terminated_ = terminated_; } else { result.terminated_ = terminatedBuilder_.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.V1.ContainerState) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerState) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerState other) { if (other == io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance()) return this; if (other.hasWaiting()) { mergeWaiting(other.getWaiting()); } if (other.hasRunning()) { mergeRunning(other.getRunning()); } if (other.hasTerminated()) { mergeTerminated(other.getTerminated()); } 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.V1.ContainerState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ContainerStateWaiting waiting_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateWaiting, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder, io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder> waitingBuilder_; /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public boolean hasWaiting() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public io.kubernetes.client.proto.V1.ContainerStateWaiting getWaiting() { if (waitingBuilder_ == null) { return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_; } else { return waitingBuilder_.getMessage(); } } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public Builder setWaiting(io.kubernetes.client.proto.V1.ContainerStateWaiting value) { if (waitingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } waiting_ = value; onChanged(); } else { waitingBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public Builder setWaiting( io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder builderForValue) { if (waitingBuilder_ == null) { waiting_ = builderForValue.build(); onChanged(); } else { waitingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public Builder mergeWaiting(io.kubernetes.client.proto.V1.ContainerStateWaiting value) { if (waitingBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && waiting_ != null && waiting_ != io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance()) { waiting_ = io.kubernetes.client.proto.V1.ContainerStateWaiting.newBuilder(waiting_) .mergeFrom(value) .buildPartial(); } else { waiting_ = value; } onChanged(); } else { waitingBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public Builder clearWaiting() { if (waitingBuilder_ == null) { waiting_ = null; onChanged(); } else { waitingBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder getWaitingBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWaitingFieldBuilder().getBuilder(); } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ public io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder getWaitingOrBuilder() { if (waitingBuilder_ != null) { return waitingBuilder_.getMessageOrBuilder(); } else { return waiting_ == null ? io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance() : waiting_; } } /** * * *
       * Details about a waiting container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateWaiting waiting = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateWaiting, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder, io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder> getWaitingFieldBuilder() { if (waitingBuilder_ == null) { waitingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateWaiting, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder, io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder>( getWaiting(), getParentForChildren(), isClean()); waiting_ = null; } return waitingBuilder_; } private io.kubernetes.client.proto.V1.ContainerStateRunning running_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateRunning, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder, io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder> runningBuilder_; /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public boolean hasRunning() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public io.kubernetes.client.proto.V1.ContainerStateRunning getRunning() { if (runningBuilder_ == null) { return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_; } else { return runningBuilder_.getMessage(); } } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public Builder setRunning(io.kubernetes.client.proto.V1.ContainerStateRunning value) { if (runningBuilder_ == null) { if (value == null) { throw new NullPointerException(); } running_ = value; onChanged(); } else { runningBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public Builder setRunning( io.kubernetes.client.proto.V1.ContainerStateRunning.Builder builderForValue) { if (runningBuilder_ == null) { running_ = builderForValue.build(); onChanged(); } else { runningBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public Builder mergeRunning(io.kubernetes.client.proto.V1.ContainerStateRunning value) { if (runningBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && running_ != null && running_ != io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance()) { running_ = io.kubernetes.client.proto.V1.ContainerStateRunning.newBuilder(running_) .mergeFrom(value) .buildPartial(); } else { running_ = value; } onChanged(); } else { runningBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public Builder clearRunning() { if (runningBuilder_ == null) { running_ = null; onChanged(); } else { runningBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public io.kubernetes.client.proto.V1.ContainerStateRunning.Builder getRunningBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRunningFieldBuilder().getBuilder(); } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ public io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder getRunningOrBuilder() { if (runningBuilder_ != null) { return runningBuilder_.getMessageOrBuilder(); } else { return running_ == null ? io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance() : running_; } } /** * * *
       * Details about a running container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateRunning running = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateRunning, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder, io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder> getRunningFieldBuilder() { if (runningBuilder_ == null) { runningBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateRunning, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder, io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder>( getRunning(), getParentForChildren(), isClean()); running_ = null; } return runningBuilder_; } private io.kubernetes.client.proto.V1.ContainerStateTerminated terminated_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateTerminated, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder, io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder> terminatedBuilder_; /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public boolean hasTerminated() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public io.kubernetes.client.proto.V1.ContainerStateTerminated getTerminated() { if (terminatedBuilder_ == null) { return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_; } else { return terminatedBuilder_.getMessage(); } } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public Builder setTerminated(io.kubernetes.client.proto.V1.ContainerStateTerminated value) { if (terminatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } terminated_ = value; onChanged(); } else { terminatedBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public Builder setTerminated( io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder builderForValue) { if (terminatedBuilder_ == null) { terminated_ = builderForValue.build(); onChanged(); } else { terminatedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public Builder mergeTerminated(io.kubernetes.client.proto.V1.ContainerStateTerminated value) { if (terminatedBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && terminated_ != null && terminated_ != io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance()) { terminated_ = io.kubernetes.client.proto.V1.ContainerStateTerminated.newBuilder(terminated_) .mergeFrom(value) .buildPartial(); } else { terminated_ = value; } onChanged(); } else { terminatedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public Builder clearTerminated() { if (terminatedBuilder_ == null) { terminated_ = null; onChanged(); } else { terminatedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder getTerminatedBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTerminatedFieldBuilder().getBuilder(); } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ public io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder getTerminatedOrBuilder() { if (terminatedBuilder_ != null) { return terminatedBuilder_.getMessageOrBuilder(); } else { return terminated_ == null ? io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance() : terminated_; } } /** * * *
       * Details about a terminated container
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerStateTerminated terminated = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateTerminated, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder, io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder> getTerminatedFieldBuilder() { if (terminatedBuilder_ == null) { terminatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStateTerminated, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder, io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder>( getTerminated(), getParentForChildren(), isClean()); terminated_ = null; } return terminatedBuilder_; } @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.core.v1.ContainerState) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerState) private static final io.kubernetes.client.proto.V1.ContainerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerState(); } public static io.kubernetes.client.proto.V1.ContainerState getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerState(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.V1.ContainerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateRunningOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStateRunning) com.google.protobuf.MessageOrBuilder { /** * * *
     * Time at which the container was last (re-)started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ boolean hasStartedAt(); /** * * *
     * Time at which the container was last (re-)started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ io.kubernetes.client.proto.Meta.Time getStartedAt(); /** * * *
     * Time at which the container was last (re-)started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder(); } /** * * *
   * ContainerStateRunning is a running state of a container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStateRunning} */ public static final class ContainerStateRunning extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStateRunning) ContainerStateRunningOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerStateRunning.newBuilder() to construct. private ContainerStateRunning(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerStateRunning() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerStateRunning( 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 = startedAt_.toBuilder(); } startedAt_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startedAt_); startedAt_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStateRunning_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStateRunning.class, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder.class); } private int bitField0_; public static final int STARTEDAT_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.Time startedAt_; /** * * *
     * Time at which the container was last (re-)started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public boolean hasStartedAt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Time at which the container was last (re-)started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public io.kubernetes.client.proto.Meta.Time getStartedAt() { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } /** * * *
     * Time at which the container was last (re-)started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } 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, getStartedAt()); } 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, getStartedAt()); } 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.V1.ContainerStateRunning)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerStateRunning other = (io.kubernetes.client.proto.V1.ContainerStateRunning) obj; boolean result = true; result = result && (hasStartedAt() == other.hasStartedAt()); if (hasStartedAt()) { result = result && getStartedAt().equals(other.getStartedAt()); } 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 (hasStartedAt()) { hash = (37 * hash) + STARTEDAT_FIELD_NUMBER; hash = (53 * hash) + getStartedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateRunning 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.V1.ContainerStateRunning parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateRunning 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.V1.ContainerStateRunning parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerStateRunning parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateRunning 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.V1.ContainerStateRunning parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateRunning 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.V1.ContainerStateRunning parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateRunning 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.V1.ContainerStateRunning 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; } /** * * *
     * ContainerStateRunning is a running state of a container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStateRunning} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStateRunning) io.kubernetes.client.proto.V1.ContainerStateRunningOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStateRunning_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStateRunning.class, io.kubernetes.client.proto.V1.ContainerStateRunning.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerStateRunning.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartedAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (startedAtBuilder_ == null) { startedAt_ = null; } else { startedAtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateRunning getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateRunning build() { io.kubernetes.client.proto.V1.ContainerStateRunning result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateRunning buildPartial() { io.kubernetes.client.proto.V1.ContainerStateRunning result = new io.kubernetes.client.proto.V1.ContainerStateRunning(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (startedAtBuilder_ == null) { result.startedAt_ = startedAt_; } else { result.startedAt_ = startedAtBuilder_.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.V1.ContainerStateRunning) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerStateRunning) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStateRunning other) { if (other == io.kubernetes.client.proto.V1.ContainerStateRunning.getDefaultInstance()) return this; if (other.hasStartedAt()) { mergeStartedAt(other.getStartedAt()); } 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.V1.ContainerStateRunning parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerStateRunning) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.Time startedAt_ = 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> startedAtBuilder_; /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public boolean hasStartedAt() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public io.kubernetes.client.proto.Meta.Time getStartedAt() { if (startedAtBuilder_ == null) { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } else { return startedAtBuilder_.getMessage(); } } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public Builder setStartedAt(io.kubernetes.client.proto.Meta.Time value) { if (startedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startedAt_ = value; onChanged(); } else { startedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public Builder setStartedAt(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (startedAtBuilder_ == null) { startedAt_ = builderForValue.build(); onChanged(); } else { startedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public Builder mergeStartedAt(io.kubernetes.client.proto.Meta.Time value) { if (startedAtBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && startedAt_ != null && startedAt_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { startedAt_ = io.kubernetes.client.proto.Meta.Time.newBuilder(startedAt_) .mergeFrom(value) .buildPartial(); } else { startedAt_ = value; } onChanged(); } else { startedAtBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public Builder clearStartedAt() { if (startedAtBuilder_ == null) { startedAt_ = null; onChanged(); } else { startedAtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public io.kubernetes.client.proto.Meta.Time.Builder getStartedAtBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStartedAtFieldBuilder().getBuilder(); } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 1; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() { if (startedAtBuilder_ != null) { return startedAtBuilder_.getMessageOrBuilder(); } else { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } } /** * * *
       * Time at which the container was last (re-)started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 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> getStartedAtFieldBuilder() { if (startedAtBuilder_ == null) { startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getStartedAt(), getParentForChildren(), isClean()); startedAt_ = null; } return startedAtBuilder_; } @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.core.v1.ContainerStateRunning) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStateRunning) private static final io.kubernetes.client.proto.V1.ContainerStateRunning DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStateRunning(); } public static io.kubernetes.client.proto.V1.ContainerStateRunning getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerStateRunning parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerStateRunning(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.V1.ContainerStateRunning getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateTerminatedOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStateTerminated) com.google.protobuf.MessageOrBuilder { /** * * *
     * Exit status from the last termination of the container
     * 
* * optional int32 exitCode = 1; */ boolean hasExitCode(); /** * * *
     * Exit status from the last termination of the container
     * 
* * optional int32 exitCode = 1; */ int getExitCode(); /** * * *
     * Signal from the last termination of the container
     * +optional
     * 
* * optional int32 signal = 2; */ boolean hasSignal(); /** * * *
     * Signal from the last termination of the container
     * +optional
     * 
* * optional int32 signal = 2; */ int getSignal(); /** * * *
     * (brief) reason from the last termination of the container
     * +optional
     * 
* * optional string reason = 3; */ boolean hasReason(); /** * * *
     * (brief) reason from the last termination of the container
     * +optional
     * 
* * optional string reason = 3; */ java.lang.String getReason(); /** * * *
     * (brief) reason from the last termination of the container
     * +optional
     * 
* * optional string reason = 3; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * Message regarding the last termination of the container
     * +optional
     * 
* * optional string message = 4; */ boolean hasMessage(); /** * * *
     * Message regarding the last termination of the container
     * +optional
     * 
* * optional string message = 4; */ java.lang.String getMessage(); /** * * *
     * Message regarding the last termination of the container
     * +optional
     * 
* * optional string message = 4; */ com.google.protobuf.ByteString getMessageBytes(); /** * * *
     * Time at which previous execution of the container started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ boolean hasStartedAt(); /** * * *
     * Time at which previous execution of the container started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ io.kubernetes.client.proto.Meta.Time getStartedAt(); /** * * *
     * Time at which previous execution of the container started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder(); /** * * *
     * Time at which the container last terminated
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ boolean hasFinishedAt(); /** * * *
     * Time at which the container last terminated
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ io.kubernetes.client.proto.Meta.Time getFinishedAt(); /** * * *
     * Time at which the container last terminated
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getFinishedAtOrBuilder(); /** * * *
     * Container's ID in the format 'docker://<container_id>'
     * +optional
     * 
* * optional string containerID = 7; */ boolean hasContainerID(); /** * * *
     * Container's ID in the format 'docker://<container_id>'
     * +optional
     * 
* * optional string containerID = 7; */ java.lang.String getContainerID(); /** * * *
     * Container's ID in the format 'docker://<container_id>'
     * +optional
     * 
* * optional string containerID = 7; */ com.google.protobuf.ByteString getContainerIDBytes(); } /** * * *
   * ContainerStateTerminated is a terminated state of a container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStateTerminated} */ public static final class ContainerStateTerminated extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStateTerminated) ContainerStateTerminatedOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerStateTerminated.newBuilder() to construct. private ContainerStateTerminated(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerStateTerminated() { exitCode_ = 0; signal_ = 0; reason_ = ""; message_ = ""; containerID_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerStateTerminated( 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; exitCode_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; signal_ = input.readInt32(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; reason_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; message_ = bs; break; } case 42: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = startedAt_.toBuilder(); } startedAt_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startedAt_); startedAt_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = finishedAt_.toBuilder(); } finishedAt_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(finishedAt_); finishedAt_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; containerID_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStateTerminated_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStateTerminated.class, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder.class); } private int bitField0_; public static final int EXITCODE_FIELD_NUMBER = 1; private int exitCode_; /** * * *
     * Exit status from the last termination of the container
     * 
* * optional int32 exitCode = 1; */ public boolean hasExitCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Exit status from the last termination of the container
     * 
* * optional int32 exitCode = 1; */ public int getExitCode() { return exitCode_; } public static final int SIGNAL_FIELD_NUMBER = 2; private int signal_; /** * * *
     * Signal from the last termination of the container
     * +optional
     * 
* * optional int32 signal = 2; */ public boolean hasSignal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Signal from the last termination of the container
     * +optional
     * 
* * optional int32 signal = 2; */ public int getSignal() { return signal_; } public static final int REASON_FIELD_NUMBER = 3; private volatile java.lang.Object reason_; /** * * *
     * (brief) reason from the last termination of the container
     * +optional
     * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * (brief) reason from the last termination of the container
     * +optional
     * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * (brief) reason from the last termination of the container
     * +optional
     * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 4; private volatile java.lang.Object message_; /** * * *
     * Message regarding the last termination of the container
     * +optional
     * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Message regarding the last termination of the container
     * +optional
     * 
* * optional string message = 4; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } } /** * * *
     * Message regarding the last termination of the container
     * +optional
     * 
* * optional string message = 4; */ 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; } } public static final int STARTEDAT_FIELD_NUMBER = 5; private io.kubernetes.client.proto.Meta.Time startedAt_; /** * * *
     * Time at which previous execution of the container started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public boolean hasStartedAt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Time at which previous execution of the container started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public io.kubernetes.client.proto.Meta.Time getStartedAt() { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } /** * * *
     * Time at which previous execution of the container started
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } public static final int FINISHEDAT_FIELD_NUMBER = 6; private io.kubernetes.client.proto.Meta.Time finishedAt_; /** * * *
     * Time at which the container last terminated
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public boolean hasFinishedAt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Time at which the container last terminated
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public io.kubernetes.client.proto.Meta.Time getFinishedAt() { return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_; } /** * * *
     * Time at which the container last terminated
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getFinishedAtOrBuilder() { return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_; } public static final int CONTAINERID_FIELD_NUMBER = 7; private volatile java.lang.Object containerID_; /** * * *
     * Container's ID in the format 'docker://<container_id>'
     * +optional
     * 
* * optional string containerID = 7; */ public boolean hasContainerID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Container's ID in the format 'docker://<container_id>'
     * +optional
     * 
* * optional string containerID = 7; */ public java.lang.String getContainerID() { java.lang.Object ref = containerID_; 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()) { containerID_ = s; } return s; } } /** * * *
     * Container's ID in the format 'docker://<container_id>'
     * +optional
     * 
* * optional string containerID = 7; */ public com.google.protobuf.ByteString getContainerIDBytes() { java.lang.Object ref = containerID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerID_ = 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.writeInt32(1, exitCode_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, signal_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getStartedAt()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getFinishedAt()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, containerID_); } 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, exitCode_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, signal_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartedAt()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFinishedAt()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, containerID_); } 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.V1.ContainerStateTerminated)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerStateTerminated other = (io.kubernetes.client.proto.V1.ContainerStateTerminated) obj; boolean result = true; result = result && (hasExitCode() == other.hasExitCode()); if (hasExitCode()) { result = result && (getExitCode() == other.getExitCode()); } result = result && (hasSignal() == other.hasSignal()); if (hasSignal()) { result = result && (getSignal() == other.getSignal()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && (hasStartedAt() == other.hasStartedAt()); if (hasStartedAt()) { result = result && getStartedAt().equals(other.getStartedAt()); } result = result && (hasFinishedAt() == other.hasFinishedAt()); if (hasFinishedAt()) { result = result && getFinishedAt().equals(other.getFinishedAt()); } result = result && (hasContainerID() == other.hasContainerID()); if (hasContainerID()) { result = result && getContainerID().equals(other.getContainerID()); } 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 (hasExitCode()) { hash = (37 * hash) + EXITCODE_FIELD_NUMBER; hash = (53 * hash) + getExitCode(); } if (hasSignal()) { hash = (37 * hash) + SIGNAL_FIELD_NUMBER; hash = (53 * hash) + getSignal(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasStartedAt()) { hash = (37 * hash) + STARTEDAT_FIELD_NUMBER; hash = (53 * hash) + getStartedAt().hashCode(); } if (hasFinishedAt()) { hash = (37 * hash) + FINISHEDAT_FIELD_NUMBER; hash = (53 * hash) + getFinishedAt().hashCode(); } if (hasContainerID()) { hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; hash = (53 * hash) + getContainerID().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated 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.V1.ContainerStateTerminated parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated 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.V1.ContainerStateTerminated parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated 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.V1.ContainerStateTerminated parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated 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.V1.ContainerStateTerminated parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated 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.V1.ContainerStateTerminated 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; } /** * * *
     * ContainerStateTerminated is a terminated state of a container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStateTerminated} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStateTerminated) io.kubernetes.client.proto.V1.ContainerStateTerminatedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStateTerminated_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStateTerminated.class, io.kubernetes.client.proto.V1.ContainerStateTerminated.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerStateTerminated.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartedAtFieldBuilder(); getFinishedAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); exitCode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); signal_ = 0; bitField0_ = (bitField0_ & ~0x00000002); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000004); message_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (startedAtBuilder_ == null) { startedAt_ = null; } else { startedAtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (finishedAtBuilder_ == null) { finishedAt_ = null; } else { finishedAtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); containerID_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateTerminated getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateTerminated build() { io.kubernetes.client.proto.V1.ContainerStateTerminated result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateTerminated buildPartial() { io.kubernetes.client.proto.V1.ContainerStateTerminated result = new io.kubernetes.client.proto.V1.ContainerStateTerminated(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.exitCode_ = exitCode_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.signal_ = signal_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.message_ = message_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (startedAtBuilder_ == null) { result.startedAt_ = startedAt_; } else { result.startedAt_ = startedAtBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (finishedAtBuilder_ == null) { result.finishedAt_ = finishedAt_; } else { result.finishedAt_ = finishedAtBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.containerID_ = containerID_; 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.V1.ContainerStateTerminated) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerStateTerminated) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStateTerminated other) { if (other == io.kubernetes.client.proto.V1.ContainerStateTerminated.getDefaultInstance()) return this; if (other.hasExitCode()) { setExitCode(other.getExitCode()); } if (other.hasSignal()) { setSignal(other.getSignal()); } if (other.hasReason()) { bitField0_ |= 0x00000004; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000008; message_ = other.message_; onChanged(); } if (other.hasStartedAt()) { mergeStartedAt(other.getStartedAt()); } if (other.hasFinishedAt()) { mergeFinishedAt(other.getFinishedAt()); } if (other.hasContainerID()) { bitField0_ |= 0x00000040; containerID_ = other.containerID_; 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.V1.ContainerStateTerminated parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerStateTerminated) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int exitCode_; /** * * *
       * Exit status from the last termination of the container
       * 
* * optional int32 exitCode = 1; */ public boolean hasExitCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Exit status from the last termination of the container
       * 
* * optional int32 exitCode = 1; */ public int getExitCode() { return exitCode_; } /** * * *
       * Exit status from the last termination of the container
       * 
* * optional int32 exitCode = 1; */ public Builder setExitCode(int value) { bitField0_ |= 0x00000001; exitCode_ = value; onChanged(); return this; } /** * * *
       * Exit status from the last termination of the container
       * 
* * optional int32 exitCode = 1; */ public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000001); exitCode_ = 0; onChanged(); return this; } private int signal_; /** * * *
       * Signal from the last termination of the container
       * +optional
       * 
* * optional int32 signal = 2; */ public boolean hasSignal() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Signal from the last termination of the container
       * +optional
       * 
* * optional int32 signal = 2; */ public int getSignal() { return signal_; } /** * * *
       * Signal from the last termination of the container
       * +optional
       * 
* * optional int32 signal = 2; */ public Builder setSignal(int value) { bitField0_ |= 0x00000002; signal_ = value; onChanged(); return this; } /** * * *
       * Signal from the last termination of the container
       * +optional
       * 
* * optional int32 signal = 2; */ public Builder clearSignal() { bitField0_ = (bitField0_ & ~0x00000002); signal_ = 0; onChanged(); return this; } private java.lang.Object reason_ = ""; /** * * *
       * (brief) reason from the last termination of the container
       * +optional
       * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * (brief) reason from the last termination of the container
       * +optional
       * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * (brief) reason from the last termination of the container
       * +optional
       * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * (brief) reason from the last termination of the container
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } /** * * *
       * (brief) reason from the last termination of the container
       * +optional
       * 
* * optional string reason = 3; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000004); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * (brief) reason from the last termination of the container
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Message regarding the last termination of the container
       * +optional
       * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Message regarding the last termination of the container
       * +optional
       * 
* * optional string message = 4; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Message regarding the last termination of the container
       * +optional
       * 
* * optional string message = 4; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Message regarding the last termination of the container
       * +optional
       * 
* * optional string message = 4; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; } /** * * *
       * Message regarding the last termination of the container
       * +optional
       * 
* * optional string message = 4; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000008); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Message regarding the last termination of the container
       * +optional
       * 
* * optional string message = 4; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time startedAt_ = 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> startedAtBuilder_; /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public boolean hasStartedAt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public io.kubernetes.client.proto.Meta.Time getStartedAt() { if (startedAtBuilder_ == null) { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } else { return startedAtBuilder_.getMessage(); } } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public Builder setStartedAt(io.kubernetes.client.proto.Meta.Time value) { if (startedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startedAt_ = value; onChanged(); } else { startedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public Builder setStartedAt(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (startedAtBuilder_ == null) { startedAt_ = builderForValue.build(); onChanged(); } else { startedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public Builder mergeStartedAt(io.kubernetes.client.proto.Meta.Time value) { if (startedAtBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && startedAt_ != null && startedAt_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { startedAt_ = io.kubernetes.client.proto.Meta.Time.newBuilder(startedAt_) .mergeFrom(value) .buildPartial(); } else { startedAt_ = value; } onChanged(); } else { startedAtBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public Builder clearStartedAt() { if (startedAtBuilder_ == null) { startedAt_ = null; onChanged(); } else { startedAtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public io.kubernetes.client.proto.Meta.Time.Builder getStartedAtBuilder() { bitField0_ |= 0x00000010; onChanged(); return getStartedAtFieldBuilder().getBuilder(); } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartedAtOrBuilder() { if (startedAtBuilder_ != null) { return startedAtBuilder_.getMessageOrBuilder(); } else { return startedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startedAt_; } } /** * * *
       * Time at which previous execution of the container started
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getStartedAtFieldBuilder() { if (startedAtBuilder_ == null) { startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getStartedAt(), getParentForChildren(), isClean()); startedAt_ = null; } return startedAtBuilder_; } private io.kubernetes.client.proto.Meta.Time finishedAt_ = 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> finishedAtBuilder_; /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public boolean hasFinishedAt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public io.kubernetes.client.proto.Meta.Time getFinishedAt() { if (finishedAtBuilder_ == null) { return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_; } else { return finishedAtBuilder_.getMessage(); } } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public Builder setFinishedAt(io.kubernetes.client.proto.Meta.Time value) { if (finishedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } finishedAt_ = value; onChanged(); } else { finishedAtBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public Builder setFinishedAt(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (finishedAtBuilder_ == null) { finishedAt_ = builderForValue.build(); onChanged(); } else { finishedAtBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public Builder mergeFinishedAt(io.kubernetes.client.proto.Meta.Time value) { if (finishedAtBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && finishedAt_ != null && finishedAt_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { finishedAt_ = io.kubernetes.client.proto.Meta.Time.newBuilder(finishedAt_) .mergeFrom(value) .buildPartial(); } else { finishedAt_ = value; } onChanged(); } else { finishedAtBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public Builder clearFinishedAt() { if (finishedAtBuilder_ == null) { finishedAt_ = null; onChanged(); } else { finishedAtBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public io.kubernetes.client.proto.Meta.Time.Builder getFinishedAtBuilder() { bitField0_ |= 0x00000020; onChanged(); return getFinishedAtFieldBuilder().getBuilder(); } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getFinishedAtOrBuilder() { if (finishedAtBuilder_ != null) { return finishedAtBuilder_.getMessageOrBuilder(); } else { return finishedAt_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : finishedAt_; } } /** * * *
       * Time at which the container last terminated
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getFinishedAtFieldBuilder() { if (finishedAtBuilder_ == null) { finishedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getFinishedAt(), getParentForChildren(), isClean()); finishedAt_ = null; } return finishedAtBuilder_; } private java.lang.Object containerID_ = ""; /** * * *
       * Container's ID in the format 'docker://<container_id>'
       * +optional
       * 
* * optional string containerID = 7; */ public boolean hasContainerID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Container's ID in the format 'docker://<container_id>'
       * +optional
       * 
* * optional string containerID = 7; */ public java.lang.String getContainerID() { java.lang.Object ref = containerID_; 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()) { containerID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Container's ID in the format 'docker://<container_id>'
       * +optional
       * 
* * optional string containerID = 7; */ public com.google.protobuf.ByteString getContainerIDBytes() { java.lang.Object ref = containerID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Container's ID in the format 'docker://<container_id>'
       * +optional
       * 
* * optional string containerID = 7; */ public Builder setContainerID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; containerID_ = value; onChanged(); return this; } /** * * *
       * Container's ID in the format 'docker://<container_id>'
       * +optional
       * 
* * optional string containerID = 7; */ public Builder clearContainerID() { bitField0_ = (bitField0_ & ~0x00000040); containerID_ = getDefaultInstance().getContainerID(); onChanged(); return this; } /** * * *
       * Container's ID in the format 'docker://<container_id>'
       * +optional
       * 
* * optional string containerID = 7; */ public Builder setContainerIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; containerID_ = 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.core.v1.ContainerStateTerminated) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStateTerminated) private static final io.kubernetes.client.proto.V1.ContainerStateTerminated DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStateTerminated(); } public static io.kubernetes.client.proto.V1.ContainerStateTerminated getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerStateTerminated parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerStateTerminated(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.V1.ContainerStateTerminated getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStateWaitingOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStateWaiting) com.google.protobuf.MessageOrBuilder { /** * * *
     * (brief) reason the container is not yet running.
     * +optional
     * 
* * optional string reason = 1; */ boolean hasReason(); /** * * *
     * (brief) reason the container is not yet running.
     * +optional
     * 
* * optional string reason = 1; */ java.lang.String getReason(); /** * * *
     * (brief) reason the container is not yet running.
     * +optional
     * 
* * optional string reason = 1; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * Message regarding why the container is not yet running.
     * +optional
     * 
* * optional string message = 2; */ boolean hasMessage(); /** * * *
     * Message regarding why the container is not yet running.
     * +optional
     * 
* * optional string message = 2; */ java.lang.String getMessage(); /** * * *
     * Message regarding why the container is not yet running.
     * +optional
     * 
* * optional string message = 2; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * ContainerStateWaiting is a waiting state of a container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStateWaiting} */ public static final class ContainerStateWaiting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStateWaiting) ContainerStateWaitingOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerStateWaiting.newBuilder() to construct. private ContainerStateWaiting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerStateWaiting() { reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerStateWaiting( 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; reason_ = bs; 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 .V1 .internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStateWaiting_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStateWaiting.class, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder.class); } private int bitField0_; public static final int REASON_FIELD_NUMBER = 1; private volatile java.lang.Object reason_; /** * * *
     * (brief) reason the container is not yet running.
     * +optional
     * 
* * optional string reason = 1; */ public boolean hasReason() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * (brief) reason the container is not yet running.
     * +optional
     * 
* * optional string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * (brief) reason the container is not yet running.
     * +optional
     * 
* * optional string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * * *
     * Message regarding why the container is not yet running.
     * +optional
     * 
* * optional string message = 2; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Message regarding why the container is not yet running.
     * +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; } } /** * * *
     * Message regarding why the container is not yet running.
     * +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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } 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.GeneratedMessageV3.computeStringSize(1, reason_); } 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.V1.ContainerStateWaiting)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerStateWaiting other = (io.kubernetes.client.proto.V1.ContainerStateWaiting) obj; boolean result = true; result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting 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.V1.ContainerStateWaiting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting 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.V1.ContainerStateWaiting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting 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.V1.ContainerStateWaiting parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting 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.V1.ContainerStateWaiting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting 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.V1.ContainerStateWaiting 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; } /** * * *
     * ContainerStateWaiting is a waiting state of a container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStateWaiting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStateWaiting) io.kubernetes.client.proto.V1.ContainerStateWaitingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStateWaiting_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStateWaiting.class, io.kubernetes.client.proto.V1.ContainerStateWaiting.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerStateWaiting.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(); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000001); message_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateWaiting getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateWaiting build() { io.kubernetes.client.proto.V1.ContainerStateWaiting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStateWaiting buildPartial() { io.kubernetes.client.proto.V1.ContainerStateWaiting result = new io.kubernetes.client.proto.V1.ContainerStateWaiting(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.reason_ = reason_; 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.V1.ContainerStateWaiting) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerStateWaiting) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStateWaiting other) { if (other == io.kubernetes.client.proto.V1.ContainerStateWaiting.getDefaultInstance()) return this; if (other.hasReason()) { bitField0_ |= 0x00000001; reason_ = other.reason_; onChanged(); } 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.V1.ContainerStateWaiting parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerStateWaiting) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object reason_ = ""; /** * * *
       * (brief) reason the container is not yet running.
       * +optional
       * 
* * optional string reason = 1; */ public boolean hasReason() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * (brief) reason the container is not yet running.
       * +optional
       * 
* * optional string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * (brief) reason the container is not yet running.
       * +optional
       * 
* * optional string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * (brief) reason the container is not yet running.
       * +optional
       * 
* * optional string reason = 1; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reason_ = value; onChanged(); return this; } /** * * *
       * (brief) reason the container is not yet running.
       * +optional
       * 
* * optional string reason = 1; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000001); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * (brief) reason the container is not yet running.
       * +optional
       * 
* * optional string reason = 1; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Message regarding why the container is not yet running.
       * +optional
       * 
* * optional string message = 2; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Message regarding why the container is not yet running.
       * +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; } } /** * * *
       * Message regarding why the container is not yet running.
       * +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; } } /** * * *
       * Message regarding why the container is not yet running.
       * +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; } /** * * *
       * Message regarding why the container is not yet running.
       * +optional
       * 
* * optional string message = 2; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Message regarding why the container is not yet running.
       * +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.core.v1.ContainerStateWaiting) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStateWaiting) private static final io.kubernetes.client.proto.V1.ContainerStateWaiting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStateWaiting(); } public static io.kubernetes.client.proto.V1.ContainerStateWaiting getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerStateWaiting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerStateWaiting(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.V1.ContainerStateWaiting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContainerStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ContainerStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * This must be a DNS_LABEL. Each container in a pod must have a unique name.
     * Cannot be updated.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * This must be a DNS_LABEL. Each container in a pod must have a unique name.
     * Cannot be updated.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * This must be a DNS_LABEL. Each container in a pod must have a unique name.
     * Cannot be updated.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Details about the container's current condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ boolean hasState(); /** * * *
     * Details about the container's current condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ io.kubernetes.client.proto.V1.ContainerState getState(); /** * * *
     * Details about the container's current condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ io.kubernetes.client.proto.V1.ContainerStateOrBuilder getStateOrBuilder(); /** * * *
     * Details about the container's last termination condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ boolean hasLastState(); /** * * *
     * Details about the container's last termination condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ io.kubernetes.client.proto.V1.ContainerState getLastState(); /** * * *
     * Details about the container's last termination condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ io.kubernetes.client.proto.V1.ContainerStateOrBuilder getLastStateOrBuilder(); /** * * *
     * Specifies whether the container has passed its readiness probe.
     * 
* * optional bool ready = 4; */ boolean hasReady(); /** * * *
     * Specifies whether the container has passed its readiness probe.
     * 
* * optional bool ready = 4; */ boolean getReady(); /** * * *
     * The number of times the container has been restarted.
     * 
* * optional int32 restartCount = 5; */ boolean hasRestartCount(); /** * * *
     * The number of times the container has been restarted.
     * 
* * optional int32 restartCount = 5; */ int getRestartCount(); /** * * *
     * The image the container is running.
     * More info: https://kubernetes.io/docs/concepts/containers/images.
     * 
* * optional string image = 6; */ boolean hasImage(); /** * * *
     * The image the container is running.
     * More info: https://kubernetes.io/docs/concepts/containers/images.
     * 
* * optional string image = 6; */ java.lang.String getImage(); /** * * *
     * The image the container is running.
     * More info: https://kubernetes.io/docs/concepts/containers/images.
     * 
* * optional string image = 6; */ com.google.protobuf.ByteString getImageBytes(); /** * * *
     * ImageID of the container's image.
     * 
* * optional string imageID = 7; */ boolean hasImageID(); /** * * *
     * ImageID of the container's image.
     * 
* * optional string imageID = 7; */ java.lang.String getImageID(); /** * * *
     * ImageID of the container's image.
     * 
* * optional string imageID = 7; */ com.google.protobuf.ByteString getImageIDBytes(); /** * * *
     * Container's ID in the format 'docker://<container_id>'.
     * +optional
     * 
* * optional string containerID = 8; */ boolean hasContainerID(); /** * * *
     * Container's ID in the format 'docker://<container_id>'.
     * +optional
     * 
* * optional string containerID = 8; */ java.lang.String getContainerID(); /** * * *
     * Container's ID in the format 'docker://<container_id>'.
     * +optional
     * 
* * optional string containerID = 8; */ com.google.protobuf.ByteString getContainerIDBytes(); /** * * *
     * Specifies whether the container has passed its startup probe.
     * Initialized as false, becomes true after startupProbe is considered successful.
     * Resets to false when the container is restarted, or if kubelet loses state temporarily.
     * Is always true when no startupProbe is defined.
     * +optional
     * 
* * optional bool started = 9; */ boolean hasStarted(); /** * * *
     * Specifies whether the container has passed its startup probe.
     * Initialized as false, becomes true after startupProbe is considered successful.
     * Resets to false when the container is restarted, or if kubelet loses state temporarily.
     * Is always true when no startupProbe is defined.
     * +optional
     * 
* * optional bool started = 9; */ boolean getStarted(); } /** * * *
   * ContainerStatus contains details for the current status of this container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStatus} */ public static final class ContainerStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ContainerStatus) ContainerStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ContainerStatus.newBuilder() to construct. private ContainerStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContainerStatus() { name_ = ""; ready_ = false; restartCount_ = 0; image_ = ""; imageID_ = ""; containerID_ = ""; started_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerStatus( 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: { io.kubernetes.client.proto.V1.ContainerState.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = state_.toBuilder(); } state_ = input.readMessage( io.kubernetes.client.proto.V1.ContainerState.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(state_); state_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ContainerState.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastState_.toBuilder(); } lastState_ = input.readMessage( io.kubernetes.client.proto.V1.ContainerState.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastState_); lastState_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; ready_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000010; restartCount_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; image_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; imageID_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; containerID_ = bs; break; } case 72: { bitField0_ |= 0x00000100; started_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStatus.class, io.kubernetes.client.proto.V1.ContainerStatus.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * This must be a DNS_LABEL. Each container in a pod must have a unique name.
     * Cannot be updated.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * This must be a DNS_LABEL. Each container in a pod must have a unique name.
     * Cannot be updated.
     * 
* * 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 must be a DNS_LABEL. Each container in a pod must have a unique name.
     * Cannot be updated.
     * 
* * 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 STATE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ContainerState state_; /** * * *
     * Details about the container's current condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Details about the container's current condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public io.kubernetes.client.proto.V1.ContainerState getState() { return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_; } /** * * *
     * Details about the container's current condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getStateOrBuilder() { return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_; } public static final int LASTSTATE_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ContainerState lastState_; /** * * *
     * Details about the container's last termination condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public boolean hasLastState() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Details about the container's last termination condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public io.kubernetes.client.proto.V1.ContainerState getLastState() { return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_; } /** * * *
     * Details about the container's last termination condition.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getLastStateOrBuilder() { return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_; } public static final int READY_FIELD_NUMBER = 4; private boolean ready_; /** * * *
     * Specifies whether the container has passed its readiness probe.
     * 
* * optional bool ready = 4; */ public boolean hasReady() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Specifies whether the container has passed its readiness probe.
     * 
* * optional bool ready = 4; */ public boolean getReady() { return ready_; } public static final int RESTARTCOUNT_FIELD_NUMBER = 5; private int restartCount_; /** * * *
     * The number of times the container has been restarted.
     * 
* * optional int32 restartCount = 5; */ public boolean hasRestartCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * The number of times the container has been restarted.
     * 
* * optional int32 restartCount = 5; */ public int getRestartCount() { return restartCount_; } public static final int IMAGE_FIELD_NUMBER = 6; private volatile java.lang.Object image_; /** * * *
     * The image the container is running.
     * More info: https://kubernetes.io/docs/concepts/containers/images.
     * 
* * optional string image = 6; */ public boolean hasImage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * The image the container is running.
     * More info: https://kubernetes.io/docs/concepts/containers/images.
     * 
* * optional string image = 6; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } } /** * * *
     * The image the container is running.
     * More info: https://kubernetes.io/docs/concepts/containers/images.
     * 
* * optional string image = 6; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGEID_FIELD_NUMBER = 7; private volatile java.lang.Object imageID_; /** * * *
     * ImageID of the container's image.
     * 
* * optional string imageID = 7; */ public boolean hasImageID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * ImageID of the container's image.
     * 
* * optional string imageID = 7; */ public java.lang.String getImageID() { java.lang.Object ref = imageID_; 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()) { imageID_ = s; } return s; } } /** * * *
     * ImageID of the container's image.
     * 
* * optional string imageID = 7; */ public com.google.protobuf.ByteString getImageIDBytes() { java.lang.Object ref = imageID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTAINERID_FIELD_NUMBER = 8; private volatile java.lang.Object containerID_; /** * * *
     * Container's ID in the format 'docker://<container_id>'.
     * +optional
     * 
* * optional string containerID = 8; */ public boolean hasContainerID() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * Container's ID in the format 'docker://<container_id>'.
     * +optional
     * 
* * optional string containerID = 8; */ public java.lang.String getContainerID() { java.lang.Object ref = containerID_; 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()) { containerID_ = s; } return s; } } /** * * *
     * Container's ID in the format 'docker://<container_id>'.
     * +optional
     * 
* * optional string containerID = 8; */ public com.google.protobuf.ByteString getContainerIDBytes() { java.lang.Object ref = containerID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STARTED_FIELD_NUMBER = 9; private boolean started_; /** * * *
     * Specifies whether the container has passed its startup probe.
     * Initialized as false, becomes true after startupProbe is considered successful.
     * Resets to false when the container is restarted, or if kubelet loses state temporarily.
     * Is always true when no startupProbe is defined.
     * +optional
     * 
* * optional bool started = 9; */ public boolean hasStarted() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Specifies whether the container has passed its startup probe.
     * Initialized as false, becomes true after startupProbe is considered successful.
     * Resets to false when the container is restarted, or if kubelet loses state temporarily.
     * Is always true when no startupProbe is defined.
     * +optional
     * 
* * optional bool started = 9; */ public boolean getStarted() { return started_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getState()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastState()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, ready_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, restartCount_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, image_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, imageID_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, containerID_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(9, started_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastState()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, ready_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, restartCount_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, image_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, imageID_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, containerID_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, started_); } 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.V1.ContainerStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ContainerStatus other = (io.kubernetes.client.proto.V1.ContainerStatus) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasState() == other.hasState()); if (hasState()) { result = result && getState().equals(other.getState()); } result = result && (hasLastState() == other.hasLastState()); if (hasLastState()) { result = result && getLastState().equals(other.getLastState()); } result = result && (hasReady() == other.hasReady()); if (hasReady()) { result = result && (getReady() == other.getReady()); } result = result && (hasRestartCount() == other.hasRestartCount()); if (hasRestartCount()) { result = result && (getRestartCount() == other.getRestartCount()); } result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && (hasImageID() == other.hasImageID()); if (hasImageID()) { result = result && getImageID().equals(other.getImageID()); } result = result && (hasContainerID() == other.hasContainerID()); if (hasContainerID()) { result = result && getContainerID().equals(other.getContainerID()); } result = result && (hasStarted() == other.hasStarted()); if (hasStarted()) { result = result && (getStarted() == other.getStarted()); } 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 (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } if (hasLastState()) { hash = (37 * hash) + LASTSTATE_FIELD_NUMBER; hash = (53 * hash) + getLastState().hashCode(); } if (hasReady()) { hash = (37 * hash) + READY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReady()); } if (hasRestartCount()) { hash = (37 * hash) + RESTARTCOUNT_FIELD_NUMBER; hash = (53 * hash) + getRestartCount(); } if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (hasImageID()) { hash = (37 * hash) + IMAGEID_FIELD_NUMBER; hash = (53 * hash) + getImageID().hashCode(); } if (hasContainerID()) { hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; hash = (53 * hash) + getContainerID().hashCode(); } if (hasStarted()) { hash = (37 * hash) + STARTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStarted()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStatus 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.V1.ContainerStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStatus 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.V1.ContainerStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ContainerStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStatus 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.V1.ContainerStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStatus 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.V1.ContainerStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ContainerStatus 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.V1.ContainerStatus 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; } /** * * *
     * ContainerStatus contains details for the current status of this container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ContainerStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ContainerStatus) io.kubernetes.client.proto.V1.ContainerStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ContainerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ContainerStatus.class, io.kubernetes.client.proto.V1.ContainerStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ContainerStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStateFieldBuilder(); getLastStateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (stateBuilder_ == null) { state_ = null; } else { stateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (lastStateBuilder_ == null) { lastState_ = null; } else { lastStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); ready_ = false; bitField0_ = (bitField0_ & ~0x00000008); restartCount_ = 0; bitField0_ = (bitField0_ & ~0x00000010); image_ = ""; bitField0_ = (bitField0_ & ~0x00000020); imageID_ = ""; bitField0_ = (bitField0_ & ~0x00000040); containerID_ = ""; bitField0_ = (bitField0_ & ~0x00000080); started_ = false; bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStatus build() { io.kubernetes.client.proto.V1.ContainerStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ContainerStatus buildPartial() { io.kubernetes.client.proto.V1.ContainerStatus result = new io.kubernetes.client.proto.V1.ContainerStatus(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; } if (stateBuilder_ == null) { result.state_ = state_; } else { result.state_ = stateBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastStateBuilder_ == null) { result.lastState_ = lastState_; } else { result.lastState_ = lastStateBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.ready_ = ready_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.restartCount_ = restartCount_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.image_ = image_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.imageID_ = imageID_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.containerID_ = containerID_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.started_ = started_; 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.V1.ContainerStatus) { return mergeFrom((io.kubernetes.client.proto.V1.ContainerStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ContainerStatus other) { if (other == io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasState()) { mergeState(other.getState()); } if (other.hasLastState()) { mergeLastState(other.getLastState()); } if (other.hasReady()) { setReady(other.getReady()); } if (other.hasRestartCount()) { setRestartCount(other.getRestartCount()); } if (other.hasImage()) { bitField0_ |= 0x00000020; image_ = other.image_; onChanged(); } if (other.hasImageID()) { bitField0_ |= 0x00000040; imageID_ = other.imageID_; onChanged(); } if (other.hasContainerID()) { bitField0_ |= 0x00000080; containerID_ = other.containerID_; onChanged(); } if (other.hasStarted()) { setStarted(other.getStarted()); } 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.V1.ContainerStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ContainerStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * This must be a DNS_LABEL. Each container in a pod must have a unique name.
       * Cannot be updated.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * This must be a DNS_LABEL. Each container in a pod must have a unique name.
       * Cannot be updated.
       * 
* * 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 must be a DNS_LABEL. Each container in a pod must have a unique name.
       * Cannot be updated.
       * 
* * 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 must be a DNS_LABEL. Each container in a pod must have a unique name.
       * Cannot be updated.
       * 
* * 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 must be a DNS_LABEL. Each container in a pod must have a unique name.
       * Cannot be updated.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * This must be a DNS_LABEL. Each container in a pod must have a unique name.
       * Cannot be updated.
       * 
* * 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 io.kubernetes.client.proto.V1.ContainerState state_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder> stateBuilder_; /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public io.kubernetes.client.proto.V1.ContainerState getState() { if (stateBuilder_ == null) { return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public Builder setState(io.kubernetes.client.proto.V1.ContainerState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } state_ = value; onChanged(); } else { stateBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public Builder setState( io.kubernetes.client.proto.V1.ContainerState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); } else { stateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public Builder mergeState(io.kubernetes.client.proto.V1.ContainerState value) { if (stateBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && state_ != null && state_ != io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance()) { state_ = io.kubernetes.client.proto.V1.ContainerState.newBuilder(state_) .mergeFrom(value) .buildPartial(); } else { state_ = value; } onChanged(); } else { stateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public Builder clearState() { if (stateBuilder_ == null) { state_ = null; onChanged(); } else { stateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public io.kubernetes.client.proto.V1.ContainerState.Builder getStateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStateFieldBuilder().getBuilder(); } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { return state_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : state_; } } /** * * *
       * Details about the container's current condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder>( getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } private io.kubernetes.client.proto.V1.ContainerState lastState_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder> lastStateBuilder_; /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public boolean hasLastState() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public io.kubernetes.client.proto.V1.ContainerState getLastState() { if (lastStateBuilder_ == null) { return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_; } else { return lastStateBuilder_.getMessage(); } } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public Builder setLastState(io.kubernetes.client.proto.V1.ContainerState value) { if (lastStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastState_ = value; onChanged(); } else { lastStateBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public Builder setLastState( io.kubernetes.client.proto.V1.ContainerState.Builder builderForValue) { if (lastStateBuilder_ == null) { lastState_ = builderForValue.build(); onChanged(); } else { lastStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public Builder mergeLastState(io.kubernetes.client.proto.V1.ContainerState value) { if (lastStateBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastState_ != null && lastState_ != io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance()) { lastState_ = io.kubernetes.client.proto.V1.ContainerState.newBuilder(lastState_) .mergeFrom(value) .buildPartial(); } else { lastState_ = value; } onChanged(); } else { lastStateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public Builder clearLastState() { if (lastStateBuilder_ == null) { lastState_ = null; onChanged(); } else { lastStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public io.kubernetes.client.proto.V1.ContainerState.Builder getLastStateBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastStateFieldBuilder().getBuilder(); } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ public io.kubernetes.client.proto.V1.ContainerStateOrBuilder getLastStateOrBuilder() { if (lastStateBuilder_ != null) { return lastStateBuilder_.getMessageOrBuilder(); } else { return lastState_ == null ? io.kubernetes.client.proto.V1.ContainerState.getDefaultInstance() : lastState_; } } /** * * *
       * Details about the container's last termination condition.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ContainerState lastState = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder> getLastStateFieldBuilder() { if (lastStateBuilder_ == null) { lastStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerState, io.kubernetes.client.proto.V1.ContainerState.Builder, io.kubernetes.client.proto.V1.ContainerStateOrBuilder>( getLastState(), getParentForChildren(), isClean()); lastState_ = null; } return lastStateBuilder_; } private boolean ready_; /** * * *
       * Specifies whether the container has passed its readiness probe.
       * 
* * optional bool ready = 4; */ public boolean hasReady() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Specifies whether the container has passed its readiness probe.
       * 
* * optional bool ready = 4; */ public boolean getReady() { return ready_; } /** * * *
       * Specifies whether the container has passed its readiness probe.
       * 
* * optional bool ready = 4; */ public Builder setReady(boolean value) { bitField0_ |= 0x00000008; ready_ = value; onChanged(); return this; } /** * * *
       * Specifies whether the container has passed its readiness probe.
       * 
* * optional bool ready = 4; */ public Builder clearReady() { bitField0_ = (bitField0_ & ~0x00000008); ready_ = false; onChanged(); return this; } private int restartCount_; /** * * *
       * The number of times the container has been restarted.
       * 
* * optional int32 restartCount = 5; */ public boolean hasRestartCount() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The number of times the container has been restarted.
       * 
* * optional int32 restartCount = 5; */ public int getRestartCount() { return restartCount_; } /** * * *
       * The number of times the container has been restarted.
       * 
* * optional int32 restartCount = 5; */ public Builder setRestartCount(int value) { bitField0_ |= 0x00000010; restartCount_ = value; onChanged(); return this; } /** * * *
       * The number of times the container has been restarted.
       * 
* * optional int32 restartCount = 5; */ public Builder clearRestartCount() { bitField0_ = (bitField0_ & ~0x00000010); restartCount_ = 0; onChanged(); return this; } private java.lang.Object image_ = ""; /** * * *
       * The image the container is running.
       * More info: https://kubernetes.io/docs/concepts/containers/images.
       * 
* * optional string image = 6; */ public boolean hasImage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * The image the container is running.
       * More info: https://kubernetes.io/docs/concepts/containers/images.
       * 
* * optional string image = 6; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The image the container is running.
       * More info: https://kubernetes.io/docs/concepts/containers/images.
       * 
* * optional string image = 6; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The image the container is running.
       * More info: https://kubernetes.io/docs/concepts/containers/images.
       * 
* * optional string image = 6; */ public Builder setImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; image_ = value; onChanged(); return this; } /** * * *
       * The image the container is running.
       * More info: https://kubernetes.io/docs/concepts/containers/images.
       * 
* * optional string image = 6; */ public Builder clearImage() { bitField0_ = (bitField0_ & ~0x00000020); image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** * * *
       * The image the container is running.
       * More info: https://kubernetes.io/docs/concepts/containers/images.
       * 
* * optional string image = 6; */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; image_ = value; onChanged(); return this; } private java.lang.Object imageID_ = ""; /** * * *
       * ImageID of the container's image.
       * 
* * optional string imageID = 7; */ public boolean hasImageID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * ImageID of the container's image.
       * 
* * optional string imageID = 7; */ public java.lang.String getImageID() { java.lang.Object ref = imageID_; 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()) { imageID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ImageID of the container's image.
       * 
* * optional string imageID = 7; */ public com.google.protobuf.ByteString getImageIDBytes() { java.lang.Object ref = imageID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ImageID of the container's image.
       * 
* * optional string imageID = 7; */ public Builder setImageID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; imageID_ = value; onChanged(); return this; } /** * * *
       * ImageID of the container's image.
       * 
* * optional string imageID = 7; */ public Builder clearImageID() { bitField0_ = (bitField0_ & ~0x00000040); imageID_ = getDefaultInstance().getImageID(); onChanged(); return this; } /** * * *
       * ImageID of the container's image.
       * 
* * optional string imageID = 7; */ public Builder setImageIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; imageID_ = value; onChanged(); return this; } private java.lang.Object containerID_ = ""; /** * * *
       * Container's ID in the format 'docker://<container_id>'.
       * +optional
       * 
* * optional string containerID = 8; */ public boolean hasContainerID() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * Container's ID in the format 'docker://<container_id>'.
       * +optional
       * 
* * optional string containerID = 8; */ public java.lang.String getContainerID() { java.lang.Object ref = containerID_; 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()) { containerID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Container's ID in the format 'docker://<container_id>'.
       * +optional
       * 
* * optional string containerID = 8; */ public com.google.protobuf.ByteString getContainerIDBytes() { java.lang.Object ref = containerID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Container's ID in the format 'docker://<container_id>'.
       * +optional
       * 
* * optional string containerID = 8; */ public Builder setContainerID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; containerID_ = value; onChanged(); return this; } /** * * *
       * Container's ID in the format 'docker://<container_id>'.
       * +optional
       * 
* * optional string containerID = 8; */ public Builder clearContainerID() { bitField0_ = (bitField0_ & ~0x00000080); containerID_ = getDefaultInstance().getContainerID(); onChanged(); return this; } /** * * *
       * Container's ID in the format 'docker://<container_id>'.
       * +optional
       * 
* * optional string containerID = 8; */ public Builder setContainerIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; containerID_ = value; onChanged(); return this; } private boolean started_; /** * * *
       * Specifies whether the container has passed its startup probe.
       * Initialized as false, becomes true after startupProbe is considered successful.
       * Resets to false when the container is restarted, or if kubelet loses state temporarily.
       * Is always true when no startupProbe is defined.
       * +optional
       * 
* * optional bool started = 9; */ public boolean hasStarted() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Specifies whether the container has passed its startup probe.
       * Initialized as false, becomes true after startupProbe is considered successful.
       * Resets to false when the container is restarted, or if kubelet loses state temporarily.
       * Is always true when no startupProbe is defined.
       * +optional
       * 
* * optional bool started = 9; */ public boolean getStarted() { return started_; } /** * * *
       * Specifies whether the container has passed its startup probe.
       * Initialized as false, becomes true after startupProbe is considered successful.
       * Resets to false when the container is restarted, or if kubelet loses state temporarily.
       * Is always true when no startupProbe is defined.
       * +optional
       * 
* * optional bool started = 9; */ public Builder setStarted(boolean value) { bitField0_ |= 0x00000100; started_ = value; onChanged(); return this; } /** * * *
       * Specifies whether the container has passed its startup probe.
       * Initialized as false, becomes true after startupProbe is considered successful.
       * Resets to false when the container is restarted, or if kubelet loses state temporarily.
       * Is always true when no startupProbe is defined.
       * +optional
       * 
* * optional bool started = 9; */ public Builder clearStarted() { bitField0_ = (bitField0_ & ~0x00000100); started_ = 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.core.v1.ContainerStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ContainerStatus) private static final io.kubernetes.client.proto.V1.ContainerStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ContainerStatus(); } public static io.kubernetes.client.proto.V1.ContainerStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ContainerStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerStatus(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.V1.ContainerStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DaemonEndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.DaemonEndpoint) com.google.protobuf.MessageOrBuilder { /** * * *
     * Port number of the given endpoint.
     * 
* * optional int32 Port = 1; */ boolean hasPort(); /** * * *
     * Port number of the given endpoint.
     * 
* * optional int32 Port = 1; */ int getPort(); } /** * * *
   * DaemonEndpoint contains information about a single Daemon endpoint.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.DaemonEndpoint} */ public static final class DaemonEndpoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.DaemonEndpoint) DaemonEndpointOrBuilder { private static final long serialVersionUID = 0L; // Use DaemonEndpoint.newBuilder() to construct. private DaemonEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DaemonEndpoint() { port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DaemonEndpoint( 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; port_ = input.readInt32(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DaemonEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DaemonEndpoint.class, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder.class); } private int bitField0_; public static final int PORT_FIELD_NUMBER = 1; private int port_; /** * * *
     * Port number of the given endpoint.
     * 
* * optional int32 Port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Port number of the given endpoint.
     * 
* * optional int32 Port = 1; */ public int getPort() { return port_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, port_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, port_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.DaemonEndpoint)) { return super.equals(obj); } io.kubernetes.client.proto.V1.DaemonEndpoint other = (io.kubernetes.client.proto.V1.DaemonEndpoint) obj; boolean result = true; result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DaemonEndpoint 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.V1.DaemonEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DaemonEndpoint 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.V1.DaemonEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.DaemonEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DaemonEndpoint 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.V1.DaemonEndpoint parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DaemonEndpoint 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.V1.DaemonEndpoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DaemonEndpoint 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.V1.DaemonEndpoint 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; } /** * * *
     * DaemonEndpoint contains information about a single Daemon endpoint.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.DaemonEndpoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.DaemonEndpoint) io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DaemonEndpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DaemonEndpoint.class, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder.class); } // Construct using io.kubernetes.client.proto.V1.DaemonEndpoint.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(); port_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.DaemonEndpoint getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.DaemonEndpoint build() { io.kubernetes.client.proto.V1.DaemonEndpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.DaemonEndpoint buildPartial() { io.kubernetes.client.proto.V1.DaemonEndpoint result = new io.kubernetes.client.proto.V1.DaemonEndpoint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.port_ = port_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.DaemonEndpoint) { return mergeFrom((io.kubernetes.client.proto.V1.DaemonEndpoint) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.DaemonEndpoint other) { if (other == io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance()) return this; if (other.hasPort()) { setPort(other.getPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.DaemonEndpoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.DaemonEndpoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int port_; /** * * *
       * Port number of the given endpoint.
       * 
* * optional int32 Port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Port number of the given endpoint.
       * 
* * optional int32 Port = 1; */ public int getPort() { return port_; } /** * * *
       * Port number of the given endpoint.
       * 
* * optional int32 Port = 1; */ public Builder setPort(int value) { bitField0_ |= 0x00000001; port_ = value; onChanged(); return this; } /** * * *
       * Port number of the given endpoint.
       * 
* * optional int32 Port = 1; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.DaemonEndpoint) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.DaemonEndpoint) private static final io.kubernetes.client.proto.V1.DaemonEndpoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.DaemonEndpoint(); } public static io.kubernetes.client.proto.V1.DaemonEndpoint getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DaemonEndpoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DaemonEndpoint(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.V1.DaemonEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DownwardAPIProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.DownwardAPIProjection) com.google.protobuf.MessageOrBuilder { /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ java.util.List getItemsList(); /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getItems(int index); /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ int getItemsCount(); /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder getItemsOrBuilder(int index); } /** * * *
   * Represents downward API info for projecting into a projected volume.
   * Note that this is identical to a downwardAPI volume source without the default
   * mode.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.DownwardAPIProjection} */ public static final class DownwardAPIProjection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.DownwardAPIProjection) DownwardAPIProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use DownwardAPIProjection.newBuilder() to construct. private DownwardAPIProjection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DownwardAPIProjection() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DownwardAPIProjection( 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)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile>(); mutable_bitField0_ |= 0x00000001; } items_.add( input.readMessage( io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.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)) { 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 .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DownwardAPIProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DownwardAPIProjection.class, io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; private java.util.List items_; /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getItems(int index) { return items_.get(index); } /** * * *
     * Items is a list of DownwardAPIVolume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder 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 { for (int i = 0; i < items_.size(); i++) { output.writeMessage(1, items_.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 < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, 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.V1.DownwardAPIProjection)) { return super.equals(obj); } io.kubernetes.client.proto.V1.DownwardAPIProjection other = (io.kubernetes.client.proto.V1.DownwardAPIProjection) obj; boolean result = true; result = result && getItemsList().equals(other.getItemsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.DownwardAPIProjection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection 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.V1.DownwardAPIProjection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection 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.V1.DownwardAPIProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection 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.V1.DownwardAPIProjection parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection 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.V1.DownwardAPIProjection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection 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.V1.DownwardAPIProjection 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; } /** * * *
     * Represents downward API info for projecting into a projected volume.
     * Note that this is identical to a downwardAPI volume source without the default
     * mode.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.DownwardAPIProjection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.DownwardAPIProjection) io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DownwardAPIProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DownwardAPIProjection.class, io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder.class); } // Construct using io.kubernetes.client.proto.V1.DownwardAPIProjection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { itemsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIProjection_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIProjection getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIProjection build() { io.kubernetes.client.proto.V1.DownwardAPIProjection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIProjection buildPartial() { io.kubernetes.client.proto.V1.DownwardAPIProjection result = new io.kubernetes.client.proto.V1.DownwardAPIProjection(this); int from_bitField0_ = bitField0_; if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000001); } result.items_ = items_; } else { result.items_ = itemsBuilder_.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.V1.DownwardAPIProjection) { return mergeFrom((io.kubernetes.client.proto.V1.DownwardAPIProjection) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.DownwardAPIProjection other) { if (other == io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance()) return this; if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); 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.V1.DownwardAPIProjection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.DownwardAPIProjection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder> itemsBuilder_; /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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 a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems(io.kubernetes.client.proto.V1.DownwardAPIVolumeFile value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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 a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems( io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ 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 a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.getDefaultInstance()); } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.getDefaultInstance()); } /** * * *
       * Items is a list of DownwardAPIVolume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder>( items_, ((bitField0_ & 0x00000001) == 0x00000001), 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.core.v1.DownwardAPIProjection) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.DownwardAPIProjection) private static final io.kubernetes.client.proto.V1.DownwardAPIProjection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.DownwardAPIProjection(); } public static io.kubernetes.client.proto.V1.DownwardAPIProjection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DownwardAPIProjection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DownwardAPIProjection(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.V1.DownwardAPIProjection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DownwardAPIVolumeFileOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.DownwardAPIVolumeFile) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ boolean hasFieldRef(); /** * * *
     * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ io.kubernetes.client.proto.V1.ObjectFieldSelector getFieldRef(); /** * * *
     * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder getFieldRefOrBuilder(); /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ boolean hasResourceFieldRef(); /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ io.kubernetes.client.proto.V1.ResourceFieldSelector getResourceFieldRef(); /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder getResourceFieldRefOrBuilder(); /** * * *
     * Optional: mode bits used to set permissions on this file, must be an octal value
     * between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 4; */ boolean hasMode(); /** * * *
     * Optional: mode bits used to set permissions on this file, must be an octal value
     * between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 4; */ int getMode(); } /** * * *
   * DownwardAPIVolumeFile represents information to create the file containing the pod field
   * 
* * Protobuf type {@code k8s.io.api.core.v1.DownwardAPIVolumeFile} */ public static final class DownwardAPIVolumeFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.DownwardAPIVolumeFile) DownwardAPIVolumeFileOrBuilder { private static final long serialVersionUID = 0L; // Use DownwardAPIVolumeFile.newBuilder() to construct. private DownwardAPIVolumeFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DownwardAPIVolumeFile() { path_ = ""; mode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DownwardAPIVolumeFile( 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; path_ = bs; break; } case 18: { io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = fieldRef_.toBuilder(); } fieldRef_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectFieldSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fieldRef_); fieldRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = resourceFieldRef_.toBuilder(); } resourceFieldRef_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceFieldSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourceFieldRef_); resourceFieldRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; mode_ = 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 .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.class, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELDREF_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ObjectFieldSelector fieldRef_; /** * * *
     * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public boolean hasFieldRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public io.kubernetes.client.proto.V1.ObjectFieldSelector getFieldRef() { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } /** * * *
     * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder getFieldRefOrBuilder() { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } public static final int RESOURCEFIELDREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ResourceFieldSelector resourceFieldRef_; /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public boolean hasResourceFieldRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public io.kubernetes.client.proto.V1.ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder getResourceFieldRefOrBuilder() { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } public static final int MODE_FIELD_NUMBER = 4; private int mode_; /** * * *
     * Optional: mode bits used to set permissions on this file, must be an octal value
     * between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 4; */ public boolean hasMode() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: mode bits used to set permissions on this file, must be an octal value
     * between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 4; */ public int getMode() { return mode_; } 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, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getFieldRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getResourceFieldRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, mode_); } 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, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceFieldRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, mode_); } 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.V1.DownwardAPIVolumeFile)) { return super.equals(obj); } io.kubernetes.client.proto.V1.DownwardAPIVolumeFile other = (io.kubernetes.client.proto.V1.DownwardAPIVolumeFile) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasFieldRef() == other.hasFieldRef()); if (hasFieldRef()) { result = result && getFieldRef().equals(other.getFieldRef()); } result = result && (hasResourceFieldRef() == other.hasResourceFieldRef()); if (hasResourceFieldRef()) { result = result && getResourceFieldRef().equals(other.getResourceFieldRef()); } result = result && (hasMode() == other.hasMode()); if (hasMode()) { result = result && (getMode() == other.getMode()); } 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasFieldRef()) { hash = (37 * hash) + FIELDREF_FIELD_NUMBER; hash = (53 * hash) + getFieldRef().hashCode(); } if (hasResourceFieldRef()) { hash = (37 * hash) + RESOURCEFIELDREF_FIELD_NUMBER; hash = (53 * hash) + getResourceFieldRef().hashCode(); } if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + getMode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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.V1.DownwardAPIVolumeFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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.V1.DownwardAPIVolumeFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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.V1.DownwardAPIVolumeFile parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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.V1.DownwardAPIVolumeFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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.V1.DownwardAPIVolumeFile 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; } /** * * *
     * DownwardAPIVolumeFile represents information to create the file containing the pod field
     * 
* * Protobuf type {@code k8s.io.api.core.v1.DownwardAPIVolumeFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.DownwardAPIVolumeFile) io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.class, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder.class); } // Construct using io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFieldRefFieldBuilder(); getResourceFieldRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (fieldRefBuilder_ == null) { fieldRef_ = null; } else { fieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (resourceFieldRefBuilder_ == null) { resourceFieldRef_ = null; } else { resourceFieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); mode_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile build() { io.kubernetes.client.proto.V1.DownwardAPIVolumeFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile buildPartial() { io.kubernetes.client.proto.V1.DownwardAPIVolumeFile result = new io.kubernetes.client.proto.V1.DownwardAPIVolumeFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (fieldRefBuilder_ == null) { result.fieldRef_ = fieldRef_; } else { result.fieldRef_ = fieldRefBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (resourceFieldRefBuilder_ == null) { result.resourceFieldRef_ = resourceFieldRef_; } else { result.resourceFieldRef_ = resourceFieldRefBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.mode_ = mode_; 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.V1.DownwardAPIVolumeFile) { return mergeFrom((io.kubernetes.client.proto.V1.DownwardAPIVolumeFile) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.DownwardAPIVolumeFile other) { if (other == io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasFieldRef()) { mergeFieldRef(other.getFieldRef()); } if (other.hasResourceFieldRef()) { mergeResourceFieldRef(other.getResourceFieldRef()); } if (other.hasMode()) { setMode(other.getMode()); } 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.V1.DownwardAPIVolumeFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.DownwardAPIVolumeFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.ObjectFieldSelector fieldRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectFieldSelector, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder, io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder> fieldRefBuilder_; /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public boolean hasFieldRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public io.kubernetes.client.proto.V1.ObjectFieldSelector getFieldRef() { if (fieldRefBuilder_ == null) { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } else { return fieldRefBuilder_.getMessage(); } } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public Builder setFieldRef(io.kubernetes.client.proto.V1.ObjectFieldSelector value) { if (fieldRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldRef_ = value; onChanged(); } else { fieldRefBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public Builder setFieldRef( io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder builderForValue) { if (fieldRefBuilder_ == null) { fieldRef_ = builderForValue.build(); onChanged(); } else { fieldRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public Builder mergeFieldRef(io.kubernetes.client.proto.V1.ObjectFieldSelector value) { if (fieldRefBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && fieldRef_ != null && fieldRef_ != io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance()) { fieldRef_ = io.kubernetes.client.proto.V1.ObjectFieldSelector.newBuilder(fieldRef_) .mergeFrom(value) .buildPartial(); } else { fieldRef_ = value; } onChanged(); } else { fieldRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public Builder clearFieldRef() { if (fieldRefBuilder_ == null) { fieldRef_ = null; onChanged(); } else { fieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder getFieldRefBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFieldRefFieldBuilder().getBuilder(); } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ public io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder getFieldRefOrBuilder() { if (fieldRefBuilder_ != null) { return fieldRefBuilder_.getMessageOrBuilder(); } else { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } } /** * * *
       * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectFieldSelector, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder, io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder> getFieldRefFieldBuilder() { if (fieldRefBuilder_ == null) { fieldRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectFieldSelector, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder, io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder>( getFieldRef(), getParentForChildren(), isClean()); fieldRef_ = null; } return fieldRefBuilder_; } private io.kubernetes.client.proto.V1.ResourceFieldSelector resourceFieldRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceFieldSelector, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder, io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder> resourceFieldRefBuilder_; /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public boolean hasResourceFieldRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public io.kubernetes.client.proto.V1.ResourceFieldSelector getResourceFieldRef() { if (resourceFieldRefBuilder_ == null) { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } else { return resourceFieldRefBuilder_.getMessage(); } } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public Builder setResourceFieldRef( io.kubernetes.client.proto.V1.ResourceFieldSelector value) { if (resourceFieldRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceFieldRef_ = value; onChanged(); } else { resourceFieldRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public Builder setResourceFieldRef( io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder builderForValue) { if (resourceFieldRefBuilder_ == null) { resourceFieldRef_ = builderForValue.build(); onChanged(); } else { resourceFieldRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public Builder mergeResourceFieldRef( io.kubernetes.client.proto.V1.ResourceFieldSelector value) { if (resourceFieldRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && resourceFieldRef_ != null && resourceFieldRef_ != io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance()) { resourceFieldRef_ = io.kubernetes.client.proto.V1.ResourceFieldSelector.newBuilder(resourceFieldRef_) .mergeFrom(value) .buildPartial(); } else { resourceFieldRef_ = value; } onChanged(); } else { resourceFieldRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public Builder clearResourceFieldRef() { if (resourceFieldRefBuilder_ == null) { resourceFieldRef_ = null; onChanged(); } else { resourceFieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder getResourceFieldRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceFieldRefFieldBuilder().getBuilder(); } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ public io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder getResourceFieldRefOrBuilder() { if (resourceFieldRefBuilder_ != null) { return resourceFieldRefBuilder_.getMessageOrBuilder(); } else { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceFieldSelector, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder, io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder> getResourceFieldRefFieldBuilder() { if (resourceFieldRefBuilder_ == null) { resourceFieldRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceFieldSelector, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder, io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder>( getResourceFieldRef(), getParentForChildren(), isClean()); resourceFieldRef_ = null; } return resourceFieldRefBuilder_; } private int mode_; /** * * *
       * Optional: mode bits used to set permissions on this file, must be an octal value
       * between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 4; */ public boolean hasMode() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: mode bits used to set permissions on this file, must be an octal value
       * between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 4; */ public int getMode() { return mode_; } /** * * *
       * Optional: mode bits used to set permissions on this file, must be an octal value
       * between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 4; */ public Builder setMode(int value) { bitField0_ |= 0x00000008; mode_ = value; onChanged(); return this; } /** * * *
       * Optional: mode bits used to set permissions on this file, must be an octal value
       * between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 4; */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000008); mode_ = 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.core.v1.DownwardAPIVolumeFile) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.DownwardAPIVolumeFile) private static final io.kubernetes.client.proto.V1.DownwardAPIVolumeFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.DownwardAPIVolumeFile(); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DownwardAPIVolumeFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DownwardAPIVolumeFile(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.V1.DownwardAPIVolumeFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DownwardAPIVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.DownwardAPIVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ java.util.List getItemsList(); /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getItems(int index); /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ int getItemsCount(); /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder getItemsOrBuilder(int index); /** * * *
     * Optional: mode bits to use on created files by default. Must be a
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ boolean hasDefaultMode(); /** * * *
     * Optional: mode bits to use on created files by default. Must be a
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ int getDefaultMode(); } /** * * *
   * DownwardAPIVolumeSource represents a volume containing downward API info.
   * Downward API volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.DownwardAPIVolumeSource} */ public static final class DownwardAPIVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.DownwardAPIVolumeSource) DownwardAPIVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use DownwardAPIVolumeSource.newBuilder() to construct. private DownwardAPIVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DownwardAPIVolumeSource() { items_ = java.util.Collections.emptyList(); defaultMode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DownwardAPIVolumeSource( 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)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile>(); mutable_bitField0_ |= 0x00000001; } items_.add( input.readMessage( io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.PARSER, extensionRegistry)); break; } case 16: { bitField0_ |= 0x00000001; defaultMode_ = 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 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 .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.class, io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder.class); } private int bitField0_; public static final int ITEMS_FIELD_NUMBER = 1; private java.util.List items_; /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getItems(int index) { return items_.get(index); } /** * * *
     * Items is a list of downward API volume file
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder getItemsOrBuilder( int index) { return items_.get(index); } public static final int DEFAULTMODE_FIELD_NUMBER = 2; private int defaultMode_; /** * * *
     * Optional: mode bits to use on created files by default. Must be a
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Optional: mode bits to use on created files by default. Must be a
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ public int getDefaultMode() { return defaultMode_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < items_.size(); i++) { output.writeMessage(1, items_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(2, defaultMode_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, defaultMode_); } 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.V1.DownwardAPIVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.DownwardAPIVolumeSource other = (io.kubernetes.client.proto.V1.DownwardAPIVolumeSource) obj; boolean result = true; result = result && getItemsList().equals(other.getItemsList()); result = result && (hasDefaultMode() == other.hasDefaultMode()); if (hasDefaultMode()) { result = result && (getDefaultMode() == other.getDefaultMode()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } if (hasDefaultMode()) { hash = (37 * hash) + DEFAULTMODE_FIELD_NUMBER; hash = (53 * hash) + getDefaultMode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource 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.V1.DownwardAPIVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource 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.V1.DownwardAPIVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource 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.V1.DownwardAPIVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource 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.V1.DownwardAPIVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource 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.V1.DownwardAPIVolumeSource 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; } /** * * *
     * DownwardAPIVolumeSource represents a volume containing downward API info.
     * Downward API volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.DownwardAPIVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.DownwardAPIVolumeSource) io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.class, io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { itemsBuilder_.clear(); } defaultMode_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIVolumeSource build() { io.kubernetes.client.proto.V1.DownwardAPIVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.DownwardAPIVolumeSource buildPartial() { io.kubernetes.client.proto.V1.DownwardAPIVolumeSource result = new io.kubernetes.client.proto.V1.DownwardAPIVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000001); } result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.defaultMode_ = defaultMode_; 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.V1.DownwardAPIVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.DownwardAPIVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.DownwardAPIVolumeSource other) { if (other == io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance()) return this; if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000001); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } if (other.hasDefaultMode()) { setDefaultMode(other.getDefaultMode()); } 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.V1.DownwardAPIVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.DownwardAPIVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder> itemsBuilder_; /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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 a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems(io.kubernetes.client.proto.V1.DownwardAPIVolumeFile value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile 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 a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems( io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ 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 a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.getDefaultInstance()); } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.getDefaultInstance()); } /** * * *
       * Items is a list of downward API volume file
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.DownwardAPIVolumeFile items = 1; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeFile, io.kubernetes.client.proto.V1.DownwardAPIVolumeFile.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeFileOrBuilder>( items_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private int defaultMode_; /** * * *
       * Optional: mode bits to use on created files by default. Must be a
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Optional: mode bits to use on created files by default. Must be a
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public int getDefaultMode() { return defaultMode_; } /** * * *
       * Optional: mode bits to use on created files by default. Must be a
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public Builder setDefaultMode(int value) { bitField0_ |= 0x00000002; defaultMode_ = value; onChanged(); return this; } /** * * *
       * Optional: mode bits to use on created files by default. Must be a
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public Builder clearDefaultMode() { bitField0_ = (bitField0_ & ~0x00000002); defaultMode_ = 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.core.v1.DownwardAPIVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.DownwardAPIVolumeSource) private static final io.kubernetes.client.proto.V1.DownwardAPIVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.DownwardAPIVolumeSource(); } public static io.kubernetes.client.proto.V1.DownwardAPIVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DownwardAPIVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DownwardAPIVolumeSource(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.V1.DownwardAPIVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmptyDirVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EmptyDirVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * What type of storage medium should back this directory.
     * The default is "" which means to use the node's default medium.
     * Must be an empty string (default) or Memory.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional string medium = 1; */ boolean hasMedium(); /** * * *
     * What type of storage medium should back this directory.
     * The default is "" which means to use the node's default medium.
     * Must be an empty string (default) or Memory.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional string medium = 1; */ java.lang.String getMedium(); /** * * *
     * What type of storage medium should back this directory.
     * The default is "" which means to use the node's default medium.
     * Must be an empty string (default) or Memory.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional string medium = 1; */ com.google.protobuf.ByteString getMediumBytes(); /** * * *
     * Total amount of local storage required for this EmptyDir volume.
     * The size limit is also applicable for memory medium.
     * The maximum usage on memory medium EmptyDir would be the minimum value between
     * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
     * The default is nil which means that the limit is undefined.
     * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ boolean hasSizeLimit(); /** * * *
     * Total amount of local storage required for this EmptyDir volume.
     * The size limit is also applicable for memory medium.
     * The maximum usage on memory medium EmptyDir would be the minimum value between
     * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
     * The default is nil which means that the limit is undefined.
     * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ io.kubernetes.client.proto.Resource.Quantity getSizeLimit(); /** * * *
     * Total amount of local storage required for this EmptyDir volume.
     * The size limit is also applicable for memory medium.
     * The maximum usage on memory medium EmptyDir would be the minimum value between
     * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
     * The default is nil which means that the limit is undefined.
     * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ io.kubernetes.client.proto.Resource.QuantityOrBuilder getSizeLimitOrBuilder(); } /** * * *
   * Represents an empty directory for a pod.
   * Empty directory volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EmptyDirVolumeSource} */ public static final class EmptyDirVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EmptyDirVolumeSource) EmptyDirVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use EmptyDirVolumeSource.newBuilder() to construct. private EmptyDirVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EmptyDirVolumeSource() { medium_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EmptyDirVolumeSource( 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; medium_ = bs; break; } case 18: { io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = sizeLimit_.toBuilder(); } sizeLimit_ = input.readMessage( io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sizeLimit_); sizeLimit_ = 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 .V1 .internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EmptyDirVolumeSource.class, io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder.class); } private int bitField0_; public static final int MEDIUM_FIELD_NUMBER = 1; private volatile java.lang.Object medium_; /** * * *
     * What type of storage medium should back this directory.
     * The default is "" which means to use the node's default medium.
     * Must be an empty string (default) or Memory.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional string medium = 1; */ public boolean hasMedium() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * What type of storage medium should back this directory.
     * The default is "" which means to use the node's default medium.
     * Must be an empty string (default) or Memory.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional string medium = 1; */ public java.lang.String getMedium() { java.lang.Object ref = medium_; 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()) { medium_ = s; } return s; } } /** * * *
     * What type of storage medium should back this directory.
     * The default is "" which means to use the node's default medium.
     * Must be an empty string (default) or Memory.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional string medium = 1; */ public com.google.protobuf.ByteString getMediumBytes() { java.lang.Object ref = medium_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); medium_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZELIMIT_FIELD_NUMBER = 2; private io.kubernetes.client.proto.Resource.Quantity sizeLimit_; /** * * *
     * Total amount of local storage required for this EmptyDir volume.
     * The size limit is also applicable for memory medium.
     * The maximum usage on memory medium EmptyDir would be the minimum value between
     * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
     * The default is nil which means that the limit is undefined.
     * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public boolean hasSizeLimit() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Total amount of local storage required for this EmptyDir volume.
     * The size limit is also applicable for memory medium.
     * The maximum usage on memory medium EmptyDir would be the minimum value between
     * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
     * The default is nil which means that the limit is undefined.
     * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public io.kubernetes.client.proto.Resource.Quantity getSizeLimit() { return sizeLimit_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : sizeLimit_; } /** * * *
     * Total amount of local storage required for this EmptyDir volume.
     * The size limit is also applicable for memory medium.
     * The maximum usage on memory medium EmptyDir would be the minimum value between
     * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
     * The default is nil which means that the limit is undefined.
     * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getSizeLimitOrBuilder() { return sizeLimit_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : sizeLimit_; } 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, medium_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSizeLimit()); } 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, medium_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSizeLimit()); } 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.V1.EmptyDirVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EmptyDirVolumeSource other = (io.kubernetes.client.proto.V1.EmptyDirVolumeSource) obj; boolean result = true; result = result && (hasMedium() == other.hasMedium()); if (hasMedium()) { result = result && getMedium().equals(other.getMedium()); } result = result && (hasSizeLimit() == other.hasSizeLimit()); if (hasSizeLimit()) { result = result && getSizeLimit().equals(other.getSizeLimit()); } 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 (hasMedium()) { hash = (37 * hash) + MEDIUM_FIELD_NUMBER; hash = (53 * hash) + getMedium().hashCode(); } if (hasSizeLimit()) { hash = (37 * hash) + SIZELIMIT_FIELD_NUMBER; hash = (53 * hash) + getSizeLimit().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource 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.V1.EmptyDirVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource 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.V1.EmptyDirVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource 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.V1.EmptyDirVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource 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.V1.EmptyDirVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource 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.V1.EmptyDirVolumeSource 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; } /** * * *
     * Represents an empty directory for a pod.
     * Empty directory volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EmptyDirVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EmptyDirVolumeSource) io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EmptyDirVolumeSource.class, io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EmptyDirVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSizeLimitFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); medium_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (sizeLimitBuilder_ == null) { sizeLimit_ = null; } else { sizeLimitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EmptyDirVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EmptyDirVolumeSource build() { io.kubernetes.client.proto.V1.EmptyDirVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EmptyDirVolumeSource buildPartial() { io.kubernetes.client.proto.V1.EmptyDirVolumeSource result = new io.kubernetes.client.proto.V1.EmptyDirVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.medium_ = medium_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (sizeLimitBuilder_ == null) { result.sizeLimit_ = sizeLimit_; } else { result.sizeLimit_ = sizeLimitBuilder_.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.V1.EmptyDirVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.EmptyDirVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EmptyDirVolumeSource other) { if (other == io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance()) return this; if (other.hasMedium()) { bitField0_ |= 0x00000001; medium_ = other.medium_; onChanged(); } if (other.hasSizeLimit()) { mergeSizeLimit(other.getSizeLimit()); } 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.V1.EmptyDirVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EmptyDirVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object medium_ = ""; /** * * *
       * What type of storage medium should back this directory.
       * The default is "" which means to use the node's default medium.
       * Must be an empty string (default) or Memory.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional string medium = 1; */ public boolean hasMedium() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * What type of storage medium should back this directory.
       * The default is "" which means to use the node's default medium.
       * Must be an empty string (default) or Memory.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional string medium = 1; */ public java.lang.String getMedium() { java.lang.Object ref = medium_; 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()) { medium_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * What type of storage medium should back this directory.
       * The default is "" which means to use the node's default medium.
       * Must be an empty string (default) or Memory.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional string medium = 1; */ public com.google.protobuf.ByteString getMediumBytes() { java.lang.Object ref = medium_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); medium_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * What type of storage medium should back this directory.
       * The default is "" which means to use the node's default medium.
       * Must be an empty string (default) or Memory.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional string medium = 1; */ public Builder setMedium(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; medium_ = value; onChanged(); return this; } /** * * *
       * What type of storage medium should back this directory.
       * The default is "" which means to use the node's default medium.
       * Must be an empty string (default) or Memory.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional string medium = 1; */ public Builder clearMedium() { bitField0_ = (bitField0_ & ~0x00000001); medium_ = getDefaultInstance().getMedium(); onChanged(); return this; } /** * * *
       * What type of storage medium should back this directory.
       * The default is "" which means to use the node's default medium.
       * Must be an empty string (default) or Memory.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional string medium = 1; */ public Builder setMediumBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; medium_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Resource.Quantity sizeLimit_ = 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> sizeLimitBuilder_; /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public boolean hasSizeLimit() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public io.kubernetes.client.proto.Resource.Quantity getSizeLimit() { if (sizeLimitBuilder_ == null) { return sizeLimit_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : sizeLimit_; } else { return sizeLimitBuilder_.getMessage(); } } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public Builder setSizeLimit(io.kubernetes.client.proto.Resource.Quantity value) { if (sizeLimitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sizeLimit_ = value; onChanged(); } else { sizeLimitBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public Builder setSizeLimit( io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { if (sizeLimitBuilder_ == null) { sizeLimit_ = builderForValue.build(); onChanged(); } else { sizeLimitBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public Builder mergeSizeLimit(io.kubernetes.client.proto.Resource.Quantity value) { if (sizeLimitBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && sizeLimit_ != null && sizeLimit_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { sizeLimit_ = io.kubernetes.client.proto.Resource.Quantity.newBuilder(sizeLimit_) .mergeFrom(value) .buildPartial(); } else { sizeLimit_ = value; } onChanged(); } else { sizeLimitBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public Builder clearSizeLimit() { if (sizeLimitBuilder_ == null) { sizeLimit_ = null; onChanged(); } else { sizeLimitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public io.kubernetes.client.proto.Resource.Quantity.Builder getSizeLimitBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSizeLimitFieldBuilder().getBuilder(); } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getSizeLimitOrBuilder() { if (sizeLimitBuilder_ != null) { return sizeLimitBuilder_.getMessageOrBuilder(); } else { return sizeLimit_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : sizeLimit_; } } /** * * *
       * Total amount of local storage required for this EmptyDir volume.
       * The size limit is also applicable for memory medium.
       * The maximum usage on memory medium EmptyDir would be the minimum value between
       * the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       * The default is nil which means that the limit is undefined.
       * More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> getSizeLimitFieldBuilder() { if (sizeLimitBuilder_ == null) { sizeLimitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( getSizeLimit(), getParentForChildren(), isClean()); sizeLimit_ = null; } return sizeLimitBuilder_; } @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.core.v1.EmptyDirVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EmptyDirVolumeSource) private static final io.kubernetes.client.proto.V1.EmptyDirVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EmptyDirVolumeSource(); } public static io.kubernetes.client.proto.V1.EmptyDirVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EmptyDirVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EmptyDirVolumeSource(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.V1.EmptyDirVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EndpointAddress) com.google.protobuf.MessageOrBuilder { /** * * *
     * The IP of this endpoint.
     * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
     * or link-local multicast ((224.0.0.0/24).
     * IPv6 is also accepted but not fully supported on all platforms. Also, certain
     * kubernetes components, like kube-proxy, are not IPv6 ready.
     * TODO: This should allow hostname or IP, See #4447.
     * 
* * optional string ip = 1; */ boolean hasIp(); /** * * *
     * The IP of this endpoint.
     * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
     * or link-local multicast ((224.0.0.0/24).
     * IPv6 is also accepted but not fully supported on all platforms. Also, certain
     * kubernetes components, like kube-proxy, are not IPv6 ready.
     * TODO: This should allow hostname or IP, See #4447.
     * 
* * optional string ip = 1; */ java.lang.String getIp(); /** * * *
     * The IP of this endpoint.
     * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
     * or link-local multicast ((224.0.0.0/24).
     * IPv6 is also accepted but not fully supported on all platforms. Also, certain
     * kubernetes components, like kube-proxy, are not IPv6 ready.
     * TODO: This should allow hostname or IP, See #4447.
     * 
* * optional string ip = 1; */ com.google.protobuf.ByteString getIpBytes(); /** * * *
     * The Hostname of this endpoint
     * +optional
     * 
* * optional string hostname = 3; */ boolean hasHostname(); /** * * *
     * The Hostname of this endpoint
     * +optional
     * 
* * optional string hostname = 3; */ java.lang.String getHostname(); /** * * *
     * The Hostname of this endpoint
     * +optional
     * 
* * optional string hostname = 3; */ com.google.protobuf.ByteString getHostnameBytes(); /** * * *
     * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
     * +optional
     * 
* * optional string nodeName = 4; */ boolean hasNodeName(); /** * * *
     * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
     * +optional
     * 
* * optional string nodeName = 4; */ java.lang.String getNodeName(); /** * * *
     * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
     * +optional
     * 
* * optional string nodeName = 4; */ com.google.protobuf.ByteString getNodeNameBytes(); /** * * *
     * Reference to object providing the endpoint.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ boolean hasTargetRef(); /** * * *
     * Reference to object providing the endpoint.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ io.kubernetes.client.proto.V1.ObjectReference getTargetRef(); /** * * *
     * Reference to object providing the endpoint.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetRefOrBuilder(); } /** * * *
   * EndpointAddress is a tuple that describes single IP address.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointAddress} */ public static final class EndpointAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EndpointAddress) EndpointAddressOrBuilder { private static final long serialVersionUID = 0L; // Use EndpointAddress.newBuilder() to construct. private EndpointAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EndpointAddress() { ip_ = ""; hostname_ = ""; nodeName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EndpointAddress( 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; ip_ = bs; break; } case 18: { io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = targetRef_.toBuilder(); } targetRef_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(targetRef_); targetRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; hostname_ = bs; break; } case 34: { 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 .V1 .internal_static_k8s_io_api_core_v1_EndpointAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointAddress.class, io.kubernetes.client.proto.V1.EndpointAddress.Builder.class); } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private volatile java.lang.Object ip_; /** * * *
     * The IP of this endpoint.
     * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
     * or link-local multicast ((224.0.0.0/24).
     * IPv6 is also accepted but not fully supported on all platforms. Also, certain
     * kubernetes components, like kube-proxy, are not IPv6 ready.
     * TODO: This should allow hostname or IP, See #4447.
     * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The IP of this endpoint.
     * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
     * or link-local multicast ((224.0.0.0/24).
     * IPv6 is also accepted but not fully supported on all platforms. Also, certain
     * kubernetes components, like kube-proxy, are not IPv6 ready.
     * TODO: This should allow hostname or IP, See #4447.
     * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * * *
     * The IP of this endpoint.
     * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
     * or link-local multicast ((224.0.0.0/24).
     * IPv6 is also accepted but not fully supported on all platforms. Also, certain
     * kubernetes components, like kube-proxy, are not IPv6 ready.
     * TODO: This should allow hostname or IP, See #4447.
     * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTNAME_FIELD_NUMBER = 3; private volatile java.lang.Object hostname_; /** * * *
     * The Hostname of this endpoint
     * +optional
     * 
* * optional string hostname = 3; */ public boolean hasHostname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The Hostname of this endpoint
     * +optional
     * 
* * optional string hostname = 3; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * * *
     * The Hostname of this endpoint
     * +optional
     * 
* * optional string hostname = 3; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NODENAME_FIELD_NUMBER = 4; private volatile java.lang.Object nodeName_; /** * * *
     * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
     * +optional
     * 
* * optional string nodeName = 4; */ public boolean hasNodeName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
     * +optional
     * 
* * optional string nodeName = 4; */ 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; } } /** * * *
     * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
     * +optional
     * 
* * optional string nodeName = 4; */ 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; } } public static final int TARGETREF_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ObjectReference targetRef_; /** * * *
     * Reference to object providing the endpoint.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public boolean hasTargetRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Reference to object providing the endpoint.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getTargetRef() { return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; } /** * * *
     * Reference to object providing the endpoint.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetRefOrBuilder() { return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; } 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, ip_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(2, getTargetRef()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hostname_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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, ip_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTargetRef()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostname_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.V1.EndpointAddress)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EndpointAddress other = (io.kubernetes.client.proto.V1.EndpointAddress) obj; boolean result = true; result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && getIp().equals(other.getIp()); } result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname().equals(other.getHostname()); } result = result && (hasNodeName() == other.hasNodeName()); if (hasNodeName()) { result = result && getNodeName().equals(other.getNodeName()); } result = result && (hasTargetRef() == other.hasTargetRef()); if (hasTargetRef()) { result = result && getTargetRef().equals(other.getTargetRef()); } 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 (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasNodeName()) { hash = (37 * hash) + NODENAME_FIELD_NUMBER; hash = (53 * hash) + getNodeName().hashCode(); } if (hasTargetRef()) { hash = (37 * hash) + TARGETREF_FIELD_NUMBER; hash = (53 * hash) + getTargetRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EndpointAddress parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointAddress 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.V1.EndpointAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointAddress 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.V1.EndpointAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointAddress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EndpointAddress parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointAddress 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.V1.EndpointAddress parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointAddress 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.V1.EndpointAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointAddress 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.V1.EndpointAddress 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; } /** * * *
     * EndpointAddress is a tuple that describes single IP address.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EndpointAddress) io.kubernetes.client.proto.V1.EndpointAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointAddress.class, io.kubernetes.client.proto.V1.EndpointAddress.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EndpointAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTargetRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); nodeName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (targetRefBuilder_ == null) { targetRef_ = null; } else { targetRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointAddress_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointAddress getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EndpointAddress.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointAddress build() { io.kubernetes.client.proto.V1.EndpointAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointAddress buildPartial() { io.kubernetes.client.proto.V1.EndpointAddress result = new io.kubernetes.client.proto.V1.EndpointAddress(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.nodeName_ = nodeName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (targetRefBuilder_ == null) { result.targetRef_ = targetRef_; } else { result.targetRef_ = targetRefBuilder_.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.V1.EndpointAddress) { return mergeFrom((io.kubernetes.client.proto.V1.EndpointAddress) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EndpointAddress other) { if (other == io.kubernetes.client.proto.V1.EndpointAddress.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; onChanged(); } if (other.hasHostname()) { bitField0_ |= 0x00000002; hostname_ = other.hostname_; onChanged(); } if (other.hasNodeName()) { bitField0_ |= 0x00000004; nodeName_ = other.nodeName_; onChanged(); } if (other.hasTargetRef()) { mergeTargetRef(other.getTargetRef()); } 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.V1.EndpointAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EndpointAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * * *
       * The IP of this endpoint.
       * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
       * or link-local multicast ((224.0.0.0/24).
       * IPv6 is also accepted but not fully supported on all platforms. Also, certain
       * kubernetes components, like kube-proxy, are not IPv6 ready.
       * TODO: This should allow hostname or IP, See #4447.
       * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The IP of this endpoint.
       * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
       * or link-local multicast ((224.0.0.0/24).
       * IPv6 is also accepted but not fully supported on all platforms. Also, certain
       * kubernetes components, like kube-proxy, are not IPv6 ready.
       * TODO: This should allow hostname or IP, See #4447.
       * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The IP of this endpoint.
       * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
       * or link-local multicast ((224.0.0.0/24).
       * IPv6 is also accepted but not fully supported on all platforms. Also, certain
       * kubernetes components, like kube-proxy, are not IPv6 ready.
       * TODO: This should allow hostname or IP, See #4447.
       * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The IP of this endpoint.
       * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
       * or link-local multicast ((224.0.0.0/24).
       * IPv6 is also accepted but not fully supported on all platforms. Also, certain
       * kubernetes components, like kube-proxy, are not IPv6 ready.
       * TODO: This should allow hostname or IP, See #4447.
       * 
* * optional string ip = 1; */ public Builder setIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * * *
       * The IP of this endpoint.
       * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
       * or link-local multicast ((224.0.0.0/24).
       * IPv6 is also accepted but not fully supported on all platforms. Also, certain
       * kubernetes components, like kube-proxy, are not IPv6 ready.
       * TODO: This should allow hostname or IP, See #4447.
       * 
* * optional string ip = 1; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * * *
       * The IP of this endpoint.
       * May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16),
       * or link-local multicast ((224.0.0.0/24).
       * IPv6 is also accepted but not fully supported on all platforms. Also, certain
       * kubernetes components, like kube-proxy, are not IPv6 ready.
       * TODO: This should allow hostname or IP, See #4447.
       * 
* * optional string ip = 1; */ public Builder setIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** * * *
       * The Hostname of this endpoint
       * +optional
       * 
* * optional string hostname = 3; */ public boolean hasHostname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The Hostname of this endpoint
       * +optional
       * 
* * optional string hostname = 3; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Hostname of this endpoint
       * +optional
       * 
* * optional string hostname = 3; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Hostname of this endpoint
       * +optional
       * 
* * optional string hostname = 3; */ public Builder setHostname(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; hostname_ = value; onChanged(); return this; } /** * * *
       * The Hostname of this endpoint
       * +optional
       * 
* * optional string hostname = 3; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000002); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * * *
       * The Hostname of this endpoint
       * +optional
       * 
* * optional string hostname = 3; */ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; hostname_ = value; onChanged(); return this; } private java.lang.Object nodeName_ = ""; /** * * *
       * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
       * +optional
       * 
* * optional string nodeName = 4; */ public boolean hasNodeName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
       * +optional
       * 
* * optional string nodeName = 4; */ 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; } } /** * * *
       * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
       * +optional
       * 
* * optional string nodeName = 4; */ 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; } } /** * * *
       * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
       * +optional
       * 
* * optional string nodeName = 4; */ public Builder setNodeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nodeName_ = value; onChanged(); return this; } /** * * *
       * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
       * +optional
       * 
* * optional string nodeName = 4; */ public Builder clearNodeName() { bitField0_ = (bitField0_ & ~0x00000004); nodeName_ = getDefaultInstance().getNodeName(); onChanged(); return this; } /** * * *
       * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
       * +optional
       * 
* * optional string nodeName = 4; */ public Builder setNodeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; nodeName_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.ObjectReference targetRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> targetRefBuilder_; /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public boolean hasTargetRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getTargetRef() { if (targetRefBuilder_ == null) { return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; } else { return targetRefBuilder_.getMessage(); } } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public Builder setTargetRef(io.kubernetes.client.proto.V1.ObjectReference value) { if (targetRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetRef_ = value; onChanged(); } else { targetRefBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public Builder setTargetRef( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (targetRefBuilder_ == null) { targetRef_ = builderForValue.build(); onChanged(); } else { targetRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public Builder mergeTargetRef(io.kubernetes.client.proto.V1.ObjectReference value) { if (targetRefBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && targetRef_ != null && targetRef_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { targetRef_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(targetRef_) .mergeFrom(value) .buildPartial(); } else { targetRef_ = value; } onChanged(); } else { targetRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public Builder clearTargetRef() { if (targetRefBuilder_ == null) { targetRef_ = null; onChanged(); } else { targetRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getTargetRefBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTargetRefFieldBuilder().getBuilder(); } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetRefOrBuilder() { if (targetRefBuilder_ != null) { return targetRefBuilder_.getMessageOrBuilder(); } else { return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; } } /** * * *
       * Reference to object providing the endpoint.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference targetRef = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getTargetRefFieldBuilder() { if (targetRefBuilder_ == null) { targetRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getTargetRef(), getParentForChildren(), isClean()); targetRef_ = null; } return targetRefBuilder_; } @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.core.v1.EndpointAddress) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EndpointAddress) private static final io.kubernetes.client.proto.V1.EndpointAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EndpointAddress(); } public static io.kubernetes.client.proto.V1.EndpointAddress getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EndpointAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EndpointAddress(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.V1.EndpointAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointPortOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EndpointPort) com.google.protobuf.MessageOrBuilder { /** * * *
     * The name of this port.  This must match the 'name' field in the
     * corresponding ServicePort.
     * Must be a DNS_LABEL.
     * Optional only if one port is defined.
     * +optional
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * The name of this port.  This must match the 'name' field in the
     * corresponding ServicePort.
     * Must be a DNS_LABEL.
     * Optional only if one port is defined.
     * +optional
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * The name of this port.  This must match the 'name' field in the
     * corresponding ServicePort.
     * Must be a DNS_LABEL.
     * Optional only if one port is defined.
     * +optional
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * The port number of the endpoint.
     * 
* * optional int32 port = 2; */ boolean hasPort(); /** * * *
     * The port number of the endpoint.
     * 
* * optional int32 port = 2; */ int getPort(); /** * * *
     * The IP protocol for this port.
     * Must be UDP, TCP, or SCTP.
     * Default is TCP.
     * +optional
     * 
* * optional string protocol = 3; */ boolean hasProtocol(); /** * * *
     * The IP protocol for this port.
     * Must be UDP, TCP, or SCTP.
     * Default is TCP.
     * +optional
     * 
* * optional string protocol = 3; */ java.lang.String getProtocol(); /** * * *
     * The IP protocol for this port.
     * Must be UDP, TCP, or SCTP.
     * Default is TCP.
     * +optional
     * 
* * optional string protocol = 3; */ com.google.protobuf.ByteString getProtocolBytes(); /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 4; */ boolean hasAppProtocol(); /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 4; */ java.lang.String getAppProtocol(); /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 4; */ com.google.protobuf.ByteString getAppProtocolBytes(); } /** * * *
   * EndpointPort is a tuple that describes a single port.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointPort} */ public static final class EndpointPort extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EndpointPort) EndpointPortOrBuilder { private static final long serialVersionUID = 0L; // Use EndpointPort.newBuilder() to construct. private EndpointPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EndpointPort() { name_ = ""; port_ = 0; protocol_ = ""; appProtocol_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EndpointPort( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { bitField0_ |= 0x00000002; port_ = input.readInt32(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; protocol_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; appProtocol_ = 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 .V1 .internal_static_k8s_io_api_core_v1_EndpointPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointPort_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointPort.class, io.kubernetes.client.proto.V1.EndpointPort.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * The name of this port.  This must match the 'name' field in the
     * corresponding ServicePort.
     * Must be a DNS_LABEL.
     * Optional only if one port is defined.
     * +optional
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The name of this port.  This must match the 'name' field in the
     * corresponding ServicePort.
     * Must be a DNS_LABEL.
     * Optional only if one port is defined.
     * +optional
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * The name of this port.  This must match the 'name' field in the
     * corresponding ServicePort.
     * Must be a DNS_LABEL.
     * Optional only if one port is defined.
     * +optional
     * 
* * 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 PORT_FIELD_NUMBER = 2; private int port_; /** * * *
     * The port number of the endpoint.
     * 
* * optional int32 port = 2; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The port number of the endpoint.
     * 
* * optional int32 port = 2; */ public int getPort() { return port_; } public static final int PROTOCOL_FIELD_NUMBER = 3; private volatile java.lang.Object protocol_; /** * * *
     * The IP protocol for this port.
     * Must be UDP, TCP, or SCTP.
     * Default is TCP.
     * +optional
     * 
* * optional string protocol = 3; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The IP protocol for this port.
     * Must be UDP, TCP, or SCTP.
     * Default is TCP.
     * +optional
     * 
* * optional string protocol = 3; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } } /** * * *
     * The IP protocol for this port.
     * Must be UDP, TCP, or SCTP.
     * Default is TCP.
     * +optional
     * 
* * optional string protocol = 3; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APPPROTOCOL_FIELD_NUMBER = 4; private volatile java.lang.Object appProtocol_; /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 4; */ public boolean hasAppProtocol() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 4; */ public java.lang.String getAppProtocol() { java.lang.Object ref = appProtocol_; 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()) { appProtocol_ = s; } return s; } } /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 4; */ public com.google.protobuf.ByteString getAppProtocolBytes() { java.lang.Object ref = appProtocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); appProtocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, port_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, protocol_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appProtocol_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, protocol_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appProtocol_); } 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.V1.EndpointPort)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EndpointPort other = (io.kubernetes.client.proto.V1.EndpointPort) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol().equals(other.getProtocol()); } result = result && (hasAppProtocol() == other.hasAppProtocol()); if (hasAppProtocol()) { result = result && getAppProtocol().equals(other.getAppProtocol()); } 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 (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); } if (hasAppProtocol()) { hash = (37 * hash) + APPPROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getAppProtocol().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EndpointPort parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointPort 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.V1.EndpointPort parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointPort 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.V1.EndpointPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointPort parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EndpointPort parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointPort 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.V1.EndpointPort parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointPort 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.V1.EndpointPort parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointPort 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.V1.EndpointPort 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; } /** * * *
     * EndpointPort is a tuple that describes a single port.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointPort} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EndpointPort) io.kubernetes.client.proto.V1.EndpointPortOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointPort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointPort_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointPort.class, io.kubernetes.client.proto.V1.EndpointPort.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EndpointPort.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; bitField0_ = (bitField0_ & ~0x00000002); protocol_ = ""; bitField0_ = (bitField0_ & ~0x00000004); appProtocol_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointPort_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointPort getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EndpointPort.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointPort build() { io.kubernetes.client.proto.V1.EndpointPort result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointPort buildPartial() { io.kubernetes.client.proto.V1.EndpointPort result = new io.kubernetes.client.proto.V1.EndpointPort(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.port_ = port_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.protocol_ = protocol_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.appProtocol_ = appProtocol_; 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.V1.EndpointPort) { return mergeFrom((io.kubernetes.client.proto.V1.EndpointPort) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EndpointPort other) { if (other == io.kubernetes.client.proto.V1.EndpointPort.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasProtocol()) { bitField0_ |= 0x00000004; protocol_ = other.protocol_; onChanged(); } if (other.hasAppProtocol()) { bitField0_ |= 0x00000008; appProtocol_ = other.appProtocol_; 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.V1.EndpointPort parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EndpointPort) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The name of this port.  This must match the 'name' field in the
       * corresponding ServicePort.
       * Must be a DNS_LABEL.
       * Optional only if one port is defined.
       * +optional
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The name of this port.  This must match the 'name' field in the
       * corresponding ServicePort.
       * Must be a DNS_LABEL.
       * Optional only if one port is defined.
       * +optional
       * 
* * 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; } } /** * * *
       * The name of this port.  This must match the 'name' field in the
       * corresponding ServicePort.
       * Must be a DNS_LABEL.
       * Optional only if one port is defined.
       * +optional
       * 
* * 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; } } /** * * *
       * The name of this port.  This must match the 'name' field in the
       * corresponding ServicePort.
       * Must be a DNS_LABEL.
       * Optional only if one port is defined.
       * +optional
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * The name of this port.  This must match the 'name' field in the
       * corresponding ServicePort.
       * Must be a DNS_LABEL.
       * Optional only if one port is defined.
       * +optional
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * The name of this port.  This must match the 'name' field in the
       * corresponding ServicePort.
       * Must be a DNS_LABEL.
       * Optional only if one port is defined.
       * +optional
       * 
* * 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 int port_; /** * * *
       * The port number of the endpoint.
       * 
* * optional int32 port = 2; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The port number of the endpoint.
       * 
* * optional int32 port = 2; */ public int getPort() { return port_; } /** * * *
       * The port number of the endpoint.
       * 
* * optional int32 port = 2; */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } /** * * *
       * The port number of the endpoint.
       * 
* * optional int32 port = 2; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** * * *
       * The IP protocol for this port.
       * Must be UDP, TCP, or SCTP.
       * Default is TCP.
       * +optional
       * 
* * optional string protocol = 3; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The IP protocol for this port.
       * Must be UDP, TCP, or SCTP.
       * Default is TCP.
       * +optional
       * 
* * optional string protocol = 3; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The IP protocol for this port.
       * Must be UDP, TCP, or SCTP.
       * Default is TCP.
       * +optional
       * 
* * optional string protocol = 3; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The IP protocol for this port.
       * Must be UDP, TCP, or SCTP.
       * Default is TCP.
       * +optional
       * 
* * optional string protocol = 3; */ public Builder setProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; protocol_ = value; onChanged(); return this; } /** * * *
       * The IP protocol for this port.
       * Must be UDP, TCP, or SCTP.
       * Default is TCP.
       * +optional
       * 
* * optional string protocol = 3; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000004); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** * * *
       * The IP protocol for this port.
       * Must be UDP, TCP, or SCTP.
       * Default is TCP.
       * +optional
       * 
* * optional string protocol = 3; */ public Builder setProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; protocol_ = value; onChanged(); return this; } private java.lang.Object appProtocol_ = ""; /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 4; */ public boolean hasAppProtocol() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 4; */ public java.lang.String getAppProtocol() { java.lang.Object ref = appProtocol_; 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()) { appProtocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 4; */ public com.google.protobuf.ByteString getAppProtocolBytes() { java.lang.Object ref = appProtocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); appProtocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 4; */ public Builder setAppProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; appProtocol_ = value; onChanged(); return this; } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 4; */ public Builder clearAppProtocol() { bitField0_ = (bitField0_ & ~0x00000008); appProtocol_ = getDefaultInstance().getAppProtocol(); onChanged(); return this; } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 4; */ public Builder setAppProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; appProtocol_ = 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.core.v1.EndpointPort) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EndpointPort) private static final io.kubernetes.client.proto.V1.EndpointPort DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EndpointPort(); } public static io.kubernetes.client.proto.V1.EndpointPort getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EndpointPort parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EndpointPort(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.V1.EndpointPort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointSubsetOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EndpointSubset) com.google.protobuf.MessageOrBuilder { /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ java.util.List getAddressesList(); /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ io.kubernetes.client.proto.V1.EndpointAddress getAddresses(int index); /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ int getAddressesCount(); /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ java.util.List getAddressesOrBuilderList(); /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ io.kubernetes.client.proto.V1.EndpointAddressOrBuilder getAddressesOrBuilder(int index); /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ java.util.List getNotReadyAddressesList(); /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ io.kubernetes.client.proto.V1.EndpointAddress getNotReadyAddresses(int index); /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ int getNotReadyAddressesCount(); /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ java.util.List getNotReadyAddressesOrBuilderList(); /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ io.kubernetes.client.proto.V1.EndpointAddressOrBuilder getNotReadyAddressesOrBuilder(int index); /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ java.util.List getPortsList(); /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ io.kubernetes.client.proto.V1.EndpointPort getPorts(int index); /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ int getPortsCount(); /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ java.util.List getPortsOrBuilderList(); /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ io.kubernetes.client.proto.V1.EndpointPortOrBuilder getPortsOrBuilder(int index); } /** * * *
   * EndpointSubset is a group of addresses with a common set of ports. The
   * expanded set of endpoints is the Cartesian product of Addresses x Ports.
   * For example, given:
   *   {
   *     Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
   *     Ports:     [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
   *   }
   * The resulting set of endpoints can be viewed as:
   *     a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
   *     b: [ 10.10.1.1:309, 10.10.2.2:309 ]
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointSubset} */ public static final class EndpointSubset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EndpointSubset) EndpointSubsetOrBuilder { private static final long serialVersionUID = 0L; // Use EndpointSubset.newBuilder() to construct. private EndpointSubset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EndpointSubset() { addresses_ = java.util.Collections.emptyList(); notReadyAddresses_ = java.util.Collections.emptyList(); ports_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EndpointSubset( 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)) { addresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } addresses_.add( input.readMessage( io.kubernetes.client.proto.V1.EndpointAddress.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { notReadyAddresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } notReadyAddresses_.add( input.readMessage( io.kubernetes.client.proto.V1.EndpointAddress.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } ports_.add( input.readMessage( io.kubernetes.client.proto.V1.EndpointPort.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)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { notReadyAddresses_ = java.util.Collections.unmodifiableList(notReadyAddresses_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ports_ = java.util.Collections.unmodifiableList(ports_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointSubset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointSubset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointSubset.class, io.kubernetes.client.proto.V1.EndpointSubset.Builder.class); } public static final int ADDRESSES_FIELD_NUMBER = 1; private java.util.List addresses_; /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public java.util.List getAddressesList() { return addresses_; } /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public java.util.List getAddressesOrBuilderList() { return addresses_; } /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public int getAddressesCount() { return addresses_.size(); } /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddress getAddresses(int index) { return addresses_.get(index); } /** * * *
     * IP addresses which offer the related ports that are marked as ready. These endpoints
     * should be considered safe for load balancers and clients to utilize.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddressOrBuilder getAddressesOrBuilder(int index) { return addresses_.get(index); } public static final int NOTREADYADDRESSES_FIELD_NUMBER = 2; private java.util.List notReadyAddresses_; /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public java.util.List getNotReadyAddressesList() { return notReadyAddresses_; } /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public java.util.List getNotReadyAddressesOrBuilderList() { return notReadyAddresses_; } /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public int getNotReadyAddressesCount() { return notReadyAddresses_.size(); } /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddress getNotReadyAddresses(int index) { return notReadyAddresses_.get(index); } /** * * *
     * IP addresses which offer the related ports but are not currently marked as ready
     * because they have not yet finished starting, have recently failed a readiness check,
     * or have recently failed a liveness check.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddressOrBuilder getNotReadyAddressesOrBuilder( int index) { return notReadyAddresses_.get(index); } public static final int PORTS_FIELD_NUMBER = 3; private java.util.List ports_; /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public java.util.List getPortsList() { return ports_; } /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public java.util.List getPortsOrBuilderList() { return ports_; } /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public int getPortsCount() { return ports_.size(); } /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPort getPorts(int index) { return ports_.get(index); } /** * * *
     * Port numbers available on the related IP addresses.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPortOrBuilder getPortsOrBuilder(int index) { return ports_.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 < addresses_.size(); i++) { output.writeMessage(1, addresses_.get(i)); } for (int i = 0; i < notReadyAddresses_.size(); i++) { output.writeMessage(2, notReadyAddresses_.get(i)); } for (int i = 0; i < ports_.size(); i++) { output.writeMessage(3, ports_.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 < addresses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, addresses_.get(i)); } for (int i = 0; i < notReadyAddresses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, notReadyAddresses_.get(i)); } for (int i = 0; i < ports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, ports_.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.V1.EndpointSubset)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EndpointSubset other = (io.kubernetes.client.proto.V1.EndpointSubset) obj; boolean result = true; result = result && getAddressesList().equals(other.getAddressesList()); result = result && getNotReadyAddressesList().equals(other.getNotReadyAddressesList()); result = result && getPortsList().equals(other.getPortsList()); 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 (getAddressesCount() > 0) { hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getAddressesList().hashCode(); } if (getNotReadyAddressesCount() > 0) { hash = (37 * hash) + NOTREADYADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getNotReadyAddressesList().hashCode(); } if (getPortsCount() > 0) { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EndpointSubset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointSubset 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.V1.EndpointSubset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointSubset 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.V1.EndpointSubset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointSubset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EndpointSubset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointSubset 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.V1.EndpointSubset parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointSubset 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.V1.EndpointSubset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointSubset 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.V1.EndpointSubset 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; } /** * * *
     * EndpointSubset is a group of addresses with a common set of ports. The
     * expanded set of endpoints is the Cartesian product of Addresses x Ports.
     * For example, given:
     *   {
     *     Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
     *     Ports:     [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
     *   }
     * The resulting set of endpoints can be viewed as:
     *     a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
     *     b: [ 10.10.1.1:309, 10.10.2.2:309 ]
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointSubset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EndpointSubset) io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointSubset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointSubset_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointSubset.class, io.kubernetes.client.proto.V1.EndpointSubset.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EndpointSubset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAddressesFieldBuilder(); getNotReadyAddressesFieldBuilder(); getPortsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (addressesBuilder_ == null) { addresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { addressesBuilder_.clear(); } if (notReadyAddressesBuilder_ == null) { notReadyAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { notReadyAddressesBuilder_.clear(); } if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { portsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointSubset_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointSubset getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EndpointSubset.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointSubset build() { io.kubernetes.client.proto.V1.EndpointSubset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointSubset buildPartial() { io.kubernetes.client.proto.V1.EndpointSubset result = new io.kubernetes.client.proto.V1.EndpointSubset(this); int from_bitField0_ = bitField0_; if (addressesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); bitField0_ = (bitField0_ & ~0x00000001); } result.addresses_ = addresses_; } else { result.addresses_ = addressesBuilder_.build(); } if (notReadyAddressesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { notReadyAddresses_ = java.util.Collections.unmodifiableList(notReadyAddresses_); bitField0_ = (bitField0_ & ~0x00000002); } result.notReadyAddresses_ = notReadyAddresses_; } else { result.notReadyAddresses_ = notReadyAddressesBuilder_.build(); } if (portsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { ports_ = java.util.Collections.unmodifiableList(ports_); bitField0_ = (bitField0_ & ~0x00000004); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.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.V1.EndpointSubset) { return mergeFrom((io.kubernetes.client.proto.V1.EndpointSubset) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EndpointSubset other) { if (other == io.kubernetes.client.proto.V1.EndpointSubset.getDefaultInstance()) return this; if (addressesBuilder_ == null) { if (!other.addresses_.isEmpty()) { if (addresses_.isEmpty()) { addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAddressesIsMutable(); addresses_.addAll(other.addresses_); } onChanged(); } } else { if (!other.addresses_.isEmpty()) { if (addressesBuilder_.isEmpty()) { addressesBuilder_.dispose(); addressesBuilder_ = null; addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000001); addressesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAddressesFieldBuilder() : null; } else { addressesBuilder_.addAllMessages(other.addresses_); } } } if (notReadyAddressesBuilder_ == null) { if (!other.notReadyAddresses_.isEmpty()) { if (notReadyAddresses_.isEmpty()) { notReadyAddresses_ = other.notReadyAddresses_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNotReadyAddressesIsMutable(); notReadyAddresses_.addAll(other.notReadyAddresses_); } onChanged(); } } else { if (!other.notReadyAddresses_.isEmpty()) { if (notReadyAddressesBuilder_.isEmpty()) { notReadyAddressesBuilder_.dispose(); notReadyAddressesBuilder_ = null; notReadyAddresses_ = other.notReadyAddresses_; bitField0_ = (bitField0_ & ~0x00000002); notReadyAddressesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNotReadyAddressesFieldBuilder() : null; } else { notReadyAddressesBuilder_.addAllMessages(other.notReadyAddresses_); } } } if (portsBuilder_ == null) { if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); } onChanged(); } } else { if (!other.ports_.isEmpty()) { if (portsBuilder_.isEmpty()) { portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000004); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() : null; } else { portsBuilder_.addAllMessages(other.ports_); } } } 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.V1.EndpointSubset parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EndpointSubset) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List addresses_ = java.util.Collections.emptyList(); private void ensureAddressesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { addresses_ = new java.util.ArrayList(addresses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointAddress, io.kubernetes.client.proto.V1.EndpointAddress.Builder, io.kubernetes.client.proto.V1.EndpointAddressOrBuilder> addressesBuilder_; /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public java.util.List getAddressesList() { if (addressesBuilder_ == null) { return java.util.Collections.unmodifiableList(addresses_); } else { return addressesBuilder_.getMessageList(); } } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public int getAddressesCount() { if (addressesBuilder_ == null) { return addresses_.size(); } else { return addressesBuilder_.getCount(); } } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddress getAddresses(int index) { if (addressesBuilder_ == null) { return addresses_.get(index); } else { return addressesBuilder_.getMessage(index); } } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder setAddresses(int index, io.kubernetes.client.proto.V1.EndpointAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.set(index, value); onChanged(); } else { addressesBuilder_.setMessage(index, value); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder setAddresses( int index, io.kubernetes.client.proto.V1.EndpointAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.set(index, builderForValue.build()); onChanged(); } else { addressesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder addAddresses(io.kubernetes.client.proto.V1.EndpointAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); onChanged(); } else { addressesBuilder_.addMessage(value); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder addAddresses(int index, io.kubernetes.client.proto.V1.EndpointAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(index, value); onChanged(); } else { addressesBuilder_.addMessage(index, value); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder addAddresses( io.kubernetes.client.proto.V1.EndpointAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.add(builderForValue.build()); onChanged(); } else { addressesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder addAddresses( int index, io.kubernetes.client.proto.V1.EndpointAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.add(index, builderForValue.build()); onChanged(); } else { addressesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder addAllAddresses( java.lang.Iterable values) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); onChanged(); } else { addressesBuilder_.addAllMessages(values); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder clearAddresses() { if (addressesBuilder_ == null) { addresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { addressesBuilder_.clear(); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public Builder removeAddresses(int index) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.remove(index); onChanged(); } else { addressesBuilder_.remove(index); } return this; } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddress.Builder getAddressesBuilder(int index) { return getAddressesFieldBuilder().getBuilder(index); } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddressOrBuilder getAddressesOrBuilder( int index) { if (addressesBuilder_ == null) { return addresses_.get(index); } else { return addressesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public java.util.List getAddressesOrBuilderList() { if (addressesBuilder_ != null) { return addressesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addresses_); } } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddress.Builder addAddressesBuilder() { return getAddressesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EndpointAddress.getDefaultInstance()); } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public io.kubernetes.client.proto.V1.EndpointAddress.Builder addAddressesBuilder(int index) { return getAddressesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EndpointAddress.getDefaultInstance()); } /** * * *
       * IP addresses which offer the related ports that are marked as ready. These endpoints
       * should be considered safe for load balancers and clients to utilize.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress addresses = 1; */ public java.util.List getAddressesBuilderList() { return getAddressesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointAddress, io.kubernetes.client.proto.V1.EndpointAddress.Builder, io.kubernetes.client.proto.V1.EndpointAddressOrBuilder> getAddressesFieldBuilder() { if (addressesBuilder_ == null) { addressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointAddress, io.kubernetes.client.proto.V1.EndpointAddress.Builder, io.kubernetes.client.proto.V1.EndpointAddressOrBuilder>( addresses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); addresses_ = null; } return addressesBuilder_; } private java.util.List notReadyAddresses_ = java.util.Collections.emptyList(); private void ensureNotReadyAddressesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { notReadyAddresses_ = new java.util.ArrayList( notReadyAddresses_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointAddress, io.kubernetes.client.proto.V1.EndpointAddress.Builder, io.kubernetes.client.proto.V1.EndpointAddressOrBuilder> notReadyAddressesBuilder_; /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public java.util.List getNotReadyAddressesList() { if (notReadyAddressesBuilder_ == null) { return java.util.Collections.unmodifiableList(notReadyAddresses_); } else { return notReadyAddressesBuilder_.getMessageList(); } } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public int getNotReadyAddressesCount() { if (notReadyAddressesBuilder_ == null) { return notReadyAddresses_.size(); } else { return notReadyAddressesBuilder_.getCount(); } } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddress getNotReadyAddresses(int index) { if (notReadyAddressesBuilder_ == null) { return notReadyAddresses_.get(index); } else { return notReadyAddressesBuilder_.getMessage(index); } } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder setNotReadyAddresses( int index, io.kubernetes.client.proto.V1.EndpointAddress value) { if (notReadyAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNotReadyAddressesIsMutable(); notReadyAddresses_.set(index, value); onChanged(); } else { notReadyAddressesBuilder_.setMessage(index, value); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder setNotReadyAddresses( int index, io.kubernetes.client.proto.V1.EndpointAddress.Builder builderForValue) { if (notReadyAddressesBuilder_ == null) { ensureNotReadyAddressesIsMutable(); notReadyAddresses_.set(index, builderForValue.build()); onChanged(); } else { notReadyAddressesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder addNotReadyAddresses(io.kubernetes.client.proto.V1.EndpointAddress value) { if (notReadyAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNotReadyAddressesIsMutable(); notReadyAddresses_.add(value); onChanged(); } else { notReadyAddressesBuilder_.addMessage(value); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder addNotReadyAddresses( int index, io.kubernetes.client.proto.V1.EndpointAddress value) { if (notReadyAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNotReadyAddressesIsMutable(); notReadyAddresses_.add(index, value); onChanged(); } else { notReadyAddressesBuilder_.addMessage(index, value); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder addNotReadyAddresses( io.kubernetes.client.proto.V1.EndpointAddress.Builder builderForValue) { if (notReadyAddressesBuilder_ == null) { ensureNotReadyAddressesIsMutable(); notReadyAddresses_.add(builderForValue.build()); onChanged(); } else { notReadyAddressesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder addNotReadyAddresses( int index, io.kubernetes.client.proto.V1.EndpointAddress.Builder builderForValue) { if (notReadyAddressesBuilder_ == null) { ensureNotReadyAddressesIsMutable(); notReadyAddresses_.add(index, builderForValue.build()); onChanged(); } else { notReadyAddressesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder addAllNotReadyAddresses( java.lang.Iterable values) { if (notReadyAddressesBuilder_ == null) { ensureNotReadyAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notReadyAddresses_); onChanged(); } else { notReadyAddressesBuilder_.addAllMessages(values); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder clearNotReadyAddresses() { if (notReadyAddressesBuilder_ == null) { notReadyAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { notReadyAddressesBuilder_.clear(); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public Builder removeNotReadyAddresses(int index) { if (notReadyAddressesBuilder_ == null) { ensureNotReadyAddressesIsMutable(); notReadyAddresses_.remove(index); onChanged(); } else { notReadyAddressesBuilder_.remove(index); } return this; } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddress.Builder getNotReadyAddressesBuilder( int index) { return getNotReadyAddressesFieldBuilder().getBuilder(index); } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddressOrBuilder getNotReadyAddressesOrBuilder( int index) { if (notReadyAddressesBuilder_ == null) { return notReadyAddresses_.get(index); } else { return notReadyAddressesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public java.util.List getNotReadyAddressesOrBuilderList() { if (notReadyAddressesBuilder_ != null) { return notReadyAddressesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(notReadyAddresses_); } } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddress.Builder addNotReadyAddressesBuilder() { return getNotReadyAddressesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EndpointAddress.getDefaultInstance()); } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public io.kubernetes.client.proto.V1.EndpointAddress.Builder addNotReadyAddressesBuilder( int index) { return getNotReadyAddressesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EndpointAddress.getDefaultInstance()); } /** * * *
       * IP addresses which offer the related ports but are not currently marked as ready
       * because they have not yet finished starting, have recently failed a readiness check,
       * or have recently failed a liveness check.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointAddress notReadyAddresses = 2; */ public java.util.List getNotReadyAddressesBuilderList() { return getNotReadyAddressesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointAddress, io.kubernetes.client.proto.V1.EndpointAddress.Builder, io.kubernetes.client.proto.V1.EndpointAddressOrBuilder> getNotReadyAddressesFieldBuilder() { if (notReadyAddressesBuilder_ == null) { notReadyAddressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointAddress, io.kubernetes.client.proto.V1.EndpointAddress.Builder, io.kubernetes.client.proto.V1.EndpointAddressOrBuilder>( notReadyAddresses_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); notReadyAddresses_ = null; } return notReadyAddressesBuilder_; } private java.util.List ports_ = java.util.Collections.emptyList(); private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { ports_ = new java.util.ArrayList(ports_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointPort, io.kubernetes.client.proto.V1.EndpointPort.Builder, io.kubernetes.client.proto.V1.EndpointPortOrBuilder> portsBuilder_; /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public java.util.List getPortsList() { if (portsBuilder_ == null) { return java.util.Collections.unmodifiableList(ports_); } else { return portsBuilder_.getMessageList(); } } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public int getPortsCount() { if (portsBuilder_ == null) { return ports_.size(); } else { return portsBuilder_.getCount(); } } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPort getPorts(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessage(index); } } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder setPorts(int index, io.kubernetes.client.proto.V1.EndpointPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.set(index, value); onChanged(); } else { portsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder setPorts( int index, io.kubernetes.client.proto.V1.EndpointPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.set(index, builderForValue.build()); onChanged(); } else { portsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder addPorts(io.kubernetes.client.proto.V1.EndpointPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(value); onChanged(); } else { portsBuilder_.addMessage(value); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder addPorts(int index, io.kubernetes.client.proto.V1.EndpointPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(index, value); onChanged(); } else { portsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder addPorts(io.kubernetes.client.proto.V1.EndpointPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder addPorts( int index, io.kubernetes.client.proto.V1.EndpointPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(index, builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder addAllPorts( java.lang.Iterable values) { if (portsBuilder_ == null) { ensurePortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); onChanged(); } else { portsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { portsBuilder_.clear(); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public Builder removePorts(int index) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.remove(index); onChanged(); } else { portsBuilder_.remove(index); } return this; } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPort.Builder getPortsBuilder(int index) { return getPortsFieldBuilder().getBuilder(index); } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPortOrBuilder getPortsOrBuilder(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public java.util.List getPortsOrBuilderList() { if (portsBuilder_ != null) { return portsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ports_); } } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPort.Builder addPortsBuilder() { return getPortsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EndpointPort.getDefaultInstance()); } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public io.kubernetes.client.proto.V1.EndpointPort.Builder addPortsBuilder(int index) { return getPortsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EndpointPort.getDefaultInstance()); } /** * * *
       * Port numbers available on the related IP addresses.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointPort ports = 3; */ public java.util.List getPortsBuilderList() { return getPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointPort, io.kubernetes.client.proto.V1.EndpointPort.Builder, io.kubernetes.client.proto.V1.EndpointPortOrBuilder> getPortsFieldBuilder() { if (portsBuilder_ == null) { portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointPort, io.kubernetes.client.proto.V1.EndpointPort.Builder, io.kubernetes.client.proto.V1.EndpointPortOrBuilder>( ports_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; } @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.core.v1.EndpointSubset) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EndpointSubset) private static final io.kubernetes.client.proto.V1.EndpointSubset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EndpointSubset(); } public static io.kubernetes.client.proto.V1.EndpointSubset getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EndpointSubset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EndpointSubset(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.V1.EndpointSubset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Endpoints) 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(); /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ java.util.List getSubsetsList(); /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ io.kubernetes.client.proto.V1.EndpointSubset getSubsets(int index); /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ int getSubsetsCount(); /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ java.util.List getSubsetsOrBuilderList(); /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder getSubsetsOrBuilder(int index); } /** * * *
   * Endpoints is a collection of endpoints that implement the actual service. Example:
   *   Name: "mysvc",
   *   Subsets: [
   *     {
   *       Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
   *       Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
   *     },
   *     {
   *       Addresses: [{"ip": "10.10.3.3"}],
   *       Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
   *     },
   *  ]
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Endpoints} */ public static final class Endpoints extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Endpoints) EndpointsOrBuilder { private static final long serialVersionUID = 0L; // Use Endpoints.newBuilder() to construct. private Endpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Endpoints() { subsets_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Endpoints( 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: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { subsets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } subsets_.add( input.readMessage( io.kubernetes.client.proto.V1.EndpointSubset.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)) { subsets_ = java.util.Collections.unmodifiableList(subsets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Endpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Endpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Endpoints.class, io.kubernetes.client.proto.V1.Endpoints.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 SUBSETS_FIELD_NUMBER = 2; private java.util.List subsets_; /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public java.util.List getSubsetsList() { return subsets_; } /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public java.util.List getSubsetsOrBuilderList() { return subsets_; } /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public int getSubsetsCount() { return subsets_.size(); } /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubset getSubsets(int index) { return subsets_.get(index); } /** * * *
     * The set of all endpoints is the union of all subsets. Addresses are placed into
     * subsets according to the IPs they share. A single address with multiple ports,
     * some of which are ready and some of which are not (because they come from
     * different containers) will result in the address being displayed in different
     * subsets for the different ports. No address will appear in both Addresses and
     * NotReadyAddresses in the same subset.
     * Sets of addresses and ports that comprise a service.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder getSubsetsOrBuilder(int index) { return subsets_.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 < subsets_.size(); i++) { output.writeMessage(2, subsets_.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 < subsets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, subsets_.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.V1.Endpoints)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Endpoints other = (io.kubernetes.client.proto.V1.Endpoints) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getSubsetsList().equals(other.getSubsetsList()); 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 (getSubsetsCount() > 0) { hash = (37 * hash) + SUBSETS_FIELD_NUMBER; hash = (53 * hash) + getSubsetsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Endpoints parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Endpoints 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.V1.Endpoints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Endpoints 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.V1.Endpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Endpoints parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Endpoints parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Endpoints 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.V1.Endpoints parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Endpoints 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.V1.Endpoints parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Endpoints 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.V1.Endpoints 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; } /** * * *
     * Endpoints is a collection of endpoints that implement the actual service. Example:
     *   Name: "mysvc",
     *   Subsets: [
     *     {
     *       Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
     *       Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
     *     },
     *     {
     *       Addresses: [{"ip": "10.10.3.3"}],
     *       Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
     *     },
     *  ]
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Endpoints} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Endpoints) io.kubernetes.client.proto.V1.EndpointsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Endpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Endpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Endpoints.class, io.kubernetes.client.proto.V1.Endpoints.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Endpoints.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(); getSubsetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (subsetsBuilder_ == null) { subsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { subsetsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Endpoints_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Endpoints getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Endpoints.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Endpoints build() { io.kubernetes.client.proto.V1.Endpoints result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Endpoints buildPartial() { io.kubernetes.client.proto.V1.Endpoints result = new io.kubernetes.client.proto.V1.Endpoints(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 (subsetsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { subsets_ = java.util.Collections.unmodifiableList(subsets_); bitField0_ = (bitField0_ & ~0x00000002); } result.subsets_ = subsets_; } else { result.subsets_ = subsetsBuilder_.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.V1.Endpoints) { return mergeFrom((io.kubernetes.client.proto.V1.Endpoints) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Endpoints other) { if (other == io.kubernetes.client.proto.V1.Endpoints.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (subsetsBuilder_ == null) { if (!other.subsets_.isEmpty()) { if (subsets_.isEmpty()) { subsets_ = other.subsets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSubsetsIsMutable(); subsets_.addAll(other.subsets_); } onChanged(); } } else { if (!other.subsets_.isEmpty()) { if (subsetsBuilder_.isEmpty()) { subsetsBuilder_.dispose(); subsetsBuilder_ = null; subsets_ = other.subsets_; bitField0_ = (bitField0_ & ~0x00000002); subsetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSubsetsFieldBuilder() : null; } else { subsetsBuilder_.addAllMessages(other.subsets_); } } } 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.V1.Endpoints parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Endpoints) 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.util.List subsets_ = java.util.Collections.emptyList(); private void ensureSubsetsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { subsets_ = new java.util.ArrayList(subsets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointSubset, io.kubernetes.client.proto.V1.EndpointSubset.Builder, io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder> subsetsBuilder_; /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public java.util.List getSubsetsList() { if (subsetsBuilder_ == null) { return java.util.Collections.unmodifiableList(subsets_); } else { return subsetsBuilder_.getMessageList(); } } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public int getSubsetsCount() { if (subsetsBuilder_ == null) { return subsets_.size(); } else { return subsetsBuilder_.getCount(); } } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubset getSubsets(int index) { if (subsetsBuilder_ == null) { return subsets_.get(index); } else { return subsetsBuilder_.getMessage(index); } } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder setSubsets(int index, io.kubernetes.client.proto.V1.EndpointSubset value) { if (subsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubsetsIsMutable(); subsets_.set(index, value); onChanged(); } else { subsetsBuilder_.setMessage(index, value); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder setSubsets( int index, io.kubernetes.client.proto.V1.EndpointSubset.Builder builderForValue) { if (subsetsBuilder_ == null) { ensureSubsetsIsMutable(); subsets_.set(index, builderForValue.build()); onChanged(); } else { subsetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder addSubsets(io.kubernetes.client.proto.V1.EndpointSubset value) { if (subsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubsetsIsMutable(); subsets_.add(value); onChanged(); } else { subsetsBuilder_.addMessage(value); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder addSubsets(int index, io.kubernetes.client.proto.V1.EndpointSubset value) { if (subsetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubsetsIsMutable(); subsets_.add(index, value); onChanged(); } else { subsetsBuilder_.addMessage(index, value); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder addSubsets( io.kubernetes.client.proto.V1.EndpointSubset.Builder builderForValue) { if (subsetsBuilder_ == null) { ensureSubsetsIsMutable(); subsets_.add(builderForValue.build()); onChanged(); } else { subsetsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder addSubsets( int index, io.kubernetes.client.proto.V1.EndpointSubset.Builder builderForValue) { if (subsetsBuilder_ == null) { ensureSubsetsIsMutable(); subsets_.add(index, builderForValue.build()); onChanged(); } else { subsetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder addAllSubsets( java.lang.Iterable values) { if (subsetsBuilder_ == null) { ensureSubsetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subsets_); onChanged(); } else { subsetsBuilder_.addAllMessages(values); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder clearSubsets() { if (subsetsBuilder_ == null) { subsets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { subsetsBuilder_.clear(); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public Builder removeSubsets(int index) { if (subsetsBuilder_ == null) { ensureSubsetsIsMutable(); subsets_.remove(index); onChanged(); } else { subsetsBuilder_.remove(index); } return this; } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubset.Builder getSubsetsBuilder(int index) { return getSubsetsFieldBuilder().getBuilder(index); } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder getSubsetsOrBuilder(int index) { if (subsetsBuilder_ == null) { return subsets_.get(index); } else { return subsetsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public java.util.List getSubsetsOrBuilderList() { if (subsetsBuilder_ != null) { return subsetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subsets_); } } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubset.Builder addSubsetsBuilder() { return getSubsetsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EndpointSubset.getDefaultInstance()); } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public io.kubernetes.client.proto.V1.EndpointSubset.Builder addSubsetsBuilder(int index) { return getSubsetsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EndpointSubset.getDefaultInstance()); } /** * * *
       * The set of all endpoints is the union of all subsets. Addresses are placed into
       * subsets according to the IPs they share. A single address with multiple ports,
       * some of which are ready and some of which are not (because they come from
       * different containers) will result in the address being displayed in different
       * subsets for the different ports. No address will appear in both Addresses and
       * NotReadyAddresses in the same subset.
       * Sets of addresses and ports that comprise a service.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2; */ public java.util.List getSubsetsBuilderList() { return getSubsetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointSubset, io.kubernetes.client.proto.V1.EndpointSubset.Builder, io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder> getSubsetsFieldBuilder() { if (subsetsBuilder_ == null) { subsetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EndpointSubset, io.kubernetes.client.proto.V1.EndpointSubset.Builder, io.kubernetes.client.proto.V1.EndpointSubsetOrBuilder>( subsets_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); subsets_ = null; } return subsetsBuilder_; } @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.core.v1.Endpoints) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Endpoints) private static final io.kubernetes.client.proto.V1.Endpoints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Endpoints(); } public static io.kubernetes.client.proto.V1.Endpoints getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Endpoints parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Endpoints(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.V1.Endpoints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointsListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EndpointsList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ java.util.List getItemsList(); /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ io.kubernetes.client.proto.V1.Endpoints getItems(int index); /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ int getItemsCount(); /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ io.kubernetes.client.proto.V1.EndpointsOrBuilder getItemsOrBuilder(int index); } /** * * *
   * EndpointsList is a list of endpoints.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointsList} */ public static final class EndpointsList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EndpointsList) EndpointsListOrBuilder { private static final long serialVersionUID = 0L; // Use EndpointsList.newBuilder() to construct. private EndpointsList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EndpointsList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EndpointsList( 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.V1.Endpoints.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 .V1 .internal_static_k8s_io_api_core_v1_EndpointsList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointsList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointsList.class, io.kubernetes.client.proto.V1.EndpointsList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.Endpoints getItems(int index) { return items_.get(index); } /** * * *
     * List of endpoints.
     * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.EndpointsOrBuilder 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.V1.EndpointsList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EndpointsList other = (io.kubernetes.client.proto.V1.EndpointsList) 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.V1.EndpointsList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointsList 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.V1.EndpointsList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointsList 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.V1.EndpointsList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EndpointsList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EndpointsList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointsList 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.V1.EndpointsList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointsList 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.V1.EndpointsList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EndpointsList 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.V1.EndpointsList 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; } /** * * *
     * EndpointsList is a list of endpoints.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EndpointsList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EndpointsList) io.kubernetes.client.proto.V1.EndpointsListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EndpointsList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EndpointsList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EndpointsList.class, io.kubernetes.client.proto.V1.EndpointsList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EndpointsList.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 .V1 .internal_static_k8s_io_api_core_v1_EndpointsList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointsList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EndpointsList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointsList build() { io.kubernetes.client.proto.V1.EndpointsList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EndpointsList buildPartial() { io.kubernetes.client.proto.V1.EndpointsList result = new io.kubernetes.client.proto.V1.EndpointsList(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.V1.EndpointsList) { return mergeFrom((io.kubernetes.client.proto.V1.EndpointsList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EndpointsList other) { if (other == io.kubernetes.client.proto.V1.EndpointsList.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.V1.EndpointsList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EndpointsList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Endpoints, io.kubernetes.client.proto.V1.Endpoints.Builder, io.kubernetes.client.proto.V1.EndpointsOrBuilder> itemsBuilder_; /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.Endpoints getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Endpoints value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Endpoints.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Endpoints value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Endpoints value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Endpoints.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Endpoints.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints 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; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.Endpoints.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.EndpointsOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.Endpoints.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Endpoints.getDefaultInstance()); } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public io.kubernetes.client.proto.V1.Endpoints.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Endpoints.getDefaultInstance()); } /** * * *
       * List of endpoints.
       * 
* * repeated .k8s.io.api.core.v1.Endpoints items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Endpoints, io.kubernetes.client.proto.V1.Endpoints.Builder, io.kubernetes.client.proto.V1.EndpointsOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Endpoints, io.kubernetes.client.proto.V1.Endpoints.Builder, io.kubernetes.client.proto.V1.EndpointsOrBuilder>( 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.core.v1.EndpointsList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EndpointsList) private static final io.kubernetes.client.proto.V1.EndpointsList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EndpointsList(); } public static io.kubernetes.client.proto.V1.EndpointsList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EndpointsList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EndpointsList(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.V1.EndpointsList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvFromSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EnvFromSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
     * +optional
     * 
* * optional string prefix = 1; */ boolean hasPrefix(); /** * * *
     * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
     * +optional
     * 
* * optional string prefix = 1; */ java.lang.String getPrefix(); /** * * *
     * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
     * +optional
     * 
* * optional string prefix = 1; */ com.google.protobuf.ByteString getPrefixBytes(); /** * * *
     * The ConfigMap to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ boolean hasConfigMapRef(); /** * * *
     * The ConfigMap to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ io.kubernetes.client.proto.V1.ConfigMapEnvSource getConfigMapRef(); /** * * *
     * The ConfigMap to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder getConfigMapRefOrBuilder(); /** * * *
     * The Secret to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ boolean hasSecretRef(); /** * * *
     * The Secret to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ io.kubernetes.client.proto.V1.SecretEnvSource getSecretRef(); /** * * *
     * The Secret to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder getSecretRefOrBuilder(); } /** * * *
   * EnvFromSource represents the source of a set of ConfigMaps
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EnvFromSource} */ public static final class EnvFromSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EnvFromSource) EnvFromSourceOrBuilder { private static final long serialVersionUID = 0L; // Use EnvFromSource.newBuilder() to construct. private EnvFromSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnvFromSource() { prefix_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnvFromSource( 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; prefix_ = bs; break; } case 18: { io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = configMapRef_.toBuilder(); } configMapRef_ = input.readMessage( io.kubernetes.client.proto.V1.ConfigMapEnvSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configMapRef_); configMapRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.SecretEnvSource.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretEnvSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = 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 .V1 .internal_static_k8s_io_api_core_v1_EnvFromSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EnvFromSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EnvFromSource.class, io.kubernetes.client.proto.V1.EnvFromSource.Builder.class); } private int bitField0_; public static final int PREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object prefix_; /** * * *
     * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
     * +optional
     * 
* * optional string prefix = 1; */ public boolean hasPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
     * +optional
     * 
* * optional string prefix = 1; */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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()) { prefix_ = s; } return s; } } /** * * *
     * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
     * +optional
     * 
* * optional string prefix = 1; */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIGMAPREF_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ConfigMapEnvSource configMapRef_; /** * * *
     * The ConfigMap to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public boolean hasConfigMapRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The ConfigMap to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public io.kubernetes.client.proto.V1.ConfigMapEnvSource getConfigMapRef() { return configMapRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance() : configMapRef_; } /** * * *
     * The ConfigMap to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder getConfigMapRefOrBuilder() { return configMapRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance() : configMapRef_; } public static final int SECRETREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.SecretEnvSource secretRef_; /** * * *
     * The Secret to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The Secret to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretEnvSource getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance() : secretRef_; } /** * * *
     * The Secret to select from
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance() : secretRef_; } 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, prefix_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getConfigMapRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSecretRef()); } 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, prefix_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfigMapRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecretRef()); } 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.V1.EnvFromSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EnvFromSource other = (io.kubernetes.client.proto.V1.EnvFromSource) obj; boolean result = true; result = result && (hasPrefix() == other.hasPrefix()); if (hasPrefix()) { result = result && getPrefix().equals(other.getPrefix()); } result = result && (hasConfigMapRef() == other.hasConfigMapRef()); if (hasConfigMapRef()) { result = result && getConfigMapRef().equals(other.getConfigMapRef()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } 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 (hasPrefix()) { hash = (37 * hash) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); } if (hasConfigMapRef()) { hash = (37 * hash) + CONFIGMAPREF_FIELD_NUMBER; hash = (53 * hash) + getConfigMapRef().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EnvFromSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvFromSource 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.V1.EnvFromSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvFromSource 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.V1.EnvFromSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvFromSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EnvFromSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvFromSource 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.V1.EnvFromSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvFromSource 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.V1.EnvFromSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvFromSource 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.V1.EnvFromSource 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; } /** * * *
     * EnvFromSource represents the source of a set of ConfigMaps
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EnvFromSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EnvFromSource) io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EnvFromSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EnvFromSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EnvFromSource.class, io.kubernetes.client.proto.V1.EnvFromSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EnvFromSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfigMapRefFieldBuilder(); getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); prefix_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (configMapRefBuilder_ == null) { configMapRef_ = null; } else { configMapRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EnvFromSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EnvFromSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EnvFromSource build() { io.kubernetes.client.proto.V1.EnvFromSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EnvFromSource buildPartial() { io.kubernetes.client.proto.V1.EnvFromSource result = new io.kubernetes.client.proto.V1.EnvFromSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.prefix_ = prefix_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (configMapRefBuilder_ == null) { result.configMapRef_ = configMapRef_; } else { result.configMapRef_ = configMapRefBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.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.V1.EnvFromSource) { return mergeFrom((io.kubernetes.client.proto.V1.EnvFromSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EnvFromSource other) { if (other == io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance()) return this; if (other.hasPrefix()) { bitField0_ |= 0x00000001; prefix_ = other.prefix_; onChanged(); } if (other.hasConfigMapRef()) { mergeConfigMapRef(other.getConfigMapRef()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } 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.V1.EnvFromSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EnvFromSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object prefix_ = ""; /** * * *
       * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
       * +optional
       * 
* * optional string prefix = 1; */ public boolean hasPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
       * +optional
       * 
* * optional string prefix = 1; */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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()) { prefix_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
       * +optional
       * 
* * optional string prefix = 1; */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
       * +optional
       * 
* * optional string prefix = 1; */ public Builder setPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; prefix_ = value; onChanged(); return this; } /** * * *
       * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
       * +optional
       * 
* * optional string prefix = 1; */ public Builder clearPrefix() { bitField0_ = (bitField0_ & ~0x00000001); prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** * * *
       * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
       * +optional
       * 
* * optional string prefix = 1; */ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; prefix_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.ConfigMapEnvSource configMapRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapEnvSource, io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder, io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder> configMapRefBuilder_; /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public boolean hasConfigMapRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public io.kubernetes.client.proto.V1.ConfigMapEnvSource getConfigMapRef() { if (configMapRefBuilder_ == null) { return configMapRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance() : configMapRef_; } else { return configMapRefBuilder_.getMessage(); } } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public Builder setConfigMapRef(io.kubernetes.client.proto.V1.ConfigMapEnvSource value) { if (configMapRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configMapRef_ = value; onChanged(); } else { configMapRefBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public Builder setConfigMapRef( io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder builderForValue) { if (configMapRefBuilder_ == null) { configMapRef_ = builderForValue.build(); onChanged(); } else { configMapRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public Builder mergeConfigMapRef(io.kubernetes.client.proto.V1.ConfigMapEnvSource value) { if (configMapRefBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && configMapRef_ != null && configMapRef_ != io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance()) { configMapRef_ = io.kubernetes.client.proto.V1.ConfigMapEnvSource.newBuilder(configMapRef_) .mergeFrom(value) .buildPartial(); } else { configMapRef_ = value; } onChanged(); } else { configMapRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public Builder clearConfigMapRef() { if (configMapRefBuilder_ == null) { configMapRef_ = null; onChanged(); } else { configMapRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder getConfigMapRefBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConfigMapRefFieldBuilder().getBuilder(); } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ public io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder getConfigMapRefOrBuilder() { if (configMapRefBuilder_ != null) { return configMapRefBuilder_.getMessageOrBuilder(); } else { return configMapRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapEnvSource.getDefaultInstance() : configMapRef_; } } /** * * *
       * The ConfigMap to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapEnvSource configMapRef = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapEnvSource, io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder, io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder> getConfigMapRefFieldBuilder() { if (configMapRefBuilder_ == null) { configMapRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapEnvSource, io.kubernetes.client.proto.V1.ConfigMapEnvSource.Builder, io.kubernetes.client.proto.V1.ConfigMapEnvSourceOrBuilder>( getConfigMapRef(), getParentForChildren(), isClean()); configMapRef_ = null; } return configMapRefBuilder_; } private io.kubernetes.client.proto.V1.SecretEnvSource secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretEnvSource, io.kubernetes.client.proto.V1.SecretEnvSource.Builder, io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder> secretRefBuilder_; /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretEnvSource getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretEnvSource value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretEnvSource.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretEnvSource value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretEnvSource.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretEnvSource.Builder getSecretRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance() : secretRef_; } } /** * * *
       * The Secret to select from
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretEnvSource secretRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretEnvSource, io.kubernetes.client.proto.V1.SecretEnvSource.Builder, io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretEnvSource, io.kubernetes.client.proto.V1.SecretEnvSource.Builder, io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } @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.core.v1.EnvFromSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EnvFromSource) private static final io.kubernetes.client.proto.V1.EnvFromSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EnvFromSource(); } public static io.kubernetes.client.proto.V1.EnvFromSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnvFromSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnvFromSource(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.V1.EnvFromSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvVarOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EnvVar) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the environment variable. Must be a C_IDENTIFIER.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name of the environment variable. Must be a C_IDENTIFIER.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name of the environment variable. Must be a C_IDENTIFIER.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Variable references $(VAR_NAME) are expanded
     * using the previously defined environment variables in the container and
     * any service environment variables. If a variable cannot be resolved,
     * the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
     * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
     * Escaped references will never be expanded, regardless of whether the variable
     * exists or not.
     * Defaults to "".
     * +optional
     * 
* * optional string value = 2; */ boolean hasValue(); /** * * *
     * Variable references $(VAR_NAME) are expanded
     * using the previously defined environment variables in the container and
     * any service environment variables. If a variable cannot be resolved,
     * the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
     * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
     * Escaped references will never be expanded, regardless of whether the variable
     * exists or not.
     * Defaults to "".
     * +optional
     * 
* * optional string value = 2; */ java.lang.String getValue(); /** * * *
     * Variable references $(VAR_NAME) are expanded
     * using the previously defined environment variables in the container and
     * any service environment variables. If a variable cannot be resolved,
     * the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
     * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
     * Escaped references will never be expanded, regardless of whether the variable
     * exists or not.
     * Defaults to "".
     * +optional
     * 
* * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); /** * * *
     * Source for the environment variable's value. Cannot be used if value is not empty.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ boolean hasValueFrom(); /** * * *
     * Source for the environment variable's value. Cannot be used if value is not empty.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ io.kubernetes.client.proto.V1.EnvVarSource getValueFrom(); /** * * *
     * Source for the environment variable's value. Cannot be used if value is not empty.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder getValueFromOrBuilder(); } /** * * *
   * EnvVar represents an environment variable present in a Container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EnvVar} */ public static final class EnvVar extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EnvVar) EnvVarOrBuilder { private static final long serialVersionUID = 0L; // Use EnvVar.newBuilder() to construct. private EnvVar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnvVar() { name_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnvVar( 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; value_ = bs; break; } case 26: { io.kubernetes.client.proto.V1.EnvVarSource.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = valueFrom_.toBuilder(); } valueFrom_ = input.readMessage( io.kubernetes.client.proto.V1.EnvVarSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(valueFrom_); valueFrom_ = 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.V1.internal_static_k8s_io_api_core_v1_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EnvVar.class, io.kubernetes.client.proto.V1.EnvVar.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name of the environment variable. Must be a C_IDENTIFIER.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the environment variable. Must be a C_IDENTIFIER.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of the environment variable. Must be a C_IDENTIFIER.
     * 
* * 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 VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * * *
     * Variable references $(VAR_NAME) are expanded
     * using the previously defined environment variables in the container and
     * any service environment variables. If a variable cannot be resolved,
     * the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
     * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
     * Escaped references will never be expanded, regardless of whether the variable
     * exists or not.
     * Defaults to "".
     * +optional
     * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Variable references $(VAR_NAME) are expanded
     * using the previously defined environment variables in the container and
     * any service environment variables. If a variable cannot be resolved,
     * the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
     * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
     * Escaped references will never be expanded, regardless of whether the variable
     * exists or not.
     * Defaults to "".
     * +optional
     * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * * *
     * Variable references $(VAR_NAME) are expanded
     * using the previously defined environment variables in the container and
     * any service environment variables. If a variable cannot be resolved,
     * the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
     * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
     * Escaped references will never be expanded, regardless of whether the variable
     * exists or not.
     * Defaults to "".
     * +optional
     * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUEFROM_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.EnvVarSource valueFrom_; /** * * *
     * Source for the environment variable's value. Cannot be used if value is not empty.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public boolean hasValueFrom() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Source for the environment variable's value. Cannot be used if value is not empty.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public io.kubernetes.client.proto.V1.EnvVarSource getValueFrom() { return valueFrom_ == null ? io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance() : valueFrom_; } /** * * *
     * Source for the environment variable's value. Cannot be used if value is not empty.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder getValueFromOrBuilder() { return valueFrom_ == null ? io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance() : valueFrom_; } 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, value_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getValueFrom()); } 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, value_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValueFrom()); } 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.V1.EnvVar)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EnvVar other = (io.kubernetes.client.proto.V1.EnvVar) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } result = result && (hasValueFrom() == other.hasValueFrom()); if (hasValueFrom()) { result = result && getValueFrom().equals(other.getValueFrom()); } 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasValueFrom()) { hash = (37 * hash) + VALUEFROM_FIELD_NUMBER; hash = (53 * hash) + getValueFrom().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EnvVar parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvVar 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.V1.EnvVar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvVar 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.V1.EnvVar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvVar parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EnvVar parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvVar 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.V1.EnvVar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvVar 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.V1.EnvVar parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvVar 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.V1.EnvVar 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; } /** * * *
     * EnvVar represents an environment variable present in a Container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EnvVar} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EnvVar) io.kubernetes.client.proto.V1.EnvVarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_EnvVar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EnvVar_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EnvVar.class, io.kubernetes.client.proto.V1.EnvVar.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EnvVar.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValueFromFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (valueFromBuilder_ == null) { valueFrom_ = null; } else { valueFromBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_EnvVar_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EnvVar getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EnvVar build() { io.kubernetes.client.proto.V1.EnvVar result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EnvVar buildPartial() { io.kubernetes.client.proto.V1.EnvVar result = new io.kubernetes.client.proto.V1.EnvVar(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.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (valueFromBuilder_ == null) { result.valueFrom_ = valueFrom_; } else { result.valueFrom_ = valueFromBuilder_.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.V1.EnvVar) { return mergeFrom((io.kubernetes.client.proto.V1.EnvVar) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EnvVar other) { if (other == io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } if (other.hasValueFrom()) { mergeValueFrom(other.getValueFrom()); } 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.V1.EnvVar parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EnvVar) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name of the environment variable. Must be a C_IDENTIFIER.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the environment variable. Must be a C_IDENTIFIER.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the environment variable. Must be a C_IDENTIFIER.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the environment variable. Must be a C_IDENTIFIER.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name of the environment variable. Must be a C_IDENTIFIER.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of the environment variable. Must be a C_IDENTIFIER.
       * 
* * 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 value_ = ""; /** * * *
       * Variable references $(VAR_NAME) are expanded
       * using the previously defined environment variables in the container and
       * any service environment variables. If a variable cannot be resolved,
       * the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
       * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
       * Escaped references will never be expanded, regardless of whether the variable
       * exists or not.
       * Defaults to "".
       * +optional
       * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Variable references $(VAR_NAME) are expanded
       * using the previously defined environment variables in the container and
       * any service environment variables. If a variable cannot be resolved,
       * the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
       * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
       * Escaped references will never be expanded, regardless of whether the variable
       * exists or not.
       * Defaults to "".
       * +optional
       * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Variable references $(VAR_NAME) are expanded
       * using the previously defined environment variables in the container and
       * any service environment variables. If a variable cannot be resolved,
       * the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
       * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
       * Escaped references will never be expanded, regardless of whether the variable
       * exists or not.
       * Defaults to "".
       * +optional
       * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Variable references $(VAR_NAME) are expanded
       * using the previously defined environment variables in the container and
       * any service environment variables. If a variable cannot be resolved,
       * the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
       * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
       * Escaped references will never be expanded, regardless of whether the variable
       * exists or not.
       * Defaults to "".
       * +optional
       * 
* * optional string value = 2; */ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * * *
       * Variable references $(VAR_NAME) are expanded
       * using the previously defined environment variables in the container and
       * any service environment variables. If a variable cannot be resolved,
       * the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
       * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
       * Escaped references will never be expanded, regardless of whether the variable
       * exists or not.
       * Defaults to "".
       * +optional
       * 
* * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * * *
       * Variable references $(VAR_NAME) are expanded
       * using the previously defined environment variables in the container and
       * any service environment variables. If a variable cannot be resolved,
       * the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
       * "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
       * Escaped references will never be expanded, regardless of whether the variable
       * exists or not.
       * Defaults to "".
       * +optional
       * 
* * optional string value = 2; */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.EnvVarSource valueFrom_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVarSource, io.kubernetes.client.proto.V1.EnvVarSource.Builder, io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder> valueFromBuilder_; /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public boolean hasValueFrom() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public io.kubernetes.client.proto.V1.EnvVarSource getValueFrom() { if (valueFromBuilder_ == null) { return valueFrom_ == null ? io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance() : valueFrom_; } else { return valueFromBuilder_.getMessage(); } } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public Builder setValueFrom(io.kubernetes.client.proto.V1.EnvVarSource value) { if (valueFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } valueFrom_ = value; onChanged(); } else { valueFromBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public Builder setValueFrom( io.kubernetes.client.proto.V1.EnvVarSource.Builder builderForValue) { if (valueFromBuilder_ == null) { valueFrom_ = builderForValue.build(); onChanged(); } else { valueFromBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public Builder mergeValueFrom(io.kubernetes.client.proto.V1.EnvVarSource value) { if (valueFromBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && valueFrom_ != null && valueFrom_ != io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance()) { valueFrom_ = io.kubernetes.client.proto.V1.EnvVarSource.newBuilder(valueFrom_) .mergeFrom(value) .buildPartial(); } else { valueFrom_ = value; } onChanged(); } else { valueFromBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public Builder clearValueFrom() { if (valueFromBuilder_ == null) { valueFrom_ = null; onChanged(); } else { valueFromBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public io.kubernetes.client.proto.V1.EnvVarSource.Builder getValueFromBuilder() { bitField0_ |= 0x00000004; onChanged(); return getValueFromFieldBuilder().getBuilder(); } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ public io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder getValueFromOrBuilder() { if (valueFromBuilder_ != null) { return valueFromBuilder_.getMessageOrBuilder(); } else { return valueFrom_ == null ? io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance() : valueFrom_; } } /** * * *
       * Source for the environment variable's value. Cannot be used if value is not empty.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EnvVarSource valueFrom = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVarSource, io.kubernetes.client.proto.V1.EnvVarSource.Builder, io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder> getValueFromFieldBuilder() { if (valueFromBuilder_ == null) { valueFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVarSource, io.kubernetes.client.proto.V1.EnvVarSource.Builder, io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder>( getValueFrom(), getParentForChildren(), isClean()); valueFrom_ = null; } return valueFromBuilder_; } @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.core.v1.EnvVar) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EnvVar) private static final io.kubernetes.client.proto.V1.EnvVar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EnvVar(); } public static io.kubernetes.client.proto.V1.EnvVar getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnvVar parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnvVar(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.V1.EnvVar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnvVarSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EnvVarSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
     * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ boolean hasFieldRef(); /** * * *
     * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
     * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ io.kubernetes.client.proto.V1.ObjectFieldSelector getFieldRef(); /** * * *
     * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
     * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder getFieldRefOrBuilder(); /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ boolean hasResourceFieldRef(); /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ io.kubernetes.client.proto.V1.ResourceFieldSelector getResourceFieldRef(); /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder getResourceFieldRefOrBuilder(); /** * * *
     * Selects a key of a ConfigMap.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ boolean hasConfigMapKeyRef(); /** * * *
     * Selects a key of a ConfigMap.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ io.kubernetes.client.proto.V1.ConfigMapKeySelector getConfigMapKeyRef(); /** * * *
     * Selects a key of a ConfigMap.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder getConfigMapKeyRefOrBuilder(); /** * * *
     * Selects a key of a secret in the pod's namespace
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ boolean hasSecretKeyRef(); /** * * *
     * Selects a key of a secret in the pod's namespace
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ io.kubernetes.client.proto.V1.SecretKeySelector getSecretKeyRef(); /** * * *
     * Selects a key of a secret in the pod's namespace
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder getSecretKeyRefOrBuilder(); } /** * * *
   * EnvVarSource represents a source for the value of an EnvVar.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EnvVarSource} */ public static final class EnvVarSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EnvVarSource) EnvVarSourceOrBuilder { private static final long serialVersionUID = 0L; // Use EnvVarSource.newBuilder() to construct. private EnvVarSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnvVarSource() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnvVarSource( 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.V1.ObjectFieldSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = fieldRef_.toBuilder(); } fieldRef_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectFieldSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fieldRef_); fieldRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = resourceFieldRef_.toBuilder(); } resourceFieldRef_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceFieldSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourceFieldRef_); resourceFieldRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = configMapKeyRef_.toBuilder(); } configMapKeyRef_ = input.readMessage( io.kubernetes.client.proto.V1.ConfigMapKeySelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configMapKeyRef_); configMapKeyRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.V1.SecretKeySelector.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = secretKeyRef_.toBuilder(); } secretKeyRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretKeySelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretKeyRef_); secretKeyRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_EnvVarSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EnvVarSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EnvVarSource.class, io.kubernetes.client.proto.V1.EnvVarSource.Builder.class); } private int bitField0_; public static final int FIELDREF_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ObjectFieldSelector fieldRef_; /** * * *
     * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
     * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public boolean hasFieldRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
     * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public io.kubernetes.client.proto.V1.ObjectFieldSelector getFieldRef() { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } /** * * *
     * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
     * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder getFieldRefOrBuilder() { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } public static final int RESOURCEFIELDREF_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ResourceFieldSelector resourceFieldRef_; /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public boolean hasResourceFieldRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public io.kubernetes.client.proto.V1.ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } /** * * *
     * Selects a resource of the container: only resources limits and requests
     * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder getResourceFieldRefOrBuilder() { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } public static final int CONFIGMAPKEYREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ConfigMapKeySelector configMapKeyRef_; /** * * *
     * Selects a key of a ConfigMap.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public boolean hasConfigMapKeyRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Selects a key of a ConfigMap.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public io.kubernetes.client.proto.V1.ConfigMapKeySelector getConfigMapKeyRef() { return configMapKeyRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance() : configMapKeyRef_; } /** * * *
     * Selects a key of a ConfigMap.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder getConfigMapKeyRefOrBuilder() { return configMapKeyRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance() : configMapKeyRef_; } public static final int SECRETKEYREF_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.SecretKeySelector secretKeyRef_; /** * * *
     * Selects a key of a secret in the pod's namespace
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public boolean hasSecretKeyRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Selects a key of a secret in the pod's namespace
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public io.kubernetes.client.proto.V1.SecretKeySelector getSecretKeyRef() { return secretKeyRef_ == null ? io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } /** * * *
     * Selects a key of a secret in the pod's namespace
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder getSecretKeyRefOrBuilder() { return secretKeyRef_ == null ? io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } 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, getFieldRef()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getResourceFieldRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getConfigMapKeyRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getSecretKeyRef()); } 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, getFieldRef()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceFieldRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfigMapKeyRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSecretKeyRef()); } 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.V1.EnvVarSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EnvVarSource other = (io.kubernetes.client.proto.V1.EnvVarSource) obj; boolean result = true; result = result && (hasFieldRef() == other.hasFieldRef()); if (hasFieldRef()) { result = result && getFieldRef().equals(other.getFieldRef()); } result = result && (hasResourceFieldRef() == other.hasResourceFieldRef()); if (hasResourceFieldRef()) { result = result && getResourceFieldRef().equals(other.getResourceFieldRef()); } result = result && (hasConfigMapKeyRef() == other.hasConfigMapKeyRef()); if (hasConfigMapKeyRef()) { result = result && getConfigMapKeyRef().equals(other.getConfigMapKeyRef()); } result = result && (hasSecretKeyRef() == other.hasSecretKeyRef()); if (hasSecretKeyRef()) { result = result && getSecretKeyRef().equals(other.getSecretKeyRef()); } 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 (hasFieldRef()) { hash = (37 * hash) + FIELDREF_FIELD_NUMBER; hash = (53 * hash) + getFieldRef().hashCode(); } if (hasResourceFieldRef()) { hash = (37 * hash) + RESOURCEFIELDREF_FIELD_NUMBER; hash = (53 * hash) + getResourceFieldRef().hashCode(); } if (hasConfigMapKeyRef()) { hash = (37 * hash) + CONFIGMAPKEYREF_FIELD_NUMBER; hash = (53 * hash) + getConfigMapKeyRef().hashCode(); } if (hasSecretKeyRef()) { hash = (37 * hash) + SECRETKEYREF_FIELD_NUMBER; hash = (53 * hash) + getSecretKeyRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EnvVarSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvVarSource 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.V1.EnvVarSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvVarSource 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.V1.EnvVarSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EnvVarSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EnvVarSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvVarSource 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.V1.EnvVarSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvVarSource 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.V1.EnvVarSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EnvVarSource 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.V1.EnvVarSource 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; } /** * * *
     * EnvVarSource represents a source for the value of an EnvVar.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EnvVarSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EnvVarSource) io.kubernetes.client.proto.V1.EnvVarSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EnvVarSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EnvVarSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EnvVarSource.class, io.kubernetes.client.proto.V1.EnvVarSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EnvVarSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFieldRefFieldBuilder(); getResourceFieldRefFieldBuilder(); getConfigMapKeyRefFieldBuilder(); getSecretKeyRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (fieldRefBuilder_ == null) { fieldRef_ = null; } else { fieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (resourceFieldRefBuilder_ == null) { resourceFieldRef_ = null; } else { resourceFieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (configMapKeyRefBuilder_ == null) { configMapKeyRef_ = null; } else { configMapKeyRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (secretKeyRefBuilder_ == null) { secretKeyRef_ = null; } else { secretKeyRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EnvVarSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EnvVarSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EnvVarSource build() { io.kubernetes.client.proto.V1.EnvVarSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EnvVarSource buildPartial() { io.kubernetes.client.proto.V1.EnvVarSource result = new io.kubernetes.client.proto.V1.EnvVarSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (fieldRefBuilder_ == null) { result.fieldRef_ = fieldRef_; } else { result.fieldRef_ = fieldRefBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (resourceFieldRefBuilder_ == null) { result.resourceFieldRef_ = resourceFieldRef_; } else { result.resourceFieldRef_ = resourceFieldRefBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (configMapKeyRefBuilder_ == null) { result.configMapKeyRef_ = configMapKeyRef_; } else { result.configMapKeyRef_ = configMapKeyRefBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (secretKeyRefBuilder_ == null) { result.secretKeyRef_ = secretKeyRef_; } else { result.secretKeyRef_ = secretKeyRefBuilder_.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.V1.EnvVarSource) { return mergeFrom((io.kubernetes.client.proto.V1.EnvVarSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EnvVarSource other) { if (other == io.kubernetes.client.proto.V1.EnvVarSource.getDefaultInstance()) return this; if (other.hasFieldRef()) { mergeFieldRef(other.getFieldRef()); } if (other.hasResourceFieldRef()) { mergeResourceFieldRef(other.getResourceFieldRef()); } if (other.hasConfigMapKeyRef()) { mergeConfigMapKeyRef(other.getConfigMapKeyRef()); } if (other.hasSecretKeyRef()) { mergeSecretKeyRef(other.getSecretKeyRef()); } 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.V1.EnvVarSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EnvVarSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ObjectFieldSelector fieldRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectFieldSelector, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder, io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder> fieldRefBuilder_; /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public boolean hasFieldRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public io.kubernetes.client.proto.V1.ObjectFieldSelector getFieldRef() { if (fieldRefBuilder_ == null) { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } else { return fieldRefBuilder_.getMessage(); } } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public Builder setFieldRef(io.kubernetes.client.proto.V1.ObjectFieldSelector value) { if (fieldRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldRef_ = value; onChanged(); } else { fieldRefBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public Builder setFieldRef( io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder builderForValue) { if (fieldRefBuilder_ == null) { fieldRef_ = builderForValue.build(); onChanged(); } else { fieldRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public Builder mergeFieldRef(io.kubernetes.client.proto.V1.ObjectFieldSelector value) { if (fieldRefBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && fieldRef_ != null && fieldRef_ != io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance()) { fieldRef_ = io.kubernetes.client.proto.V1.ObjectFieldSelector.newBuilder(fieldRef_) .mergeFrom(value) .buildPartial(); } else { fieldRef_ = value; } onChanged(); } else { fieldRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public Builder clearFieldRef() { if (fieldRefBuilder_ == null) { fieldRef_ = null; onChanged(); } else { fieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder getFieldRefBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFieldRefFieldBuilder().getBuilder(); } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ public io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder getFieldRefOrBuilder() { if (fieldRefBuilder_ != null) { return fieldRefBuilder_.getMessageOrBuilder(); } else { return fieldRef_ == null ? io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance() : fieldRef_; } } /** * * *
       * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
       * spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectFieldSelector fieldRef = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectFieldSelector, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder, io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder> getFieldRefFieldBuilder() { if (fieldRefBuilder_ == null) { fieldRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectFieldSelector, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder, io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder>( getFieldRef(), getParentForChildren(), isClean()); fieldRef_ = null; } return fieldRefBuilder_; } private io.kubernetes.client.proto.V1.ResourceFieldSelector resourceFieldRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceFieldSelector, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder, io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder> resourceFieldRefBuilder_; /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public boolean hasResourceFieldRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public io.kubernetes.client.proto.V1.ResourceFieldSelector getResourceFieldRef() { if (resourceFieldRefBuilder_ == null) { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } else { return resourceFieldRefBuilder_.getMessage(); } } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public Builder setResourceFieldRef( io.kubernetes.client.proto.V1.ResourceFieldSelector value) { if (resourceFieldRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceFieldRef_ = value; onChanged(); } else { resourceFieldRefBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public Builder setResourceFieldRef( io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder builderForValue) { if (resourceFieldRefBuilder_ == null) { resourceFieldRef_ = builderForValue.build(); onChanged(); } else { resourceFieldRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public Builder mergeResourceFieldRef( io.kubernetes.client.proto.V1.ResourceFieldSelector value) { if (resourceFieldRefBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && resourceFieldRef_ != null && resourceFieldRef_ != io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance()) { resourceFieldRef_ = io.kubernetes.client.proto.V1.ResourceFieldSelector.newBuilder(resourceFieldRef_) .mergeFrom(value) .buildPartial(); } else { resourceFieldRef_ = value; } onChanged(); } else { resourceFieldRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public Builder clearResourceFieldRef() { if (resourceFieldRefBuilder_ == null) { resourceFieldRef_ = null; onChanged(); } else { resourceFieldRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder getResourceFieldRefBuilder() { bitField0_ |= 0x00000002; onChanged(); return getResourceFieldRefFieldBuilder().getBuilder(); } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ public io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder getResourceFieldRefOrBuilder() { if (resourceFieldRefBuilder_ != null) { return resourceFieldRefBuilder_.getMessageOrBuilder(); } else { return resourceFieldRef_ == null ? io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance() : resourceFieldRef_; } } /** * * *
       * Selects a resource of the container: only resources limits and requests
       * (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceFieldSelector resourceFieldRef = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceFieldSelector, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder, io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder> getResourceFieldRefFieldBuilder() { if (resourceFieldRefBuilder_ == null) { resourceFieldRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceFieldSelector, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder, io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder>( getResourceFieldRef(), getParentForChildren(), isClean()); resourceFieldRef_ = null; } return resourceFieldRefBuilder_; } private io.kubernetes.client.proto.V1.ConfigMapKeySelector configMapKeyRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapKeySelector, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder, io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder> configMapKeyRefBuilder_; /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public boolean hasConfigMapKeyRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public io.kubernetes.client.proto.V1.ConfigMapKeySelector getConfigMapKeyRef() { if (configMapKeyRefBuilder_ == null) { return configMapKeyRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance() : configMapKeyRef_; } else { return configMapKeyRefBuilder_.getMessage(); } } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public Builder setConfigMapKeyRef(io.kubernetes.client.proto.V1.ConfigMapKeySelector value) { if (configMapKeyRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configMapKeyRef_ = value; onChanged(); } else { configMapKeyRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public Builder setConfigMapKeyRef( io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder builderForValue) { if (configMapKeyRefBuilder_ == null) { configMapKeyRef_ = builderForValue.build(); onChanged(); } else { configMapKeyRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public Builder mergeConfigMapKeyRef( io.kubernetes.client.proto.V1.ConfigMapKeySelector value) { if (configMapKeyRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && configMapKeyRef_ != null && configMapKeyRef_ != io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance()) { configMapKeyRef_ = io.kubernetes.client.proto.V1.ConfigMapKeySelector.newBuilder(configMapKeyRef_) .mergeFrom(value) .buildPartial(); } else { configMapKeyRef_ = value; } onChanged(); } else { configMapKeyRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public Builder clearConfigMapKeyRef() { if (configMapKeyRefBuilder_ == null) { configMapKeyRef_ = null; onChanged(); } else { configMapKeyRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder getConfigMapKeyRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getConfigMapKeyRefFieldBuilder().getBuilder(); } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ public io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder getConfigMapKeyRefOrBuilder() { if (configMapKeyRefBuilder_ != null) { return configMapKeyRefBuilder_.getMessageOrBuilder(); } else { return configMapKeyRef_ == null ? io.kubernetes.client.proto.V1.ConfigMapKeySelector.getDefaultInstance() : configMapKeyRef_; } } /** * * *
       * Selects a key of a ConfigMap.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapKeySelector configMapKeyRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapKeySelector, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder, io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder> getConfigMapKeyRefFieldBuilder() { if (configMapKeyRefBuilder_ == null) { configMapKeyRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapKeySelector, io.kubernetes.client.proto.V1.ConfigMapKeySelector.Builder, io.kubernetes.client.proto.V1.ConfigMapKeySelectorOrBuilder>( getConfigMapKeyRef(), getParentForChildren(), isClean()); configMapKeyRef_ = null; } return configMapKeyRefBuilder_; } private io.kubernetes.client.proto.V1.SecretKeySelector secretKeyRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretKeySelector, io.kubernetes.client.proto.V1.SecretKeySelector.Builder, io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder> secretKeyRefBuilder_; /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public boolean hasSecretKeyRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public io.kubernetes.client.proto.V1.SecretKeySelector getSecretKeyRef() { if (secretKeyRefBuilder_ == null) { return secretKeyRef_ == null ? io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } else { return secretKeyRefBuilder_.getMessage(); } } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public Builder setSecretKeyRef(io.kubernetes.client.proto.V1.SecretKeySelector value) { if (secretKeyRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretKeyRef_ = value; onChanged(); } else { secretKeyRefBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public Builder setSecretKeyRef( io.kubernetes.client.proto.V1.SecretKeySelector.Builder builderForValue) { if (secretKeyRefBuilder_ == null) { secretKeyRef_ = builderForValue.build(); onChanged(); } else { secretKeyRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public Builder mergeSecretKeyRef(io.kubernetes.client.proto.V1.SecretKeySelector value) { if (secretKeyRefBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && secretKeyRef_ != null && secretKeyRef_ != io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance()) { secretKeyRef_ = io.kubernetes.client.proto.V1.SecretKeySelector.newBuilder(secretKeyRef_) .mergeFrom(value) .buildPartial(); } else { secretKeyRef_ = value; } onChanged(); } else { secretKeyRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public Builder clearSecretKeyRef() { if (secretKeyRefBuilder_ == null) { secretKeyRef_ = null; onChanged(); } else { secretKeyRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public io.kubernetes.client.proto.V1.SecretKeySelector.Builder getSecretKeyRefBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSecretKeyRefFieldBuilder().getBuilder(); } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ public io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder getSecretKeyRefOrBuilder() { if (secretKeyRefBuilder_ != null) { return secretKeyRefBuilder_.getMessageOrBuilder(); } else { return secretKeyRef_ == null ? io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance() : secretKeyRef_; } } /** * * *
       * Selects a key of a secret in the pod's namespace
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretKeySelector secretKeyRef = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretKeySelector, io.kubernetes.client.proto.V1.SecretKeySelector.Builder, io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder> getSecretKeyRefFieldBuilder() { if (secretKeyRefBuilder_ == null) { secretKeyRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretKeySelector, io.kubernetes.client.proto.V1.SecretKeySelector.Builder, io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder>( getSecretKeyRef(), getParentForChildren(), isClean()); secretKeyRef_ = null; } return secretKeyRefBuilder_; } @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.core.v1.EnvVarSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EnvVarSource) private static final io.kubernetes.client.proto.V1.EnvVarSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EnvVarSource(); } public static io.kubernetes.client.proto.V1.EnvVarSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnvVarSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnvVarSource(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.V1.EnvVarSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EphemeralContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EphemeralContainer) com.google.protobuf.MessageOrBuilder { /** * * *
     * Ephemeral containers have all of the fields of Container, plus additional fields
     * specific to ephemeral containers. Fields in common with Container are in the
     * following inlined struct so than an EphemeralContainer may easily be converted
     * to a Container.
     * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ boolean hasEphemeralContainerCommon(); /** * * *
     * Ephemeral containers have all of the fields of Container, plus additional fields
     * specific to ephemeral containers. Fields in common with Container are in the
     * following inlined struct so than an EphemeralContainer may easily be converted
     * to a Container.
     * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ io.kubernetes.client.proto.V1.EphemeralContainerCommon getEphemeralContainerCommon(); /** * * *
     * Ephemeral containers have all of the fields of Container, plus additional fields
     * specific to ephemeral containers. Fields in common with Container are in the
     * following inlined struct so than an EphemeralContainer may easily be converted
     * to a Container.
     * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder getEphemeralContainerCommonOrBuilder(); /** * * *
     * If set, the name of the container from PodSpec that this ephemeral container targets.
     * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
     * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
     * The container runtime must implement support for this feature. If the runtime does not
     * support namespace targeting then the result of setting this field is undefined.
     * +optional
     * 
* * optional string targetContainerName = 2; */ boolean hasTargetContainerName(); /** * * *
     * If set, the name of the container from PodSpec that this ephemeral container targets.
     * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
     * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
     * The container runtime must implement support for this feature. If the runtime does not
     * support namespace targeting then the result of setting this field is undefined.
     * +optional
     * 
* * optional string targetContainerName = 2; */ java.lang.String getTargetContainerName(); /** * * *
     * If set, the name of the container from PodSpec that this ephemeral container targets.
     * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
     * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
     * The container runtime must implement support for this feature. If the runtime does not
     * support namespace targeting then the result of setting this field is undefined.
     * +optional
     * 
* * optional string targetContainerName = 2; */ com.google.protobuf.ByteString getTargetContainerNameBytes(); } /** * * *
   * An EphemeralContainer is a temporary container that you may add to an existing Pod for
   * user-initiated activities such as debugging. Ephemeral containers have no resource or
   * scheduling guarantees, and they will not be restarted when they exit or when a Pod is
   * removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the
   * Pod to exceed its resource allocation.
   * To add an ephemeral container, use the ephemeralcontainers subresource of an existing
   * Pod. Ephemeral containers may not be removed or restarted.
   * This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EphemeralContainer} */ public static final class EphemeralContainer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EphemeralContainer) EphemeralContainerOrBuilder { private static final long serialVersionUID = 0L; // Use EphemeralContainer.newBuilder() to construct. private EphemeralContainer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EphemeralContainer() { targetContainerName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EphemeralContainer( 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.V1.EphemeralContainerCommon.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = ephemeralContainerCommon_.toBuilder(); } ephemeralContainerCommon_ = input.readMessage( io.kubernetes.client.proto.V1.EphemeralContainerCommon.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ephemeralContainerCommon_); ephemeralContainerCommon_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; targetContainerName_ = 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 .V1 .internal_static_k8s_io_api_core_v1_EphemeralContainer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EphemeralContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EphemeralContainer.class, io.kubernetes.client.proto.V1.EphemeralContainer.Builder.class); } private int bitField0_; public static final int EPHEMERALCONTAINERCOMMON_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.EphemeralContainerCommon ephemeralContainerCommon_; /** * * *
     * Ephemeral containers have all of the fields of Container, plus additional fields
     * specific to ephemeral containers. Fields in common with Container are in the
     * following inlined struct so than an EphemeralContainer may easily be converted
     * to a Container.
     * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public boolean hasEphemeralContainerCommon() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Ephemeral containers have all of the fields of Container, plus additional fields
     * specific to ephemeral containers. Fields in common with Container are in the
     * following inlined struct so than an EphemeralContainer may easily be converted
     * to a Container.
     * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public io.kubernetes.client.proto.V1.EphemeralContainerCommon getEphemeralContainerCommon() { return ephemeralContainerCommon_ == null ? io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance() : ephemeralContainerCommon_; } /** * * *
     * Ephemeral containers have all of the fields of Container, plus additional fields
     * specific to ephemeral containers. Fields in common with Container are in the
     * following inlined struct so than an EphemeralContainer may easily be converted
     * to a Container.
     * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder getEphemeralContainerCommonOrBuilder() { return ephemeralContainerCommon_ == null ? io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance() : ephemeralContainerCommon_; } public static final int TARGETCONTAINERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object targetContainerName_; /** * * *
     * If set, the name of the container from PodSpec that this ephemeral container targets.
     * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
     * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
     * The container runtime must implement support for this feature. If the runtime does not
     * support namespace targeting then the result of setting this field is undefined.
     * +optional
     * 
* * optional string targetContainerName = 2; */ public boolean hasTargetContainerName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * If set, the name of the container from PodSpec that this ephemeral container targets.
     * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
     * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
     * The container runtime must implement support for this feature. If the runtime does not
     * support namespace targeting then the result of setting this field is undefined.
     * +optional
     * 
* * optional string targetContainerName = 2; */ public java.lang.String getTargetContainerName() { java.lang.Object ref = targetContainerName_; 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()) { targetContainerName_ = s; } return s; } } /** * * *
     * If set, the name of the container from PodSpec that this ephemeral container targets.
     * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
     * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
     * The container runtime must implement support for this feature. If the runtime does not
     * support namespace targeting then the result of setting this field is undefined.
     * +optional
     * 
* * optional string targetContainerName = 2; */ public com.google.protobuf.ByteString getTargetContainerNameBytes() { java.lang.Object ref = targetContainerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetContainerName_ = 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, getEphemeralContainerCommon()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetContainerName_); } 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, getEphemeralContainerCommon()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetContainerName_); } 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.V1.EphemeralContainer)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EphemeralContainer other = (io.kubernetes.client.proto.V1.EphemeralContainer) obj; boolean result = true; result = result && (hasEphemeralContainerCommon() == other.hasEphemeralContainerCommon()); if (hasEphemeralContainerCommon()) { result = result && getEphemeralContainerCommon().equals(other.getEphemeralContainerCommon()); } result = result && (hasTargetContainerName() == other.hasTargetContainerName()); if (hasTargetContainerName()) { result = result && getTargetContainerName().equals(other.getTargetContainerName()); } 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 (hasEphemeralContainerCommon()) { hash = (37 * hash) + EPHEMERALCONTAINERCOMMON_FIELD_NUMBER; hash = (53 * hash) + getEphemeralContainerCommon().hashCode(); } if (hasTargetContainerName()) { hash = (37 * hash) + TARGETCONTAINERNAME_FIELD_NUMBER; hash = (53 * hash) + getTargetContainerName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EphemeralContainer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralContainer 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.V1.EphemeralContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralContainer 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.V1.EphemeralContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EphemeralContainer parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralContainer 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.V1.EphemeralContainer parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralContainer 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.V1.EphemeralContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralContainer 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.V1.EphemeralContainer 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; } /** * * *
     * An EphemeralContainer is a temporary container that you may add to an existing Pod for
     * user-initiated activities such as debugging. Ephemeral containers have no resource or
     * scheduling guarantees, and they will not be restarted when they exit or when a Pod is
     * removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the
     * Pod to exceed its resource allocation.
     * To add an ephemeral container, use the ephemeralcontainers subresource of an existing
     * Pod. Ephemeral containers may not be removed or restarted.
     * This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EphemeralContainer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EphemeralContainer) io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralContainer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EphemeralContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EphemeralContainer.class, io.kubernetes.client.proto.V1.EphemeralContainer.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EphemeralContainer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEphemeralContainerCommonFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (ephemeralContainerCommonBuilder_ == null) { ephemeralContainerCommon_ = null; } else { ephemeralContainerCommonBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); targetContainerName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralContainer_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralContainer getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EphemeralContainer.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralContainer build() { io.kubernetes.client.proto.V1.EphemeralContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralContainer buildPartial() { io.kubernetes.client.proto.V1.EphemeralContainer result = new io.kubernetes.client.proto.V1.EphemeralContainer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (ephemeralContainerCommonBuilder_ == null) { result.ephemeralContainerCommon_ = ephemeralContainerCommon_; } else { result.ephemeralContainerCommon_ = ephemeralContainerCommonBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.targetContainerName_ = targetContainerName_; 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.V1.EphemeralContainer) { return mergeFrom((io.kubernetes.client.proto.V1.EphemeralContainer) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EphemeralContainer other) { if (other == io.kubernetes.client.proto.V1.EphemeralContainer.getDefaultInstance()) return this; if (other.hasEphemeralContainerCommon()) { mergeEphemeralContainerCommon(other.getEphemeralContainerCommon()); } if (other.hasTargetContainerName()) { bitField0_ |= 0x00000002; targetContainerName_ = other.targetContainerName_; 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.V1.EphemeralContainer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EphemeralContainer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.EphemeralContainerCommon ephemeralContainerCommon_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralContainerCommon, io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder, io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder> ephemeralContainerCommonBuilder_; /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public boolean hasEphemeralContainerCommon() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public io.kubernetes.client.proto.V1.EphemeralContainerCommon getEphemeralContainerCommon() { if (ephemeralContainerCommonBuilder_ == null) { return ephemeralContainerCommon_ == null ? io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance() : ephemeralContainerCommon_; } else { return ephemeralContainerCommonBuilder_.getMessage(); } } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public Builder setEphemeralContainerCommon( io.kubernetes.client.proto.V1.EphemeralContainerCommon value) { if (ephemeralContainerCommonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ephemeralContainerCommon_ = value; onChanged(); } else { ephemeralContainerCommonBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public Builder setEphemeralContainerCommon( io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder builderForValue) { if (ephemeralContainerCommonBuilder_ == null) { ephemeralContainerCommon_ = builderForValue.build(); onChanged(); } else { ephemeralContainerCommonBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public Builder mergeEphemeralContainerCommon( io.kubernetes.client.proto.V1.EphemeralContainerCommon value) { if (ephemeralContainerCommonBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && ephemeralContainerCommon_ != null && ephemeralContainerCommon_ != io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance()) { ephemeralContainerCommon_ = io.kubernetes.client.proto.V1.EphemeralContainerCommon.newBuilder( ephemeralContainerCommon_) .mergeFrom(value) .buildPartial(); } else { ephemeralContainerCommon_ = value; } onChanged(); } else { ephemeralContainerCommonBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public Builder clearEphemeralContainerCommon() { if (ephemeralContainerCommonBuilder_ == null) { ephemeralContainerCommon_ = null; onChanged(); } else { ephemeralContainerCommonBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder getEphemeralContainerCommonBuilder() { bitField0_ |= 0x00000001; onChanged(); return getEphemeralContainerCommonFieldBuilder().getBuilder(); } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ public io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder getEphemeralContainerCommonOrBuilder() { if (ephemeralContainerCommonBuilder_ != null) { return ephemeralContainerCommonBuilder_.getMessageOrBuilder(); } else { return ephemeralContainerCommon_ == null ? io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance() : ephemeralContainerCommon_; } } /** * * *
       * Ephemeral containers have all of the fields of Container, plus additional fields
       * specific to ephemeral containers. Fields in common with Container are in the
       * following inlined struct so than an EphemeralContainer may easily be converted
       * to a Container.
       * 
* * optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralContainerCommon, io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder, io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder> getEphemeralContainerCommonFieldBuilder() { if (ephemeralContainerCommonBuilder_ == null) { ephemeralContainerCommonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralContainerCommon, io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder, io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder>( getEphemeralContainerCommon(), getParentForChildren(), isClean()); ephemeralContainerCommon_ = null; } return ephemeralContainerCommonBuilder_; } private java.lang.Object targetContainerName_ = ""; /** * * *
       * If set, the name of the container from PodSpec that this ephemeral container targets.
       * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
       * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
       * The container runtime must implement support for this feature. If the runtime does not
       * support namespace targeting then the result of setting this field is undefined.
       * +optional
       * 
* * optional string targetContainerName = 2; */ public boolean hasTargetContainerName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * If set, the name of the container from PodSpec that this ephemeral container targets.
       * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
       * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
       * The container runtime must implement support for this feature. If the runtime does not
       * support namespace targeting then the result of setting this field is undefined.
       * +optional
       * 
* * optional string targetContainerName = 2; */ public java.lang.String getTargetContainerName() { java.lang.Object ref = targetContainerName_; 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()) { targetContainerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * If set, the name of the container from PodSpec that this ephemeral container targets.
       * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
       * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
       * The container runtime must implement support for this feature. If the runtime does not
       * support namespace targeting then the result of setting this field is undefined.
       * +optional
       * 
* * optional string targetContainerName = 2; */ public com.google.protobuf.ByteString getTargetContainerNameBytes() { java.lang.Object ref = targetContainerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetContainerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * If set, the name of the container from PodSpec that this ephemeral container targets.
       * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
       * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
       * The container runtime must implement support for this feature. If the runtime does not
       * support namespace targeting then the result of setting this field is undefined.
       * +optional
       * 
* * optional string targetContainerName = 2; */ public Builder setTargetContainerName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; targetContainerName_ = value; onChanged(); return this; } /** * * *
       * If set, the name of the container from PodSpec that this ephemeral container targets.
       * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
       * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
       * The container runtime must implement support for this feature. If the runtime does not
       * support namespace targeting then the result of setting this field is undefined.
       * +optional
       * 
* * optional string targetContainerName = 2; */ public Builder clearTargetContainerName() { bitField0_ = (bitField0_ & ~0x00000002); targetContainerName_ = getDefaultInstance().getTargetContainerName(); onChanged(); return this; } /** * * *
       * If set, the name of the container from PodSpec that this ephemeral container targets.
       * The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
       * If not set then the ephemeral container uses the namespaces configured in the Pod spec.
       * The container runtime must implement support for this feature. If the runtime does not
       * support namespace targeting then the result of setting this field is undefined.
       * +optional
       * 
* * optional string targetContainerName = 2; */ public Builder setTargetContainerNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; targetContainerName_ = 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.core.v1.EphemeralContainer) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EphemeralContainer) private static final io.kubernetes.client.proto.V1.EphemeralContainer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EphemeralContainer(); } public static io.kubernetes.client.proto.V1.EphemeralContainer getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EphemeralContainer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EphemeralContainer(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.V1.EphemeralContainer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EphemeralContainerCommonOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EphemeralContainerCommon) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the ephemeral container specified as a DNS_LABEL.
     * This name must be unique among all containers, init containers and ephemeral containers.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name of the ephemeral container specified as a DNS_LABEL.
     * This name must be unique among all containers, init containers and ephemeral containers.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name of the ephemeral container specified as a DNS_LABEL.
     * This name must be unique among all containers, init containers and ephemeral containers.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * 
* * optional string image = 2; */ boolean hasImage(); /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * 
* * optional string image = 2; */ java.lang.String getImage(); /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * 
* * optional string image = 2; */ com.google.protobuf.ByteString getImageBytes(); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ java.util.List getCommandList(); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ int getCommandCount(); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ java.lang.String getCommand(int index); /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ com.google.protobuf.ByteString getCommandBytes(int index); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ java.util.List getArgsList(); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ int getArgsCount(); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ java.lang.String getArgs(int index); /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ com.google.protobuf.ByteString getArgsBytes(int index); /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ boolean hasWorkingDir(); /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ java.lang.String getWorkingDir(); /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ com.google.protobuf.ByteString getWorkingDirBytes(); /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ java.util.List getPortsList(); /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ io.kubernetes.client.proto.V1.ContainerPort getPorts(int index); /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ int getPortsCount(); /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ java.util.List getPortsOrBuilderList(); /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(int index); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ java.util.List getEnvFromList(); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ int getEnvFromCount(); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ java.util.List getEnvFromOrBuilderList(); /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ java.util.List getEnvList(); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ io.kubernetes.client.proto.V1.EnvVar getEnv(int index); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ int getEnvCount(); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ java.util.List getEnvOrBuilderList(); /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(int index); /** * * *
     * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
     * already allocated to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ boolean hasResources(); /** * * *
     * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
     * already allocated to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ io.kubernetes.client.proto.V1.ResourceRequirements getResources(); /** * * *
     * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
     * already allocated to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder(); /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ java.util.List getVolumeMountsList(); /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index); /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ int getVolumeMountsCount(); /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ java.util.List getVolumeMountsOrBuilderList(); /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ java.util.List getVolumeDevicesList(); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ io.kubernetes.client.proto.V1.VolumeDevice getVolumeDevices(int index); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ int getVolumeDevicesCount(); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ java.util.List getVolumeDevicesOrBuilderList(); /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder(int index); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ boolean hasLivenessProbe(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ io.kubernetes.client.proto.V1.Probe getLivenessProbe(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ boolean hasReadinessProbe(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ io.kubernetes.client.proto.V1.Probe getReadinessProbe(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ boolean hasStartupProbe(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ io.kubernetes.client.proto.V1.Probe getStartupProbe(); /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ io.kubernetes.client.proto.V1.ProbeOrBuilder getStartupProbeOrBuilder(); /** * * *
     * Lifecycle is not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ boolean hasLifecycle(); /** * * *
     * Lifecycle is not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ io.kubernetes.client.proto.V1.Lifecycle getLifecycle(); /** * * *
     * Lifecycle is not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder(); /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ boolean hasTerminationMessagePath(); /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ java.lang.String getTerminationMessagePath(); /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ com.google.protobuf.ByteString getTerminationMessagePathBytes(); /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ boolean hasTerminationMessagePolicy(); /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ java.lang.String getTerminationMessagePolicy(); /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ com.google.protobuf.ByteString getTerminationMessagePolicyBytes(); /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ boolean hasImagePullPolicy(); /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ java.lang.String getImagePullPolicy(); /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ com.google.protobuf.ByteString getImagePullPolicyBytes(); /** * * *
     * Optional: SecurityContext defines the security options the ephemeral container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ boolean hasSecurityContext(); /** * * *
     * Optional: SecurityContext defines the security options the ephemeral container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ io.kubernetes.client.proto.V1.SecurityContext getSecurityContext(); /** * * *
     * Optional: SecurityContext defines the security options the ephemeral container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder(); /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ boolean hasStdin(); /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ boolean getStdin(); /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ boolean hasStdinOnce(); /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ boolean getStdinOnce(); /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ boolean hasTty(); /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ boolean getTty(); } /** * * *
   * EphemeralContainerCommon is a copy of all fields in Container to be inlined in
   * EphemeralContainer. This separate type allows easy conversion from EphemeralContainer
   * to Container and allows separate documentation for the fields of EphemeralContainer.
   * When a new field is added to Container it must be added here as well.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EphemeralContainerCommon} */ public static final class EphemeralContainerCommon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EphemeralContainerCommon) EphemeralContainerCommonOrBuilder { private static final long serialVersionUID = 0L; // Use EphemeralContainerCommon.newBuilder() to construct. private EphemeralContainerCommon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EphemeralContainerCommon() { name_ = ""; image_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; args_ = com.google.protobuf.LazyStringArrayList.EMPTY; workingDir_ = ""; ports_ = java.util.Collections.emptyList(); envFrom_ = java.util.Collections.emptyList(); env_ = java.util.Collections.emptyList(); volumeMounts_ = java.util.Collections.emptyList(); volumeDevices_ = java.util.Collections.emptyList(); terminationMessagePath_ = ""; terminationMessagePolicy_ = ""; imagePullPolicy_ = ""; stdin_ = false; stdinOnce_ = false; tty_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EphemeralContainerCommon( 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; image_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { command_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } command_.add(bs); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { args_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } args_.add(bs); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; workingDir_ = bs; break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } ports_.add( input.readMessage( io.kubernetes.client.proto.V1.ContainerPort.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { env_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } env_.add( input.readMessage( io.kubernetes.client.proto.V1.EnvVar.PARSER, extensionRegistry)); break; } case 66: { io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 74: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } volumeMounts_.add( input.readMessage( io.kubernetes.client.proto.V1.VolumeMount.PARSER, extensionRegistry)); break; } case 82: { io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = livenessProbe_.toBuilder(); } livenessProbe_ = input.readMessage( io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(livenessProbe_); livenessProbe_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 90: { io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = readinessProbe_.toBuilder(); } readinessProbe_ = input.readMessage( io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readinessProbe_); readinessProbe_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 98: { io.kubernetes.client.proto.V1.Lifecycle.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = lifecycle_.toBuilder(); } lifecycle_ = input.readMessage( io.kubernetes.client.proto.V1.Lifecycle.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lifecycle_); lifecycle_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 106: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; terminationMessagePath_ = bs; break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; imagePullPolicy_ = bs; break; } case 122: { io.kubernetes.client.proto.V1.SecurityContext.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = securityContext_.toBuilder(); } securityContext_ = input.readMessage( io.kubernetes.client.proto.V1.SecurityContext.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(securityContext_); securityContext_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 128: { bitField0_ |= 0x00001000; stdin_ = input.readBool(); break; } case 136: { bitField0_ |= 0x00002000; stdinOnce_ = input.readBool(); break; } case 144: { bitField0_ |= 0x00004000; tty_ = input.readBool(); break; } case 154: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } envFrom_.add( input.readMessage( io.kubernetes.client.proto.V1.EnvFromSource.PARSER, extensionRegistry)); break; } case 162: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; terminationMessagePolicy_ = bs; break; } case 170: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } volumeDevices_.add( input.readMessage( io.kubernetes.client.proto.V1.VolumeDevice.PARSER, extensionRegistry)); break; } case 178: { io.kubernetes.client.proto.V1.Probe.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = startupProbe_.toBuilder(); } startupProbe_ = input.readMessage( io.kubernetes.client.proto.V1.Probe.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startupProbe_); startupProbe_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; 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)) { command_ = command_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { args_ = args_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { ports_ = java.util.Collections.unmodifiableList(ports_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { env_ = java.util.Collections.unmodifiableList(env_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = java.util.Collections.unmodifiableList(envFrom_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = java.util.Collections.unmodifiableList(volumeDevices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EphemeralContainerCommon.class, io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name of the ephemeral container specified as a DNS_LABEL.
     * This name must be unique among all containers, init containers and ephemeral containers.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the ephemeral container specified as a DNS_LABEL.
     * This name must be unique among all containers, init containers and ephemeral containers.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of the ephemeral container specified as a DNS_LABEL.
     * This name must be unique among all containers, init containers and ephemeral containers.
     * 
* * 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 IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } } /** * * *
     * Docker image name.
     * More info: https://kubernetes.io/docs/concepts/containers/images
     * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMAND_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList command_; /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public int getCommandCount() { return command_.size(); } /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
     * Entrypoint array. Not executed within a shell.
     * The docker image's ENTRYPOINT is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string command = 3; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList args_; /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public int getArgsCount() { return args_.size(); } /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public java.lang.String getArgs(int index) { return args_.get(index); } /** * * *
     * Arguments to the entrypoint.
     * The docker image's CMD is used if this is not provided.
     * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
     * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
     * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
     * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
     * of whether the variable exists or not. Cannot be updated.
     * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
     * +optional
     * 
* * repeated string args = 4; */ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int WORKINGDIR_FIELD_NUMBER = 5; private volatile java.lang.Object workingDir_; /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ public boolean hasWorkingDir() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; 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()) { workingDir_ = s; } return s; } } /** * * *
     * Container's working directory.
     * If not specified, the container runtime's default will be used, which
     * might be configured in the container image.
     * Cannot be updated.
     * +optional
     * 
* * optional string workingDir = 5; */ public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORTS_FIELD_NUMBER = 6; private java.util.List ports_; /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsList() { return ports_; } /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsOrBuilderList() { return ports_; } /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public int getPortsCount() { return ports_.size(); } /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort getPorts(int index) { return ports_.get(index); } /** * * *
     * Ports are not allowed for ephemeral containers.
     * +optional
     * +patchMergeKey=containerPort
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=containerPort
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(int index) { return ports_.get(index); } public static final int ENVFROM_FIELD_NUMBER = 19; private java.util.List envFrom_; /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromList() { return envFrom_; } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromOrBuilderList() { return envFrom_; } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public int getEnvFromCount() { return envFrom_.size(); } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index) { return envFrom_.get(index); } /** * * *
     * List of sources to populate environment variables in the container.
     * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
     * will be reported as an event when the container is starting. When a key exists in multiple
     * sources, the value associated with the last source will take precedence.
     * Values defined by an Env with a duplicate key will take precedence.
     * Cannot be updated.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index) { return envFrom_.get(index); } public static final int ENV_FIELD_NUMBER = 7; private java.util.List env_; /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvList() { return env_; } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvOrBuilderList() { return env_; } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public int getEnvCount() { return env_.size(); } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) { return env_.get(index); } /** * * *
     * List of environment variables to set in the container.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(int index) { return env_.get(index); } public static final int RESOURCES_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.ResourceRequirements resources_; /** * * *
     * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
     * already allocated to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public boolean hasResources() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
     * already allocated to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } /** * * *
     * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
     * already allocated to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } public static final int VOLUMEMOUNTS_FIELD_NUMBER = 9; private java.util.List volumeMounts_; /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsList() { return volumeMounts_; } /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsOrBuilderList() { return volumeMounts_; } /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public int getVolumeMountsCount() { return volumeMounts_.size(); } /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index) { return volumeMounts_.get(index); } /** * * *
     * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
     * Cannot be updated.
     * +optional
     * +patchMergeKey=mountPath
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder(int index) { return volumeMounts_.get(index); } public static final int VOLUMEDEVICES_FIELD_NUMBER = 21; private java.util.List volumeDevices_; /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesList() { return volumeDevices_; } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesOrBuilderList() { return volumeDevices_; } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public int getVolumeDevicesCount() { return volumeDevices_.size(); } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice getVolumeDevices(int index) { return volumeDevices_.get(index); } /** * * *
     * volumeDevices is the list of block devices to be used by the container.
     * +patchMergeKey=devicePath
     * +patchStrategy=merge
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder( int index) { return volumeDevices_.get(index); } public static final int LIVENESSPROBE_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.Probe livenessProbe_; /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public boolean hasLivenessProbe() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.Probe getLivenessProbe() { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder() { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } public static final int READINESSPROBE_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.Probe readinessProbe_; /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public boolean hasReadinessProbe() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.Probe getReadinessProbe() { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder() { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } public static final int STARTUPPROBE_FIELD_NUMBER = 22; private io.kubernetes.client.proto.V1.Probe startupProbe_; /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public boolean hasStartupProbe() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.Probe getStartupProbe() { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } /** * * *
     * Probes are not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getStartupProbeOrBuilder() { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } public static final int LIFECYCLE_FIELD_NUMBER = 12; private io.kubernetes.client.proto.V1.Lifecycle lifecycle_; /** * * *
     * Lifecycle is not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public boolean hasLifecycle() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * Lifecycle is not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.Lifecycle getLifecycle() { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } /** * * *
     * Lifecycle is not allowed for ephemeral containers.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder() { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } public static final int TERMINATIONMESSAGEPATH_FIELD_NUMBER = 13; private volatile java.lang.Object terminationMessagePath_; /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ public boolean hasTerminationMessagePath() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ public java.lang.String getTerminationMessagePath() { java.lang.Object ref = terminationMessagePath_; 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()) { terminationMessagePath_ = s; } return s; } } /** * * *
     * Optional: Path at which the file to which the container's termination message
     * will be written is mounted into the container's filesystem.
     * Message written is intended to be brief final status, such as an assertion failure message.
     * Will be truncated by the node if greater than 4096 bytes. The total message length across
     * all containers will be limited to 12kb.
     * Defaults to /dev/termination-log.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePath = 13; */ public com.google.protobuf.ByteString getTerminationMessagePathBytes() { java.lang.Object ref = terminationMessagePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TERMINATIONMESSAGEPOLICY_FIELD_NUMBER = 20; private volatile java.lang.Object terminationMessagePolicy_; /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ public boolean hasTerminationMessagePolicy() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ public java.lang.String getTerminationMessagePolicy() { java.lang.Object ref = terminationMessagePolicy_; 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()) { terminationMessagePolicy_ = s; } return s; } } /** * * *
     * Indicate how the termination message should be populated. File will use the contents of
     * terminationMessagePath to populate the container status message on both success and failure.
     * FallbackToLogsOnError will use the last chunk of container log output if the termination
     * message file is empty and the container exited with an error.
     * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
     * Defaults to File.
     * Cannot be updated.
     * +optional
     * 
* * optional string terminationMessagePolicy = 20; */ public com.google.protobuf.ByteString getTerminationMessagePolicyBytes() { java.lang.Object ref = terminationMessagePolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGEPULLPOLICY_FIELD_NUMBER = 14; private volatile java.lang.Object imagePullPolicy_; /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ public boolean hasImagePullPolicy() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ public java.lang.String getImagePullPolicy() { java.lang.Object ref = imagePullPolicy_; 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()) { imagePullPolicy_ = s; } return s; } } /** * * *
     * Image pull policy.
     * One of Always, Never, IfNotPresent.
     * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
     * +optional
     * 
* * optional string imagePullPolicy = 14; */ public com.google.protobuf.ByteString getImagePullPolicyBytes() { java.lang.Object ref = imagePullPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imagePullPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITYCONTEXT_FIELD_NUMBER = 15; private io.kubernetes.client.proto.V1.SecurityContext securityContext_; /** * * *
     * Optional: SecurityContext defines the security options the ephemeral container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public boolean hasSecurityContext() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * Optional: SecurityContext defines the security options the ephemeral container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContext getSecurityContext() { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } /** * * *
     * Optional: SecurityContext defines the security options the ephemeral container should be run with.
     * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder() { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } public static final int STDIN_FIELD_NUMBER = 16; private boolean stdin_; /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ public boolean hasStdin() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * Whether this container should allocate a buffer for stdin in the container runtime. If this
     * is not set, reads from stdin in the container will always result in EOF.
     * Default is false.
     * +optional
     * 
* * optional bool stdin = 16; */ public boolean getStdin() { return stdin_; } public static final int STDINONCE_FIELD_NUMBER = 17; private boolean stdinOnce_; /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ public boolean hasStdinOnce() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
     * Whether the container runtime should close the stdin channel after it has been opened by
     * a single attach. When stdin is true the stdin stream will remain open across multiple attach
     * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
     * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
     * at which time stdin is closed and remains closed until the container is restarted. If this
     * flag is false, a container processes that reads from stdin will never receive an EOF.
     * Default is false
     * +optional
     * 
* * optional bool stdinOnce = 17; */ public boolean getStdinOnce() { return stdinOnce_; } public static final int TTY_FIELD_NUMBER = 18; private boolean tty_; /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ public boolean hasTty() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
     * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
     * Default is false.
     * +optional
     * 
* * optional bool tty = 18; */ public boolean getTty() { return tty_; } 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, image_); } for (int i = 0; i < command_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, command_.getRaw(i)); } for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, args_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } for (int i = 0; i < ports_.size(); i++) { output.writeMessage(6, ports_.get(i)); } for (int i = 0; i < env_.size(); i++) { output.writeMessage(7, env_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(8, getResources()); } for (int i = 0; i < volumeMounts_.size(); i++) { output.writeMessage(9, volumeMounts_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(10, getLivenessProbe()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(11, getReadinessProbe()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(12, getLifecycle()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, terminationMessagePath_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, imagePullPolicy_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(15, getSecurityContext()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(16, stdin_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBool(17, stdinOnce_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBool(18, tty_); } for (int i = 0; i < envFrom_.size(); i++) { output.writeMessage(19, envFrom_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, terminationMessagePolicy_); } for (int i = 0; i < volumeDevices_.size(); i++) { output.writeMessage(21, volumeDevices_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(22, getStartupProbe()); } 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, image_); } { int dataSize = 0; for (int i = 0; i < command_.size(); i++) { dataSize += computeStringSizeNoTag(command_.getRaw(i)); } size += dataSize; size += 1 * getCommandList().size(); } { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += computeStringSizeNoTag(args_.getRaw(i)); } size += dataSize; size += 1 * getArgsList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } for (int i = 0; i < ports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, ports_.get(i)); } for (int i = 0; i < env_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, env_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResources()); } for (int i = 0; i < volumeMounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, volumeMounts_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLivenessProbe()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getReadinessProbe()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getLifecycle()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, terminationMessagePath_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, imagePullPolicy_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getSecurityContext()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, stdin_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, stdinOnce_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, tty_); } for (int i = 0; i < envFrom_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, envFrom_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, terminationMessagePolicy_); } for (int i = 0; i < volumeDevices_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, volumeDevices_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStartupProbe()); } 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.V1.EphemeralContainerCommon)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EphemeralContainerCommon other = (io.kubernetes.client.proto.V1.EphemeralContainerCommon) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && getCommandList().equals(other.getCommandList()); result = result && getArgsList().equals(other.getArgsList()); result = result && (hasWorkingDir() == other.hasWorkingDir()); if (hasWorkingDir()) { result = result && getWorkingDir().equals(other.getWorkingDir()); } result = result && getPortsList().equals(other.getPortsList()); result = result && getEnvFromList().equals(other.getEnvFromList()); result = result && getEnvList().equals(other.getEnvList()); result = result && (hasResources() == other.hasResources()); if (hasResources()) { result = result && getResources().equals(other.getResources()); } result = result && getVolumeMountsList().equals(other.getVolumeMountsList()); result = result && getVolumeDevicesList().equals(other.getVolumeDevicesList()); result = result && (hasLivenessProbe() == other.hasLivenessProbe()); if (hasLivenessProbe()) { result = result && getLivenessProbe().equals(other.getLivenessProbe()); } result = result && (hasReadinessProbe() == other.hasReadinessProbe()); if (hasReadinessProbe()) { result = result && getReadinessProbe().equals(other.getReadinessProbe()); } result = result && (hasStartupProbe() == other.hasStartupProbe()); if (hasStartupProbe()) { result = result && getStartupProbe().equals(other.getStartupProbe()); } result = result && (hasLifecycle() == other.hasLifecycle()); if (hasLifecycle()) { result = result && getLifecycle().equals(other.getLifecycle()); } result = result && (hasTerminationMessagePath() == other.hasTerminationMessagePath()); if (hasTerminationMessagePath()) { result = result && getTerminationMessagePath().equals(other.getTerminationMessagePath()); } result = result && (hasTerminationMessagePolicy() == other.hasTerminationMessagePolicy()); if (hasTerminationMessagePolicy()) { result = result && getTerminationMessagePolicy().equals(other.getTerminationMessagePolicy()); } result = result && (hasImagePullPolicy() == other.hasImagePullPolicy()); if (hasImagePullPolicy()) { result = result && getImagePullPolicy().equals(other.getImagePullPolicy()); } result = result && (hasSecurityContext() == other.hasSecurityContext()); if (hasSecurityContext()) { result = result && getSecurityContext().equals(other.getSecurityContext()); } result = result && (hasStdin() == other.hasStdin()); if (hasStdin()) { result = result && (getStdin() == other.getStdin()); } result = result && (hasStdinOnce() == other.hasStdinOnce()); if (hasStdinOnce()) { result = result && (getStdinOnce() == other.getStdinOnce()); } result = result && (hasTty() == other.hasTty()); if (hasTty()) { result = result && (getTty() == other.getTty()); } 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 (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (getCommandCount() > 0) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommandList().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (hasWorkingDir()) { hash = (37 * hash) + WORKINGDIR_FIELD_NUMBER; hash = (53 * hash) + getWorkingDir().hashCode(); } if (getPortsCount() > 0) { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } if (getEnvFromCount() > 0) { hash = (37 * hash) + ENVFROM_FIELD_NUMBER; hash = (53 * hash) + getEnvFromList().hashCode(); } if (getEnvCount() > 0) { hash = (37 * hash) + ENV_FIELD_NUMBER; hash = (53 * hash) + getEnvList().hashCode(); } if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } if (getVolumeMountsCount() > 0) { hash = (37 * hash) + VOLUMEMOUNTS_FIELD_NUMBER; hash = (53 * hash) + getVolumeMountsList().hashCode(); } if (getVolumeDevicesCount() > 0) { hash = (37 * hash) + VOLUMEDEVICES_FIELD_NUMBER; hash = (53 * hash) + getVolumeDevicesList().hashCode(); } if (hasLivenessProbe()) { hash = (37 * hash) + LIVENESSPROBE_FIELD_NUMBER; hash = (53 * hash) + getLivenessProbe().hashCode(); } if (hasReadinessProbe()) { hash = (37 * hash) + READINESSPROBE_FIELD_NUMBER; hash = (53 * hash) + getReadinessProbe().hashCode(); } if (hasStartupProbe()) { hash = (37 * hash) + STARTUPPROBE_FIELD_NUMBER; hash = (53 * hash) + getStartupProbe().hashCode(); } if (hasLifecycle()) { hash = (37 * hash) + LIFECYCLE_FIELD_NUMBER; hash = (53 * hash) + getLifecycle().hashCode(); } if (hasTerminationMessagePath()) { hash = (37 * hash) + TERMINATIONMESSAGEPATH_FIELD_NUMBER; hash = (53 * hash) + getTerminationMessagePath().hashCode(); } if (hasTerminationMessagePolicy()) { hash = (37 * hash) + TERMINATIONMESSAGEPOLICY_FIELD_NUMBER; hash = (53 * hash) + getTerminationMessagePolicy().hashCode(); } if (hasImagePullPolicy()) { hash = (37 * hash) + IMAGEPULLPOLICY_FIELD_NUMBER; hash = (53 * hash) + getImagePullPolicy().hashCode(); } if (hasSecurityContext()) { hash = (37 * hash) + SECURITYCONTEXT_FIELD_NUMBER; hash = (53 * hash) + getSecurityContext().hashCode(); } if (hasStdin()) { hash = (37 * hash) + STDIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdin()); } if (hasStdinOnce()) { hash = (37 * hash) + STDINONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdinOnce()); } if (hasTty()) { hash = (37 * hash) + TTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTty()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon 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.V1.EphemeralContainerCommon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon 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.V1.EphemeralContainerCommon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon 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.V1.EphemeralContainerCommon parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon 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.V1.EphemeralContainerCommon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon 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.V1.EphemeralContainerCommon 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; } /** * * *
     * EphemeralContainerCommon is a copy of all fields in Container to be inlined in
     * EphemeralContainer. This separate type allows easy conversion from EphemeralContainer
     * to Container and allows separate documentation for the fields of EphemeralContainer.
     * When a new field is added to Container it must be added here as well.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EphemeralContainerCommon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EphemeralContainerCommon) io.kubernetes.client.proto.V1.EphemeralContainerCommonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EphemeralContainerCommon.class, io.kubernetes.client.proto.V1.EphemeralContainerCommon.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EphemeralContainerCommon.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPortsFieldBuilder(); getEnvFromFieldBuilder(); getEnvFieldBuilder(); getResourcesFieldBuilder(); getVolumeMountsFieldBuilder(); getVolumeDevicesFieldBuilder(); getLivenessProbeFieldBuilder(); getReadinessProbeFieldBuilder(); getStartupProbeFieldBuilder(); getLifecycleFieldBuilder(); getSecurityContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); image_ = ""; bitField0_ = (bitField0_ & ~0x00000002); command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); workingDir_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { portsBuilder_.clear(); } if (envFromBuilder_ == null) { envFrom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { envFromBuilder_.clear(); } if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { envBuilder_.clear(); } if (resourcesBuilder_ == null) { resources_ = null; } else { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (volumeMountsBuilder_ == null) { volumeMounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { volumeMountsBuilder_.clear(); } if (volumeDevicesBuilder_ == null) { volumeDevices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { volumeDevicesBuilder_.clear(); } if (livenessProbeBuilder_ == null) { livenessProbe_ = null; } else { livenessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (readinessProbeBuilder_ == null) { readinessProbe_ = null; } else { readinessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (startupProbeBuilder_ == null) { startupProbe_ = null; } else { startupProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (lifecycleBuilder_ == null) { lifecycle_ = null; } else { lifecycleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); terminationMessagePath_ = ""; bitField0_ = (bitField0_ & ~0x00008000); terminationMessagePolicy_ = ""; bitField0_ = (bitField0_ & ~0x00010000); imagePullPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00020000); if (securityContextBuilder_ == null) { securityContext_ = null; } else { securityContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); stdin_ = false; bitField0_ = (bitField0_ & ~0x00080000); stdinOnce_ = false; bitField0_ = (bitField0_ & ~0x00100000); tty_ = false; bitField0_ = (bitField0_ & ~0x00200000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralContainerCommon getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralContainerCommon build() { io.kubernetes.client.proto.V1.EphemeralContainerCommon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralContainerCommon buildPartial() { io.kubernetes.client.proto.V1.EphemeralContainerCommon result = new io.kubernetes.client.proto.V1.EphemeralContainerCommon(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.image_ = image_; if (((bitField0_ & 0x00000004) == 0x00000004)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.command_ = command_; if (((bitField0_ & 0x00000008) == 0x00000008)) { args_ = args_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.workingDir_ = workingDir_; if (portsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { ports_ = java.util.Collections.unmodifiableList(ports_); bitField0_ = (bitField0_ & ~0x00000020); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.build(); } if (envFromBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = java.util.Collections.unmodifiableList(envFrom_); bitField0_ = (bitField0_ & ~0x00000040); } result.envFrom_ = envFrom_; } else { result.envFrom_ = envFromBuilder_.build(); } if (envBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { env_ = java.util.Collections.unmodifiableList(env_); bitField0_ = (bitField0_ & ~0x00000080); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000008; } if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (volumeMountsBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_); bitField0_ = (bitField0_ & ~0x00000200); } result.volumeMounts_ = volumeMounts_; } else { result.volumeMounts_ = volumeMountsBuilder_.build(); } if (volumeDevicesBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = java.util.Collections.unmodifiableList(volumeDevices_); bitField0_ = (bitField0_ & ~0x00000400); } result.volumeDevices_ = volumeDevices_; } else { result.volumeDevices_ = volumeDevicesBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000010; } if (livenessProbeBuilder_ == null) { result.livenessProbe_ = livenessProbe_; } else { result.livenessProbe_ = livenessProbeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000020; } if (readinessProbeBuilder_ == null) { result.readinessProbe_ = readinessProbe_; } else { result.readinessProbe_ = readinessProbeBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000040; } if (startupProbeBuilder_ == null) { result.startupProbe_ = startupProbe_; } else { result.startupProbe_ = startupProbeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000080; } if (lifecycleBuilder_ == null) { result.lifecycle_ = lifecycle_; } else { result.lifecycle_ = lifecycleBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00000100; } result.terminationMessagePath_ = terminationMessagePath_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00000200; } result.terminationMessagePolicy_ = terminationMessagePolicy_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00000400; } result.imagePullPolicy_ = imagePullPolicy_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00000800; } if (securityContextBuilder_ == null) { result.securityContext_ = securityContext_; } else { result.securityContext_ = securityContextBuilder_.build(); } if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00001000; } result.stdin_ = stdin_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00002000; } result.stdinOnce_ = stdinOnce_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00004000; } result.tty_ = tty_; 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.V1.EphemeralContainerCommon) { return mergeFrom((io.kubernetes.client.proto.V1.EphemeralContainerCommon) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EphemeralContainerCommon other) { if (other == io.kubernetes.client.proto.V1.EphemeralContainerCommon.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasImage()) { bitField0_ |= 0x00000002; image_ = other.image_; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCommandIsMutable(); command_.addAll(other.command_); } onChanged(); } if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } if (other.hasWorkingDir()) { bitField0_ |= 0x00000010; workingDir_ = other.workingDir_; onChanged(); } if (portsBuilder_ == null) { if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); } onChanged(); } } else { if (!other.ports_.isEmpty()) { if (portsBuilder_.isEmpty()) { portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000020); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() : null; } else { portsBuilder_.addAllMessages(other.ports_); } } } if (envFromBuilder_ == null) { if (!other.envFrom_.isEmpty()) { if (envFrom_.isEmpty()) { envFrom_ = other.envFrom_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEnvFromIsMutable(); envFrom_.addAll(other.envFrom_); } onChanged(); } } else { if (!other.envFrom_.isEmpty()) { if (envFromBuilder_.isEmpty()) { envFromBuilder_.dispose(); envFromBuilder_ = null; envFrom_ = other.envFrom_; bitField0_ = (bitField0_ & ~0x00000040); envFromBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFromFieldBuilder() : null; } else { envFromBuilder_.addAllMessages(other.envFrom_); } } } if (envBuilder_ == null) { if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureEnvIsMutable(); env_.addAll(other.env_); } onChanged(); } } else { if (!other.env_.isEmpty()) { if (envBuilder_.isEmpty()) { envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; bitField0_ = (bitField0_ & ~0x00000080); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() : null; } else { envBuilder_.addAllMessages(other.env_); } } } if (other.hasResources()) { mergeResources(other.getResources()); } if (volumeMountsBuilder_ == null) { if (!other.volumeMounts_.isEmpty()) { if (volumeMounts_.isEmpty()) { volumeMounts_ = other.volumeMounts_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureVolumeMountsIsMutable(); volumeMounts_.addAll(other.volumeMounts_); } onChanged(); } } else { if (!other.volumeMounts_.isEmpty()) { if (volumeMountsBuilder_.isEmpty()) { volumeMountsBuilder_.dispose(); volumeMountsBuilder_ = null; volumeMounts_ = other.volumeMounts_; bitField0_ = (bitField0_ & ~0x00000200); volumeMountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumeMountsFieldBuilder() : null; } else { volumeMountsBuilder_.addAllMessages(other.volumeMounts_); } } } if (volumeDevicesBuilder_ == null) { if (!other.volumeDevices_.isEmpty()) { if (volumeDevices_.isEmpty()) { volumeDevices_ = other.volumeDevices_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureVolumeDevicesIsMutable(); volumeDevices_.addAll(other.volumeDevices_); } onChanged(); } } else { if (!other.volumeDevices_.isEmpty()) { if (volumeDevicesBuilder_.isEmpty()) { volumeDevicesBuilder_.dispose(); volumeDevicesBuilder_ = null; volumeDevices_ = other.volumeDevices_; bitField0_ = (bitField0_ & ~0x00000400); volumeDevicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumeDevicesFieldBuilder() : null; } else { volumeDevicesBuilder_.addAllMessages(other.volumeDevices_); } } } if (other.hasLivenessProbe()) { mergeLivenessProbe(other.getLivenessProbe()); } if (other.hasReadinessProbe()) { mergeReadinessProbe(other.getReadinessProbe()); } if (other.hasStartupProbe()) { mergeStartupProbe(other.getStartupProbe()); } if (other.hasLifecycle()) { mergeLifecycle(other.getLifecycle()); } if (other.hasTerminationMessagePath()) { bitField0_ |= 0x00008000; terminationMessagePath_ = other.terminationMessagePath_; onChanged(); } if (other.hasTerminationMessagePolicy()) { bitField0_ |= 0x00010000; terminationMessagePolicy_ = other.terminationMessagePolicy_; onChanged(); } if (other.hasImagePullPolicy()) { bitField0_ |= 0x00020000; imagePullPolicy_ = other.imagePullPolicy_; onChanged(); } if (other.hasSecurityContext()) { mergeSecurityContext(other.getSecurityContext()); } if (other.hasStdin()) { setStdin(other.getStdin()); } if (other.hasStdinOnce()) { setStdinOnce(other.getStdinOnce()); } if (other.hasTty()) { setTty(other.getTty()); } 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.V1.EphemeralContainerCommon parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EphemeralContainerCommon) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name of the ephemeral container specified as a DNS_LABEL.
       * This name must be unique among all containers, init containers and ephemeral containers.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the ephemeral container specified as a DNS_LABEL.
       * This name must be unique among all containers, init containers and ephemeral containers.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the ephemeral container specified as a DNS_LABEL.
       * This name must be unique among all containers, init containers and ephemeral containers.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the ephemeral container specified as a DNS_LABEL.
       * This name must be unique among all containers, init containers and ephemeral containers.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name of the ephemeral container specified as a DNS_LABEL.
       * This name must be unique among all containers, init containers and ephemeral containers.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of the ephemeral container specified as a DNS_LABEL.
       * This name must be unique among all containers, init containers and ephemeral containers.
       * 
* * 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 image_ = ""; /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * 
* * optional string image = 2; */ public Builder setImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * 
* * optional string image = 2; */ public Builder clearImage() { bitField0_ = (bitField0_ & ~0x00000002); image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** * * *
       * Docker image name.
       * More info: https://kubernetes.io/docs/concepts/containers/images
       * 
* * optional string image = 2; */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000004; } } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public int getCommandCount() { return command_.size(); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder setCommand(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder addCommand(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Entrypoint array. Not executed within a shell.
       * The docker image's ENTRYPOINT is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string command = 3; */ public Builder addCommandBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000008; } } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public int getArgsCount() { return args_.size(); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public java.lang.String getArgs(int index) { return args_.get(index); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder setArgs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder addArgs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * Arguments to the entrypoint.
       * The docker image's CMD is used if this is not provided.
       * Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
       * cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
       * to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
       * produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
       * of whether the variable exists or not. Cannot be updated.
       * More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
       * +optional
       * 
* * repeated string args = 4; */ public Builder addArgsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } private java.lang.Object workingDir_ = ""; /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public boolean hasWorkingDir() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; 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()) { workingDir_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public Builder setWorkingDir(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; workingDir_ = value; onChanged(); return this; } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public Builder clearWorkingDir() { bitField0_ = (bitField0_ & ~0x00000010); workingDir_ = getDefaultInstance().getWorkingDir(); onChanged(); return this; } /** * * *
       * Container's working directory.
       * If not specified, the container runtime's default will be used, which
       * might be configured in the container image.
       * Cannot be updated.
       * +optional
       * 
* * optional string workingDir = 5; */ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; workingDir_ = value; onChanged(); return this; } private java.util.List ports_ = java.util.Collections.emptyList(); private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { ports_ = new java.util.ArrayList(ports_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder> portsBuilder_; /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsList() { if (portsBuilder_ == null) { return java.util.Collections.unmodifiableList(ports_); } else { return portsBuilder_.getMessageList(); } } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public int getPortsCount() { if (portsBuilder_ == null) { return ports_.size(); } else { return portsBuilder_.getCount(); } } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort getPorts(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessage(index); } } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder setPorts(int index, io.kubernetes.client.proto.V1.ContainerPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.set(index, value); onChanged(); } else { portsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder setPorts( int index, io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.set(index, builderForValue.build()); onChanged(); } else { portsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts(io.kubernetes.client.proto.V1.ContainerPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(value); onChanged(); } else { portsBuilder_.addMessage(value); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts(int index, io.kubernetes.client.proto.V1.ContainerPort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(index, value); onChanged(); } else { portsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts(io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addPorts( int index, io.kubernetes.client.proto.V1.ContainerPort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(index, builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder addAllPorts( java.lang.Iterable values) { if (portsBuilder_ == null) { ensurePortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); onChanged(); } else { portsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { portsBuilder_.clear(); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public Builder removePorts(int index) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.remove(index); onChanged(); } else { portsBuilder_.remove(index); } return this; } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort.Builder getPortsBuilder(int index) { return getPortsFieldBuilder().getBuilder(index); } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPortOrBuilder getPortsOrBuilder(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsOrBuilderList() { if (portsBuilder_ != null) { return portsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ports_); } } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort.Builder addPortsBuilder() { return getPortsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance()); } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public io.kubernetes.client.proto.V1.ContainerPort.Builder addPortsBuilder(int index) { return getPortsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ContainerPort.getDefaultInstance()); } /** * * *
       * Ports are not allowed for ephemeral containers.
       * +optional
       * +patchMergeKey=containerPort
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=containerPort
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ContainerPort ports = 6; */ public java.util.List getPortsBuilderList() { return getPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder> getPortsFieldBuilder() { if (portsBuilder_ == null) { portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerPort, io.kubernetes.client.proto.V1.ContainerPort.Builder, io.kubernetes.client.proto.V1.ContainerPortOrBuilder>( ports_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; } private java.util.List envFrom_ = java.util.Collections.emptyList(); private void ensureEnvFromIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { envFrom_ = new java.util.ArrayList(envFrom_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder> envFromBuilder_; /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromList() { if (envFromBuilder_ == null) { return java.util.Collections.unmodifiableList(envFrom_); } else { return envFromBuilder_.getMessageList(); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public int getEnvFromCount() { if (envFromBuilder_ == null) { return envFrom_.size(); } else { return envFromBuilder_.getCount(); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource getEnvFrom(int index) { if (envFromBuilder_ == null) { return envFrom_.get(index); } else { return envFromBuilder_.getMessage(index); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder setEnvFrom(int index, io.kubernetes.client.proto.V1.EnvFromSource value) { if (envFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvFromIsMutable(); envFrom_.set(index, value); onChanged(); } else { envFromBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder setEnvFrom( int index, io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.set(index, builderForValue.build()); onChanged(); } else { envFromBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom(io.kubernetes.client.proto.V1.EnvFromSource value) { if (envFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvFromIsMutable(); envFrom_.add(value); onChanged(); } else { envFromBuilder_.addMessage(value); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom(int index, io.kubernetes.client.proto.V1.EnvFromSource value) { if (envFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvFromIsMutable(); envFrom_.add(index, value); onChanged(); } else { envFromBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom( io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.add(builderForValue.build()); onChanged(); } else { envFromBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addEnvFrom( int index, io.kubernetes.client.proto.V1.EnvFromSource.Builder builderForValue) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.add(index, builderForValue.build()); onChanged(); } else { envFromBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder addAllEnvFrom( java.lang.Iterable values) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, envFrom_); onChanged(); } else { envFromBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder clearEnvFrom() { if (envFromBuilder_ == null) { envFrom_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { envFromBuilder_.clear(); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public Builder removeEnvFrom(int index) { if (envFromBuilder_ == null) { ensureEnvFromIsMutable(); envFrom_.remove(index); onChanged(); } else { envFromBuilder_.remove(index); } return this; } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource.Builder getEnvFromBuilder(int index) { return getEnvFromFieldBuilder().getBuilder(index); } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder getEnvFromOrBuilder(int index) { if (envFromBuilder_ == null) { return envFrom_.get(index); } else { return envFromBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromOrBuilderList() { if (envFromBuilder_ != null) { return envFromBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(envFrom_); } } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource.Builder addEnvFromBuilder() { return getEnvFromFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance()); } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public io.kubernetes.client.proto.V1.EnvFromSource.Builder addEnvFromBuilder(int index) { return getEnvFromFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EnvFromSource.getDefaultInstance()); } /** * * *
       * List of sources to populate environment variables in the container.
       * The keys defined within a source must be a C_IDENTIFIER. All invalid keys
       * will be reported as an event when the container is starting. When a key exists in multiple
       * sources, the value associated with the last source will take precedence.
       * Values defined by an Env with a duplicate key will take precedence.
       * Cannot be updated.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.EnvFromSource envFrom = 19; */ public java.util.List getEnvFromBuilderList() { return getEnvFromFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder> getEnvFromFieldBuilder() { if (envFromBuilder_ == null) { envFromBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvFromSource, io.kubernetes.client.proto.V1.EnvFromSource.Builder, io.kubernetes.client.proto.V1.EnvFromSourceOrBuilder>( envFrom_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); envFrom_ = null; } return envFromBuilder_; } private java.util.List env_ = java.util.Collections.emptyList(); private void ensureEnvIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { env_ = new java.util.ArrayList(env_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> envBuilder_; /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvList() { if (envBuilder_ == null) { return java.util.Collections.unmodifiableList(env_); } else { return envBuilder_.getMessageList(); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public int getEnvCount() { if (envBuilder_ == null) { return env_.size(); } else { return envBuilder_.getCount(); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar getEnv(int index) { if (envBuilder_ == null) { return env_.get(index); } else { return envBuilder_.getMessage(index); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder setEnv(int index, io.kubernetes.client.proto.V1.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvIsMutable(); env_.set(index, value); onChanged(); } else { envBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder setEnv( int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.set(index, builderForValue.build()); onChanged(); } else { envBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv(io.kubernetes.client.proto.V1.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvIsMutable(); env_.add(value); onChanged(); } else { envBuilder_.addMessage(value); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv(int index, io.kubernetes.client.proto.V1.EnvVar value) { if (envBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvIsMutable(); env_.add(index, value); onChanged(); } else { envBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv(io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(builderForValue.build()); onChanged(); } else { envBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addEnv( int index, io.kubernetes.client.proto.V1.EnvVar.Builder builderForValue) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.add(index, builderForValue.build()); onChanged(); } else { envBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder addAllEnv( java.lang.Iterable values) { if (envBuilder_ == null) { ensureEnvIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, env_); onChanged(); } else { envBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder clearEnv() { if (envBuilder_ == null) { env_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { envBuilder_.clear(); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public Builder removeEnv(int index) { if (envBuilder_ == null) { ensureEnvIsMutable(); env_.remove(index); onChanged(); } else { envBuilder_.remove(index); } return this; } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar.Builder getEnvBuilder(int index) { return getEnvFieldBuilder().getBuilder(index); } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVarOrBuilder getEnvOrBuilder(int index) { if (envBuilder_ == null) { return env_.get(index); } else { return envBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvOrBuilderList() { if (envBuilder_ != null) { return envBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(env_); } } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder() { return getEnvFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()); } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public io.kubernetes.client.proto.V1.EnvVar.Builder addEnvBuilder(int index) { return getEnvFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.EnvVar.getDefaultInstance()); } /** * * *
       * List of environment variables to set in the container.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EnvVar env = 7; */ public java.util.List getEnvBuilderList() { return getEnvFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder> getEnvFieldBuilder() { if (envBuilder_ == null) { envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EnvVar, io.kubernetes.client.proto.V1.EnvVar.Builder, io.kubernetes.client.proto.V1.EnvVarOrBuilder>( env_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; } private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public boolean hasResources() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder setResources( io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && resources_ != null && resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { resources_ = io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_) .mergeFrom(value) .buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } } /** * * *
       * Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
       * already allocated to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.util.List volumeMounts_ = java.util.Collections.emptyList(); private void ensureVolumeMountsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { volumeMounts_ = new java.util.ArrayList(volumeMounts_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder> volumeMountsBuilder_; /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsList() { if (volumeMountsBuilder_ == null) { return java.util.Collections.unmodifiableList(volumeMounts_); } else { return volumeMountsBuilder_.getMessageList(); } } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public int getVolumeMountsCount() { if (volumeMountsBuilder_ == null) { return volumeMounts_.size(); } else { return volumeMountsBuilder_.getCount(); } } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount getVolumeMounts(int index) { if (volumeMountsBuilder_ == null) { return volumeMounts_.get(index); } else { return volumeMountsBuilder_.getMessage(index); } } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder setVolumeMounts(int index, io.kubernetes.client.proto.V1.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeMountsIsMutable(); volumeMounts_.set(index, value); onChanged(); } else { volumeMountsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder setVolumeMounts( int index, io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.set(index, builderForValue.build()); onChanged(); } else { volumeMountsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts(io.kubernetes.client.proto.V1.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeMountsIsMutable(); volumeMounts_.add(value); onChanged(); } else { volumeMountsBuilder_.addMessage(value); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts(int index, io.kubernetes.client.proto.V1.VolumeMount value) { if (volumeMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeMountsIsMutable(); volumeMounts_.add(index, value); onChanged(); } else { volumeMountsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts( io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.add(builderForValue.build()); onChanged(); } else { volumeMountsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addVolumeMounts( int index, io.kubernetes.client.proto.V1.VolumeMount.Builder builderForValue) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.add(index, builderForValue.build()); onChanged(); } else { volumeMountsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder addAllVolumeMounts( java.lang.Iterable values) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeMounts_); onChanged(); } else { volumeMountsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder clearVolumeMounts() { if (volumeMountsBuilder_ == null) { volumeMounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { volumeMountsBuilder_.clear(); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public Builder removeVolumeMounts(int index) { if (volumeMountsBuilder_ == null) { ensureVolumeMountsIsMutable(); volumeMounts_.remove(index); onChanged(); } else { volumeMountsBuilder_.remove(index); } return this; } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount.Builder getVolumeMountsBuilder(int index) { return getVolumeMountsFieldBuilder().getBuilder(index); } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMountOrBuilder getVolumeMountsOrBuilder( int index) { if (volumeMountsBuilder_ == null) { return volumeMounts_.get(index); } else { return volumeMountsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsOrBuilderList() { if (volumeMountsBuilder_ != null) { return volumeMountsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumeMounts_); } } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount.Builder addVolumeMountsBuilder() { return getVolumeMountsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance()); } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public io.kubernetes.client.proto.V1.VolumeMount.Builder addVolumeMountsBuilder(int index) { return getVolumeMountsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance()); } /** * * *
       * Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
       * Cannot be updated.
       * +optional
       * +patchMergeKey=mountPath
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.VolumeMount volumeMounts = 9; */ public java.util.List getVolumeMountsBuilderList() { return getVolumeMountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder> getVolumeMountsFieldBuilder() { if (volumeMountsBuilder_ == null) { volumeMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeMount, io.kubernetes.client.proto.V1.VolumeMount.Builder, io.kubernetes.client.proto.V1.VolumeMountOrBuilder>( volumeMounts_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); volumeMounts_ = null; } return volumeMountsBuilder_; } private java.util.List volumeDevices_ = java.util.Collections.emptyList(); private void ensureVolumeDevicesIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { volumeDevices_ = new java.util.ArrayList(volumeDevices_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeDevice, io.kubernetes.client.proto.V1.VolumeDevice.Builder, io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder> volumeDevicesBuilder_; /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesList() { if (volumeDevicesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumeDevices_); } else { return volumeDevicesBuilder_.getMessageList(); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public int getVolumeDevicesCount() { if (volumeDevicesBuilder_ == null) { return volumeDevices_.size(); } else { return volumeDevicesBuilder_.getCount(); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice getVolumeDevices(int index) { if (volumeDevicesBuilder_ == null) { return volumeDevices_.get(index); } else { return volumeDevicesBuilder_.getMessage(index); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder setVolumeDevices(int index, io.kubernetes.client.proto.V1.VolumeDevice value) { if (volumeDevicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDevicesIsMutable(); volumeDevices_.set(index, value); onChanged(); } else { volumeDevicesBuilder_.setMessage(index, value); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder setVolumeDevices( int index, io.kubernetes.client.proto.V1.VolumeDevice.Builder builderForValue) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.set(index, builderForValue.build()); onChanged(); } else { volumeDevicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices(io.kubernetes.client.proto.V1.VolumeDevice value) { if (volumeDevicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDevicesIsMutable(); volumeDevices_.add(value); onChanged(); } else { volumeDevicesBuilder_.addMessage(value); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices(int index, io.kubernetes.client.proto.V1.VolumeDevice value) { if (volumeDevicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumeDevicesIsMutable(); volumeDevices_.add(index, value); onChanged(); } else { volumeDevicesBuilder_.addMessage(index, value); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices( io.kubernetes.client.proto.V1.VolumeDevice.Builder builderForValue) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.add(builderForValue.build()); onChanged(); } else { volumeDevicesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addVolumeDevices( int index, io.kubernetes.client.proto.V1.VolumeDevice.Builder builderForValue) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.add(index, builderForValue.build()); onChanged(); } else { volumeDevicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder addAllVolumeDevices( java.lang.Iterable values) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumeDevices_); onChanged(); } else { volumeDevicesBuilder_.addAllMessages(values); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder clearVolumeDevices() { if (volumeDevicesBuilder_ == null) { volumeDevices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { volumeDevicesBuilder_.clear(); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public Builder removeVolumeDevices(int index) { if (volumeDevicesBuilder_ == null) { ensureVolumeDevicesIsMutable(); volumeDevices_.remove(index); onChanged(); } else { volumeDevicesBuilder_.remove(index); } return this; } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice.Builder getVolumeDevicesBuilder(int index) { return getVolumeDevicesFieldBuilder().getBuilder(index); } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder getVolumeDevicesOrBuilder( int index) { if (volumeDevicesBuilder_ == null) { return volumeDevices_.get(index); } else { return volumeDevicesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesOrBuilderList() { if (volumeDevicesBuilder_ != null) { return volumeDevicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumeDevices_); } } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice.Builder addVolumeDevicesBuilder() { return getVolumeDevicesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.VolumeDevice.getDefaultInstance()); } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public io.kubernetes.client.proto.V1.VolumeDevice.Builder addVolumeDevicesBuilder(int index) { return getVolumeDevicesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.VolumeDevice.getDefaultInstance()); } /** * * *
       * volumeDevices is the list of block devices to be used by the container.
       * +patchMergeKey=devicePath
       * +patchStrategy=merge
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeDevice volumeDevices = 21; */ public java.util.List getVolumeDevicesBuilderList() { return getVolumeDevicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeDevice, io.kubernetes.client.proto.V1.VolumeDevice.Builder, io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder> getVolumeDevicesFieldBuilder() { if (volumeDevicesBuilder_ == null) { volumeDevicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeDevice, io.kubernetes.client.proto.V1.VolumeDevice.Builder, io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder>( volumeDevices_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); volumeDevices_ = null; } return volumeDevicesBuilder_; } private io.kubernetes.client.proto.V1.Probe livenessProbe_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> livenessProbeBuilder_; /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public boolean hasLivenessProbe() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.Probe getLivenessProbe() { if (livenessProbeBuilder_ == null) { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } else { return livenessProbeBuilder_.getMessage(); } } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder setLivenessProbe(io.kubernetes.client.proto.V1.Probe value) { if (livenessProbeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } livenessProbe_ = value; onChanged(); } else { livenessProbeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder setLivenessProbe(io.kubernetes.client.proto.V1.Probe.Builder builderForValue) { if (livenessProbeBuilder_ == null) { livenessProbe_ = builderForValue.build(); onChanged(); } else { livenessProbeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder mergeLivenessProbe(io.kubernetes.client.proto.V1.Probe value) { if (livenessProbeBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && livenessProbe_ != null && livenessProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) { livenessProbe_ = io.kubernetes.client.proto.V1.Probe.newBuilder(livenessProbe_) .mergeFrom(value) .buildPartial(); } else { livenessProbe_ = value; } onChanged(); } else { livenessProbeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public Builder clearLivenessProbe() { if (livenessProbeBuilder_ == null) { livenessProbe_ = null; onChanged(); } else { livenessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.Probe.Builder getLivenessProbeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLivenessProbeFieldBuilder().getBuilder(); } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getLivenessProbeOrBuilder() { if (livenessProbeBuilder_ != null) { return livenessProbeBuilder_.getMessageOrBuilder(); } else { return livenessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : livenessProbe_; } } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe livenessProbe = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> getLivenessProbeFieldBuilder() { if (livenessProbeBuilder_ == null) { livenessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>( getLivenessProbe(), getParentForChildren(), isClean()); livenessProbe_ = null; } return livenessProbeBuilder_; } private io.kubernetes.client.proto.V1.Probe readinessProbe_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> readinessProbeBuilder_; /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public boolean hasReadinessProbe() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.Probe getReadinessProbe() { if (readinessProbeBuilder_ == null) { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } else { return readinessProbeBuilder_.getMessage(); } } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder setReadinessProbe(io.kubernetes.client.proto.V1.Probe value) { if (readinessProbeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readinessProbe_ = value; onChanged(); } else { readinessProbeBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder setReadinessProbe( io.kubernetes.client.proto.V1.Probe.Builder builderForValue) { if (readinessProbeBuilder_ == null) { readinessProbe_ = builderForValue.build(); onChanged(); } else { readinessProbeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder mergeReadinessProbe(io.kubernetes.client.proto.V1.Probe value) { if (readinessProbeBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && readinessProbe_ != null && readinessProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) { readinessProbe_ = io.kubernetes.client.proto.V1.Probe.newBuilder(readinessProbe_) .mergeFrom(value) .buildPartial(); } else { readinessProbe_ = value; } onChanged(); } else { readinessProbeBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public Builder clearReadinessProbe() { if (readinessProbeBuilder_ == null) { readinessProbe_ = null; onChanged(); } else { readinessProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.Probe.Builder getReadinessProbeBuilder() { bitField0_ |= 0x00001000; onChanged(); return getReadinessProbeFieldBuilder().getBuilder(); } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getReadinessProbeOrBuilder() { if (readinessProbeBuilder_ != null) { return readinessProbeBuilder_.getMessageOrBuilder(); } else { return readinessProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : readinessProbe_; } } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe readinessProbe = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> getReadinessProbeFieldBuilder() { if (readinessProbeBuilder_ == null) { readinessProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>( getReadinessProbe(), getParentForChildren(), isClean()); readinessProbe_ = null; } return readinessProbeBuilder_; } private io.kubernetes.client.proto.V1.Probe startupProbe_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> startupProbeBuilder_; /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public boolean hasStartupProbe() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.Probe getStartupProbe() { if (startupProbeBuilder_ == null) { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } else { return startupProbeBuilder_.getMessage(); } } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder setStartupProbe(io.kubernetes.client.proto.V1.Probe value) { if (startupProbeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startupProbe_ = value; onChanged(); } else { startupProbeBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder setStartupProbe(io.kubernetes.client.proto.V1.Probe.Builder builderForValue) { if (startupProbeBuilder_ == null) { startupProbe_ = builderForValue.build(); onChanged(); } else { startupProbeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder mergeStartupProbe(io.kubernetes.client.proto.V1.Probe value) { if (startupProbeBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && startupProbe_ != null && startupProbe_ != io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) { startupProbe_ = io.kubernetes.client.proto.V1.Probe.newBuilder(startupProbe_) .mergeFrom(value) .buildPartial(); } else { startupProbe_ = value; } onChanged(); } else { startupProbeBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public Builder clearStartupProbe() { if (startupProbeBuilder_ == null) { startupProbe_ = null; onChanged(); } else { startupProbeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.Probe.Builder getStartupProbeBuilder() { bitField0_ |= 0x00002000; onChanged(); return getStartupProbeFieldBuilder().getBuilder(); } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ public io.kubernetes.client.proto.V1.ProbeOrBuilder getStartupProbeOrBuilder() { if (startupProbeBuilder_ != null) { return startupProbeBuilder_.getMessageOrBuilder(); } else { return startupProbe_ == null ? io.kubernetes.client.proto.V1.Probe.getDefaultInstance() : startupProbe_; } } /** * * *
       * Probes are not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Probe startupProbe = 22; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder> getStartupProbeFieldBuilder() { if (startupProbeBuilder_ == null) { startupProbeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Probe, io.kubernetes.client.proto.V1.Probe.Builder, io.kubernetes.client.proto.V1.ProbeOrBuilder>( getStartupProbe(), getParentForChildren(), isClean()); startupProbe_ = null; } return startupProbeBuilder_; } private io.kubernetes.client.proto.V1.Lifecycle lifecycle_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder> lifecycleBuilder_; /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public boolean hasLifecycle() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.Lifecycle getLifecycle() { if (lifecycleBuilder_ == null) { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } else { return lifecycleBuilder_.getMessage(); } } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder setLifecycle(io.kubernetes.client.proto.V1.Lifecycle value) { if (lifecycleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lifecycle_ = value; onChanged(); } else { lifecycleBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder setLifecycle(io.kubernetes.client.proto.V1.Lifecycle.Builder builderForValue) { if (lifecycleBuilder_ == null) { lifecycle_ = builderForValue.build(); onChanged(); } else { lifecycleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder mergeLifecycle(io.kubernetes.client.proto.V1.Lifecycle value) { if (lifecycleBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && lifecycle_ != null && lifecycle_ != io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance()) { lifecycle_ = io.kubernetes.client.proto.V1.Lifecycle.newBuilder(lifecycle_) .mergeFrom(value) .buildPartial(); } else { lifecycle_ = value; } onChanged(); } else { lifecycleBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public Builder clearLifecycle() { if (lifecycleBuilder_ == null) { lifecycle_ = null; onChanged(); } else { lifecycleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.Lifecycle.Builder getLifecycleBuilder() { bitField0_ |= 0x00004000; onChanged(); return getLifecycleFieldBuilder().getBuilder(); } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ public io.kubernetes.client.proto.V1.LifecycleOrBuilder getLifecycleOrBuilder() { if (lifecycleBuilder_ != null) { return lifecycleBuilder_.getMessageOrBuilder(); } else { return lifecycle_ == null ? io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance() : lifecycle_; } } /** * * *
       * Lifecycle is not allowed for ephemeral containers.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Lifecycle lifecycle = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder> getLifecycleFieldBuilder() { if (lifecycleBuilder_ == null) { lifecycleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Lifecycle, io.kubernetes.client.proto.V1.Lifecycle.Builder, io.kubernetes.client.proto.V1.LifecycleOrBuilder>( getLifecycle(), getParentForChildren(), isClean()); lifecycle_ = null; } return lifecycleBuilder_; } private java.lang.Object terminationMessagePath_ = ""; /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public boolean hasTerminationMessagePath() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public java.lang.String getTerminationMessagePath() { java.lang.Object ref = terminationMessagePath_; 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()) { terminationMessagePath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public com.google.protobuf.ByteString getTerminationMessagePathBytes() { java.lang.Object ref = terminationMessagePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public Builder setTerminationMessagePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; terminationMessagePath_ = value; onChanged(); return this; } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public Builder clearTerminationMessagePath() { bitField0_ = (bitField0_ & ~0x00008000); terminationMessagePath_ = getDefaultInstance().getTerminationMessagePath(); onChanged(); return this; } /** * * *
       * Optional: Path at which the file to which the container's termination message
       * will be written is mounted into the container's filesystem.
       * Message written is intended to be brief final status, such as an assertion failure message.
       * Will be truncated by the node if greater than 4096 bytes. The total message length across
       * all containers will be limited to 12kb.
       * Defaults to /dev/termination-log.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePath = 13; */ public Builder setTerminationMessagePathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; terminationMessagePath_ = value; onChanged(); return this; } private java.lang.Object terminationMessagePolicy_ = ""; /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public boolean hasTerminationMessagePolicy() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public java.lang.String getTerminationMessagePolicy() { java.lang.Object ref = terminationMessagePolicy_; 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()) { terminationMessagePolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public com.google.protobuf.ByteString getTerminationMessagePolicyBytes() { java.lang.Object ref = terminationMessagePolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminationMessagePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public Builder setTerminationMessagePolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; terminationMessagePolicy_ = value; onChanged(); return this; } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public Builder clearTerminationMessagePolicy() { bitField0_ = (bitField0_ & ~0x00010000); terminationMessagePolicy_ = getDefaultInstance().getTerminationMessagePolicy(); onChanged(); return this; } /** * * *
       * Indicate how the termination message should be populated. File will use the contents of
       * terminationMessagePath to populate the container status message on both success and failure.
       * FallbackToLogsOnError will use the last chunk of container log output if the termination
       * message file is empty and the container exited with an error.
       * The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
       * Defaults to File.
       * Cannot be updated.
       * +optional
       * 
* * optional string terminationMessagePolicy = 20; */ public Builder setTerminationMessagePolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; terminationMessagePolicy_ = value; onChanged(); return this; } private java.lang.Object imagePullPolicy_ = ""; /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public boolean hasImagePullPolicy() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public java.lang.String getImagePullPolicy() { java.lang.Object ref = imagePullPolicy_; 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()) { imagePullPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public com.google.protobuf.ByteString getImagePullPolicyBytes() { java.lang.Object ref = imagePullPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imagePullPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public Builder setImagePullPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; imagePullPolicy_ = value; onChanged(); return this; } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public Builder clearImagePullPolicy() { bitField0_ = (bitField0_ & ~0x00020000); imagePullPolicy_ = getDefaultInstance().getImagePullPolicy(); onChanged(); return this; } /** * * *
       * Image pull policy.
       * One of Always, Never, IfNotPresent.
       * Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
       * +optional
       * 
* * optional string imagePullPolicy = 14; */ public Builder setImagePullPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; imagePullPolicy_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecurityContext securityContext_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder> securityContextBuilder_; /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public boolean hasSecurityContext() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContext getSecurityContext() { if (securityContextBuilder_ == null) { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } else { return securityContextBuilder_.getMessage(); } } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder setSecurityContext(io.kubernetes.client.proto.V1.SecurityContext value) { if (securityContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityContext_ = value; onChanged(); } else { securityContextBuilder_.setMessage(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder setSecurityContext( io.kubernetes.client.proto.V1.SecurityContext.Builder builderForValue) { if (securityContextBuilder_ == null) { securityContext_ = builderForValue.build(); onChanged(); } else { securityContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; return this; } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder mergeSecurityContext(io.kubernetes.client.proto.V1.SecurityContext value) { if (securityContextBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000) && securityContext_ != null && securityContext_ != io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance()) { securityContext_ = io.kubernetes.client.proto.V1.SecurityContext.newBuilder(securityContext_) .mergeFrom(value) .buildPartial(); } else { securityContext_ = value; } onChanged(); } else { securityContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public Builder clearSecurityContext() { if (securityContextBuilder_ == null) { securityContext_ = null; onChanged(); } else { securityContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); return this; } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContext.Builder getSecurityContextBuilder() { bitField0_ |= 0x00040000; onChanged(); return getSecurityContextFieldBuilder().getBuilder(); } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ public io.kubernetes.client.proto.V1.SecurityContextOrBuilder getSecurityContextOrBuilder() { if (securityContextBuilder_ != null) { return securityContextBuilder_.getMessageOrBuilder(); } else { return securityContext_ == null ? io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance() : securityContext_; } } /** * * *
       * Optional: SecurityContext defines the security options the ephemeral container should be run with.
       * If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecurityContext securityContext = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder> getSecurityContextFieldBuilder() { if (securityContextBuilder_ == null) { securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecurityContext, io.kubernetes.client.proto.V1.SecurityContext.Builder, io.kubernetes.client.proto.V1.SecurityContextOrBuilder>( getSecurityContext(), getParentForChildren(), isClean()); securityContext_ = null; } return securityContextBuilder_; } private boolean stdin_; /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public boolean hasStdin() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public boolean getStdin() { return stdin_; } /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public Builder setStdin(boolean value) { bitField0_ |= 0x00080000; stdin_ = value; onChanged(); return this; } /** * * *
       * Whether this container should allocate a buffer for stdin in the container runtime. If this
       * is not set, reads from stdin in the container will always result in EOF.
       * Default is false.
       * +optional
       * 
* * optional bool stdin = 16; */ public Builder clearStdin() { bitField0_ = (bitField0_ & ~0x00080000); stdin_ = false; onChanged(); return this; } private boolean stdinOnce_; /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public boolean hasStdinOnce() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public boolean getStdinOnce() { return stdinOnce_; } /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public Builder setStdinOnce(boolean value) { bitField0_ |= 0x00100000; stdinOnce_ = value; onChanged(); return this; } /** * * *
       * Whether the container runtime should close the stdin channel after it has been opened by
       * a single attach. When stdin is true the stdin stream will remain open across multiple attach
       * sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
       * first client attaches to stdin, and then remains open and accepts data until the client disconnects,
       * at which time stdin is closed and remains closed until the container is restarted. If this
       * flag is false, a container processes that reads from stdin will never receive an EOF.
       * Default is false
       * +optional
       * 
* * optional bool stdinOnce = 17; */ public Builder clearStdinOnce() { bitField0_ = (bitField0_ & ~0x00100000); stdinOnce_ = false; onChanged(); return this; } private boolean tty_; /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public boolean hasTty() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public boolean getTty() { return tty_; } /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public Builder setTty(boolean value) { bitField0_ |= 0x00200000; tty_ = value; onChanged(); return this; } /** * * *
       * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
       * Default is false.
       * +optional
       * 
* * optional bool tty = 18; */ public Builder clearTty() { bitField0_ = (bitField0_ & ~0x00200000); tty_ = 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.core.v1.EphemeralContainerCommon) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EphemeralContainerCommon) private static final io.kubernetes.client.proto.V1.EphemeralContainerCommon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EphemeralContainerCommon(); } public static io.kubernetes.client.proto.V1.EphemeralContainerCommon getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EphemeralContainerCommon parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EphemeralContainerCommon(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.V1.EphemeralContainerCommon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EphemeralVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EphemeralVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Will be used to create a stand-alone PVC to provision the volume.
     * The pod in which this EphemeralVolumeSource is embedded will be the
     * owner of the PVC, i.e. the PVC will be deleted together with the
     * pod.  The name of the PVC will be `<pod name>-<volume name>` where
     * `<volume name>` is the name from the `PodSpec.Volumes` array
     * entry. Pod validation will reject the pod if the concatenated name
     * is not valid for a PVC (for example, too long).
     * An existing PVC with that name that is not owned by the pod
     * will *not* be used for the pod to avoid using an unrelated
     * volume by mistake. Starting the pod is then blocked until
     * the unrelated PVC is removed. If such a pre-created PVC is
     * meant to be used by the pod, the PVC has to updated with an
     * owner reference to the pod once the pod exists. Normally
     * this should not be necessary, but it may be useful when
     * manually reconstructing a broken cluster.
     * This field is read-only and no changes will be made by Kubernetes
     * to the PVC after it has been created.
     * Required, must not be nil.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ boolean hasVolumeClaimTemplate(); /** * * *
     * Will be used to create a stand-alone PVC to provision the volume.
     * The pod in which this EphemeralVolumeSource is embedded will be the
     * owner of the PVC, i.e. the PVC will be deleted together with the
     * pod.  The name of the PVC will be `<pod name>-<volume name>` where
     * `<volume name>` is the name from the `PodSpec.Volumes` array
     * entry. Pod validation will reject the pod if the concatenated name
     * is not valid for a PVC (for example, too long).
     * An existing PVC with that name that is not owned by the pod
     * will *not* be used for the pod to avoid using an unrelated
     * volume by mistake. Starting the pod is then blocked until
     * the unrelated PVC is removed. If such a pre-created PVC is
     * meant to be used by the pod, the PVC has to updated with an
     * owner reference to the pod once the pod exists. Normally
     * this should not be necessary, but it may be useful when
     * manually reconstructing a broken cluster.
     * This field is read-only and no changes will be made by Kubernetes
     * to the PVC after it has been created.
     * Required, must not be nil.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate getVolumeClaimTemplate(); /** * * *
     * Will be used to create a stand-alone PVC to provision the volume.
     * The pod in which this EphemeralVolumeSource is embedded will be the
     * owner of the PVC, i.e. the PVC will be deleted together with the
     * pod.  The name of the PVC will be `<pod name>-<volume name>` where
     * `<volume name>` is the name from the `PodSpec.Volumes` array
     * entry. Pod validation will reject the pod if the concatenated name
     * is not valid for a PVC (for example, too long).
     * An existing PVC with that name that is not owned by the pod
     * will *not* be used for the pod to avoid using an unrelated
     * volume by mistake. Starting the pod is then blocked until
     * the unrelated PVC is removed. If such a pre-created PVC is
     * meant to be used by the pod, the PVC has to updated with an
     * owner reference to the pod once the pod exists. Normally
     * this should not be necessary, but it may be useful when
     * manually reconstructing a broken cluster.
     * This field is read-only and no changes will be made by Kubernetes
     * to the PVC after it has been created.
     * Required, must not be nil.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder getVolumeClaimTemplateOrBuilder(); } /** * * *
   * Represents an ephemeral volume that is handled by a normal storage driver.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EphemeralVolumeSource} */ public static final class EphemeralVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EphemeralVolumeSource) EphemeralVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use EphemeralVolumeSource.newBuilder() to construct. private EphemeralVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EphemeralVolumeSource() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EphemeralVolumeSource( 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.V1.PersistentVolumeClaimTemplate.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = volumeClaimTemplate_.toBuilder(); } volumeClaimTemplate_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(volumeClaimTemplate_); volumeClaimTemplate_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EphemeralVolumeSource.class, io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMECLAIMTEMPLATE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate volumeClaimTemplate_; /** * * *
     * Will be used to create a stand-alone PVC to provision the volume.
     * The pod in which this EphemeralVolumeSource is embedded will be the
     * owner of the PVC, i.e. the PVC will be deleted together with the
     * pod.  The name of the PVC will be `<pod name>-<volume name>` where
     * `<volume name>` is the name from the `PodSpec.Volumes` array
     * entry. Pod validation will reject the pod if the concatenated name
     * is not valid for a PVC (for example, too long).
     * An existing PVC with that name that is not owned by the pod
     * will *not* be used for the pod to avoid using an unrelated
     * volume by mistake. Starting the pod is then blocked until
     * the unrelated PVC is removed. If such a pre-created PVC is
     * meant to be used by the pod, the PVC has to updated with an
     * owner reference to the pod once the pod exists. Normally
     * this should not be necessary, but it may be useful when
     * manually reconstructing a broken cluster.
     * This field is read-only and no changes will be made by Kubernetes
     * to the PVC after it has been created.
     * Required, must not be nil.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public boolean hasVolumeClaimTemplate() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Will be used to create a stand-alone PVC to provision the volume.
     * The pod in which this EphemeralVolumeSource is embedded will be the
     * owner of the PVC, i.e. the PVC will be deleted together with the
     * pod.  The name of the PVC will be `<pod name>-<volume name>` where
     * `<volume name>` is the name from the `PodSpec.Volumes` array
     * entry. Pod validation will reject the pod if the concatenated name
     * is not valid for a PVC (for example, too long).
     * An existing PVC with that name that is not owned by the pod
     * will *not* be used for the pod to avoid using an unrelated
     * volume by mistake. Starting the pod is then blocked until
     * the unrelated PVC is removed. If such a pre-created PVC is
     * meant to be used by the pod, the PVC has to updated with an
     * owner reference to the pod once the pod exists. Normally
     * this should not be necessary, but it may be useful when
     * manually reconstructing a broken cluster.
     * This field is read-only and no changes will be made by Kubernetes
     * to the PVC after it has been created.
     * Required, must not be nil.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate getVolumeClaimTemplate() { return volumeClaimTemplate_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.getDefaultInstance() : volumeClaimTemplate_; } /** * * *
     * Will be used to create a stand-alone PVC to provision the volume.
     * The pod in which this EphemeralVolumeSource is embedded will be the
     * owner of the PVC, i.e. the PVC will be deleted together with the
     * pod.  The name of the PVC will be `<pod name>-<volume name>` where
     * `<volume name>` is the name from the `PodSpec.Volumes` array
     * entry. Pod validation will reject the pod if the concatenated name
     * is not valid for a PVC (for example, too long).
     * An existing PVC with that name that is not owned by the pod
     * will *not* be used for the pod to avoid using an unrelated
     * volume by mistake. Starting the pod is then blocked until
     * the unrelated PVC is removed. If such a pre-created PVC is
     * meant to be used by the pod, the PVC has to updated with an
     * owner reference to the pod once the pod exists. Normally
     * this should not be necessary, but it may be useful when
     * manually reconstructing a broken cluster.
     * This field is read-only and no changes will be made by Kubernetes
     * to the PVC after it has been created.
     * Required, must not be nil.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder getVolumeClaimTemplateOrBuilder() { return volumeClaimTemplate_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.getDefaultInstance() : volumeClaimTemplate_; } 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, getVolumeClaimTemplate()); } 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, getVolumeClaimTemplate()); } 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.V1.EphemeralVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EphemeralVolumeSource other = (io.kubernetes.client.proto.V1.EphemeralVolumeSource) obj; boolean result = true; result = result && (hasVolumeClaimTemplate() == other.hasVolumeClaimTemplate()); if (hasVolumeClaimTemplate()) { result = result && getVolumeClaimTemplate().equals(other.getVolumeClaimTemplate()); } 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 (hasVolumeClaimTemplate()) { hash = (37 * hash) + VOLUMECLAIMTEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getVolumeClaimTemplate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource 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.V1.EphemeralVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource 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.V1.EphemeralVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource 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.V1.EphemeralVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource 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.V1.EphemeralVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource 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.V1.EphemeralVolumeSource 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; } /** * * *
     * Represents an ephemeral volume that is handled by a normal storage driver.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EphemeralVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EphemeralVolumeSource) io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EphemeralVolumeSource.class, io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EphemeralVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVolumeClaimTemplateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (volumeClaimTemplateBuilder_ == null) { volumeClaimTemplate_ = null; } else { volumeClaimTemplateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralVolumeSource build() { io.kubernetes.client.proto.V1.EphemeralVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EphemeralVolumeSource buildPartial() { io.kubernetes.client.proto.V1.EphemeralVolumeSource result = new io.kubernetes.client.proto.V1.EphemeralVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (volumeClaimTemplateBuilder_ == null) { result.volumeClaimTemplate_ = volumeClaimTemplate_; } else { result.volumeClaimTemplate_ = volumeClaimTemplateBuilder_.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.V1.EphemeralVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.EphemeralVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EphemeralVolumeSource other) { if (other == io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeClaimTemplate()) { mergeVolumeClaimTemplate(other.getVolumeClaimTemplate()); } 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.V1.EphemeralVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EphemeralVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate volumeClaimTemplate_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder> volumeClaimTemplateBuilder_; /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public boolean hasVolumeClaimTemplate() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate getVolumeClaimTemplate() { if (volumeClaimTemplateBuilder_ == null) { return volumeClaimTemplate_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.getDefaultInstance() : volumeClaimTemplate_; } else { return volumeClaimTemplateBuilder_.getMessage(); } } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public Builder setVolumeClaimTemplate( io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate value) { if (volumeClaimTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } volumeClaimTemplate_ = value; onChanged(); } else { volumeClaimTemplateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public Builder setVolumeClaimTemplate( io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder builderForValue) { if (volumeClaimTemplateBuilder_ == null) { volumeClaimTemplate_ = builderForValue.build(); onChanged(); } else { volumeClaimTemplateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public Builder mergeVolumeClaimTemplate( io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate value) { if (volumeClaimTemplateBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && volumeClaimTemplate_ != null && volumeClaimTemplate_ != io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate .getDefaultInstance()) { volumeClaimTemplate_ = io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.newBuilder( volumeClaimTemplate_) .mergeFrom(value) .buildPartial(); } else { volumeClaimTemplate_ = value; } onChanged(); } else { volumeClaimTemplateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public Builder clearVolumeClaimTemplate() { if (volumeClaimTemplateBuilder_ == null) { volumeClaimTemplate_ = null; onChanged(); } else { volumeClaimTemplateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder getVolumeClaimTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getVolumeClaimTemplateFieldBuilder().getBuilder(); } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder getVolumeClaimTemplateOrBuilder() { if (volumeClaimTemplateBuilder_ != null) { return volumeClaimTemplateBuilder_.getMessageOrBuilder(); } else { return volumeClaimTemplate_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.getDefaultInstance() : volumeClaimTemplate_; } } /** * * *
       * Will be used to create a stand-alone PVC to provision the volume.
       * The pod in which this EphemeralVolumeSource is embedded will be the
       * owner of the PVC, i.e. the PVC will be deleted together with the
       * pod.  The name of the PVC will be `<pod name>-<volume name>` where
       * `<volume name>` is the name from the `PodSpec.Volumes` array
       * entry. Pod validation will reject the pod if the concatenated name
       * is not valid for a PVC (for example, too long).
       * An existing PVC with that name that is not owned by the pod
       * will *not* be used for the pod to avoid using an unrelated
       * volume by mistake. Starting the pod is then blocked until
       * the unrelated PVC is removed. If such a pre-created PVC is
       * meant to be used by the pod, the PVC has to updated with an
       * owner reference to the pod once the pod exists. Normally
       * this should not be necessary, but it may be useful when
       * manually reconstructing a broken cluster.
       * This field is read-only and no changes will be made by Kubernetes
       * to the PVC after it has been created.
       * Required, must not be nil.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder> getVolumeClaimTemplateFieldBuilder() { if (volumeClaimTemplateBuilder_ == null) { volumeClaimTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder>( getVolumeClaimTemplate(), getParentForChildren(), isClean()); volumeClaimTemplate_ = null; } return volumeClaimTemplateBuilder_; } @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.core.v1.EphemeralVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EphemeralVolumeSource) private static final io.kubernetes.client.proto.V1.EphemeralVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EphemeralVolumeSource(); } public static io.kubernetes.client.proto.V1.EphemeralVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EphemeralVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EphemeralVolumeSource(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.V1.EphemeralVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Event) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * 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's metadata.
     * 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's metadata.
     * 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(); /** * * *
     * The object that this event is about.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ boolean hasInvolvedObject(); /** * * *
     * The object that this event is about.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ io.kubernetes.client.proto.V1.ObjectReference getInvolvedObject(); /** * * *
     * The object that this event is about.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getInvolvedObjectOrBuilder(); /** * * *
     * This should be a short, machine understandable string that gives the reason
     * for the transition into the object's current status.
     * TODO: provide exact specification for format.
     * +optional
     * 
* * optional string reason = 3; */ boolean hasReason(); /** * * *
     * This should be a short, machine understandable string that gives the reason
     * for the transition into the object's current status.
     * TODO: provide exact specification for format.
     * +optional
     * 
* * optional string reason = 3; */ java.lang.String getReason(); /** * * *
     * This should be a short, machine understandable string that gives the reason
     * for the transition into the object's current status.
     * TODO: provide exact specification for format.
     * +optional
     * 
* * optional string reason = 3; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * A human-readable description of the status of this operation.
     * TODO: decide on maximum length.
     * +optional
     * 
* * optional string message = 4; */ boolean hasMessage(); /** * * *
     * A human-readable description of the status of this operation.
     * TODO: decide on maximum length.
     * +optional
     * 
* * optional string message = 4; */ java.lang.String getMessage(); /** * * *
     * A human-readable description of the status of this operation.
     * TODO: decide on maximum length.
     * +optional
     * 
* * optional string message = 4; */ com.google.protobuf.ByteString getMessageBytes(); /** * * *
     * The component reporting this event. Should be a short machine understandable string.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ boolean hasSource(); /** * * *
     * The component reporting this event. Should be a short machine understandable string.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ io.kubernetes.client.proto.V1.EventSource getSource(); /** * * *
     * The component reporting this event. Should be a short machine understandable string.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ io.kubernetes.client.proto.V1.EventSourceOrBuilder getSourceOrBuilder(); /** * * *
     * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ boolean hasFirstTimestamp(); /** * * *
     * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ io.kubernetes.client.proto.Meta.Time getFirstTimestamp(); /** * * *
     * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getFirstTimestampOrBuilder(); /** * * *
     * The time at which the most recent occurrence of this event was recorded.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ boolean hasLastTimestamp(); /** * * *
     * The time at which the most recent occurrence of this event was recorded.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ io.kubernetes.client.proto.Meta.Time getLastTimestamp(); /** * * *
     * The time at which the most recent occurrence of this event was recorded.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTimestampOrBuilder(); /** * * *
     * The number of times this event has occurred.
     * +optional
     * 
* * optional int32 count = 8; */ boolean hasCount(); /** * * *
     * The number of times this event has occurred.
     * +optional
     * 
* * optional int32 count = 8; */ int getCount(); /** * * *
     * Type of this event (Normal, Warning), new types could be added in the future
     * +optional
     * 
* * optional string type = 9; */ boolean hasType(); /** * * *
     * Type of this event (Normal, Warning), new types could be added in the future
     * +optional
     * 
* * optional string type = 9; */ java.lang.String getType(); /** * * *
     * Type of this event (Normal, Warning), new types could be added in the future
     * +optional
     * 
* * optional string type = 9; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Time when this Event was first observed.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ boolean hasEventTime(); /** * * *
     * Time when this Event was first observed.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ io.kubernetes.client.proto.Meta.MicroTime getEventTime(); /** * * *
     * Time when this Event was first observed.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getEventTimeOrBuilder(); /** * * *
     * Data about the Event series this event represents or nil if it's a singleton Event.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ boolean hasSeries(); /** * * *
     * Data about the Event series this event represents or nil if it's a singleton Event.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ io.kubernetes.client.proto.V1.EventSeries getSeries(); /** * * *
     * Data about the Event series this event represents or nil if it's a singleton Event.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ io.kubernetes.client.proto.V1.EventSeriesOrBuilder getSeriesOrBuilder(); /** * * *
     * What action was taken/failed regarding to the Regarding object.
     * +optional
     * 
* * optional string action = 12; */ boolean hasAction(); /** * * *
     * What action was taken/failed regarding to the Regarding object.
     * +optional
     * 
* * optional string action = 12; */ java.lang.String getAction(); /** * * *
     * What action was taken/failed regarding to the Regarding object.
     * +optional
     * 
* * optional string action = 12; */ com.google.protobuf.ByteString getActionBytes(); /** * * *
     * Optional secondary object for more complex actions.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ boolean hasRelated(); /** * * *
     * Optional secondary object for more complex actions.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ io.kubernetes.client.proto.V1.ObjectReference getRelated(); /** * * *
     * Optional secondary object for more complex actions.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRelatedOrBuilder(); /** * * *
     * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
     * +optional
     * 
* * optional string reportingComponent = 14; */ boolean hasReportingComponent(); /** * * *
     * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
     * +optional
     * 
* * optional string reportingComponent = 14; */ java.lang.String getReportingComponent(); /** * * *
     * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
     * +optional
     * 
* * optional string reportingComponent = 14; */ com.google.protobuf.ByteString getReportingComponentBytes(); /** * * *
     * ID of the controller instance, e.g. `kubelet-xyzf`.
     * +optional
     * 
* * optional string reportingInstance = 15; */ boolean hasReportingInstance(); /** * * *
     * ID of the controller instance, e.g. `kubelet-xyzf`.
     * +optional
     * 
* * optional string reportingInstance = 15; */ java.lang.String getReportingInstance(); /** * * *
     * ID of the controller instance, e.g. `kubelet-xyzf`.
     * +optional
     * 
* * optional string reportingInstance = 15; */ com.google.protobuf.ByteString getReportingInstanceBytes(); } /** * * *
   * Event is a report of an event somewhere in the cluster.  Events
   * have a limited retention time and triggers and messages may evolve
   * with time.  Event consumers should not rely on the timing of an event
   * with a given Reason reflecting a consistent underlying trigger, or the
   * continued existence of events with that Reason.  Events should be
   * treated as informative, best-effort, supplemental data.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Event} */ public static final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Event) EventOrBuilder { private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { reason_ = ""; message_ = ""; count_ = 0; type_ = ""; action_ = ""; reportingComponent_ = ""; reportingInstance_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Event( 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.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = involvedObject_.toBuilder(); } involvedObject_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(involvedObject_); involvedObject_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; reason_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; message_ = bs; break; } case 42: { io.kubernetes.client.proto.V1.EventSource.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = source_.toBuilder(); } source_ = input.readMessage( io.kubernetes.client.proto.V1.EventSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = firstTimestamp_.toBuilder(); } firstTimestamp_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(firstTimestamp_); firstTimestamp_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = lastTimestamp_.toBuilder(); } lastTimestamp_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTimestamp_); lastTimestamp_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 64: { bitField0_ |= 0x00000080; count_ = input.readInt32(); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; type_ = bs; break; } case 82: { io.kubernetes.client.proto.Meta.MicroTime.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = eventTime_.toBuilder(); } eventTime_ = input.readMessage( io.kubernetes.client.proto.Meta.MicroTime.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eventTime_); eventTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 90: { io.kubernetes.client.proto.V1.EventSeries.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = series_.toBuilder(); } series_ = input.readMessage( io.kubernetes.client.proto.V1.EventSeries.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(series_); series_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 98: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; action_ = bs; break; } case 106: { io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = related_.toBuilder(); } related_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(related_); related_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; reportingComponent_ = bs; break; } case 122: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; reportingInstance_ = 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.V1.internal_static_k8s_io_api_core_v1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Event.class, io.kubernetes.client.proto.V1.Event.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 .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 .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 .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 INVOLVEDOBJECT_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ObjectReference involvedObject_; /** * * *
     * The object that this event is about.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public boolean hasInvolvedObject() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The object that this event is about.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getInvolvedObject() { return involvedObject_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : involvedObject_; } /** * * *
     * The object that this event is about.
     * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getInvolvedObjectOrBuilder() { return involvedObject_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : involvedObject_; } public static final int REASON_FIELD_NUMBER = 3; private volatile java.lang.Object reason_; /** * * *
     * This should be a short, machine understandable string that gives the reason
     * for the transition into the object's current status.
     * TODO: provide exact specification for format.
     * +optional
     * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * This should be a short, machine understandable string that gives the reason
     * for the transition into the object's current status.
     * TODO: provide exact specification for format.
     * +optional
     * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * This should be a short, machine understandable string that gives the reason
     * for the transition into the object's current status.
     * TODO: provide exact specification for format.
     * +optional
     * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 4; private volatile java.lang.Object message_; /** * * *
     * A human-readable description of the status of this operation.
     * TODO: decide on maximum length.
     * +optional
     * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * A human-readable description of the status of this operation.
     * TODO: decide on maximum length.
     * +optional
     * 
* * optional string message = 4; */ 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; } } /** * * *
     * A human-readable description of the status of this operation.
     * TODO: decide on maximum length.
     * +optional
     * 
* * optional string message = 4; */ 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; } } public static final int SOURCE_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.EventSource source_; /** * * *
     * The component reporting this event. Should be a short machine understandable string.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public boolean hasSource() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * The component reporting this event. Should be a short machine understandable string.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public io.kubernetes.client.proto.V1.EventSource getSource() { return source_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : source_; } /** * * *
     * The component reporting this event. Should be a short machine understandable string.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public io.kubernetes.client.proto.V1.EventSourceOrBuilder getSourceOrBuilder() { return source_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : source_; } public static final int FIRSTTIMESTAMP_FIELD_NUMBER = 6; private io.kubernetes.client.proto.Meta.Time firstTimestamp_; /** * * *
     * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public boolean hasFirstTimestamp() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public io.kubernetes.client.proto.Meta.Time getFirstTimestamp() { return firstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : firstTimestamp_; } /** * * *
     * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getFirstTimestampOrBuilder() { return firstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : firstTimestamp_; } public static final int LASTTIMESTAMP_FIELD_NUMBER = 7; private io.kubernetes.client.proto.Meta.Time lastTimestamp_; /** * * *
     * The time at which the most recent occurrence of this event was recorded.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public boolean hasLastTimestamp() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * The time at which the most recent occurrence of this event was recorded.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public io.kubernetes.client.proto.Meta.Time getLastTimestamp() { return lastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTimestamp_; } /** * * *
     * The time at which the most recent occurrence of this event was recorded.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTimestampOrBuilder() { return lastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTimestamp_; } public static final int COUNT_FIELD_NUMBER = 8; private int count_; /** * * *
     * The number of times this event has occurred.
     * +optional
     * 
* * optional int32 count = 8; */ public boolean hasCount() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * The number of times this event has occurred.
     * +optional
     * 
* * optional int32 count = 8; */ public int getCount() { return count_; } public static final int TYPE_FIELD_NUMBER = 9; private volatile java.lang.Object type_; /** * * *
     * Type of this event (Normal, Warning), new types could be added in the future
     * +optional
     * 
* * optional string type = 9; */ public boolean hasType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Type of this event (Normal, Warning), new types could be added in the future
     * +optional
     * 
* * optional string type = 9; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type of this event (Normal, Warning), new types could be added in the future
     * +optional
     * 
* * optional string type = 9; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVENTTIME_FIELD_NUMBER = 10; private io.kubernetes.client.proto.Meta.MicroTime eventTime_; /** * * *
     * Time when this Event was first observed.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public boolean hasEventTime() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Time when this Event was first observed.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public io.kubernetes.client.proto.Meta.MicroTime getEventTime() { return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; } /** * * *
     * Time when this Event was first observed.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getEventTimeOrBuilder() { return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; } public static final int SERIES_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.EventSeries series_; /** * * *
     * Data about the Event series this event represents or nil if it's a singleton Event.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public boolean hasSeries() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * Data about the Event series this event represents or nil if it's a singleton Event.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public io.kubernetes.client.proto.V1.EventSeries getSeries() { return series_ == null ? io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance() : series_; } /** * * *
     * Data about the Event series this event represents or nil if it's a singleton Event.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public io.kubernetes.client.proto.V1.EventSeriesOrBuilder getSeriesOrBuilder() { return series_ == null ? io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance() : series_; } public static final int ACTION_FIELD_NUMBER = 12; private volatile java.lang.Object action_; /** * * *
     * What action was taken/failed regarding to the Regarding object.
     * +optional
     * 
* * optional string action = 12; */ public boolean hasAction() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * What action was taken/failed regarding to the Regarding object.
     * +optional
     * 
* * optional string action = 12; */ public java.lang.String getAction() { java.lang.Object ref = action_; 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()) { action_ = s; } return s; } } /** * * *
     * What action was taken/failed regarding to the Regarding object.
     * +optional
     * 
* * optional string action = 12; */ public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RELATED_FIELD_NUMBER = 13; private io.kubernetes.client.proto.V1.ObjectReference related_; /** * * *
     * Optional secondary object for more complex actions.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public boolean hasRelated() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * Optional secondary object for more complex actions.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public io.kubernetes.client.proto.V1.ObjectReference getRelated() { return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; } /** * * *
     * Optional secondary object for more complex actions.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRelatedOrBuilder() { return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; } public static final int REPORTINGCOMPONENT_FIELD_NUMBER = 14; private volatile java.lang.Object reportingComponent_; /** * * *
     * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
     * +optional
     * 
* * optional string reportingComponent = 14; */ public boolean hasReportingComponent() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
     * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
     * +optional
     * 
* * optional string reportingComponent = 14; */ public java.lang.String getReportingComponent() { java.lang.Object ref = reportingComponent_; 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()) { reportingComponent_ = s; } return s; } } /** * * *
     * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
     * +optional
     * 
* * optional string reportingComponent = 14; */ public com.google.protobuf.ByteString getReportingComponentBytes() { java.lang.Object ref = reportingComponent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reportingComponent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPORTINGINSTANCE_FIELD_NUMBER = 15; private volatile java.lang.Object reportingInstance_; /** * * *
     * ID of the controller instance, e.g. `kubelet-xyzf`.
     * +optional
     * 
* * optional string reportingInstance = 15; */ public boolean hasReportingInstance() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
     * ID of the controller instance, e.g. `kubelet-xyzf`.
     * +optional
     * 
* * optional string reportingInstance = 15; */ public java.lang.String getReportingInstance() { java.lang.Object ref = reportingInstance_; 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()) { reportingInstance_ = s; } return s; } } /** * * *
     * ID of the controller instance, e.g. `kubelet-xyzf`.
     * +optional
     * 
* * optional string reportingInstance = 15; */ public com.google.protobuf.ByteString getReportingInstanceBytes() { java.lang.Object ref = reportingInstance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reportingInstance_ = 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, getMetadata()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getInvolvedObject()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getSource()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getFirstTimestamp()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getLastTimestamp()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, count_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, type_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(10, getEventTime()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(11, getSeries()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, action_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(13, getRelated()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, reportingComponent_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, reportingInstance_); } 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, getInvolvedObject()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSource()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getFirstTimestamp()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastTimestamp()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, count_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, type_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getEventTime()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSeries()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, action_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getRelated()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, reportingComponent_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, reportingInstance_); } 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.V1.Event)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Event other = (io.kubernetes.client.proto.V1.Event) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasInvolvedObject() == other.hasInvolvedObject()); if (hasInvolvedObject()) { result = result && getInvolvedObject().equals(other.getInvolvedObject()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource().equals(other.getSource()); } result = result && (hasFirstTimestamp() == other.hasFirstTimestamp()); if (hasFirstTimestamp()) { result = result && getFirstTimestamp().equals(other.getFirstTimestamp()); } result = result && (hasLastTimestamp() == other.hasLastTimestamp()); if (hasLastTimestamp()) { result = result && getLastTimestamp().equals(other.getLastTimestamp()); } result = result && (hasCount() == other.hasCount()); if (hasCount()) { result = result && (getCount() == other.getCount()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasEventTime() == other.hasEventTime()); if (hasEventTime()) { result = result && getEventTime().equals(other.getEventTime()); } result = result && (hasSeries() == other.hasSeries()); if (hasSeries()) { result = result && getSeries().equals(other.getSeries()); } result = result && (hasAction() == other.hasAction()); if (hasAction()) { result = result && getAction().equals(other.getAction()); } result = result && (hasRelated() == other.hasRelated()); if (hasRelated()) { result = result && getRelated().equals(other.getRelated()); } result = result && (hasReportingComponent() == other.hasReportingComponent()); if (hasReportingComponent()) { result = result && getReportingComponent().equals(other.getReportingComponent()); } result = result && (hasReportingInstance() == other.hasReportingInstance()); if (hasReportingInstance()) { result = result && getReportingInstance().equals(other.getReportingInstance()); } 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 (hasInvolvedObject()) { hash = (37 * hash) + INVOLVEDOBJECT_FIELD_NUMBER; hash = (53 * hash) + getInvolvedObject().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasFirstTimestamp()) { hash = (37 * hash) + FIRSTTIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getFirstTimestamp().hashCode(); } if (hasLastTimestamp()) { hash = (37 * hash) + LASTTIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getLastTimestamp().hashCode(); } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasEventTime()) { hash = (37 * hash) + EVENTTIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); } if (hasSeries()) { hash = (37 * hash) + SERIES_FIELD_NUMBER; hash = (53 * hash) + getSeries().hashCode(); } if (hasAction()) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); } if (hasRelated()) { hash = (37 * hash) + RELATED_FIELD_NUMBER; hash = (53 * hash) + getRelated().hashCode(); } if (hasReportingComponent()) { hash = (37 * hash) + REPORTINGCOMPONENT_FIELD_NUMBER; hash = (53 * hash) + getReportingComponent().hashCode(); } if (hasReportingInstance()) { hash = (37 * hash) + REPORTINGINSTANCE_FIELD_NUMBER; hash = (53 * hash) + getReportingInstance().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Event parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Event 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.V1.Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Event 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.V1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Event 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.V1.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Event 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.V1.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Event 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.V1.Event 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; } /** * * *
     * Event is a report of an event somewhere in the cluster.  Events
     * have a limited retention time and triggers and messages may evolve
     * with time.  Event consumers should not rely on the timing of an event
     * with a given Reason reflecting a consistent underlying trigger, or the
     * continued existence of events with that Reason.  Events should be
     * treated as informative, best-effort, supplemental data.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Event) io.kubernetes.client.proto.V1.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Event.class, io.kubernetes.client.proto.V1.Event.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Event.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(); getInvolvedObjectFieldBuilder(); getSourceFieldBuilder(); getFirstTimestampFieldBuilder(); getLastTimestampFieldBuilder(); getEventTimeFieldBuilder(); getSeriesFieldBuilder(); getRelatedFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (involvedObjectBuilder_ == null) { involvedObject_ = null; } else { involvedObjectBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000004); message_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (sourceBuilder_ == null) { source_ = null; } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (firstTimestampBuilder_ == null) { firstTimestamp_ = null; } else { firstTimestampBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (lastTimestampBuilder_ == null) { lastTimestamp_ = null; } else { lastTimestampBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); count_ = 0; bitField0_ = (bitField0_ & ~0x00000080); type_ = ""; bitField0_ = (bitField0_ & ~0x00000100); if (eventTimeBuilder_ == null) { eventTime_ = null; } else { eventTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (seriesBuilder_ == null) { series_ = null; } else { seriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); action_ = ""; bitField0_ = (bitField0_ & ~0x00000800); if (relatedBuilder_ == null) { related_ = null; } else { relatedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); reportingComponent_ = ""; bitField0_ = (bitField0_ & ~0x00002000); reportingInstance_ = ""; bitField0_ = (bitField0_ & ~0x00004000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Event_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Event getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Event.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Event build() { io.kubernetes.client.proto.V1.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Event buildPartial() { io.kubernetes.client.proto.V1.Event result = new io.kubernetes.client.proto.V1.Event(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 (involvedObjectBuilder_ == null) { result.involvedObject_ = involvedObject_; } else { result.involvedObject_ = involvedObjectBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.message_ = message_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (firstTimestampBuilder_ == null) { result.firstTimestamp_ = firstTimestamp_; } else { result.firstTimestamp_ = firstTimestampBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (lastTimestampBuilder_ == null) { result.lastTimestamp_ = lastTimestamp_; } else { result.lastTimestamp_ = lastTimestampBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.count_ = count_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.type_ = type_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (eventTimeBuilder_ == null) { result.eventTime_ = eventTime_; } else { result.eventTime_ = eventTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (seriesBuilder_ == null) { result.series_ = series_; } else { result.series_ = seriesBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.action_ = action_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } if (relatedBuilder_ == null) { result.related_ = related_; } else { result.related_ = relatedBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.reportingComponent_ = reportingComponent_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.reportingInstance_ = reportingInstance_; 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.V1.Event) { return mergeFrom((io.kubernetes.client.proto.V1.Event) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Event other) { if (other == io.kubernetes.client.proto.V1.Event.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasInvolvedObject()) { mergeInvolvedObject(other.getInvolvedObject()); } if (other.hasReason()) { bitField0_ |= 0x00000004; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000008; message_ = other.message_; onChanged(); } if (other.hasSource()) { mergeSource(other.getSource()); } if (other.hasFirstTimestamp()) { mergeFirstTimestamp(other.getFirstTimestamp()); } if (other.hasLastTimestamp()) { mergeLastTimestamp(other.getLastTimestamp()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasType()) { bitField0_ |= 0x00000100; type_ = other.type_; onChanged(); } if (other.hasEventTime()) { mergeEventTime(other.getEventTime()); } if (other.hasSeries()) { mergeSeries(other.getSeries()); } if (other.hasAction()) { bitField0_ |= 0x00000800; action_ = other.action_; onChanged(); } if (other.hasRelated()) { mergeRelated(other.getRelated()); } if (other.hasReportingComponent()) { bitField0_ |= 0x00002000; reportingComponent_ = other.reportingComponent_; onChanged(); } if (other.hasReportingInstance()) { bitField0_ |= 0x00004000; reportingInstance_ = other.reportingInstance_; 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.V1.Event parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Event) 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 .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 .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 .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 .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 .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 .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 .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 .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 .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.V1.ObjectReference involvedObject_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> involvedObjectBuilder_; /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public boolean hasInvolvedObject() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getInvolvedObject() { if (involvedObjectBuilder_ == null) { return involvedObject_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : involvedObject_; } else { return involvedObjectBuilder_.getMessage(); } } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public Builder setInvolvedObject(io.kubernetes.client.proto.V1.ObjectReference value) { if (involvedObjectBuilder_ == null) { if (value == null) { throw new NullPointerException(); } involvedObject_ = value; onChanged(); } else { involvedObjectBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public Builder setInvolvedObject( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (involvedObjectBuilder_ == null) { involvedObject_ = builderForValue.build(); onChanged(); } else { involvedObjectBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public Builder mergeInvolvedObject(io.kubernetes.client.proto.V1.ObjectReference value) { if (involvedObjectBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && involvedObject_ != null && involvedObject_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { involvedObject_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(involvedObject_) .mergeFrom(value) .buildPartial(); } else { involvedObject_ = value; } onChanged(); } else { involvedObjectBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public Builder clearInvolvedObject() { if (involvedObjectBuilder_ == null) { involvedObject_ = null; onChanged(); } else { involvedObjectBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getInvolvedObjectBuilder() { bitField0_ |= 0x00000002; onChanged(); return getInvolvedObjectFieldBuilder().getBuilder(); } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getInvolvedObjectOrBuilder() { if (involvedObjectBuilder_ != null) { return involvedObjectBuilder_.getMessageOrBuilder(); } else { return involvedObject_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : involvedObject_; } } /** * * *
       * The object that this event is about.
       * 
* * optional .k8s.io.api.core.v1.ObjectReference involvedObject = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getInvolvedObjectFieldBuilder() { if (involvedObjectBuilder_ == null) { involvedObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getInvolvedObject(), getParentForChildren(), isClean()); involvedObject_ = null; } return involvedObjectBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * This should be a short, machine understandable string that gives the reason
       * for the transition into the object's current status.
       * TODO: provide exact specification for format.
       * +optional
       * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * This should be a short, machine understandable string that gives the reason
       * for the transition into the object's current status.
       * TODO: provide exact specification for format.
       * +optional
       * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * This should be a short, machine understandable string that gives the reason
       * for the transition into the object's current status.
       * TODO: provide exact specification for format.
       * +optional
       * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * This should be a short, machine understandable string that gives the reason
       * for the transition into the object's current status.
       * TODO: provide exact specification for format.
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } /** * * *
       * This should be a short, machine understandable string that gives the reason
       * for the transition into the object's current status.
       * TODO: provide exact specification for format.
       * +optional
       * 
* * optional string reason = 3; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000004); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * This should be a short, machine understandable string that gives the reason
       * for the transition into the object's current status.
       * TODO: provide exact specification for format.
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * A human-readable description of the status of this operation.
       * TODO: decide on maximum length.
       * +optional
       * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * A human-readable description of the status of this operation.
       * TODO: decide on maximum length.
       * +optional
       * 
* * optional string message = 4; */ 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; } } /** * * *
       * A human-readable description of the status of this operation.
       * TODO: decide on maximum length.
       * +optional
       * 
* * optional string message = 4; */ 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; } } /** * * *
       * A human-readable description of the status of this operation.
       * TODO: decide on maximum length.
       * +optional
       * 
* * optional string message = 4; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; } /** * * *
       * A human-readable description of the status of this operation.
       * TODO: decide on maximum length.
       * +optional
       * 
* * optional string message = 4; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000008); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * A human-readable description of the status of this operation.
       * TODO: decide on maximum length.
       * +optional
       * 
* * optional string message = 4; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.EventSource source_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EventSource, io.kubernetes.client.proto.V1.EventSource.Builder, io.kubernetes.client.proto.V1.EventSourceOrBuilder> sourceBuilder_; /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public boolean hasSource() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public io.kubernetes.client.proto.V1.EventSource getSource() { if (sourceBuilder_ == null) { return source_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public Builder setSource(io.kubernetes.client.proto.V1.EventSource value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public Builder setSource(io.kubernetes.client.proto.V1.EventSource.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public Builder mergeSource(io.kubernetes.client.proto.V1.EventSource value) { if (sourceBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && source_ != null && source_ != io.kubernetes.client.proto.V1.EventSource.getDefaultInstance()) { source_ = io.kubernetes.client.proto.V1.EventSource.newBuilder(source_) .mergeFrom(value) .buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { sourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public io.kubernetes.client.proto.V1.EventSource.Builder getSourceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ public io.kubernetes.client.proto.V1.EventSourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : source_; } } /** * * *
       * The component reporting this event. Should be a short machine understandable string.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSource source = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EventSource, io.kubernetes.client.proto.V1.EventSource.Builder, io.kubernetes.client.proto.V1.EventSourceOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EventSource, io.kubernetes.client.proto.V1.EventSource.Builder, io.kubernetes.client.proto.V1.EventSourceOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private io.kubernetes.client.proto.Meta.Time firstTimestamp_ = 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> firstTimestampBuilder_; /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public boolean hasFirstTimestamp() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public io.kubernetes.client.proto.Meta.Time getFirstTimestamp() { if (firstTimestampBuilder_ == null) { return firstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : firstTimestamp_; } else { return firstTimestampBuilder_.getMessage(); } } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public Builder setFirstTimestamp(io.kubernetes.client.proto.Meta.Time value) { if (firstTimestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } firstTimestamp_ = value; onChanged(); } else { firstTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public Builder setFirstTimestamp( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (firstTimestampBuilder_ == null) { firstTimestamp_ = builderForValue.build(); onChanged(); } else { firstTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public Builder mergeFirstTimestamp(io.kubernetes.client.proto.Meta.Time value) { if (firstTimestampBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && firstTimestamp_ != null && firstTimestamp_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { firstTimestamp_ = io.kubernetes.client.proto.Meta.Time.newBuilder(firstTimestamp_) .mergeFrom(value) .buildPartial(); } else { firstTimestamp_ = value; } onChanged(); } else { firstTimestampBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public Builder clearFirstTimestamp() { if (firstTimestampBuilder_ == null) { firstTimestamp_ = null; onChanged(); } else { firstTimestampBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public io.kubernetes.client.proto.Meta.Time.Builder getFirstTimestampBuilder() { bitField0_ |= 0x00000020; onChanged(); return getFirstTimestampFieldBuilder().getBuilder(); } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getFirstTimestampOrBuilder() { if (firstTimestampBuilder_ != null) { return firstTimestampBuilder_.getMessageOrBuilder(); } else { return firstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : firstTimestamp_; } } /** * * *
       * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time firstTimestamp = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getFirstTimestampFieldBuilder() { if (firstTimestampBuilder_ == null) { firstTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getFirstTimestamp(), getParentForChildren(), isClean()); firstTimestamp_ = null; } return firstTimestampBuilder_; } private io.kubernetes.client.proto.Meta.Time lastTimestamp_ = 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> lastTimestampBuilder_; /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public boolean hasLastTimestamp() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public io.kubernetes.client.proto.Meta.Time getLastTimestamp() { if (lastTimestampBuilder_ == null) { return lastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTimestamp_; } else { return lastTimestampBuilder_.getMessage(); } } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public Builder setLastTimestamp(io.kubernetes.client.proto.Meta.Time value) { if (lastTimestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTimestamp_ = value; onChanged(); } else { lastTimestampBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public Builder setLastTimestamp( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTimestampBuilder_ == null) { lastTimestamp_ = builderForValue.build(); onChanged(); } else { lastTimestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public Builder mergeLastTimestamp(io.kubernetes.client.proto.Meta.Time value) { if (lastTimestampBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && lastTimestamp_ != null && lastTimestamp_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTimestamp_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTimestamp_) .mergeFrom(value) .buildPartial(); } else { lastTimestamp_ = value; } onChanged(); } else { lastTimestampBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public Builder clearLastTimestamp() { if (lastTimestampBuilder_ == null) { lastTimestamp_ = null; onChanged(); } else { lastTimestampBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTimestampBuilder() { bitField0_ |= 0x00000040; onChanged(); return getLastTimestampFieldBuilder().getBuilder(); } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTimestampOrBuilder() { if (lastTimestampBuilder_ != null) { return lastTimestampBuilder_.getMessageOrBuilder(); } else { return lastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTimestamp_; } } /** * * *
       * The time at which the most recent occurrence of this event was recorded.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTimestamp = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTimestampFieldBuilder() { if (lastTimestampBuilder_ == null) { lastTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTimestamp(), getParentForChildren(), isClean()); lastTimestamp_ = null; } return lastTimestampBuilder_; } private int count_; /** * * *
       * The number of times this event has occurred.
       * +optional
       * 
* * optional int32 count = 8; */ public boolean hasCount() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * The number of times this event has occurred.
       * +optional
       * 
* * optional int32 count = 8; */ public int getCount() { return count_; } /** * * *
       * The number of times this event has occurred.
       * +optional
       * 
* * optional int32 count = 8; */ public Builder setCount(int value) { bitField0_ |= 0x00000080; count_ = value; onChanged(); return this; } /** * * *
       * The number of times this event has occurred.
       * +optional
       * 
* * optional int32 count = 8; */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000080); count_ = 0; onChanged(); return this; } private java.lang.Object type_ = ""; /** * * *
       * Type of this event (Normal, Warning), new types could be added in the future
       * +optional
       * 
* * optional string type = 9; */ public boolean hasType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Type of this event (Normal, Warning), new types could be added in the future
       * +optional
       * 
* * optional string type = 9; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type of this event (Normal, Warning), new types could be added in the future
       * +optional
       * 
* * optional string type = 9; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type of this event (Normal, Warning), new types could be added in the future
       * +optional
       * 
* * optional string type = 9; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; type_ = value; onChanged(); return this; } /** * * *
       * Type of this event (Normal, Warning), new types could be added in the future
       * +optional
       * 
* * optional string type = 9; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000100); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type of this event (Normal, Warning), new types could be added in the future
       * +optional
       * 
* * optional string type = 9; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; type_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.MicroTime eventTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> eventTimeBuilder_; /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public boolean hasEventTime() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public io.kubernetes.client.proto.Meta.MicroTime getEventTime() { if (eventTimeBuilder_ == null) { return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; } else { return eventTimeBuilder_.getMessage(); } } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public Builder setEventTime(io.kubernetes.client.proto.Meta.MicroTime value) { if (eventTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eventTime_ = value; onChanged(); } else { eventTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public Builder setEventTime( io.kubernetes.client.proto.Meta.MicroTime.Builder builderForValue) { if (eventTimeBuilder_ == null) { eventTime_ = builderForValue.build(); onChanged(); } else { eventTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public Builder mergeEventTime(io.kubernetes.client.proto.Meta.MicroTime value) { if (eventTimeBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && eventTime_ != null && eventTime_ != io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance()) { eventTime_ = io.kubernetes.client.proto.Meta.MicroTime.newBuilder(eventTime_) .mergeFrom(value) .buildPartial(); } else { eventTime_ = value; } onChanged(); } else { eventTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public Builder clearEventTime() { if (eventTimeBuilder_ == null) { eventTime_ = null; onChanged(); } else { eventTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public io.kubernetes.client.proto.Meta.MicroTime.Builder getEventTimeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getEventTimeFieldBuilder().getBuilder(); } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getEventTimeOrBuilder() { if (eventTimeBuilder_ != null) { return eventTimeBuilder_.getMessageOrBuilder(); } else { return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; } } /** * * *
       * Time when this Event was first observed.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> getEventTimeFieldBuilder() { if (eventTimeBuilder_ == null) { eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder>( getEventTime(), getParentForChildren(), isClean()); eventTime_ = null; } return eventTimeBuilder_; } private io.kubernetes.client.proto.V1.EventSeries series_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EventSeries, io.kubernetes.client.proto.V1.EventSeries.Builder, io.kubernetes.client.proto.V1.EventSeriesOrBuilder> seriesBuilder_; /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public boolean hasSeries() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public io.kubernetes.client.proto.V1.EventSeries getSeries() { if (seriesBuilder_ == null) { return series_ == null ? io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance() : series_; } else { return seriesBuilder_.getMessage(); } } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public Builder setSeries(io.kubernetes.client.proto.V1.EventSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } series_ = value; onChanged(); } else { seriesBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public Builder setSeries(io.kubernetes.client.proto.V1.EventSeries.Builder builderForValue) { if (seriesBuilder_ == null) { series_ = builderForValue.build(); onChanged(); } else { seriesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public Builder mergeSeries(io.kubernetes.client.proto.V1.EventSeries value) { if (seriesBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && series_ != null && series_ != io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance()) { series_ = io.kubernetes.client.proto.V1.EventSeries.newBuilder(series_) .mergeFrom(value) .buildPartial(); } else { series_ = value; } onChanged(); } else { seriesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public Builder clearSeries() { if (seriesBuilder_ == null) { series_ = null; onChanged(); } else { seriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public io.kubernetes.client.proto.V1.EventSeries.Builder getSeriesBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSeriesFieldBuilder().getBuilder(); } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ public io.kubernetes.client.proto.V1.EventSeriesOrBuilder getSeriesOrBuilder() { if (seriesBuilder_ != null) { return seriesBuilder_.getMessageOrBuilder(); } else { return series_ == null ? io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance() : series_; } } /** * * *
       * Data about the Event series this event represents or nil if it's a singleton Event.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EventSeries series = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EventSeries, io.kubernetes.client.proto.V1.EventSeries.Builder, io.kubernetes.client.proto.V1.EventSeriesOrBuilder> getSeriesFieldBuilder() { if (seriesBuilder_ == null) { seriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EventSeries, io.kubernetes.client.proto.V1.EventSeries.Builder, io.kubernetes.client.proto.V1.EventSeriesOrBuilder>( getSeries(), getParentForChildren(), isClean()); series_ = null; } return seriesBuilder_; } private java.lang.Object action_ = ""; /** * * *
       * What action was taken/failed regarding to the Regarding object.
       * +optional
       * 
* * optional string action = 12; */ public boolean hasAction() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * What action was taken/failed regarding to the Regarding object.
       * +optional
       * 
* * optional string action = 12; */ public java.lang.String getAction() { java.lang.Object ref = action_; 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()) { action_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * What action was taken/failed regarding to the Regarding object.
       * +optional
       * 
* * optional string action = 12; */ public com.google.protobuf.ByteString getActionBytes() { java.lang.Object ref = action_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); action_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * What action was taken/failed regarding to the Regarding object.
       * +optional
       * 
* * optional string action = 12; */ public Builder setAction(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; action_ = value; onChanged(); return this; } /** * * *
       * What action was taken/failed regarding to the Regarding object.
       * +optional
       * 
* * optional string action = 12; */ public Builder clearAction() { bitField0_ = (bitField0_ & ~0x00000800); action_ = getDefaultInstance().getAction(); onChanged(); return this; } /** * * *
       * What action was taken/failed regarding to the Regarding object.
       * +optional
       * 
* * optional string action = 12; */ public Builder setActionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; action_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.ObjectReference related_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> relatedBuilder_; /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public boolean hasRelated() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public io.kubernetes.client.proto.V1.ObjectReference getRelated() { if (relatedBuilder_ == null) { return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; } else { return relatedBuilder_.getMessage(); } } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public Builder setRelated(io.kubernetes.client.proto.V1.ObjectReference value) { if (relatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } related_ = value; onChanged(); } else { relatedBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public Builder setRelated( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (relatedBuilder_ == null) { related_ = builderForValue.build(); onChanged(); } else { relatedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public Builder mergeRelated(io.kubernetes.client.proto.V1.ObjectReference value) { if (relatedBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && related_ != null && related_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { related_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(related_) .mergeFrom(value) .buildPartial(); } else { related_ = value; } onChanged(); } else { relatedBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public Builder clearRelated() { if (relatedBuilder_ == null) { related_ = null; onChanged(); } else { relatedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getRelatedBuilder() { bitField0_ |= 0x00001000; onChanged(); return getRelatedFieldBuilder().getBuilder(); } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRelatedOrBuilder() { if (relatedBuilder_ != null) { return relatedBuilder_.getMessageOrBuilder(); } else { return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; } } /** * * *
       * Optional secondary object for more complex actions.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference related = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getRelatedFieldBuilder() { if (relatedBuilder_ == null) { relatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getRelated(), getParentForChildren(), isClean()); related_ = null; } return relatedBuilder_; } private java.lang.Object reportingComponent_ = ""; /** * * *
       * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
       * +optional
       * 
* * optional string reportingComponent = 14; */ public boolean hasReportingComponent() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
       * +optional
       * 
* * optional string reportingComponent = 14; */ public java.lang.String getReportingComponent() { java.lang.Object ref = reportingComponent_; 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()) { reportingComponent_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
       * +optional
       * 
* * optional string reportingComponent = 14; */ public com.google.protobuf.ByteString getReportingComponentBytes() { java.lang.Object ref = reportingComponent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reportingComponent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
       * +optional
       * 
* * optional string reportingComponent = 14; */ public Builder setReportingComponent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; reportingComponent_ = value; onChanged(); return this; } /** * * *
       * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
       * +optional
       * 
* * optional string reportingComponent = 14; */ public Builder clearReportingComponent() { bitField0_ = (bitField0_ & ~0x00002000); reportingComponent_ = getDefaultInstance().getReportingComponent(); onChanged(); return this; } /** * * *
       * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
       * +optional
       * 
* * optional string reportingComponent = 14; */ public Builder setReportingComponentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; reportingComponent_ = value; onChanged(); return this; } private java.lang.Object reportingInstance_ = ""; /** * * *
       * ID of the controller instance, e.g. `kubelet-xyzf`.
       * +optional
       * 
* * optional string reportingInstance = 15; */ public boolean hasReportingInstance() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * ID of the controller instance, e.g. `kubelet-xyzf`.
       * +optional
       * 
* * optional string reportingInstance = 15; */ public java.lang.String getReportingInstance() { java.lang.Object ref = reportingInstance_; 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()) { reportingInstance_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ID of the controller instance, e.g. `kubelet-xyzf`.
       * +optional
       * 
* * optional string reportingInstance = 15; */ public com.google.protobuf.ByteString getReportingInstanceBytes() { java.lang.Object ref = reportingInstance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reportingInstance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ID of the controller instance, e.g. `kubelet-xyzf`.
       * +optional
       * 
* * optional string reportingInstance = 15; */ public Builder setReportingInstance(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; reportingInstance_ = value; onChanged(); return this; } /** * * *
       * ID of the controller instance, e.g. `kubelet-xyzf`.
       * +optional
       * 
* * optional string reportingInstance = 15; */ public Builder clearReportingInstance() { bitField0_ = (bitField0_ & ~0x00004000); reportingInstance_ = getDefaultInstance().getReportingInstance(); onChanged(); return this; } /** * * *
       * ID of the controller instance, e.g. `kubelet-xyzf`.
       * +optional
       * 
* * optional string reportingInstance = 15; */ public Builder setReportingInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; reportingInstance_ = 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.core.v1.Event) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Event) private static final io.kubernetes.client.proto.V1.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Event(); } public static io.kubernetes.client.proto.V1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Event(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.V1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EventList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ java.util.List getItemsList(); /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ io.kubernetes.client.proto.V1.Event getItems(int index); /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ int getItemsCount(); /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ io.kubernetes.client.proto.V1.EventOrBuilder getItemsOrBuilder(int index); } /** * * *
   * EventList is a list of events.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EventList} */ public static final class EventList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EventList) EventListOrBuilder { private static final long serialVersionUID = 0L; // Use EventList.newBuilder() to construct. private EventList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventList( 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.V1.Event.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.V1.internal_static_k8s_io_api_core_v1_EventList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EventList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EventList.class, io.kubernetes.client.proto.V1.EventList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.Event getItems(int index) { return items_.get(index); } /** * * *
     * List of events
     * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.EventOrBuilder 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.V1.EventList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EventList other = (io.kubernetes.client.proto.V1.EventList) 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.V1.EventList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventList 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.V1.EventList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventList 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.V1.EventList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EventList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventList 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.V1.EventList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventList 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.V1.EventList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventList 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.V1.EventList 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; } /** * * *
     * EventList is a list of events.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EventList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EventList) io.kubernetes.client.proto.V1.EventListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EventList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EventList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EventList.class, io.kubernetes.client.proto.V1.EventList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EventList.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 .V1 .internal_static_k8s_io_api_core_v1_EventList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EventList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EventList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EventList build() { io.kubernetes.client.proto.V1.EventList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EventList buildPartial() { io.kubernetes.client.proto.V1.EventList result = new io.kubernetes.client.proto.V1.EventList(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.V1.EventList) { return mergeFrom((io.kubernetes.client.proto.V1.EventList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EventList other) { if (other == io.kubernetes.client.proto.V1.EventList.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.V1.EventList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EventList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Event, io.kubernetes.client.proto.V1.Event.Builder, io.kubernetes.client.proto.V1.EventOrBuilder> itemsBuilder_; /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.Event getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Event value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Event.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Event value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Event value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Event.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Event.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event 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; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.Event.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.EventOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.Event.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Event.getDefaultInstance()); } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public io.kubernetes.client.proto.V1.Event.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Event.getDefaultInstance()); } /** * * *
       * List of events
       * 
* * repeated .k8s.io.api.core.v1.Event items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Event, io.kubernetes.client.proto.V1.Event.Builder, io.kubernetes.client.proto.V1.EventOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Event, io.kubernetes.client.proto.V1.Event.Builder, io.kubernetes.client.proto.V1.EventOrBuilder>( 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.core.v1.EventList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EventList) private static final io.kubernetes.client.proto.V1.EventList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EventList(); } public static io.kubernetes.client.proto.V1.EventList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventList(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.V1.EventList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventSeriesOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EventSeries) com.google.protobuf.MessageOrBuilder { /** * * *
     * Number of occurrences in this series up to the last heartbeat time
     * 
* * optional int32 count = 1; */ boolean hasCount(); /** * * *
     * Number of occurrences in this series up to the last heartbeat time
     * 
* * optional int32 count = 1; */ int getCount(); /** * * *
     * Time of the last occurrence observed
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ boolean hasLastObservedTime(); /** * * *
     * Time of the last occurrence observed
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ io.kubernetes.client.proto.Meta.MicroTime getLastObservedTime(); /** * * *
     * Time of the last occurrence observed
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getLastObservedTimeOrBuilder(); } /** * * *
   * EventSeries contain information on series of events, i.e. thing that was/is happening
   * continuously for some time.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EventSeries} */ public static final class EventSeries extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EventSeries) EventSeriesOrBuilder { private static final long serialVersionUID = 0L; // Use EventSeries.newBuilder() to construct. private EventSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventSeries() { count_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventSeries( 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; } case 18: { io.kubernetes.client.proto.Meta.MicroTime.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = lastObservedTime_.toBuilder(); } lastObservedTime_ = input.readMessage( io.kubernetes.client.proto.Meta.MicroTime.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastObservedTime_); lastObservedTime_ = 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 .V1 .internal_static_k8s_io_api_core_v1_EventSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EventSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EventSeries.class, io.kubernetes.client.proto.V1.EventSeries.Builder.class); } private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private int count_; /** * * *
     * Number of occurrences in this series up to the last heartbeat time
     * 
* * optional int32 count = 1; */ public boolean hasCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Number of occurrences in this series up to the last heartbeat time
     * 
* * optional int32 count = 1; */ public int getCount() { return count_; } public static final int LASTOBSERVEDTIME_FIELD_NUMBER = 2; private io.kubernetes.client.proto.Meta.MicroTime lastObservedTime_; /** * * *
     * Time of the last occurrence observed
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public boolean hasLastObservedTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Time of the last occurrence observed
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public io.kubernetes.client.proto.Meta.MicroTime getLastObservedTime() { return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; } /** * * *
     * Time of the last occurrence observed
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getLastObservedTimeOrBuilder() { return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; } 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_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getLastObservedTime()); } 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_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastObservedTime()); } 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.V1.EventSeries)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EventSeries other = (io.kubernetes.client.proto.V1.EventSeries) obj; boolean result = true; result = result && (hasCount() == other.hasCount()); if (hasCount()) { result = result && (getCount() == other.getCount()); } result = result && (hasLastObservedTime() == other.hasLastObservedTime()); if (hasLastObservedTime()) { result = result && getLastObservedTime().equals(other.getLastObservedTime()); } 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(); } if (hasLastObservedTime()) { hash = (37 * hash) + LASTOBSERVEDTIME_FIELD_NUMBER; hash = (53 * hash) + getLastObservedTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EventSeries parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventSeries 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.V1.EventSeries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventSeries 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.V1.EventSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventSeries parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EventSeries parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventSeries 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.V1.EventSeries parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventSeries 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.V1.EventSeries parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventSeries 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.V1.EventSeries 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; } /** * * *
     * EventSeries contain information on series of events, i.e. thing that was/is happening
     * continuously for some time.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EventSeries} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EventSeries) io.kubernetes.client.proto.V1.EventSeriesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EventSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EventSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EventSeries.class, io.kubernetes.client.proto.V1.EventSeries.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EventSeries.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastObservedTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); count_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (lastObservedTimeBuilder_ == null) { lastObservedTime_ = null; } else { lastObservedTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EventSeries_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EventSeries getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EventSeries build() { io.kubernetes.client.proto.V1.EventSeries result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EventSeries buildPartial() { io.kubernetes.client.proto.V1.EventSeries result = new io.kubernetes.client.proto.V1.EventSeries(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.count_ = count_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (lastObservedTimeBuilder_ == null) { result.lastObservedTime_ = lastObservedTime_; } else { result.lastObservedTime_ = lastObservedTimeBuilder_.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.V1.EventSeries) { return mergeFrom((io.kubernetes.client.proto.V1.EventSeries) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EventSeries other) { if (other == io.kubernetes.client.proto.V1.EventSeries.getDefaultInstance()) return this; if (other.hasCount()) { setCount(other.getCount()); } if (other.hasLastObservedTime()) { mergeLastObservedTime(other.getLastObservedTime()); } 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.V1.EventSeries parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EventSeries) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int count_; /** * * *
       * Number of occurrences in this series up to the last heartbeat time
       * 
* * optional int32 count = 1; */ public boolean hasCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Number of occurrences in this series up to the last heartbeat time
       * 
* * optional int32 count = 1; */ public int getCount() { return count_; } /** * * *
       * Number of occurrences in this series up to the last heartbeat time
       * 
* * optional int32 count = 1; */ public Builder setCount(int value) { bitField0_ |= 0x00000001; count_ = value; onChanged(); return this; } /** * * *
       * Number of occurrences in this series up to the last heartbeat time
       * 
* * optional int32 count = 1; */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); count_ = 0; onChanged(); return this; } private io.kubernetes.client.proto.Meta.MicroTime lastObservedTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> lastObservedTimeBuilder_; /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public boolean hasLastObservedTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public io.kubernetes.client.proto.Meta.MicroTime getLastObservedTime() { if (lastObservedTimeBuilder_ == null) { return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; } else { return lastObservedTimeBuilder_.getMessage(); } } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public Builder setLastObservedTime(io.kubernetes.client.proto.Meta.MicroTime value) { if (lastObservedTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastObservedTime_ = value; onChanged(); } else { lastObservedTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public Builder setLastObservedTime( io.kubernetes.client.proto.Meta.MicroTime.Builder builderForValue) { if (lastObservedTimeBuilder_ == null) { lastObservedTime_ = builderForValue.build(); onChanged(); } else { lastObservedTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public Builder mergeLastObservedTime(io.kubernetes.client.proto.Meta.MicroTime value) { if (lastObservedTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && lastObservedTime_ != null && lastObservedTime_ != io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance()) { lastObservedTime_ = io.kubernetes.client.proto.Meta.MicroTime.newBuilder(lastObservedTime_) .mergeFrom(value) .buildPartial(); } else { lastObservedTime_ = value; } onChanged(); } else { lastObservedTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public Builder clearLastObservedTime() { if (lastObservedTimeBuilder_ == null) { lastObservedTime_ = null; onChanged(); } else { lastObservedTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public io.kubernetes.client.proto.Meta.MicroTime.Builder getLastObservedTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLastObservedTimeFieldBuilder().getBuilder(); } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getLastObservedTimeOrBuilder() { if (lastObservedTimeBuilder_ != null) { return lastObservedTimeBuilder_.getMessageOrBuilder(); } else { return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; } } /** * * *
       * Time of the last occurrence observed
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> getLastObservedTimeFieldBuilder() { if (lastObservedTimeBuilder_ == null) { lastObservedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder>( getLastObservedTime(), getParentForChildren(), isClean()); lastObservedTime_ = null; } return lastObservedTimeBuilder_; } @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.core.v1.EventSeries) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EventSeries) private static final io.kubernetes.client.proto.V1.EventSeries DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EventSeries(); } public static io.kubernetes.client.proto.V1.EventSeries getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventSeries parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventSeries(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.V1.EventSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.EventSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Component from which the event is generated.
     * +optional
     * 
* * optional string component = 1; */ boolean hasComponent(); /** * * *
     * Component from which the event is generated.
     * +optional
     * 
* * optional string component = 1; */ java.lang.String getComponent(); /** * * *
     * Component from which the event is generated.
     * +optional
     * 
* * optional string component = 1; */ com.google.protobuf.ByteString getComponentBytes(); /** * * *
     * Node name on which the event is generated.
     * +optional
     * 
* * optional string host = 2; */ boolean hasHost(); /** * * *
     * Node name on which the event is generated.
     * +optional
     * 
* * optional string host = 2; */ java.lang.String getHost(); /** * * *
     * Node name on which the event is generated.
     * +optional
     * 
* * optional string host = 2; */ com.google.protobuf.ByteString getHostBytes(); } /** * * *
   * EventSource contains information for an event.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.EventSource} */ public static final class EventSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.EventSource) EventSourceOrBuilder { private static final long serialVersionUID = 0L; // Use EventSource.newBuilder() to construct. private EventSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventSource() { component_ = ""; host_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventSource( 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; component_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; host_ = 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 .V1 .internal_static_k8s_io_api_core_v1_EventSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EventSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EventSource.class, io.kubernetes.client.proto.V1.EventSource.Builder.class); } private int bitField0_; public static final int COMPONENT_FIELD_NUMBER = 1; private volatile java.lang.Object component_; /** * * *
     * Component from which the event is generated.
     * +optional
     * 
* * optional string component = 1; */ public boolean hasComponent() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Component from which the event is generated.
     * +optional
     * 
* * optional string component = 1; */ public java.lang.String getComponent() { java.lang.Object ref = component_; 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()) { component_ = s; } return s; } } /** * * *
     * Component from which the event is generated.
     * +optional
     * 
* * optional string component = 1; */ public com.google.protobuf.ByteString getComponentBytes() { java.lang.Object ref = component_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); component_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_FIELD_NUMBER = 2; private volatile java.lang.Object host_; /** * * *
     * Node name on which the event is generated.
     * +optional
     * 
* * optional string host = 2; */ public boolean hasHost() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Node name on which the event is generated.
     * +optional
     * 
* * optional string host = 2; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } } /** * * *
     * Node name on which the event is generated.
     * +optional
     * 
* * optional string host = 2; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = 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, component_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_); } 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, component_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); } 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.V1.EventSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.EventSource other = (io.kubernetes.client.proto.V1.EventSource) obj; boolean result = true; result = result && (hasComponent() == other.hasComponent()); if (hasComponent()) { result = result && getComponent().equals(other.getComponent()); } result = result && (hasHost() == other.hasHost()); if (hasHost()) { result = result && getHost().equals(other.getHost()); } 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 (hasComponent()) { hash = (37 * hash) + COMPONENT_FIELD_NUMBER; hash = (53 * hash) + getComponent().hashCode(); } if (hasHost()) { hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.EventSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventSource 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.V1.EventSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventSource 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.V1.EventSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.EventSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.EventSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventSource 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.V1.EventSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventSource 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.V1.EventSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.EventSource 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.V1.EventSource 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; } /** * * *
     * EventSource contains information for an event.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.EventSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.EventSource) io.kubernetes.client.proto.V1.EventSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EventSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_EventSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.EventSource.class, io.kubernetes.client.proto.V1.EventSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.EventSource.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(); component_ = ""; bitField0_ = (bitField0_ & ~0x00000001); host_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_EventSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.EventSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.EventSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.EventSource build() { io.kubernetes.client.proto.V1.EventSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.EventSource buildPartial() { io.kubernetes.client.proto.V1.EventSource result = new io.kubernetes.client.proto.V1.EventSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.component_ = component_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.host_ = host_; 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.V1.EventSource) { return mergeFrom((io.kubernetes.client.proto.V1.EventSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.EventSource other) { if (other == io.kubernetes.client.proto.V1.EventSource.getDefaultInstance()) return this; if (other.hasComponent()) { bitField0_ |= 0x00000001; component_ = other.component_; onChanged(); } if (other.hasHost()) { bitField0_ |= 0x00000002; host_ = other.host_; 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.V1.EventSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.EventSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object component_ = ""; /** * * *
       * Component from which the event is generated.
       * +optional
       * 
* * optional string component = 1; */ public boolean hasComponent() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Component from which the event is generated.
       * +optional
       * 
* * optional string component = 1; */ public java.lang.String getComponent() { java.lang.Object ref = component_; 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()) { component_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Component from which the event is generated.
       * +optional
       * 
* * optional string component = 1; */ public com.google.protobuf.ByteString getComponentBytes() { java.lang.Object ref = component_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); component_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Component from which the event is generated.
       * +optional
       * 
* * optional string component = 1; */ public Builder setComponent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; component_ = value; onChanged(); return this; } /** * * *
       * Component from which the event is generated.
       * +optional
       * 
* * optional string component = 1; */ public Builder clearComponent() { bitField0_ = (bitField0_ & ~0x00000001); component_ = getDefaultInstance().getComponent(); onChanged(); return this; } /** * * *
       * Component from which the event is generated.
       * +optional
       * 
* * optional string component = 1; */ public Builder setComponentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; component_ = value; onChanged(); return this; } private java.lang.Object host_ = ""; /** * * *
       * Node name on which the event is generated.
       * +optional
       * 
* * optional string host = 2; */ public boolean hasHost() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Node name on which the event is generated.
       * +optional
       * 
* * optional string host = 2; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Node name on which the event is generated.
       * +optional
       * 
* * optional string host = 2; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Node name on which the event is generated.
       * +optional
       * 
* * optional string host = 2; */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; host_ = value; onChanged(); return this; } /** * * *
       * Node name on which the event is generated.
       * +optional
       * 
* * optional string host = 2; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000002); host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * * *
       * Node name on which the event is generated.
       * +optional
       * 
* * optional string host = 2; */ public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; host_ = 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.core.v1.EventSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.EventSource) private static final io.kubernetes.client.proto.V1.EventSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.EventSource(); } public static io.kubernetes.client.proto.V1.EventSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventSource(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.V1.EventSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecActionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ExecAction) com.google.protobuf.MessageOrBuilder { /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ java.util.List getCommandList(); /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ int getCommandCount(); /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ java.lang.String getCommand(int index); /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ com.google.protobuf.ByteString getCommandBytes(int index); } /** * * *
   * ExecAction describes a "run in container" action.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ExecAction} */ public static final class ExecAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ExecAction) ExecActionOrBuilder { private static final long serialVersionUID = 0L; // Use ExecAction.newBuilder() to construct. private ExecAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecAction() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecAction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { command_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } command_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { command_ = command_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_ExecAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ExecAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ExecAction.class, io.kubernetes.client.proto.V1.ExecAction.Builder.class); } public static final int COMMAND_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList command_; /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ public int getCommandCount() { return command_.size(); } /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
     * Command is the command line to execute inside the container, the working directory for the
     * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
     * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
     * a shell, you need to explicitly call out to that shell.
     * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
     * +optional
     * 
* * repeated string command = 1; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < command_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, command_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < command_.size(); i++) { dataSize += computeStringSizeNoTag(command_.getRaw(i)); } size += dataSize; size += 1 * getCommandList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.ExecAction)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ExecAction other = (io.kubernetes.client.proto.V1.ExecAction) obj; boolean result = true; result = result && getCommandList().equals(other.getCommandList()); 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 (getCommandCount() > 0) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommandList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ExecAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ExecAction 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.V1.ExecAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ExecAction 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.V1.ExecAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ExecAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ExecAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ExecAction 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.V1.ExecAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ExecAction 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.V1.ExecAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ExecAction 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.V1.ExecAction 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; } /** * * *
     * ExecAction describes a "run in container" action.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ExecAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ExecAction) io.kubernetes.client.proto.V1.ExecActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ExecAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ExecAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ExecAction.class, io.kubernetes.client.proto.V1.ExecAction.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ExecAction.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(); command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ExecAction_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ExecAction getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ExecAction build() { io.kubernetes.client.proto.V1.ExecAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ExecAction buildPartial() { io.kubernetes.client.proto.V1.ExecAction result = new io.kubernetes.client.proto.V1.ExecAction(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.command_ = command_; 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.V1.ExecAction) { return mergeFrom((io.kubernetes.client.proto.V1.ExecAction) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ExecAction other) { if (other == io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance()) return this; if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCommandIsMutable(); command_.addAll(other.command_); } 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.V1.ExecAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ExecAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000001; } } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public int getCommandCount() { return command_.size(); } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public Builder setCommand(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public Builder addCommand(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Command is the command line to execute inside the container, the working directory for the
       * command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
       * not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
       * a shell, you need to explicitly call out to that shell.
       * Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
       * +optional
       * 
* * repeated string command = 1; */ public Builder addCommandBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ExecAction) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ExecAction) private static final io.kubernetes.client.proto.V1.ExecAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ExecAction(); } public static io.kubernetes.client.proto.V1.ExecAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecAction(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.V1.ExecAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FCVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.FCVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ java.util.List getTargetWWNsList(); /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ int getTargetWWNsCount(); /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ java.lang.String getTargetWWNs(int index); /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ com.google.protobuf.ByteString getTargetWWNsBytes(int index); /** * * *
     * Optional: FC target lun number
     * +optional
     * 
* * optional int32 lun = 2; */ boolean hasLun(); /** * * *
     * Optional: FC target lun number
     * +optional
     * 
* * optional int32 lun = 2; */ int getLun(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ java.util.List getWwidsList(); /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ int getWwidsCount(); /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ java.lang.String getWwids(int index); /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ com.google.protobuf.ByteString getWwidsBytes(int index); } /** * * *
   * Represents a Fibre Channel volume.
   * Fibre Channel volumes can only be mounted as read/write once.
   * Fibre Channel volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.FCVolumeSource} */ public static final class FCVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.FCVolumeSource) FCVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use FCVolumeSource.newBuilder() to construct. private FCVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FCVolumeSource() { targetWWNs_ = com.google.protobuf.LazyStringArrayList.EMPTY; lun_ = 0; fsType_ = ""; readOnly_ = false; wwids_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FCVolumeSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { targetWWNs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } targetWWNs_.add(bs); break; } case 16: { bitField0_ |= 0x00000001; lun_ = input.readInt32(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 32: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { wwids_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } wwids_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { targetWWNs_ = targetWWNs_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { wwids_ = wwids_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FCVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FCVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FCVolumeSource.class, io.kubernetes.client.proto.V1.FCVolumeSource.Builder.class); } private int bitField0_; public static final int TARGETWWNS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList targetWWNs_; /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ public com.google.protobuf.ProtocolStringList getTargetWWNsList() { return targetWWNs_; } /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ public int getTargetWWNsCount() { return targetWWNs_.size(); } /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ public java.lang.String getTargetWWNs(int index) { return targetWWNs_.get(index); } /** * * *
     * Optional: FC target worldwide names (WWNs)
     * +optional
     * 
* * repeated string targetWWNs = 1; */ public com.google.protobuf.ByteString getTargetWWNsBytes(int index) { return targetWWNs_.getByteString(index); } public static final int LUN_FIELD_NUMBER = 2; private int lun_; /** * * *
     * Optional: FC target lun number
     * +optional
     * 
* * optional int32 lun = 2; */ public boolean hasLun() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Optional: FC target lun number
     * +optional
     * 
* * optional int32 lun = 2; */ public int getLun() { return lun_; } public static final int FSTYPE_FIELD_NUMBER = 3; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } public static final int WWIDS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList wwids_; /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ public com.google.protobuf.ProtocolStringList getWwidsList() { return wwids_; } /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ public int getWwidsCount() { return wwids_.size(); } /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ public java.lang.String getWwids(int index) { return wwids_.get(index); } /** * * *
     * Optional: FC volume world wide identifiers (wwids)
     * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
     * +optional
     * 
* * repeated string wwids = 5; */ public com.google.protobuf.ByteString getWwidsBytes(int index) { return wwids_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < targetWWNs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetWWNs_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(2, lun_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, readOnly_); } for (int i = 0; i < wwids_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, wwids_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < targetWWNs_.size(); i++) { dataSize += computeStringSizeNoTag(targetWWNs_.getRaw(i)); } size += dataSize; size += 1 * getTargetWWNsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lun_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } { int dataSize = 0; for (int i = 0; i < wwids_.size(); i++) { dataSize += computeStringSizeNoTag(wwids_.getRaw(i)); } size += dataSize; size += 1 * getWwidsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.FCVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.FCVolumeSource other = (io.kubernetes.client.proto.V1.FCVolumeSource) obj; boolean result = true; result = result && getTargetWWNsList().equals(other.getTargetWWNsList()); result = result && (hasLun() == other.hasLun()); if (hasLun()) { result = result && (getLun() == other.getLun()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && getWwidsList().equals(other.getWwidsList()); 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 (getTargetWWNsCount() > 0) { hash = (37 * hash) + TARGETWWNS_FIELD_NUMBER; hash = (53 * hash) + getTargetWWNsList().hashCode(); } if (hasLun()) { hash = (37 * hash) + LUN_FIELD_NUMBER; hash = (53 * hash) + getLun(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (getWwidsCount() > 0) { hash = (37 * hash) + WWIDS_FIELD_NUMBER; hash = (53 * hash) + getWwidsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.FCVolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FCVolumeSource 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.V1.FCVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FCVolumeSource 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.V1.FCVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FCVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.FCVolumeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FCVolumeSource 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.V1.FCVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FCVolumeSource 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.V1.FCVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FCVolumeSource 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.V1.FCVolumeSource 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; } /** * * *
     * Represents a Fibre Channel volume.
     * Fibre Channel volumes can only be mounted as read/write once.
     * Fibre Channel volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.FCVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.FCVolumeSource) io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FCVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FCVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FCVolumeSource.class, io.kubernetes.client.proto.V1.FCVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.FCVolumeSource.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(); targetWWNs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); lun_ = 0; bitField0_ = (bitField0_ & ~0x00000002); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); wwids_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FCVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.FCVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.FCVolumeSource build() { io.kubernetes.client.proto.V1.FCVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.FCVolumeSource buildPartial() { io.kubernetes.client.proto.V1.FCVolumeSource result = new io.kubernetes.client.proto.V1.FCVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { targetWWNs_ = targetWWNs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.targetWWNs_ = targetWWNs_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.lun_ = lun_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((bitField0_ & 0x00000010) == 0x00000010)) { wwids_ = wwids_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.wwids_ = wwids_; 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.V1.FCVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.FCVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.FCVolumeSource other) { if (other == io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance()) return this; if (!other.targetWWNs_.isEmpty()) { if (targetWWNs_.isEmpty()) { targetWWNs_ = other.targetWWNs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTargetWWNsIsMutable(); targetWWNs_.addAll(other.targetWWNs_); } onChanged(); } if (other.hasLun()) { setLun(other.getLun()); } if (other.hasFsType()) { bitField0_ |= 0x00000004; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (!other.wwids_.isEmpty()) { if (wwids_.isEmpty()) { wwids_ = other.wwids_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureWwidsIsMutable(); wwids_.addAll(other.wwids_); } 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.V1.FCVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.FCVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList targetWWNs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTargetWWNsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { targetWWNs_ = new com.google.protobuf.LazyStringArrayList(targetWWNs_); bitField0_ |= 0x00000001; } } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public com.google.protobuf.ProtocolStringList getTargetWWNsList() { return targetWWNs_.getUnmodifiableView(); } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public int getTargetWWNsCount() { return targetWWNs_.size(); } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public java.lang.String getTargetWWNs(int index) { return targetWWNs_.get(index); } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public com.google.protobuf.ByteString getTargetWWNsBytes(int index) { return targetWWNs_.getByteString(index); } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public Builder setTargetWWNs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTargetWWNsIsMutable(); targetWWNs_.set(index, value); onChanged(); return this; } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public Builder addTargetWWNs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTargetWWNsIsMutable(); targetWWNs_.add(value); onChanged(); return this; } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public Builder addAllTargetWWNs(java.lang.Iterable values) { ensureTargetWWNsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetWWNs_); onChanged(); return this; } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public Builder clearTargetWWNs() { targetWWNs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Optional: FC target worldwide names (WWNs)
       * +optional
       * 
* * repeated string targetWWNs = 1; */ public Builder addTargetWWNsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTargetWWNsIsMutable(); targetWWNs_.add(value); onChanged(); return this; } private int lun_; /** * * *
       * Optional: FC target lun number
       * +optional
       * 
* * optional int32 lun = 2; */ public boolean hasLun() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Optional: FC target lun number
       * +optional
       * 
* * optional int32 lun = 2; */ public int getLun() { return lun_; } /** * * *
       * Optional: FC target lun number
       * +optional
       * 
* * optional int32 lun = 2; */ public Builder setLun(int value) { bitField0_ |= 0x00000002; lun_ = value; onChanged(); return this; } /** * * *
       * Optional: FC target lun number
       * +optional
       * 
* * optional int32 lun = 2; */ public Builder clearLun() { bitField0_ = (bitField0_ & ~0x00000002); lun_ = 0; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000004); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList wwids_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWwidsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { wwids_ = new com.google.protobuf.LazyStringArrayList(wwids_); bitField0_ |= 0x00000010; } } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public com.google.protobuf.ProtocolStringList getWwidsList() { return wwids_.getUnmodifiableView(); } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public int getWwidsCount() { return wwids_.size(); } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public java.lang.String getWwids(int index) { return wwids_.get(index); } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public com.google.protobuf.ByteString getWwidsBytes(int index) { return wwids_.getByteString(index); } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public Builder setWwids(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWwidsIsMutable(); wwids_.set(index, value); onChanged(); return this; } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public Builder addWwids(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWwidsIsMutable(); wwids_.add(value); onChanged(); return this; } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public Builder addAllWwids(java.lang.Iterable values) { ensureWwidsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, wwids_); onChanged(); return this; } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public Builder clearWwids() { wwids_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * Optional: FC volume world wide identifiers (wwids)
       * Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       * +optional
       * 
* * repeated string wwids = 5; */ public Builder addWwidsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureWwidsIsMutable(); wwids_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.FCVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.FCVolumeSource) private static final io.kubernetes.client.proto.V1.FCVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.FCVolumeSource(); } public static io.kubernetes.client.proto.V1.FCVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FCVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FCVolumeSource(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.V1.FCVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FlexPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.FlexPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ boolean hasDriver(); /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ java.lang.String getDriver(); /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ com.google.protobuf.ByteString getDriverBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ boolean hasSecretRef(); /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ io.kubernetes.client.proto.V1.SecretReference getSecretRef(); /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ int getOptionsCount(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ boolean containsOptions(java.lang.String key); /** Use {@link #getOptionsMap()} instead. */ @java.lang.Deprecated java.util.Map getOptions(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ java.util.Map getOptionsMap(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ java.lang.String getOptionsOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ java.lang.String getOptionsOrThrow(java.lang.String key); } /** * * *
   * FlexPersistentVolumeSource represents a generic persistent volume resource that is
   * provisioned/attached using an exec based plugin.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.FlexPersistentVolumeSource} */ public static final class FlexPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.FlexPersistentVolumeSource) FlexPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use FlexPersistentVolumeSource.newBuilder() to construct. private FlexPersistentVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FlexPersistentVolumeSource() { driver_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FlexPersistentVolumeSource( 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; driver_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 26: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; readOnly_ = input.readBool(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { options_ = com.google.protobuf.MapField.newMapField( OptionsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } com.google.protobuf.MapEntry options__ = input.readMessage( OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); options_.getMutableMap().put(options__.getKey(), options__.getValue()); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.class, io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int DRIVER_FIELD_NUMBER = 1; private volatile java.lang.Object driver_; /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } } /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.SecretReference secretRef_; /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } public static final int OPTIONS_FIELD_NUMBER = 5; private static final class OptionsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_OptionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField options_; private com.google.protobuf.MapField internalGetOptions() { if (options_ == null) { return com.google.protobuf.MapField.emptyMapField(OptionsDefaultEntryHolder.defaultEntry); } return options_; } public int getOptionsCount() { return internalGetOptions().getMap().size(); } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public boolean containsOptions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOptions().getMap().containsKey(key); } /** Use {@link #getOptionsMap()} instead. */ @java.lang.Deprecated public java.util.Map getOptions() { return getOptionsMap(); } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public java.util.Map getOptionsMap() { return internalGetOptions().getMap(); } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, readOnly_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetOptions(), OptionsDefaultEntryHolder.defaultEntry, 5); 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, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } for (java.util.Map.Entry entry : internalGetOptions().getMap().entrySet()) { com.google.protobuf.MapEntry options__ = OptionsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, options__); } 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.V1.FlexPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.FlexPersistentVolumeSource other = (io.kubernetes.client.proto.V1.FlexPersistentVolumeSource) obj; boolean result = true; result = result && (hasDriver() == other.hasDriver()); if (hasDriver()) { result = result && getDriver().equals(other.getDriver()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && internalGetOptions().equals(other.internalGetOptions()); 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 (hasDriver()) { hash = (37 * hash) + DRIVER_FIELD_NUMBER; hash = (53 * hash) + getDriver().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (!internalGetOptions().getMap().isEmpty()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource 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.V1.FlexPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource 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.V1.FlexPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource 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.V1.FlexPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource 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.V1.FlexPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource 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.V1.FlexPersistentVolumeSource 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; } /** * * *
     * FlexPersistentVolumeSource represents a generic persistent volume resource that is
     * provisioned/attached using an exec based plugin.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.FlexPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.FlexPersistentVolumeSource) io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.class, io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); driver_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableOptions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.FlexPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.FlexPersistentVolumeSource build() { io.kubernetes.client.proto.V1.FlexPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.FlexPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.FlexPersistentVolumeSource result = new io.kubernetes.client.proto.V1.FlexPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.driver_ = driver_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.readOnly_ = readOnly_; result.options_ = internalGetOptions(); result.options_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.FlexPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.FlexPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.FlexPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasDriver()) { bitField0_ |= 0x00000001; driver_ = other.driver_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } internalGetMutableOptions().mergeFrom(other.internalGetOptions()); 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.V1.FlexPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.FlexPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object driver_ = ""; /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public Builder setDriver(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public Builder clearDriver() { bitField0_ = (bitField0_ & ~0x00000001); driver_ = getDefaultInstance().getDriver(); onChanged(); return this; } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public Builder setDriverBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecretReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> secretRefBuilder_; /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = false; onChanged(); return this; } private com.google.protobuf.MapField options_; private com.google.protobuf.MapField internalGetOptions() { if (options_ == null) { return com.google.protobuf.MapField.emptyMapField(OptionsDefaultEntryHolder.defaultEntry); } return options_; } private com.google.protobuf.MapField internalGetMutableOptions() { onChanged(); ; if (options_ == null) { options_ = com.google.protobuf.MapField.newMapField(OptionsDefaultEntryHolder.defaultEntry); } if (!options_.isMutable()) { options_ = options_.copy(); } return options_; } public int getOptionsCount() { return internalGetOptions().getMap().size(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public boolean containsOptions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOptions().getMap().containsKey(key); } /** Use {@link #getOptionsMap()} instead. */ @java.lang.Deprecated public java.util.Map getOptions() { return getOptionsMap(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public java.util.Map getOptionsMap() { return internalGetOptions().getMap(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOptions() { internalGetMutableOptions().getMutableMap().clear(); return this; } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public Builder removeOptions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableOptions().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableOptions() { return internalGetMutableOptions().getMutableMap(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public Builder putOptions(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableOptions().getMutableMap().put(key, value); return this; } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public Builder putAllOptions(java.util.Map values) { internalGetMutableOptions().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.FlexPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.FlexPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.FlexPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.FlexPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.FlexPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FlexPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FlexPersistentVolumeSource(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.V1.FlexPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FlexVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.FlexVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ boolean hasDriver(); /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ java.lang.String getDriver(); /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ com.google.protobuf.ByteString getDriverBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ boolean hasSecretRef(); /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ int getOptionsCount(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ boolean containsOptions(java.lang.String key); /** Use {@link #getOptionsMap()} instead. */ @java.lang.Deprecated java.util.Map getOptions(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ java.util.Map getOptionsMap(); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ java.lang.String getOptionsOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ java.lang.String getOptionsOrThrow(java.lang.String key); } /** * * *
   * FlexVolume represents a generic volume resource that is
   * provisioned/attached using an exec based plugin.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.FlexVolumeSource} */ public static final class FlexVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.FlexVolumeSource) FlexVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use FlexVolumeSource.newBuilder() to construct. private FlexVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FlexVolumeSource() { driver_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FlexVolumeSource( 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; driver_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 26: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; readOnly_ = input.readBool(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { options_ = com.google.protobuf.MapField.newMapField( OptionsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } com.google.protobuf.MapEntry options__ = input.readMessage( OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); options_.getMutableMap().put(options__.getKey(), options__.getValue()); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FlexVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FlexVolumeSource.class, io.kubernetes.client.proto.V1.FlexVolumeSource.Builder.class); } private int bitField0_; public static final int DRIVER_FIELD_NUMBER = 1; private volatile java.lang.Object driver_; /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } } /** * * *
     * Driver is the name of the driver to use for this volume.
     * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * Optional: SecretRef is reference to the secret object containing
     * sensitive information to pass to the plugin scripts. This may be
     * empty if no secret object is specified. If the secret object
     * contains more than one secret, all secrets are passed to the plugin
     * scripts.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Optional: Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } public static final int OPTIONS_FIELD_NUMBER = 5; private static final class OptionsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexVolumeSource_OptionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField options_; private com.google.protobuf.MapField internalGetOptions() { if (options_ == null) { return com.google.protobuf.MapField.emptyMapField(OptionsDefaultEntryHolder.defaultEntry); } return options_; } public int getOptionsCount() { return internalGetOptions().getMap().size(); } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public boolean containsOptions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOptions().getMap().containsKey(key); } /** Use {@link #getOptionsMap()} instead. */ @java.lang.Deprecated public java.util.Map getOptions() { return getOptionsMap(); } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public java.util.Map getOptionsMap() { return internalGetOptions().getMap(); } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional: Extra command options if any.
     * +optional
     * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, readOnly_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetOptions(), OptionsDefaultEntryHolder.defaultEntry, 5); 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, driver_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } for (java.util.Map.Entry entry : internalGetOptions().getMap().entrySet()) { com.google.protobuf.MapEntry options__ = OptionsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, options__); } 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.V1.FlexVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.FlexVolumeSource other = (io.kubernetes.client.proto.V1.FlexVolumeSource) obj; boolean result = true; result = result && (hasDriver() == other.hasDriver()); if (hasDriver()) { result = result && getDriver().equals(other.getDriver()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && internalGetOptions().equals(other.internalGetOptions()); 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 (hasDriver()) { hash = (37 * hash) + DRIVER_FIELD_NUMBER; hash = (53 * hash) + getDriver().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (!internalGetOptions().getMap().isEmpty()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.FlexVolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlexVolumeSource 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.V1.FlexVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlexVolumeSource 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.V1.FlexVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlexVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.FlexVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlexVolumeSource 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.V1.FlexVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlexVolumeSource 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.V1.FlexVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlexVolumeSource 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.V1.FlexVolumeSource 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; } /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.FlexVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.FlexVolumeSource) io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableOptions(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FlexVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FlexVolumeSource.class, io.kubernetes.client.proto.V1.FlexVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.FlexVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); driver_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableOptions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.FlexVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.FlexVolumeSource build() { io.kubernetes.client.proto.V1.FlexVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.FlexVolumeSource buildPartial() { io.kubernetes.client.proto.V1.FlexVolumeSource result = new io.kubernetes.client.proto.V1.FlexVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.driver_ = driver_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.readOnly_ = readOnly_; result.options_ = internalGetOptions(); result.options_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.FlexVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.FlexVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.FlexVolumeSource other) { if (other == io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance()) return this; if (other.hasDriver()) { bitField0_ |= 0x00000001; driver_ = other.driver_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } internalGetMutableOptions().mergeFrom(other.internalGetOptions()); 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.V1.FlexVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.FlexVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object driver_ = ""; /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public Builder setDriver(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public Builder clearDriver() { bitField0_ = (bitField0_ & ~0x00000001); driver_ = getDefaultInstance().getDriver(); onChanged(); return this; } /** * * *
       * Driver is the name of the driver to use for this volume.
       * 
* * optional string driver = 1; */ public Builder setDriverBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * Optional: SecretRef is reference to the secret object containing
       * sensitive information to pass to the plugin scripts. This may be
       * empty if no secret object is specified. If the secret object
       * contains more than one secret, all secrets are passed to the plugin
       * scripts.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean readOnly_; /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * Optional: Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = false; onChanged(); return this; } private com.google.protobuf.MapField options_; private com.google.protobuf.MapField internalGetOptions() { if (options_ == null) { return com.google.protobuf.MapField.emptyMapField(OptionsDefaultEntryHolder.defaultEntry); } return options_; } private com.google.protobuf.MapField internalGetMutableOptions() { onChanged(); ; if (options_ == null) { options_ = com.google.protobuf.MapField.newMapField(OptionsDefaultEntryHolder.defaultEntry); } if (!options_.isMutable()) { options_ = options_.copy(); } return options_; } public int getOptionsCount() { return internalGetOptions().getMap().size(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public boolean containsOptions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOptions().getMap().containsKey(key); } /** Use {@link #getOptionsMap()} instead. */ @java.lang.Deprecated public java.util.Map getOptions() { return getOptionsMap(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public java.util.Map getOptionsMap() { return internalGetOptions().getMap(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public java.lang.String getOptionsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOptions().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOptions() { internalGetMutableOptions().getMutableMap().clear(); return this; } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public Builder removeOptions(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableOptions().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableOptions() { return internalGetMutableOptions().getMutableMap(); } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public Builder putOptions(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableOptions().getMutableMap().put(key, value); return this; } /** * * *
       * Optional: Extra command options if any.
       * +optional
       * 
* * map<string, string> options = 5; */ public Builder putAllOptions(java.util.Map values) { internalGetMutableOptions().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.FlexVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.FlexVolumeSource) private static final io.kubernetes.client.proto.V1.FlexVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.FlexVolumeSource(); } public static io.kubernetes.client.proto.V1.FlexVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FlexVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FlexVolumeSource(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.V1.FlexVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FlockerVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.FlockerVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the dataset stored as metadata -> name on the dataset for Flocker
     * should be considered as deprecated
     * +optional
     * 
* * optional string datasetName = 1; */ boolean hasDatasetName(); /** * * *
     * Name of the dataset stored as metadata -> name on the dataset for Flocker
     * should be considered as deprecated
     * +optional
     * 
* * optional string datasetName = 1; */ java.lang.String getDatasetName(); /** * * *
     * Name of the dataset stored as metadata -> name on the dataset for Flocker
     * should be considered as deprecated
     * +optional
     * 
* * optional string datasetName = 1; */ com.google.protobuf.ByteString getDatasetNameBytes(); /** * * *
     * UUID of the dataset. This is unique identifier of a Flocker dataset
     * +optional
     * 
* * optional string datasetUUID = 2; */ boolean hasDatasetUUID(); /** * * *
     * UUID of the dataset. This is unique identifier of a Flocker dataset
     * +optional
     * 
* * optional string datasetUUID = 2; */ java.lang.String getDatasetUUID(); /** * * *
     * UUID of the dataset. This is unique identifier of a Flocker dataset
     * +optional
     * 
* * optional string datasetUUID = 2; */ com.google.protobuf.ByteString getDatasetUUIDBytes(); } /** * * *
   * Represents a Flocker volume mounted by the Flocker agent.
   * One and only one of datasetName and datasetUUID should be set.
   * Flocker volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.FlockerVolumeSource} */ public static final class FlockerVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.FlockerVolumeSource) FlockerVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use FlockerVolumeSource.newBuilder() to construct. private FlockerVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FlockerVolumeSource() { datasetName_ = ""; datasetUUID_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FlockerVolumeSource( 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; datasetName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; datasetUUID_ = 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 .V1 .internal_static_k8s_io_api_core_v1_FlockerVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FlockerVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FlockerVolumeSource.class, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder.class); } private int bitField0_; public static final int DATASETNAME_FIELD_NUMBER = 1; private volatile java.lang.Object datasetName_; /** * * *
     * Name of the dataset stored as metadata -> name on the dataset for Flocker
     * should be considered as deprecated
     * +optional
     * 
* * optional string datasetName = 1; */ public boolean hasDatasetName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the dataset stored as metadata -> name on the dataset for Flocker
     * should be considered as deprecated
     * +optional
     * 
* * optional string datasetName = 1; */ public java.lang.String getDatasetName() { java.lang.Object ref = datasetName_; 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()) { datasetName_ = s; } return s; } } /** * * *
     * Name of the dataset stored as metadata -> name on the dataset for Flocker
     * should be considered as deprecated
     * +optional
     * 
* * optional string datasetName = 1; */ public com.google.protobuf.ByteString getDatasetNameBytes() { java.lang.Object ref = datasetName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATASETUUID_FIELD_NUMBER = 2; private volatile java.lang.Object datasetUUID_; /** * * *
     * UUID of the dataset. This is unique identifier of a Flocker dataset
     * +optional
     * 
* * optional string datasetUUID = 2; */ public boolean hasDatasetUUID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * UUID of the dataset. This is unique identifier of a Flocker dataset
     * +optional
     * 
* * optional string datasetUUID = 2; */ public java.lang.String getDatasetUUID() { java.lang.Object ref = datasetUUID_; 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()) { datasetUUID_ = s; } return s; } } /** * * *
     * UUID of the dataset. This is unique identifier of a Flocker dataset
     * +optional
     * 
* * optional string datasetUUID = 2; */ public com.google.protobuf.ByteString getDatasetUUIDBytes() { java.lang.Object ref = datasetUUID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetUUID_ = 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, datasetName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetUUID_); } 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, datasetName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datasetUUID_); } 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.V1.FlockerVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.FlockerVolumeSource other = (io.kubernetes.client.proto.V1.FlockerVolumeSource) obj; boolean result = true; result = result && (hasDatasetName() == other.hasDatasetName()); if (hasDatasetName()) { result = result && getDatasetName().equals(other.getDatasetName()); } result = result && (hasDatasetUUID() == other.hasDatasetUUID()); if (hasDatasetUUID()) { result = result && getDatasetUUID().equals(other.getDatasetUUID()); } 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 (hasDatasetName()) { hash = (37 * hash) + DATASETNAME_FIELD_NUMBER; hash = (53 * hash) + getDatasetName().hashCode(); } if (hasDatasetUUID()) { hash = (37 * hash) + DATASETUUID_FIELD_NUMBER; hash = (53 * hash) + getDatasetUUID().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.FlockerVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource 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.V1.FlockerVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource 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.V1.FlockerVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource 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.V1.FlockerVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource 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.V1.FlockerVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource 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.V1.FlockerVolumeSource 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; } /** * * *
     * Represents a Flocker volume mounted by the Flocker agent.
     * One and only one of datasetName and datasetUUID should be set.
     * Flocker volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.FlockerVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.FlockerVolumeSource) io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlockerVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_FlockerVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.FlockerVolumeSource.class, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.FlockerVolumeSource.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(); datasetName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); datasetUUID_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_FlockerVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.FlockerVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.FlockerVolumeSource build() { io.kubernetes.client.proto.V1.FlockerVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.FlockerVolumeSource buildPartial() { io.kubernetes.client.proto.V1.FlockerVolumeSource result = new io.kubernetes.client.proto.V1.FlockerVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.datasetName_ = datasetName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.datasetUUID_ = datasetUUID_; 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.V1.FlockerVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.FlockerVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.FlockerVolumeSource other) { if (other == io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance()) return this; if (other.hasDatasetName()) { bitField0_ |= 0x00000001; datasetName_ = other.datasetName_; onChanged(); } if (other.hasDatasetUUID()) { bitField0_ |= 0x00000002; datasetUUID_ = other.datasetUUID_; 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.V1.FlockerVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.FlockerVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object datasetName_ = ""; /** * * *
       * Name of the dataset stored as metadata -> name on the dataset for Flocker
       * should be considered as deprecated
       * +optional
       * 
* * optional string datasetName = 1; */ public boolean hasDatasetName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the dataset stored as metadata -> name on the dataset for Flocker
       * should be considered as deprecated
       * +optional
       * 
* * optional string datasetName = 1; */ public java.lang.String getDatasetName() { java.lang.Object ref = datasetName_; 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()) { datasetName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the dataset stored as metadata -> name on the dataset for Flocker
       * should be considered as deprecated
       * +optional
       * 
* * optional string datasetName = 1; */ public com.google.protobuf.ByteString getDatasetNameBytes() { java.lang.Object ref = datasetName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the dataset stored as metadata -> name on the dataset for Flocker
       * should be considered as deprecated
       * +optional
       * 
* * optional string datasetName = 1; */ public Builder setDatasetName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; datasetName_ = value; onChanged(); return this; } /** * * *
       * Name of the dataset stored as metadata -> name on the dataset for Flocker
       * should be considered as deprecated
       * +optional
       * 
* * optional string datasetName = 1; */ public Builder clearDatasetName() { bitField0_ = (bitField0_ & ~0x00000001); datasetName_ = getDefaultInstance().getDatasetName(); onChanged(); return this; } /** * * *
       * Name of the dataset stored as metadata -> name on the dataset for Flocker
       * should be considered as deprecated
       * +optional
       * 
* * optional string datasetName = 1; */ public Builder setDatasetNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; datasetName_ = value; onChanged(); return this; } private java.lang.Object datasetUUID_ = ""; /** * * *
       * UUID of the dataset. This is unique identifier of a Flocker dataset
       * +optional
       * 
* * optional string datasetUUID = 2; */ public boolean hasDatasetUUID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * UUID of the dataset. This is unique identifier of a Flocker dataset
       * +optional
       * 
* * optional string datasetUUID = 2; */ public java.lang.String getDatasetUUID() { java.lang.Object ref = datasetUUID_; 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()) { datasetUUID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * UUID of the dataset. This is unique identifier of a Flocker dataset
       * +optional
       * 
* * optional string datasetUUID = 2; */ public com.google.protobuf.ByteString getDatasetUUIDBytes() { java.lang.Object ref = datasetUUID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetUUID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * UUID of the dataset. This is unique identifier of a Flocker dataset
       * +optional
       * 
* * optional string datasetUUID = 2; */ public Builder setDatasetUUID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; datasetUUID_ = value; onChanged(); return this; } /** * * *
       * UUID of the dataset. This is unique identifier of a Flocker dataset
       * +optional
       * 
* * optional string datasetUUID = 2; */ public Builder clearDatasetUUID() { bitField0_ = (bitField0_ & ~0x00000002); datasetUUID_ = getDefaultInstance().getDatasetUUID(); onChanged(); return this; } /** * * *
       * UUID of the dataset. This is unique identifier of a Flocker dataset
       * +optional
       * 
* * optional string datasetUUID = 2; */ public Builder setDatasetUUIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; datasetUUID_ = 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.core.v1.FlockerVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.FlockerVolumeSource) private static final io.kubernetes.client.proto.V1.FlockerVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.FlockerVolumeSource(); } public static io.kubernetes.client.proto.V1.FlockerVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FlockerVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FlockerVolumeSource(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.V1.FlockerVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GCEPersistentDiskVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.GCEPersistentDiskVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * 
* * optional string pdName = 1; */ boolean hasPdName(); /** * * *
     * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * 
* * optional string pdName = 1; */ java.lang.String getPdName(); /** * * *
     * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * 
* * optional string pdName = 1; */ com.google.protobuf.ByteString getPdNameBytes(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional int32 partition = 3; */ boolean hasPartition(); /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional int32 partition = 3; */ int getPartition(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); } /** * * *
   * Represents a Persistent Disk resource in Google Compute Engine.
   * A GCE PD must exist before mounting to a container. The disk must
   * also be in the same GCE project and zone as the kubelet. A GCE PD
   * can only be mounted as read/write once or read-only many times. GCE
   * PDs support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.GCEPersistentDiskVolumeSource} */ public static final class GCEPersistentDiskVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.GCEPersistentDiskVolumeSource) GCEPersistentDiskVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use GCEPersistentDiskVolumeSource.newBuilder() to construct. private GCEPersistentDiskVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GCEPersistentDiskVolumeSource() { pdName_ = ""; fsType_ = ""; partition_ = 0; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GCEPersistentDiskVolumeSource( 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; pdName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 24: { bitField0_ |= 0x00000004; partition_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.class, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder.class); } private int bitField0_; public static final int PDNAME_FIELD_NUMBER = 1; private volatile java.lang.Object pdName_; /** * * *
     * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * 
* * optional string pdName = 1; */ public boolean hasPdName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * 
* * optional string pdName = 1; */ public java.lang.String getPdName() { java.lang.Object ref = pdName_; 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()) { pdName_ = s; } return s; } } /** * * *
     * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * 
* * optional string pdName = 1; */ public com.google.protobuf.ByteString getPdNameBytes() { java.lang.Object ref = pdName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pdName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARTITION_FIELD_NUMBER = 3; private int partition_; /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional int32 partition = 3; */ public boolean hasPartition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The partition in the volume that you want to mount.
     * If omitted, the default is to mount by volume name.
     * Examples: For volume /dev/sda1, you specify the partition as "1".
     * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional int32 partition = 3; */ public int getPartition() { return partition_; } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } 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, pdName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, partition_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, readOnly_); } 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, pdName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, partition_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } 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.V1.GCEPersistentDiskVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource other = (io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource) obj; boolean result = true; result = result && (hasPdName() == other.hasPdName()); if (hasPdName()) { result = result && getPdName().equals(other.getPdName()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasPartition() == other.hasPartition()); if (hasPartition()) { result = result && (getPartition() == other.getPartition()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasPdName()) { hash = (37 * hash) + PDNAME_FIELD_NUMBER; hash = (53 * hash) + getPdName().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasPartition()) { hash = (37 * hash) + PARTITION_FIELD_NUMBER; hash = (53 * hash) + getPartition(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource 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.V1.GCEPersistentDiskVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource 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.V1.GCEPersistentDiskVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource 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.V1.GCEPersistentDiskVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource 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.V1.GCEPersistentDiskVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource 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.V1.GCEPersistentDiskVolumeSource 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; } /** * * *
     * Represents a Persistent Disk resource in Google Compute Engine.
     * A GCE PD must exist before mounting to a container. The disk must
     * also be in the same GCE project and zone as the kubelet. A GCE PD
     * can only be mounted as read/write once or read-only many times. GCE
     * PDs support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.GCEPersistentDiskVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.GCEPersistentDiskVolumeSource) io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.class, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.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(); pdName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); partition_ = 0; bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource build() { io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource buildPartial() { io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource result = new io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.pdName_ = pdName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.partition_ = partition_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.readOnly_ = readOnly_; 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.V1.GCEPersistentDiskVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource other) { if (other == io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance()) return this; if (other.hasPdName()) { bitField0_ |= 0x00000001; pdName_ = other.pdName_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasPartition()) { setPartition(other.getPartition()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.GCEPersistentDiskVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object pdName_ = ""; /** * * *
       * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * 
* * optional string pdName = 1; */ public boolean hasPdName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * 
* * optional string pdName = 1; */ public java.lang.String getPdName() { java.lang.Object ref = pdName_; 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()) { pdName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * 
* * optional string pdName = 1; */ public com.google.protobuf.ByteString getPdNameBytes() { java.lang.Object ref = pdName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pdName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * 
* * optional string pdName = 1; */ public Builder setPdName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pdName_ = value; onChanged(); return this; } /** * * *
       * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * 
* * optional string pdName = 1; */ public Builder clearPdName() { bitField0_ = (bitField0_ & ~0x00000001); pdName_ = getDefaultInstance().getPdName(); onChanged(); return this; } /** * * *
       * Unique name of the PD resource in GCE. Used to identify the disk in GCE.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * 
* * optional string pdName = 1; */ public Builder setPdNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pdName_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private int partition_; /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional int32 partition = 3; */ public boolean hasPartition() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional int32 partition = 3; */ public int getPartition() { return partition_; } /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional int32 partition = 3; */ public Builder setPartition(int value) { bitField0_ |= 0x00000004; partition_ = value; onChanged(); return this; } /** * * *
       * The partition in the volume that you want to mount.
       * If omitted, the default is to mount by volume name.
       * Examples: For volume /dev/sda1, you specify the partition as "1".
       * Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional int32 partition = 3; */ public Builder clearPartition() { bitField0_ = (bitField0_ & ~0x00000004); partition_ = 0; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = 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.core.v1.GCEPersistentDiskVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.GCEPersistentDiskVolumeSource) private static final io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource(); } public static io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GCEPersistentDiskVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GCEPersistentDiskVolumeSource(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.V1.GCEPersistentDiskVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GitRepoVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.GitRepoVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Repository URL
     * 
* * optional string repository = 1; */ boolean hasRepository(); /** * * *
     * Repository URL
     * 
* * optional string repository = 1; */ java.lang.String getRepository(); /** * * *
     * Repository URL
     * 
* * optional string repository = 1; */ com.google.protobuf.ByteString getRepositoryBytes(); /** * * *
     * Commit hash for the specified revision.
     * +optional
     * 
* * optional string revision = 2; */ boolean hasRevision(); /** * * *
     * Commit hash for the specified revision.
     * +optional
     * 
* * optional string revision = 2; */ java.lang.String getRevision(); /** * * *
     * Commit hash for the specified revision.
     * +optional
     * 
* * optional string revision = 2; */ com.google.protobuf.ByteString getRevisionBytes(); /** * * *
     * Target directory name.
     * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
     * git repository.  Otherwise, if specified, the volume will contain the git repository in
     * the subdirectory with the given name.
     * +optional
     * 
* * optional string directory = 3; */ boolean hasDirectory(); /** * * *
     * Target directory name.
     * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
     * git repository.  Otherwise, if specified, the volume will contain the git repository in
     * the subdirectory with the given name.
     * +optional
     * 
* * optional string directory = 3; */ java.lang.String getDirectory(); /** * * *
     * Target directory name.
     * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
     * git repository.  Otherwise, if specified, the volume will contain the git repository in
     * the subdirectory with the given name.
     * +optional
     * 
* * optional string directory = 3; */ com.google.protobuf.ByteString getDirectoryBytes(); } /** * * *
   * Represents a volume that is populated with the contents of a git repository.
   * Git repo volumes do not support ownership management.
   * Git repo volumes support SELinux relabeling.
   * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
   * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
   * into the Pod's container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.GitRepoVolumeSource} */ public static final class GitRepoVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.GitRepoVolumeSource) GitRepoVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use GitRepoVolumeSource.newBuilder() to construct. private GitRepoVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GitRepoVolumeSource() { repository_ = ""; revision_ = ""; directory_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GitRepoVolumeSource( 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; repository_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; revision_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; directory_ = 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 .V1 .internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GitRepoVolumeSource.class, io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder.class); } private int bitField0_; public static final int REPOSITORY_FIELD_NUMBER = 1; private volatile java.lang.Object repository_; /** * * *
     * Repository URL
     * 
* * optional string repository = 1; */ public boolean hasRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Repository URL
     * 
* * optional string repository = 1; */ public java.lang.String getRepository() { java.lang.Object ref = repository_; 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()) { repository_ = s; } return s; } } /** * * *
     * Repository URL
     * 
* * optional string repository = 1; */ public com.google.protobuf.ByteString getRepositoryBytes() { java.lang.Object ref = repository_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVISION_FIELD_NUMBER = 2; private volatile java.lang.Object revision_; /** * * *
     * Commit hash for the specified revision.
     * +optional
     * 
* * optional string revision = 2; */ public boolean hasRevision() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Commit hash for the specified revision.
     * +optional
     * 
* * optional string revision = 2; */ public java.lang.String getRevision() { java.lang.Object ref = revision_; 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()) { revision_ = s; } return s; } } /** * * *
     * Commit hash for the specified revision.
     * +optional
     * 
* * optional string revision = 2; */ public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIRECTORY_FIELD_NUMBER = 3; private volatile java.lang.Object directory_; /** * * *
     * Target directory name.
     * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
     * git repository.  Otherwise, if specified, the volume will contain the git repository in
     * the subdirectory with the given name.
     * +optional
     * 
* * optional string directory = 3; */ public boolean hasDirectory() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Target directory name.
     * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
     * git repository.  Otherwise, if specified, the volume will contain the git repository in
     * the subdirectory with the given name.
     * +optional
     * 
* * optional string directory = 3; */ public java.lang.String getDirectory() { java.lang.Object ref = directory_; 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()) { directory_ = s; } return s; } } /** * * *
     * Target directory name.
     * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
     * git repository.  Otherwise, if specified, the volume will contain the git repository in
     * the subdirectory with the given name.
     * +optional
     * 
* * optional string directory = 3; */ public com.google.protobuf.ByteString getDirectoryBytes() { java.lang.Object ref = directory_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); directory_ = 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, repository_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revision_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, directory_); } 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, repository_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revision_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, directory_); } 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.V1.GitRepoVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.GitRepoVolumeSource other = (io.kubernetes.client.proto.V1.GitRepoVolumeSource) obj; boolean result = true; result = result && (hasRepository() == other.hasRepository()); if (hasRepository()) { result = result && getRepository().equals(other.getRepository()); } result = result && (hasRevision() == other.hasRevision()); if (hasRevision()) { result = result && getRevision().equals(other.getRevision()); } result = result && (hasDirectory() == other.hasDirectory()); if (hasDirectory()) { result = result && getDirectory().equals(other.getDirectory()); } 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 (hasRepository()) { hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; hash = (53 * hash) + getRepository().hashCode(); } if (hasRevision()) { hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); } if (hasDirectory()) { hash = (37 * hash) + DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getDirectory().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource 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.V1.GitRepoVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource 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.V1.GitRepoVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource 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.V1.GitRepoVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource 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.V1.GitRepoVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource 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.V1.GitRepoVolumeSource 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; } /** * * *
     * Represents a volume that is populated with the contents of a git repository.
     * Git repo volumes do not support ownership management.
     * Git repo volumes support SELinux relabeling.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.GitRepoVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.GitRepoVolumeSource) io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GitRepoVolumeSource.class, io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.GitRepoVolumeSource.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(); repository_ = ""; bitField0_ = (bitField0_ & ~0x00000001); revision_ = ""; bitField0_ = (bitField0_ & ~0x00000002); directory_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.GitRepoVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.GitRepoVolumeSource build() { io.kubernetes.client.proto.V1.GitRepoVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.GitRepoVolumeSource buildPartial() { io.kubernetes.client.proto.V1.GitRepoVolumeSource result = new io.kubernetes.client.proto.V1.GitRepoVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.repository_ = repository_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.revision_ = revision_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.directory_ = directory_; 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.V1.GitRepoVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.GitRepoVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.GitRepoVolumeSource other) { if (other == io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance()) return this; if (other.hasRepository()) { bitField0_ |= 0x00000001; repository_ = other.repository_; onChanged(); } if (other.hasRevision()) { bitField0_ |= 0x00000002; revision_ = other.revision_; onChanged(); } if (other.hasDirectory()) { bitField0_ |= 0x00000004; directory_ = other.directory_; 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.V1.GitRepoVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.GitRepoVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object repository_ = ""; /** * * *
       * Repository URL
       * 
* * optional string repository = 1; */ public boolean hasRepository() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Repository URL
       * 
* * optional string repository = 1; */ public java.lang.String getRepository() { java.lang.Object ref = repository_; 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()) { repository_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Repository URL
       * 
* * optional string repository = 1; */ public com.google.protobuf.ByteString getRepositoryBytes() { java.lang.Object ref = repository_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); repository_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Repository URL
       * 
* * optional string repository = 1; */ public Builder setRepository(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; repository_ = value; onChanged(); return this; } /** * * *
       * Repository URL
       * 
* * optional string repository = 1; */ public Builder clearRepository() { bitField0_ = (bitField0_ & ~0x00000001); repository_ = getDefaultInstance().getRepository(); onChanged(); return this; } /** * * *
       * Repository URL
       * 
* * optional string repository = 1; */ public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; repository_ = value; onChanged(); return this; } private java.lang.Object revision_ = ""; /** * * *
       * Commit hash for the specified revision.
       * +optional
       * 
* * optional string revision = 2; */ public boolean hasRevision() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Commit hash for the specified revision.
       * +optional
       * 
* * optional string revision = 2; */ public java.lang.String getRevision() { java.lang.Object ref = revision_; 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()) { revision_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Commit hash for the specified revision.
       * +optional
       * 
* * optional string revision = 2; */ public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Commit hash for the specified revision.
       * +optional
       * 
* * optional string revision = 2; */ public Builder setRevision(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; revision_ = value; onChanged(); return this; } /** * * *
       * Commit hash for the specified revision.
       * +optional
       * 
* * optional string revision = 2; */ public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000002); revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** * * *
       * Commit hash for the specified revision.
       * +optional
       * 
* * optional string revision = 2; */ public Builder setRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; revision_ = value; onChanged(); return this; } private java.lang.Object directory_ = ""; /** * * *
       * Target directory name.
       * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
       * git repository.  Otherwise, if specified, the volume will contain the git repository in
       * the subdirectory with the given name.
       * +optional
       * 
* * optional string directory = 3; */ public boolean hasDirectory() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Target directory name.
       * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
       * git repository.  Otherwise, if specified, the volume will contain the git repository in
       * the subdirectory with the given name.
       * +optional
       * 
* * optional string directory = 3; */ public java.lang.String getDirectory() { java.lang.Object ref = directory_; 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()) { directory_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Target directory name.
       * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
       * git repository.  Otherwise, if specified, the volume will contain the git repository in
       * the subdirectory with the given name.
       * +optional
       * 
* * optional string directory = 3; */ public com.google.protobuf.ByteString getDirectoryBytes() { java.lang.Object ref = directory_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); directory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Target directory name.
       * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
       * git repository.  Otherwise, if specified, the volume will contain the git repository in
       * the subdirectory with the given name.
       * +optional
       * 
* * optional string directory = 3; */ public Builder setDirectory(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; directory_ = value; onChanged(); return this; } /** * * *
       * Target directory name.
       * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
       * git repository.  Otherwise, if specified, the volume will contain the git repository in
       * the subdirectory with the given name.
       * +optional
       * 
* * optional string directory = 3; */ public Builder clearDirectory() { bitField0_ = (bitField0_ & ~0x00000004); directory_ = getDefaultInstance().getDirectory(); onChanged(); return this; } /** * * *
       * Target directory name.
       * Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
       * git repository.  Otherwise, if specified, the volume will contain the git repository in
       * the subdirectory with the given name.
       * +optional
       * 
* * optional string directory = 3; */ public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; directory_ = 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.core.v1.GitRepoVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.GitRepoVolumeSource) private static final io.kubernetes.client.proto.V1.GitRepoVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.GitRepoVolumeSource(); } public static io.kubernetes.client.proto.V1.GitRepoVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GitRepoVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GitRepoVolumeSource(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.V1.GitRepoVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GlusterfsPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.GlusterfsPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ boolean hasEndpoints(); /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ java.lang.String getEndpoints(); /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ com.google.protobuf.ByteString getEndpointsBytes(); /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ boolean hasPath(); /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ java.lang.String getPath(); /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); /** * * *
     * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
     * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional string endpointsNamespace = 4; */ boolean hasEndpointsNamespace(); /** * * *
     * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
     * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional string endpointsNamespace = 4; */ java.lang.String getEndpointsNamespace(); /** * * *
     * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
     * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional string endpointsNamespace = 4; */ com.google.protobuf.ByteString getEndpointsNamespaceBytes(); } /** * * *
   * Represents a Glusterfs mount that lasts the lifetime of a pod.
   * Glusterfs volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.GlusterfsPersistentVolumeSource} */ public static final class GlusterfsPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.GlusterfsPersistentVolumeSource) GlusterfsPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use GlusterfsPersistentVolumeSource.newBuilder() to construct. private GlusterfsPersistentVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GlusterfsPersistentVolumeSource() { endpoints_ = ""; path_ = ""; readOnly_ = false; endpointsNamespace_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GlusterfsPersistentVolumeSource( 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; endpoints_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; path_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; endpointsNamespace_ = 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 .V1 .internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.class, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int ENDPOINTS_FIELD_NUMBER = 1; private volatile java.lang.Object endpoints_; /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ public boolean hasEndpoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ public java.lang.String getEndpoints() { java.lang.Object ref = endpoints_; 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()) { endpoints_ = s; } return s; } } /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ public com.google.protobuf.ByteString getEndpointsBytes() { java.lang.Object ref = endpoints_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endpoints_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int ENDPOINTSNAMESPACE_FIELD_NUMBER = 4; private volatile java.lang.Object endpointsNamespace_; /** * * *
     * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
     * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional string endpointsNamespace = 4; */ public boolean hasEndpointsNamespace() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
     * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional string endpointsNamespace = 4; */ public java.lang.String getEndpointsNamespace() { java.lang.Object ref = endpointsNamespace_; 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()) { endpointsNamespace_ = s; } return s; } } /** * * *
     * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
     * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional string endpointsNamespace = 4; */ public com.google.protobuf.ByteString getEndpointsNamespaceBytes() { java.lang.Object ref = endpointsNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endpointsNamespace_ = 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, endpoints_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpointsNamespace_); } 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, endpoints_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endpointsNamespace_); } 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.V1.GlusterfsPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource other = (io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource) obj; boolean result = true; result = result && (hasEndpoints() == other.hasEndpoints()); if (hasEndpoints()) { result = result && getEndpoints().equals(other.getEndpoints()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasEndpointsNamespace() == other.hasEndpointsNamespace()); if (hasEndpointsNamespace()) { result = result && getEndpointsNamespace().equals(other.getEndpointsNamespace()); } 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 (hasEndpoints()) { hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getEndpoints().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasEndpointsNamespace()) { hash = (37 * hash) + ENDPOINTSNAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getEndpointsNamespace().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource 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.V1.GlusterfsPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource 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.V1.GlusterfsPersistentVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource 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.V1.GlusterfsPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource 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.V1.GlusterfsPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource 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.V1.GlusterfsPersistentVolumeSource 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; } /** * * *
     * Represents a Glusterfs mount that lasts the lifetime of a pod.
     * Glusterfs volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.GlusterfsPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.GlusterfsPersistentVolumeSource) io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.class, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.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(); endpoints_ = ""; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); endpointsNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource build() { io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource result = new io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.endpoints_ = endpoints_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.endpointsNamespace_ = endpointsNamespace_; 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.V1.GlusterfsPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasEndpoints()) { bitField0_ |= 0x00000001; endpoints_ = other.endpoints_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasEndpointsNamespace()) { bitField0_ |= 0x00000008; endpointsNamespace_ = other.endpointsNamespace_; 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.V1.GlusterfsPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object endpoints_ = ""; /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public boolean hasEndpoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public java.lang.String getEndpoints() { java.lang.Object ref = endpoints_; 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()) { endpoints_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public com.google.protobuf.ByteString getEndpointsBytes() { java.lang.Object ref = endpoints_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endpoints_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public Builder setEndpoints(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; endpoints_ = value; onChanged(); return this; } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public Builder clearEndpoints() { bitField0_ = (bitField0_ & ~0x00000001); endpoints_ = getDefaultInstance().getEndpoints(); onChanged(); return this; } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public Builder setEndpointsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; endpoints_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private java.lang.Object endpointsNamespace_ = ""; /** * * *
       * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
       * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional string endpointsNamespace = 4; */ public boolean hasEndpointsNamespace() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
       * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional string endpointsNamespace = 4; */ public java.lang.String getEndpointsNamespace() { java.lang.Object ref = endpointsNamespace_; 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()) { endpointsNamespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
       * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional string endpointsNamespace = 4; */ public com.google.protobuf.ByteString getEndpointsNamespaceBytes() { java.lang.Object ref = endpointsNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endpointsNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
       * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional string endpointsNamespace = 4; */ public Builder setEndpointsNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; endpointsNamespace_ = value; onChanged(); return this; } /** * * *
       * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
       * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional string endpointsNamespace = 4; */ public Builder clearEndpointsNamespace() { bitField0_ = (bitField0_ & ~0x00000008); endpointsNamespace_ = getDefaultInstance().getEndpointsNamespace(); onChanged(); return this; } /** * * *
       * EndpointsNamespace is the namespace that contains Glusterfs endpoint.
       * If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional string endpointsNamespace = 4; */ public Builder setEndpointsNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; endpointsNamespace_ = 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.core.v1.GlusterfsPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.GlusterfsPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GlusterfsPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GlusterfsPersistentVolumeSource(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.V1.GlusterfsPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GlusterfsVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.GlusterfsVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ boolean hasEndpoints(); /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ java.lang.String getEndpoints(); /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ com.google.protobuf.ByteString getEndpointsBytes(); /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ boolean hasPath(); /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ java.lang.String getPath(); /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); } /** * * *
   * Represents a Glusterfs mount that lasts the lifetime of a pod.
   * Glusterfs volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.GlusterfsVolumeSource} */ public static final class GlusterfsVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.GlusterfsVolumeSource) GlusterfsVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use GlusterfsVolumeSource.newBuilder() to construct. private GlusterfsVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GlusterfsVolumeSource() { endpoints_ = ""; path_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GlusterfsVolumeSource( 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; endpoints_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; path_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GlusterfsVolumeSource.class, io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder.class); } private int bitField0_; public static final int ENDPOINTS_FIELD_NUMBER = 1; private volatile java.lang.Object endpoints_; /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ public boolean hasEndpoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ public java.lang.String getEndpoints() { java.lang.Object ref = endpoints_; 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()) { endpoints_ = s; } return s; } } /** * * *
     * EndpointsName is the endpoint name that details Glusterfs topology.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string endpoints = 1; */ public com.google.protobuf.ByteString getEndpointsBytes() { java.lang.Object ref = endpoints_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endpoints_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path is the Glusterfs volume path.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } 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, endpoints_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } 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, endpoints_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } 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.V1.GlusterfsVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.GlusterfsVolumeSource other = (io.kubernetes.client.proto.V1.GlusterfsVolumeSource) obj; boolean result = true; result = result && (hasEndpoints() == other.hasEndpoints()); if (hasEndpoints()) { result = result && getEndpoints().equals(other.getEndpoints()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasEndpoints()) { hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getEndpoints().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource 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.V1.GlusterfsVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource 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.V1.GlusterfsVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource 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.V1.GlusterfsVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource 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.V1.GlusterfsVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource 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.V1.GlusterfsVolumeSource 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; } /** * * *
     * Represents a Glusterfs mount that lasts the lifetime of a pod.
     * Glusterfs volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.GlusterfsVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.GlusterfsVolumeSource) io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.GlusterfsVolumeSource.class, io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.GlusterfsVolumeSource.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(); endpoints_ = ""; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.GlusterfsVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.GlusterfsVolumeSource build() { io.kubernetes.client.proto.V1.GlusterfsVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.GlusterfsVolumeSource buildPartial() { io.kubernetes.client.proto.V1.GlusterfsVolumeSource result = new io.kubernetes.client.proto.V1.GlusterfsVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.endpoints_ = endpoints_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; 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.V1.GlusterfsVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.GlusterfsVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.GlusterfsVolumeSource other) { if (other == io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance()) return this; if (other.hasEndpoints()) { bitField0_ |= 0x00000001; endpoints_ = other.endpoints_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.GlusterfsVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.GlusterfsVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object endpoints_ = ""; /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public boolean hasEndpoints() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public java.lang.String getEndpoints() { java.lang.Object ref = endpoints_; 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()) { endpoints_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public com.google.protobuf.ByteString getEndpointsBytes() { java.lang.Object ref = endpoints_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); endpoints_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public Builder setEndpoints(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; endpoints_ = value; onChanged(); return this; } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public Builder clearEndpoints() { bitField0_ = (bitField0_ & ~0x00000001); endpoints_ = getDefaultInstance().getEndpoints(); onChanged(); return this; } /** * * *
       * EndpointsName is the endpoint name that details Glusterfs topology.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string endpoints = 1; */ public Builder setEndpointsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; endpoints_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path is the Glusterfs volume path.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * 
* * optional string path = 2; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = 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.core.v1.GlusterfsVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.GlusterfsVolumeSource) private static final io.kubernetes.client.proto.V1.GlusterfsVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.GlusterfsVolumeSource(); } public static io.kubernetes.client.proto.V1.GlusterfsVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GlusterfsVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GlusterfsVolumeSource(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.V1.GlusterfsVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HTTPGetActionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.HTTPGetAction) com.google.protobuf.MessageOrBuilder { /** * * *
     * Path to access on the HTTP server.
     * +optional
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * Path to access on the HTTP server.
     * +optional
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * Path to access on the HTTP server.
     * +optional
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Name or number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ boolean hasPort(); /** * * *
     * Name or number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ io.kubernetes.client.proto.IntStr.IntOrString getPort(); /** * * *
     * Name or number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder(); /** * * *
     * Host name to connect to, defaults to the pod IP. You probably want to set
     * "Host" in httpHeaders instead.
     * +optional
     * 
* * optional string host = 3; */ boolean hasHost(); /** * * *
     * Host name to connect to, defaults to the pod IP. You probably want to set
     * "Host" in httpHeaders instead.
     * +optional
     * 
* * optional string host = 3; */ java.lang.String getHost(); /** * * *
     * Host name to connect to, defaults to the pod IP. You probably want to set
     * "Host" in httpHeaders instead.
     * +optional
     * 
* * optional string host = 3; */ com.google.protobuf.ByteString getHostBytes(); /** * * *
     * Scheme to use for connecting to the host.
     * Defaults to HTTP.
     * +optional
     * 
* * optional string scheme = 4; */ boolean hasScheme(); /** * * *
     * Scheme to use for connecting to the host.
     * Defaults to HTTP.
     * +optional
     * 
* * optional string scheme = 4; */ java.lang.String getScheme(); /** * * *
     * Scheme to use for connecting to the host.
     * Defaults to HTTP.
     * +optional
     * 
* * optional string scheme = 4; */ com.google.protobuf.ByteString getSchemeBytes(); /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ java.util.List getHttpHeadersList(); /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ io.kubernetes.client.proto.V1.HTTPHeader getHttpHeaders(int index); /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ int getHttpHeadersCount(); /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ java.util.List getHttpHeadersOrBuilderList(); /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index); } /** * * *
   * HTTPGetAction describes an action based on HTTP Get requests.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.HTTPGetAction} */ public static final class HTTPGetAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.HTTPGetAction) HTTPGetActionOrBuilder { private static final long serialVersionUID = 0L; // Use HTTPGetAction.newBuilder() to construct. private HTTPGetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HTTPGetAction() { path_ = ""; host_ = ""; scheme_ = ""; httpHeaders_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HTTPGetAction( 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; path_ = bs; break; } case 18: { io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = port_.toBuilder(); } port_ = input.readMessage( io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(port_); port_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; host_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; scheme_ = bs; break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { httpHeaders_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } httpHeaders_.add( input.readMessage( io.kubernetes.client.proto.V1.HTTPHeader.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)) { httpHeaders_ = java.util.Collections.unmodifiableList(httpHeaders_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HTTPGetAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HTTPGetAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HTTPGetAction.class, io.kubernetes.client.proto.V1.HTTPGetAction.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * Path to access on the HTTP server.
     * +optional
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Path to access on the HTTP server.
     * +optional
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path to access on the HTTP server.
     * +optional
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 2; private io.kubernetes.client.proto.IntStr.IntOrString port_; /** * * *
     * Name or number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Name or number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public io.kubernetes.client.proto.IntStr.IntOrString getPort() { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } /** * * *
     * Name or number of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder() { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } public static final int HOST_FIELD_NUMBER = 3; private volatile java.lang.Object host_; /** * * *
     * Host name to connect to, defaults to the pod IP. You probably want to set
     * "Host" in httpHeaders instead.
     * +optional
     * 
* * optional string host = 3; */ public boolean hasHost() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Host name to connect to, defaults to the pod IP. You probably want to set
     * "Host" in httpHeaders instead.
     * +optional
     * 
* * optional string host = 3; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } } /** * * *
     * Host name to connect to, defaults to the pod IP. You probably want to set
     * "Host" in httpHeaders instead.
     * +optional
     * 
* * optional string host = 3; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEME_FIELD_NUMBER = 4; private volatile java.lang.Object scheme_; /** * * *
     * Scheme to use for connecting to the host.
     * Defaults to HTTP.
     * +optional
     * 
* * optional string scheme = 4; */ public boolean hasScheme() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Scheme to use for connecting to the host.
     * Defaults to HTTP.
     * +optional
     * 
* * optional string scheme = 4; */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; 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()) { scheme_ = s; } return s; } } /** * * *
     * Scheme to use for connecting to the host.
     * Defaults to HTTP.
     * +optional
     * 
* * optional string scheme = 4; */ public com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scheme_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HTTPHEADERS_FIELD_NUMBER = 5; private java.util.List httpHeaders_; /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public java.util.List getHttpHeadersList() { return httpHeaders_; } /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public java.util.List getHttpHeadersOrBuilderList() { return httpHeaders_; } /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public int getHttpHeadersCount() { return httpHeaders_.size(); } /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeader getHttpHeaders(int index) { return httpHeaders_.get(index); } /** * * *
     * Custom headers to set in the request. HTTP allows repeated headers.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { return httpHeaders_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPort()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, host_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scheme_); } for (int i = 0; i < httpHeaders_.size(); i++) { output.writeMessage(5, httpHeaders_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPort()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, host_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scheme_); } for (int i = 0; i < httpHeaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, httpHeaders_.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.V1.HTTPGetAction)) { return super.equals(obj); } io.kubernetes.client.proto.V1.HTTPGetAction other = (io.kubernetes.client.proto.V1.HTTPGetAction) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && getPort().equals(other.getPort()); } result = result && (hasHost() == other.hasHost()); if (hasHost()) { result = result && getHost().equals(other.getHost()); } result = result && (hasScheme() == other.hasScheme()); if (hasScheme()) { result = result && getScheme().equals(other.getScheme()); } result = result && getHttpHeadersList().equals(other.getHttpHeadersList()); 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort().hashCode(); } if (hasHost()) { hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); } if (hasScheme()) { hash = (37 * hash) + SCHEME_FIELD_NUMBER; hash = (53 * hash) + getScheme().hashCode(); } if (getHttpHeadersCount() > 0) { hash = (37 * hash) + HTTPHEADERS_FIELD_NUMBER; hash = (53 * hash) + getHttpHeadersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.HTTPGetAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HTTPGetAction 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.V1.HTTPGetAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HTTPGetAction 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.V1.HTTPGetAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HTTPGetAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.HTTPGetAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HTTPGetAction 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.V1.HTTPGetAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HTTPGetAction 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.V1.HTTPGetAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HTTPGetAction 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.V1.HTTPGetAction 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; } /** * * *
     * HTTPGetAction describes an action based on HTTP Get requests.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.HTTPGetAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.HTTPGetAction) io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HTTPGetAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HTTPGetAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HTTPGetAction.class, io.kubernetes.client.proto.V1.HTTPGetAction.Builder.class); } // Construct using io.kubernetes.client.proto.V1.HTTPGetAction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPortFieldBuilder(); getHttpHeadersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (portBuilder_ == null) { port_ = null; } else { portBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); host_ = ""; bitField0_ = (bitField0_ & ~0x00000004); scheme_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (httpHeadersBuilder_ == null) { httpHeaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { httpHeadersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HTTPGetAction_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.HTTPGetAction getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.HTTPGetAction build() { io.kubernetes.client.proto.V1.HTTPGetAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.HTTPGetAction buildPartial() { io.kubernetes.client.proto.V1.HTTPGetAction result = new io.kubernetes.client.proto.V1.HTTPGetAction(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (portBuilder_ == null) { result.port_ = port_; } else { result.port_ = portBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.host_ = host_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.scheme_ = scheme_; if (httpHeadersBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { httpHeaders_ = java.util.Collections.unmodifiableList(httpHeaders_); bitField0_ = (bitField0_ & ~0x00000010); } result.httpHeaders_ = httpHeaders_; } else { result.httpHeaders_ = httpHeadersBuilder_.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.V1.HTTPGetAction) { return mergeFrom((io.kubernetes.client.proto.V1.HTTPGetAction) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.HTTPGetAction other) { if (other == io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasPort()) { mergePort(other.getPort()); } if (other.hasHost()) { bitField0_ |= 0x00000004; host_ = other.host_; onChanged(); } if (other.hasScheme()) { bitField0_ |= 0x00000008; scheme_ = other.scheme_; onChanged(); } if (httpHeadersBuilder_ == null) { if (!other.httpHeaders_.isEmpty()) { if (httpHeaders_.isEmpty()) { httpHeaders_ = other.httpHeaders_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureHttpHeadersIsMutable(); httpHeaders_.addAll(other.httpHeaders_); } onChanged(); } } else { if (!other.httpHeaders_.isEmpty()) { if (httpHeadersBuilder_.isEmpty()) { httpHeadersBuilder_.dispose(); httpHeadersBuilder_ = null; httpHeaders_ = other.httpHeaders_; bitField0_ = (bitField0_ & ~0x00000010); httpHeadersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHttpHeadersFieldBuilder() : null; } else { httpHeadersBuilder_.addAllMessages(other.httpHeaders_); } } } 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.V1.HTTPGetAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.HTTPGetAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * Path to access on the HTTP server.
       * +optional
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Path to access on the HTTP server.
       * +optional
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path to access on the HTTP server.
       * +optional
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path to access on the HTTP server.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * Path to access on the HTTP server.
       * +optional
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path to access on the HTTP server.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } private io.kubernetes.client.proto.IntStr.IntOrString port_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> portBuilder_; /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public io.kubernetes.client.proto.IntStr.IntOrString getPort() { if (portBuilder_ == null) { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } else { return portBuilder_.getMessage(); } } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public Builder setPort(io.kubernetes.client.proto.IntStr.IntOrString value) { if (portBuilder_ == null) { if (value == null) { throw new NullPointerException(); } port_ = value; onChanged(); } else { portBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public Builder setPort( io.kubernetes.client.proto.IntStr.IntOrString.Builder builderForValue) { if (portBuilder_ == null) { port_ = builderForValue.build(); onChanged(); } else { portBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public Builder mergePort(io.kubernetes.client.proto.IntStr.IntOrString value) { if (portBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && port_ != null && port_ != io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) { port_ = io.kubernetes.client.proto.IntStr.IntOrString.newBuilder(port_) .mergeFrom(value) .buildPartial(); } else { port_ = value; } onChanged(); } else { portBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public Builder clearPort() { if (portBuilder_ == null) { port_ = null; onChanged(); } else { portBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public io.kubernetes.client.proto.IntStr.IntOrString.Builder getPortBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPortFieldBuilder().getBuilder(); } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder() { if (portBuilder_ != null) { return portBuilder_.getMessageOrBuilder(); } else { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } } /** * * *
       * Name or number of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> getPortFieldBuilder() { if (portBuilder_ == null) { portBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>( getPort(), getParentForChildren(), isClean()); port_ = null; } return portBuilder_; } private java.lang.Object host_ = ""; /** * * *
       * Host name to connect to, defaults to the pod IP. You probably want to set
       * "Host" in httpHeaders instead.
       * +optional
       * 
* * optional string host = 3; */ public boolean hasHost() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Host name to connect to, defaults to the pod IP. You probably want to set
       * "Host" in httpHeaders instead.
       * +optional
       * 
* * optional string host = 3; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Host name to connect to, defaults to the pod IP. You probably want to set
       * "Host" in httpHeaders instead.
       * +optional
       * 
* * optional string host = 3; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Host name to connect to, defaults to the pod IP. You probably want to set
       * "Host" in httpHeaders instead.
       * +optional
       * 
* * optional string host = 3; */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; host_ = value; onChanged(); return this; } /** * * *
       * Host name to connect to, defaults to the pod IP. You probably want to set
       * "Host" in httpHeaders instead.
       * +optional
       * 
* * optional string host = 3; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000004); host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * * *
       * Host name to connect to, defaults to the pod IP. You probably want to set
       * "Host" in httpHeaders instead.
       * +optional
       * 
* * optional string host = 3; */ public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; host_ = value; onChanged(); return this; } private java.lang.Object scheme_ = ""; /** * * *
       * Scheme to use for connecting to the host.
       * Defaults to HTTP.
       * +optional
       * 
* * optional string scheme = 4; */ public boolean hasScheme() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Scheme to use for connecting to the host.
       * Defaults to HTTP.
       * +optional
       * 
* * optional string scheme = 4; */ public java.lang.String getScheme() { java.lang.Object ref = scheme_; 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()) { scheme_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Scheme to use for connecting to the host.
       * Defaults to HTTP.
       * +optional
       * 
* * optional string scheme = 4; */ public com.google.protobuf.ByteString getSchemeBytes() { java.lang.Object ref = scheme_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scheme_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Scheme to use for connecting to the host.
       * Defaults to HTTP.
       * +optional
       * 
* * optional string scheme = 4; */ public Builder setScheme(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scheme_ = value; onChanged(); return this; } /** * * *
       * Scheme to use for connecting to the host.
       * Defaults to HTTP.
       * +optional
       * 
* * optional string scheme = 4; */ public Builder clearScheme() { bitField0_ = (bitField0_ & ~0x00000008); scheme_ = getDefaultInstance().getScheme(); onChanged(); return this; } /** * * *
       * Scheme to use for connecting to the host.
       * Defaults to HTTP.
       * +optional
       * 
* * optional string scheme = 4; */ public Builder setSchemeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scheme_ = value; onChanged(); return this; } private java.util.List httpHeaders_ = java.util.Collections.emptyList(); private void ensureHttpHeadersIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { httpHeaders_ = new java.util.ArrayList(httpHeaders_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPHeader, io.kubernetes.client.proto.V1.HTTPHeader.Builder, io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder> httpHeadersBuilder_; /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public java.util.List getHttpHeadersList() { if (httpHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(httpHeaders_); } else { return httpHeadersBuilder_.getMessageList(); } } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public int getHttpHeadersCount() { if (httpHeadersBuilder_ == null) { return httpHeaders_.size(); } else { return httpHeadersBuilder_.getCount(); } } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeader getHttpHeaders(int index) { if (httpHeadersBuilder_ == null) { return httpHeaders_.get(index); } else { return httpHeadersBuilder_.getMessage(index); } } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder setHttpHeaders(int index, io.kubernetes.client.proto.V1.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHttpHeadersIsMutable(); httpHeaders_.set(index, value); onChanged(); } else { httpHeadersBuilder_.setMessage(index, value); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder setHttpHeaders( int index, io.kubernetes.client.proto.V1.HTTPHeader.Builder builderForValue) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); httpHeaders_.set(index, builderForValue.build()); onChanged(); } else { httpHeadersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder addHttpHeaders(io.kubernetes.client.proto.V1.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHttpHeadersIsMutable(); httpHeaders_.add(value); onChanged(); } else { httpHeadersBuilder_.addMessage(value); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder addHttpHeaders(int index, io.kubernetes.client.proto.V1.HTTPHeader value) { if (httpHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHttpHeadersIsMutable(); httpHeaders_.add(index, value); onChanged(); } else { httpHeadersBuilder_.addMessage(index, value); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder addHttpHeaders( io.kubernetes.client.proto.V1.HTTPHeader.Builder builderForValue) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); httpHeaders_.add(builderForValue.build()); onChanged(); } else { httpHeadersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder addHttpHeaders( int index, io.kubernetes.client.proto.V1.HTTPHeader.Builder builderForValue) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); httpHeaders_.add(index, builderForValue.build()); onChanged(); } else { httpHeadersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder addAllHttpHeaders( java.lang.Iterable values) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, httpHeaders_); onChanged(); } else { httpHeadersBuilder_.addAllMessages(values); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder clearHttpHeaders() { if (httpHeadersBuilder_ == null) { httpHeaders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { httpHeadersBuilder_.clear(); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public Builder removeHttpHeaders(int index) { if (httpHeadersBuilder_ == null) { ensureHttpHeadersIsMutable(); httpHeaders_.remove(index); onChanged(); } else { httpHeadersBuilder_.remove(index); } return this; } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeader.Builder getHttpHeadersBuilder(int index) { return getHttpHeadersFieldBuilder().getBuilder(index); } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index) { if (httpHeadersBuilder_ == null) { return httpHeaders_.get(index); } else { return httpHeadersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public java.util.List getHttpHeadersOrBuilderList() { if (httpHeadersBuilder_ != null) { return httpHeadersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(httpHeaders_); } } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeader.Builder addHttpHeadersBuilder() { return getHttpHeadersFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.HTTPHeader.getDefaultInstance()); } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public io.kubernetes.client.proto.V1.HTTPHeader.Builder addHttpHeadersBuilder(int index) { return getHttpHeadersFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.HTTPHeader.getDefaultInstance()); } /** * * *
       * Custom headers to set in the request. HTTP allows repeated headers.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; */ public java.util.List getHttpHeadersBuilderList() { return getHttpHeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPHeader, io.kubernetes.client.proto.V1.HTTPHeader.Builder, io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder> getHttpHeadersFieldBuilder() { if (httpHeadersBuilder_ == null) { httpHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPHeader, io.kubernetes.client.proto.V1.HTTPHeader.Builder, io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder>( httpHeaders_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); httpHeaders_ = null; } return httpHeadersBuilder_; } @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.core.v1.HTTPGetAction) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.HTTPGetAction) private static final io.kubernetes.client.proto.V1.HTTPGetAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.HTTPGetAction(); } public static io.kubernetes.client.proto.V1.HTTPGetAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HTTPGetAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HTTPGetAction(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.V1.HTTPGetAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HTTPHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.HTTPHeader) com.google.protobuf.MessageOrBuilder { /** * * *
     * The header field name
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * The header field name
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * The header field name
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * The header field value
     * 
* * optional string value = 2; */ boolean hasValue(); /** * * *
     * The header field value
     * 
* * optional string value = 2; */ java.lang.String getValue(); /** * * *
     * The header field value
     * 
* * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * * *
   * HTTPHeader describes a custom header to be used in HTTP probes
   * 
* * Protobuf type {@code k8s.io.api.core.v1.HTTPHeader} */ public static final class HTTPHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.HTTPHeader) HTTPHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use HTTPHeader.newBuilder() to construct. private HTTPHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HTTPHeader() { name_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HTTPHeader( 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; value_ = 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.V1.internal_static_k8s_io_api_core_v1_HTTPHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HTTPHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HTTPHeader.class, io.kubernetes.client.proto.V1.HTTPHeader.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * The header field name
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The header field name
     * 
* * 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; } } /** * * *
     * The header field name
     * 
* * 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 VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * * *
     * The header field value
     * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The header field value
     * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * * *
     * The header field value
     * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } 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, value_); } 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.V1.HTTPHeader)) { return super.equals(obj); } io.kubernetes.client.proto.V1.HTTPHeader other = (io.kubernetes.client.proto.V1.HTTPHeader) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.HTTPHeader parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HTTPHeader 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.V1.HTTPHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HTTPHeader 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.V1.HTTPHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HTTPHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.HTTPHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HTTPHeader 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.V1.HTTPHeader parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HTTPHeader 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.V1.HTTPHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HTTPHeader 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.V1.HTTPHeader 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; } /** * * *
     * HTTPHeader describes a custom header to be used in HTTP probes
     * 
* * Protobuf type {@code k8s.io.api.core.v1.HTTPHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.HTTPHeader) io.kubernetes.client.proto.V1.HTTPHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HTTPHeader_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HTTPHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HTTPHeader.class, io.kubernetes.client.proto.V1.HTTPHeader.Builder.class); } // Construct using io.kubernetes.client.proto.V1.HTTPHeader.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HTTPHeader_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.HTTPHeader getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.HTTPHeader.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.HTTPHeader build() { io.kubernetes.client.proto.V1.HTTPHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.HTTPHeader buildPartial() { io.kubernetes.client.proto.V1.HTTPHeader result = new io.kubernetes.client.proto.V1.HTTPHeader(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.value_ = value_; 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.V1.HTTPHeader) { return mergeFrom((io.kubernetes.client.proto.V1.HTTPHeader) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.HTTPHeader other) { if (other == io.kubernetes.client.proto.V1.HTTPHeader.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; 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.V1.HTTPHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.HTTPHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The header field name
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The header field name
       * 
* * 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; } } /** * * *
       * The header field name
       * 
* * 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; } } /** * * *
       * The header field name
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * The header field name
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * The header field name
       * 
* * 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 value_ = ""; /** * * *
       * The header field value
       * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The header field value
       * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The header field value
       * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The header field value
       * 
* * optional string value = 2; */ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * * *
       * The header field value
       * 
* * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * * *
       * The header field value
       * 
* * optional string value = 2; */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = 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.core.v1.HTTPHeader) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.HTTPHeader) private static final io.kubernetes.client.proto.V1.HTTPHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.HTTPHeader(); } public static io.kubernetes.client.proto.V1.HTTPHeader getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HTTPHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HTTPHeader(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.V1.HTTPHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostAliasOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.HostAlias) com.google.protobuf.MessageOrBuilder { /** * * *
     * IP address of the host file entry.
     * 
* * optional string ip = 1; */ boolean hasIp(); /** * * *
     * IP address of the host file entry.
     * 
* * optional string ip = 1; */ java.lang.String getIp(); /** * * *
     * IP address of the host file entry.
     * 
* * optional string ip = 1; */ com.google.protobuf.ByteString getIpBytes(); /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ java.util.List getHostnamesList(); /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ int getHostnamesCount(); /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ java.lang.String getHostnames(int index); /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ com.google.protobuf.ByteString getHostnamesBytes(int index); } /** * * *
   * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
   * pod's hosts file.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.HostAlias} */ public static final class HostAlias extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.HostAlias) HostAliasOrBuilder { private static final long serialVersionUID = 0L; // Use HostAlias.newBuilder() to construct. private HostAlias(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostAlias() { ip_ = ""; hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostAlias( 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; ip_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { hostnames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } hostnames_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { hostnames_ = hostnames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_HostAlias_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HostAlias_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HostAlias.class, io.kubernetes.client.proto.V1.HostAlias.Builder.class); } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private volatile java.lang.Object ip_; /** * * *
     * IP address of the host file entry.
     * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * IP address of the host file entry.
     * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * * *
     * IP address of the host file entry.
     * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTNAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList hostnames_; /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ public com.google.protobuf.ProtocolStringList getHostnamesList() { return hostnames_; } /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ public int getHostnamesCount() { return hostnames_.size(); } /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ public java.lang.String getHostnames(int index) { return hostnames_.get(index); } /** * * *
     * Hostnames for the above IP address.
     * 
* * repeated string hostnames = 2; */ public com.google.protobuf.ByteString getHostnamesBytes(int index) { return hostnames_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); } for (int i = 0; i < hostnames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostnames_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); } { int dataSize = 0; for (int i = 0; i < hostnames_.size(); i++) { dataSize += computeStringSizeNoTag(hostnames_.getRaw(i)); } size += dataSize; size += 1 * getHostnamesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.HostAlias)) { return super.equals(obj); } io.kubernetes.client.proto.V1.HostAlias other = (io.kubernetes.client.proto.V1.HostAlias) obj; boolean result = true; result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && getIp().equals(other.getIp()); } result = result && getHostnamesList().equals(other.getHostnamesList()); 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 (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); } if (getHostnamesCount() > 0) { hash = (37 * hash) + HOSTNAMES_FIELD_NUMBER; hash = (53 * hash) + getHostnamesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.HostAlias parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HostAlias 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.V1.HostAlias parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HostAlias 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.V1.HostAlias parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HostAlias parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.HostAlias parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HostAlias 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.V1.HostAlias parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HostAlias 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.V1.HostAlias parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HostAlias 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.V1.HostAlias 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; } /** * * *
     * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
     * pod's hosts file.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.HostAlias} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.HostAlias) io.kubernetes.client.proto.V1.HostAliasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HostAlias_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HostAlias_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HostAlias.class, io.kubernetes.client.proto.V1.HostAlias.Builder.class); } // Construct using io.kubernetes.client.proto.V1.HostAlias.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(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HostAlias_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.HostAlias getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.HostAlias.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.HostAlias build() { io.kubernetes.client.proto.V1.HostAlias result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.HostAlias buildPartial() { io.kubernetes.client.proto.V1.HostAlias result = new io.kubernetes.client.proto.V1.HostAlias(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (((bitField0_ & 0x00000002) == 0x00000002)) { hostnames_ = hostnames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.hostnames_ = hostnames_; 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.V1.HostAlias) { return mergeFrom((io.kubernetes.client.proto.V1.HostAlias) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.HostAlias other) { if (other == io.kubernetes.client.proto.V1.HostAlias.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; onChanged(); } if (!other.hostnames_.isEmpty()) { if (hostnames_.isEmpty()) { hostnames_ = other.hostnames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureHostnamesIsMutable(); hostnames_.addAll(other.hostnames_); } 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.V1.HostAlias parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.HostAlias) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * * *
       * IP address of the host file entry.
       * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * IP address of the host file entry.
       * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * IP address of the host file entry.
       * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * IP address of the host file entry.
       * 
* * optional string ip = 1; */ public Builder setIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * * *
       * IP address of the host file entry.
       * 
* * optional string ip = 1; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * * *
       * IP address of the host file entry.
       * 
* * optional string ip = 1; */ public Builder setIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureHostnamesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { hostnames_ = new com.google.protobuf.LazyStringArrayList(hostnames_); bitField0_ |= 0x00000002; } } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public com.google.protobuf.ProtocolStringList getHostnamesList() { return hostnames_.getUnmodifiableView(); } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public int getHostnamesCount() { return hostnames_.size(); } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public java.lang.String getHostnames(int index) { return hostnames_.get(index); } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public com.google.protobuf.ByteString getHostnamesBytes(int index) { return hostnames_.getByteString(index); } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public Builder setHostnames(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureHostnamesIsMutable(); hostnames_.set(index, value); onChanged(); return this; } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public Builder addHostnames(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureHostnamesIsMutable(); hostnames_.add(value); onChanged(); return this; } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public Builder addAllHostnames(java.lang.Iterable values) { ensureHostnamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hostnames_); onChanged(); return this; } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public Builder clearHostnames() { hostnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * Hostnames for the above IP address.
       * 
* * repeated string hostnames = 2; */ public Builder addHostnamesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureHostnamesIsMutable(); hostnames_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.HostAlias) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.HostAlias) private static final io.kubernetes.client.proto.V1.HostAlias DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.HostAlias(); } public static io.kubernetes.client.proto.V1.HostAlias getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HostAlias parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostAlias(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.V1.HostAlias getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostPathVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.HostPathVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Path of the directory on the host.
     * If the path is a symlink, it will follow the link to the real path.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * Path of the directory on the host.
     * If the path is a symlink, it will follow the link to the real path.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * Path of the directory on the host.
     * If the path is a symlink, it will follow the link to the real path.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Type for HostPath Volume
     * Defaults to ""
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional string type = 2; */ boolean hasType(); /** * * *
     * Type for HostPath Volume
     * Defaults to ""
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional string type = 2; */ java.lang.String getType(); /** * * *
     * Type for HostPath Volume
     * Defaults to ""
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional string type = 2; */ com.google.protobuf.ByteString getTypeBytes(); } /** * * *
   * Represents a host path mapped into a pod.
   * Host path volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.HostPathVolumeSource} */ public static final class HostPathVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.HostPathVolumeSource) HostPathVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use HostPathVolumeSource.newBuilder() to construct. private HostPathVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostPathVolumeSource() { path_ = ""; type_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostPathVolumeSource( 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; path_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; type_ = 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 .V1 .internal_static_k8s_io_api_core_v1_HostPathVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HostPathVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HostPathVolumeSource.class, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * Path of the directory on the host.
     * If the path is a symlink, it will follow the link to the real path.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Path of the directory on the host.
     * If the path is a symlink, it will follow the link to the real path.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path of the directory on the host.
     * If the path is a symlink, it will follow the link to the real path.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** * * *
     * Type for HostPath Volume
     * Defaults to ""
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional string type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Type for HostPath Volume
     * Defaults to ""
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional string type = 2; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type for HostPath Volume
     * Defaults to ""
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional string type = 2; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); } 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, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); } 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.V1.HostPathVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.HostPathVolumeSource other = (io.kubernetes.client.proto.V1.HostPathVolumeSource) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.HostPathVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource 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.V1.HostPathVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource 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.V1.HostPathVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource 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.V1.HostPathVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource 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.V1.HostPathVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource 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.V1.HostPathVolumeSource 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; } /** * * *
     * Represents a host path mapped into a pod.
     * Host path volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.HostPathVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.HostPathVolumeSource) io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HostPathVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_HostPathVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.HostPathVolumeSource.class, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.HostPathVolumeSource.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_HostPathVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.HostPathVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.HostPathVolumeSource build() { io.kubernetes.client.proto.V1.HostPathVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.HostPathVolumeSource buildPartial() { io.kubernetes.client.proto.V1.HostPathVolumeSource result = new io.kubernetes.client.proto.V1.HostPathVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; 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.V1.HostPathVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.HostPathVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.HostPathVolumeSource other) { if (other == io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000002; type_ = other.type_; 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.V1.HostPathVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.HostPathVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * Path of the directory on the host.
       * If the path is a symlink, it will follow the link to the real path.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Path of the directory on the host.
       * If the path is a symlink, it will follow the link to the real path.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path of the directory on the host.
       * If the path is a symlink, it will follow the link to the real path.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path of the directory on the host.
       * If the path is a symlink, it will follow the link to the real path.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * Path of the directory on the host.
       * If the path is a symlink, it will follow the link to the real path.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path of the directory on the host.
       * If the path is a symlink, it will follow the link to the real path.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** * * *
       * Type for HostPath Volume
       * Defaults to ""
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional string type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Type for HostPath Volume
       * Defaults to ""
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional string type = 2; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type for HostPath Volume
       * Defaults to ""
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional string type = 2; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type for HostPath Volume
       * Defaults to ""
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional string type = 2; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * * *
       * Type for HostPath Volume
       * Defaults to ""
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional string type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type for HostPath Volume
       * Defaults to ""
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional string type = 2; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } @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.core.v1.HostPathVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.HostPathVolumeSource) private static final io.kubernetes.client.proto.V1.HostPathVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.HostPathVolumeSource(); } public static io.kubernetes.client.proto.V1.HostPathVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HostPathVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostPathVolumeSource(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.V1.HostPathVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ISCSIPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ISCSIPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ boolean hasTargetPortal(); /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ java.lang.String getTargetPortal(); /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ com.google.protobuf.ByteString getTargetPortalBytes(); /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ boolean hasIqn(); /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ java.lang.String getIqn(); /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ com.google.protobuf.ByteString getIqnBytes(); /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ boolean hasLun(); /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ int getLun(); /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ boolean hasIscsiInterface(); /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ java.lang.String getIscsiInterface(); /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ com.google.protobuf.ByteString getIscsiInterfaceBytes(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ boolean hasFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ java.lang.String getFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean getReadOnly(); /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ java.util.List getPortalsList(); /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ int getPortalsCount(); /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ java.lang.String getPortals(int index); /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ com.google.protobuf.ByteString getPortalsBytes(int index); /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ boolean hasChapAuthDiscovery(); /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ boolean getChapAuthDiscovery(); /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ boolean hasChapAuthSession(); /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ boolean getChapAuthSession(); /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ boolean hasSecretRef(); /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ io.kubernetes.client.proto.V1.SecretReference getSecretRef(); /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ boolean hasInitiatorName(); /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ java.lang.String getInitiatorName(); /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ com.google.protobuf.ByteString getInitiatorNameBytes(); } /** * * *
   * ISCSIPersistentVolumeSource represents an ISCSI disk.
   * ISCSI volumes can only be mounted as read/write once.
   * ISCSI volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ISCSIPersistentVolumeSource} */ public static final class ISCSIPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ISCSIPersistentVolumeSource) ISCSIPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ISCSIPersistentVolumeSource.newBuilder() to construct. private ISCSIPersistentVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ISCSIPersistentVolumeSource() { targetPortal_ = ""; iqn_ = ""; lun_ = 0; iscsiInterface_ = ""; fsType_ = ""; readOnly_ = false; portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; chapAuthDiscovery_ = false; chapAuthSession_ = false; initiatorName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ISCSIPersistentVolumeSource( 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; targetPortal_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; iqn_ = bs; break; } case 24: { bitField0_ |= 0x00000004; lun_ = input.readInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; iscsiInterface_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; fsType_ = bs; break; } case 48: { bitField0_ |= 0x00000020; readOnly_ = input.readBool(); break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { portals_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } portals_.add(bs); break; } case 64: { bitField0_ |= 0x00000040; chapAuthDiscovery_ = input.readBool(); break; } case 82: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 88: { bitField0_ |= 0x00000080; chapAuthSession_ = input.readBool(); break; } case 98: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; initiatorName_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { portals_ = portals_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.class, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int TARGETPORTAL_FIELD_NUMBER = 1; private volatile java.lang.Object targetPortal_; /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ public boolean hasTargetPortal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ public java.lang.String getTargetPortal() { java.lang.Object ref = targetPortal_; 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()) { targetPortal_ = s; } return s; } } /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ public com.google.protobuf.ByteString getTargetPortalBytes() { java.lang.Object ref = targetPortal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetPortal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IQN_FIELD_NUMBER = 2; private volatile java.lang.Object iqn_; /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ public boolean hasIqn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ public java.lang.String getIqn() { java.lang.Object ref = iqn_; 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()) { iqn_ = s; } return s; } } /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ public com.google.protobuf.ByteString getIqnBytes() { java.lang.Object ref = iqn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LUN_FIELD_NUMBER = 3; private int lun_; /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ public boolean hasLun() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ public int getLun() { return lun_; } public static final int ISCSIINTERFACE_FIELD_NUMBER = 4; private volatile java.lang.Object iscsiInterface_; /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ public boolean hasIscsiInterface() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ public java.lang.String getIscsiInterface() { java.lang.Object ref = iscsiInterface_; 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()) { iscsiInterface_ = s; } return s; } } /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ public com.google.protobuf.ByteString getIscsiInterfaceBytes() { java.lang.Object ref = iscsiInterface_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iscsiInterface_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 5; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ public boolean hasFsType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 6; private boolean readOnly_; /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } public static final int PORTALS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList portals_; /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public com.google.protobuf.ProtocolStringList getPortalsList() { return portals_; } /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public int getPortalsCount() { return portals_.size(); } /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public java.lang.String getPortals(int index) { return portals_.get(index); } /** * * *
     * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public com.google.protobuf.ByteString getPortalsBytes(int index) { return portals_.getByteString(index); } public static final int CHAPAUTHDISCOVERY_FIELD_NUMBER = 8; private boolean chapAuthDiscovery_; /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ public boolean hasChapAuthDiscovery() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ public boolean getChapAuthDiscovery() { return chapAuthDiscovery_; } public static final int CHAPAUTHSESSION_FIELD_NUMBER = 11; private boolean chapAuthSession_; /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ public boolean hasChapAuthSession() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ public boolean getChapAuthSession() { return chapAuthSession_; } public static final int SECRETREF_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.SecretReference secretRef_; /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } public static final int INITIATORNAME_FIELD_NUMBER = 12; private volatile java.lang.Object initiatorName_; /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ public boolean hasInitiatorName() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ public java.lang.String getInitiatorName() { java.lang.Object ref = initiatorName_; 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()) { initiatorName_ = s; } return s; } } /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ public com.google.protobuf.ByteString getInitiatorNameBytes() { java.lang.Object ref = initiatorName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); initiatorName_ = 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, targetPortal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, iqn_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, lun_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, iscsiInterface_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fsType_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, readOnly_); } for (int i = 0; i < portals_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, portals_.getRaw(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(8, chapAuthDiscovery_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(10, getSecretRef()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(11, chapAuthSession_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, initiatorName_); } 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, targetPortal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, iqn_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, lun_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, iscsiInterface_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fsType_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, readOnly_); } { int dataSize = 0; for (int i = 0; i < portals_.size(); i++) { dataSize += computeStringSizeNoTag(portals_.getRaw(i)); } size += dataSize; size += 1 * getPortalsList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, chapAuthDiscovery_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSecretRef()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, chapAuthSession_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, initiatorName_); } 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.V1.ISCSIPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource other = (io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource) obj; boolean result = true; result = result && (hasTargetPortal() == other.hasTargetPortal()); if (hasTargetPortal()) { result = result && getTargetPortal().equals(other.getTargetPortal()); } result = result && (hasIqn() == other.hasIqn()); if (hasIqn()) { result = result && getIqn().equals(other.getIqn()); } result = result && (hasLun() == other.hasLun()); if (hasLun()) { result = result && (getLun() == other.getLun()); } result = result && (hasIscsiInterface() == other.hasIscsiInterface()); if (hasIscsiInterface()) { result = result && getIscsiInterface().equals(other.getIscsiInterface()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && getPortalsList().equals(other.getPortalsList()); result = result && (hasChapAuthDiscovery() == other.hasChapAuthDiscovery()); if (hasChapAuthDiscovery()) { result = result && (getChapAuthDiscovery() == other.getChapAuthDiscovery()); } result = result && (hasChapAuthSession() == other.hasChapAuthSession()); if (hasChapAuthSession()) { result = result && (getChapAuthSession() == other.getChapAuthSession()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasInitiatorName() == other.hasInitiatorName()); if (hasInitiatorName()) { result = result && getInitiatorName().equals(other.getInitiatorName()); } 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 (hasTargetPortal()) { hash = (37 * hash) + TARGETPORTAL_FIELD_NUMBER; hash = (53 * hash) + getTargetPortal().hashCode(); } if (hasIqn()) { hash = (37 * hash) + IQN_FIELD_NUMBER; hash = (53 * hash) + getIqn().hashCode(); } if (hasLun()) { hash = (37 * hash) + LUN_FIELD_NUMBER; hash = (53 * hash) + getLun(); } if (hasIscsiInterface()) { hash = (37 * hash) + ISCSIINTERFACE_FIELD_NUMBER; hash = (53 * hash) + getIscsiInterface().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (getPortalsCount() > 0) { hash = (37 * hash) + PORTALS_FIELD_NUMBER; hash = (53 * hash) + getPortalsList().hashCode(); } if (hasChapAuthDiscovery()) { hash = (37 * hash) + CHAPAUTHDISCOVERY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChapAuthDiscovery()); } if (hasChapAuthSession()) { hash = (37 * hash) + CHAPAUTHSESSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChapAuthSession()); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasInitiatorName()) { hash = (37 * hash) + INITIATORNAME_FIELD_NUMBER; hash = (53 * hash) + getInitiatorName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource 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.V1.ISCSIPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource 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.V1.ISCSIPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource 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.V1.ISCSIPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource 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.V1.ISCSIPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource 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.V1.ISCSIPersistentVolumeSource 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; } /** * * *
     * ISCSIPersistentVolumeSource represents an ISCSI disk.
     * ISCSI volumes can only be mounted as read/write once.
     * ISCSI volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ISCSIPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ISCSIPersistentVolumeSource) io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.class, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); targetPortal_ = ""; bitField0_ = (bitField0_ & ~0x00000001); iqn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); lun_ = 0; bitField0_ = (bitField0_ & ~0x00000004); iscsiInterface_ = ""; bitField0_ = (bitField0_ & ~0x00000008); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000010); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000020); portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); chapAuthDiscovery_ = false; bitField0_ = (bitField0_ & ~0x00000080); chapAuthSession_ = false; bitField0_ = (bitField0_ & ~0x00000100); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); initiatorName_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource build() { io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource result = new io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetPortal_ = targetPortal_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.iqn_ = iqn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.lun_ = lun_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.iscsiInterface_ = iscsiInterface_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.readOnly_ = readOnly_; if (((bitField0_ & 0x00000040) == 0x00000040)) { portals_ = portals_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.portals_ = portals_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.chapAuthDiscovery_ = chapAuthDiscovery_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.chapAuthSession_ = chapAuthSession_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } result.initiatorName_ = initiatorName_; 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.V1.ISCSIPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasTargetPortal()) { bitField0_ |= 0x00000001; targetPortal_ = other.targetPortal_; onChanged(); } if (other.hasIqn()) { bitField0_ |= 0x00000002; iqn_ = other.iqn_; onChanged(); } if (other.hasLun()) { setLun(other.getLun()); } if (other.hasIscsiInterface()) { bitField0_ |= 0x00000008; iscsiInterface_ = other.iscsiInterface_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000010; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (!other.portals_.isEmpty()) { if (portals_.isEmpty()) { portals_ = other.portals_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePortalsIsMutable(); portals_.addAll(other.portals_); } onChanged(); } if (other.hasChapAuthDiscovery()) { setChapAuthDiscovery(other.getChapAuthDiscovery()); } if (other.hasChapAuthSession()) { setChapAuthSession(other.getChapAuthSession()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasInitiatorName()) { bitField0_ |= 0x00000400; initiatorName_ = other.initiatorName_; 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.V1.ISCSIPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object targetPortal_ = ""; /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public boolean hasTargetPortal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public java.lang.String getTargetPortal() { java.lang.Object ref = targetPortal_; 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()) { targetPortal_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public com.google.protobuf.ByteString getTargetPortalBytes() { java.lang.Object ref = targetPortal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetPortal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public Builder setTargetPortal(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetPortal_ = value; onChanged(); return this; } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public Builder clearTargetPortal() { bitField0_ = (bitField0_ & ~0x00000001); targetPortal_ = getDefaultInstance().getTargetPortal(); onChanged(); return this; } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public Builder setTargetPortalBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetPortal_ = value; onChanged(); return this; } private java.lang.Object iqn_ = ""; /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public boolean hasIqn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public java.lang.String getIqn() { java.lang.Object ref = iqn_; 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()) { iqn_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public com.google.protobuf.ByteString getIqnBytes() { java.lang.Object ref = iqn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public Builder setIqn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; iqn_ = value; onChanged(); return this; } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public Builder clearIqn() { bitField0_ = (bitField0_ & ~0x00000002); iqn_ = getDefaultInstance().getIqn(); onChanged(); return this; } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public Builder setIqnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; iqn_ = value; onChanged(); return this; } private int lun_; /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public boolean hasLun() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public int getLun() { return lun_; } /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public Builder setLun(int value) { bitField0_ |= 0x00000004; lun_ = value; onChanged(); return this; } /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public Builder clearLun() { bitField0_ = (bitField0_ & ~0x00000004); lun_ = 0; onChanged(); return this; } private java.lang.Object iscsiInterface_ = ""; /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public boolean hasIscsiInterface() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public java.lang.String getIscsiInterface() { java.lang.Object ref = iscsiInterface_; 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()) { iscsiInterface_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public com.google.protobuf.ByteString getIscsiInterfaceBytes() { java.lang.Object ref = iscsiInterface_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iscsiInterface_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public Builder setIscsiInterface(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; iscsiInterface_ = value; onChanged(); return this; } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public Builder clearIscsiInterface() { bitField0_ = (bitField0_ & ~0x00000008); iscsiInterface_ = getDefaultInstance().getIscsiInterface(); onChanged(); return this; } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public Builder setIscsiInterfaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; iscsiInterface_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public boolean hasFsType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000010); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000020; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000020); readOnly_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePortalsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { portals_ = new com.google.protobuf.LazyStringArrayList(portals_); bitField0_ |= 0x00000040; } } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public com.google.protobuf.ProtocolStringList getPortalsList() { return portals_.getUnmodifiableView(); } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public int getPortalsCount() { return portals_.size(); } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public java.lang.String getPortals(int index) { return portals_.get(index); } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public com.google.protobuf.ByteString getPortalsBytes(int index) { return portals_.getByteString(index); } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder setPortals(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePortalsIsMutable(); portals_.set(index, value); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder addPortals(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePortalsIsMutable(); portals_.add(value); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder addAllPortals(java.lang.Iterable values) { ensurePortalsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, portals_); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder clearPortals() { portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder addPortalsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePortalsIsMutable(); portals_.add(value); onChanged(); return this; } private boolean chapAuthDiscovery_; /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public boolean hasChapAuthDiscovery() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public boolean getChapAuthDiscovery() { return chapAuthDiscovery_; } /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public Builder setChapAuthDiscovery(boolean value) { bitField0_ |= 0x00000080; chapAuthDiscovery_ = value; onChanged(); return this; } /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public Builder clearChapAuthDiscovery() { bitField0_ = (bitField0_ & ~0x00000080); chapAuthDiscovery_ = false; onChanged(); return this; } private boolean chapAuthSession_; /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public boolean hasChapAuthSession() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public boolean getChapAuthSession() { return chapAuthSession_; } /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public Builder setChapAuthSession(boolean value) { bitField0_ |= 0x00000100; chapAuthSession_ = value; onChanged(); return this; } /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public Builder clearChapAuthSession() { bitField0_ = (bitField0_ & ~0x00000100); chapAuthSession_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecretReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> secretRefBuilder_; /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000200; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private java.lang.Object initiatorName_ = ""; /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public boolean hasInitiatorName() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public java.lang.String getInitiatorName() { java.lang.Object ref = initiatorName_; 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()) { initiatorName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public com.google.protobuf.ByteString getInitiatorNameBytes() { java.lang.Object ref = initiatorName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); initiatorName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public Builder setInitiatorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; initiatorName_ = value; onChanged(); return this; } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public Builder clearInitiatorName() { bitField0_ = (bitField0_ & ~0x00000400); initiatorName_ = getDefaultInstance().getInitiatorName(); onChanged(); return this; } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public Builder setInitiatorNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; initiatorName_ = 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.core.v1.ISCSIPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ISCSIPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ISCSIPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ISCSIPersistentVolumeSource(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.V1.ISCSIPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ISCSIVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ISCSIVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ boolean hasTargetPortal(); /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ java.lang.String getTargetPortal(); /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ com.google.protobuf.ByteString getTargetPortalBytes(); /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ boolean hasIqn(); /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ java.lang.String getIqn(); /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ com.google.protobuf.ByteString getIqnBytes(); /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ boolean hasLun(); /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ int getLun(); /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ boolean hasIscsiInterface(); /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ java.lang.String getIscsiInterface(); /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ com.google.protobuf.ByteString getIscsiInterfaceBytes(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ boolean hasFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ java.lang.String getFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ boolean getReadOnly(); /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ java.util.List getPortalsList(); /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ int getPortalsCount(); /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ java.lang.String getPortals(int index); /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ com.google.protobuf.ByteString getPortalsBytes(int index); /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ boolean hasChapAuthDiscovery(); /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ boolean getChapAuthDiscovery(); /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ boolean hasChapAuthSession(); /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ boolean getChapAuthSession(); /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ boolean hasSecretRef(); /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ boolean hasInitiatorName(); /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ java.lang.String getInitiatorName(); /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ com.google.protobuf.ByteString getInitiatorNameBytes(); } /** * * *
   * Represents an ISCSI disk.
   * ISCSI volumes can only be mounted as read/write once.
   * ISCSI volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ISCSIVolumeSource} */ public static final class ISCSIVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ISCSIVolumeSource) ISCSIVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ISCSIVolumeSource.newBuilder() to construct. private ISCSIVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ISCSIVolumeSource() { targetPortal_ = ""; iqn_ = ""; lun_ = 0; iscsiInterface_ = ""; fsType_ = ""; readOnly_ = false; portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; chapAuthDiscovery_ = false; chapAuthSession_ = false; initiatorName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ISCSIVolumeSource( 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; targetPortal_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; iqn_ = bs; break; } case 24: { bitField0_ |= 0x00000004; lun_ = input.readInt32(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; iscsiInterface_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; fsType_ = bs; break; } case 48: { bitField0_ |= 0x00000020; readOnly_ = input.readBool(); break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { portals_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } portals_.add(bs); break; } case 64: { bitField0_ |= 0x00000040; chapAuthDiscovery_ = input.readBool(); break; } case 82: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 88: { bitField0_ |= 0x00000080; chapAuthSession_ = input.readBool(); break; } case 98: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; initiatorName_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { portals_ = portals_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ISCSIVolumeSource.class, io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder.class); } private int bitField0_; public static final int TARGETPORTAL_FIELD_NUMBER = 1; private volatile java.lang.Object targetPortal_; /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ public boolean hasTargetPortal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ public java.lang.String getTargetPortal() { java.lang.Object ref = targetPortal_; 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()) { targetPortal_ = s; } return s; } } /** * * *
     * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * 
* * optional string targetPortal = 1; */ public com.google.protobuf.ByteString getTargetPortalBytes() { java.lang.Object ref = targetPortal_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetPortal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IQN_FIELD_NUMBER = 2; private volatile java.lang.Object iqn_; /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ public boolean hasIqn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ public java.lang.String getIqn() { java.lang.Object ref = iqn_; 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()) { iqn_ = s; } return s; } } /** * * *
     * Target iSCSI Qualified Name.
     * 
* * optional string iqn = 2; */ public com.google.protobuf.ByteString getIqnBytes() { java.lang.Object ref = iqn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LUN_FIELD_NUMBER = 3; private int lun_; /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ public boolean hasLun() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * iSCSI Target Lun number.
     * 
* * optional int32 lun = 3; */ public int getLun() { return lun_; } public static final int ISCSIINTERFACE_FIELD_NUMBER = 4; private volatile java.lang.Object iscsiInterface_; /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ public boolean hasIscsiInterface() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ public java.lang.String getIscsiInterface() { java.lang.Object ref = iscsiInterface_; 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()) { iscsiInterface_ = s; } return s; } } /** * * *
     * iSCSI Interface Name that uses an iSCSI transport.
     * Defaults to 'default' (tcp).
     * +optional
     * 
* * optional string iscsiInterface = 4; */ public com.google.protobuf.ByteString getIscsiInterfaceBytes() { java.lang.Object ref = iscsiInterface_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iscsiInterface_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 5; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ public boolean hasFsType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 5; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 6; private boolean readOnly_; /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } public static final int PORTALS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList portals_; /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public com.google.protobuf.ProtocolStringList getPortalsList() { return portals_; } /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public int getPortalsCount() { return portals_.size(); } /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public java.lang.String getPortals(int index) { return portals_.get(index); } /** * * *
     * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
     * is other than default (typically TCP ports 860 and 3260).
     * +optional
     * 
* * repeated string portals = 7; */ public com.google.protobuf.ByteString getPortalsBytes(int index) { return portals_.getByteString(index); } public static final int CHAPAUTHDISCOVERY_FIELD_NUMBER = 8; private boolean chapAuthDiscovery_; /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ public boolean hasChapAuthDiscovery() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * whether support iSCSI Discovery CHAP authentication
     * +optional
     * 
* * optional bool chapAuthDiscovery = 8; */ public boolean getChapAuthDiscovery() { return chapAuthDiscovery_; } public static final int CHAPAUTHSESSION_FIELD_NUMBER = 11; private boolean chapAuthSession_; /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ public boolean hasChapAuthSession() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * whether support iSCSI Session CHAP authentication
     * +optional
     * 
* * optional bool chapAuthSession = 11; */ public boolean getChapAuthSession() { return chapAuthSession_; } public static final int SECRETREF_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * CHAP Secret for iSCSI target and initiator authentication
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } public static final int INITIATORNAME_FIELD_NUMBER = 12; private volatile java.lang.Object initiatorName_; /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ public boolean hasInitiatorName() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ public java.lang.String getInitiatorName() { java.lang.Object ref = initiatorName_; 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()) { initiatorName_ = s; } return s; } } /** * * *
     * Custom iSCSI Initiator Name.
     * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
     * <target portal>:<volume name> will be created for the connection.
     * +optional
     * 
* * optional string initiatorName = 12; */ public com.google.protobuf.ByteString getInitiatorNameBytes() { java.lang.Object ref = initiatorName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); initiatorName_ = 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, targetPortal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, iqn_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, lun_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, iscsiInterface_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fsType_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, readOnly_); } for (int i = 0; i < portals_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, portals_.getRaw(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(8, chapAuthDiscovery_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(10, getSecretRef()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(11, chapAuthSession_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, initiatorName_); } 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, targetPortal_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, iqn_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, lun_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, iscsiInterface_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fsType_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, readOnly_); } { int dataSize = 0; for (int i = 0; i < portals_.size(); i++) { dataSize += computeStringSizeNoTag(portals_.getRaw(i)); } size += dataSize; size += 1 * getPortalsList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, chapAuthDiscovery_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSecretRef()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, chapAuthSession_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, initiatorName_); } 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.V1.ISCSIVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ISCSIVolumeSource other = (io.kubernetes.client.proto.V1.ISCSIVolumeSource) obj; boolean result = true; result = result && (hasTargetPortal() == other.hasTargetPortal()); if (hasTargetPortal()) { result = result && getTargetPortal().equals(other.getTargetPortal()); } result = result && (hasIqn() == other.hasIqn()); if (hasIqn()) { result = result && getIqn().equals(other.getIqn()); } result = result && (hasLun() == other.hasLun()); if (hasLun()) { result = result && (getLun() == other.getLun()); } result = result && (hasIscsiInterface() == other.hasIscsiInterface()); if (hasIscsiInterface()) { result = result && getIscsiInterface().equals(other.getIscsiInterface()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && getPortalsList().equals(other.getPortalsList()); result = result && (hasChapAuthDiscovery() == other.hasChapAuthDiscovery()); if (hasChapAuthDiscovery()) { result = result && (getChapAuthDiscovery() == other.getChapAuthDiscovery()); } result = result && (hasChapAuthSession() == other.hasChapAuthSession()); if (hasChapAuthSession()) { result = result && (getChapAuthSession() == other.getChapAuthSession()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasInitiatorName() == other.hasInitiatorName()); if (hasInitiatorName()) { result = result && getInitiatorName().equals(other.getInitiatorName()); } 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 (hasTargetPortal()) { hash = (37 * hash) + TARGETPORTAL_FIELD_NUMBER; hash = (53 * hash) + getTargetPortal().hashCode(); } if (hasIqn()) { hash = (37 * hash) + IQN_FIELD_NUMBER; hash = (53 * hash) + getIqn().hashCode(); } if (hasLun()) { hash = (37 * hash) + LUN_FIELD_NUMBER; hash = (53 * hash) + getLun(); } if (hasIscsiInterface()) { hash = (37 * hash) + ISCSIINTERFACE_FIELD_NUMBER; hash = (53 * hash) + getIscsiInterface().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (getPortalsCount() > 0) { hash = (37 * hash) + PORTALS_FIELD_NUMBER; hash = (53 * hash) + getPortalsList().hashCode(); } if (hasChapAuthDiscovery()) { hash = (37 * hash) + CHAPAUTHDISCOVERY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChapAuthDiscovery()); } if (hasChapAuthSession()) { hash = (37 * hash) + CHAPAUTHSESSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChapAuthSession()); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasInitiatorName()) { hash = (37 * hash) + INITIATORNAME_FIELD_NUMBER; hash = (53 * hash) + getInitiatorName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource 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.V1.ISCSIVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource 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.V1.ISCSIVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource 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.V1.ISCSIVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource 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.V1.ISCSIVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource 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.V1.ISCSIVolumeSource 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; } /** * * *
     * Represents an ISCSI disk.
     * ISCSI volumes can only be mounted as read/write once.
     * ISCSI volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ISCSIVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ISCSIVolumeSource) io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ISCSIVolumeSource.class, io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ISCSIVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); targetPortal_ = ""; bitField0_ = (bitField0_ & ~0x00000001); iqn_ = ""; bitField0_ = (bitField0_ & ~0x00000002); lun_ = 0; bitField0_ = (bitField0_ & ~0x00000004); iscsiInterface_ = ""; bitField0_ = (bitField0_ & ~0x00000008); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000010); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000020); portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); chapAuthDiscovery_ = false; bitField0_ = (bitField0_ & ~0x00000080); chapAuthSession_ = false; bitField0_ = (bitField0_ & ~0x00000100); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); initiatorName_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ISCSIVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ISCSIVolumeSource build() { io.kubernetes.client.proto.V1.ISCSIVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ISCSIVolumeSource buildPartial() { io.kubernetes.client.proto.V1.ISCSIVolumeSource result = new io.kubernetes.client.proto.V1.ISCSIVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetPortal_ = targetPortal_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.iqn_ = iqn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.lun_ = lun_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.iscsiInterface_ = iscsiInterface_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.readOnly_ = readOnly_; if (((bitField0_ & 0x00000040) == 0x00000040)) { portals_ = portals_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.portals_ = portals_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.chapAuthDiscovery_ = chapAuthDiscovery_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.chapAuthSession_ = chapAuthSession_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } result.initiatorName_ = initiatorName_; 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.V1.ISCSIVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.ISCSIVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ISCSIVolumeSource other) { if (other == io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance()) return this; if (other.hasTargetPortal()) { bitField0_ |= 0x00000001; targetPortal_ = other.targetPortal_; onChanged(); } if (other.hasIqn()) { bitField0_ |= 0x00000002; iqn_ = other.iqn_; onChanged(); } if (other.hasLun()) { setLun(other.getLun()); } if (other.hasIscsiInterface()) { bitField0_ |= 0x00000008; iscsiInterface_ = other.iscsiInterface_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000010; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (!other.portals_.isEmpty()) { if (portals_.isEmpty()) { portals_ = other.portals_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensurePortalsIsMutable(); portals_.addAll(other.portals_); } onChanged(); } if (other.hasChapAuthDiscovery()) { setChapAuthDiscovery(other.getChapAuthDiscovery()); } if (other.hasChapAuthSession()) { setChapAuthSession(other.getChapAuthSession()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasInitiatorName()) { bitField0_ |= 0x00000400; initiatorName_ = other.initiatorName_; 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.V1.ISCSIVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ISCSIVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object targetPortal_ = ""; /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public boolean hasTargetPortal() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public java.lang.String getTargetPortal() { java.lang.Object ref = targetPortal_; 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()) { targetPortal_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public com.google.protobuf.ByteString getTargetPortalBytes() { java.lang.Object ref = targetPortal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetPortal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public Builder setTargetPortal(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetPortal_ = value; onChanged(); return this; } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public Builder clearTargetPortal() { bitField0_ = (bitField0_ & ~0x00000001); targetPortal_ = getDefaultInstance().getTargetPortal(); onChanged(); return this; } /** * * *
       * iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * 
* * optional string targetPortal = 1; */ public Builder setTargetPortalBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetPortal_ = value; onChanged(); return this; } private java.lang.Object iqn_ = ""; /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public boolean hasIqn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public java.lang.String getIqn() { java.lang.Object ref = iqn_; 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()) { iqn_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public com.google.protobuf.ByteString getIqnBytes() { java.lang.Object ref = iqn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iqn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public Builder setIqn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; iqn_ = value; onChanged(); return this; } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public Builder clearIqn() { bitField0_ = (bitField0_ & ~0x00000002); iqn_ = getDefaultInstance().getIqn(); onChanged(); return this; } /** * * *
       * Target iSCSI Qualified Name.
       * 
* * optional string iqn = 2; */ public Builder setIqnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; iqn_ = value; onChanged(); return this; } private int lun_; /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public boolean hasLun() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public int getLun() { return lun_; } /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public Builder setLun(int value) { bitField0_ |= 0x00000004; lun_ = value; onChanged(); return this; } /** * * *
       * iSCSI Target Lun number.
       * 
* * optional int32 lun = 3; */ public Builder clearLun() { bitField0_ = (bitField0_ & ~0x00000004); lun_ = 0; onChanged(); return this; } private java.lang.Object iscsiInterface_ = ""; /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public boolean hasIscsiInterface() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public java.lang.String getIscsiInterface() { java.lang.Object ref = iscsiInterface_; 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()) { iscsiInterface_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public com.google.protobuf.ByteString getIscsiInterfaceBytes() { java.lang.Object ref = iscsiInterface_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); iscsiInterface_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public Builder setIscsiInterface(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; iscsiInterface_ = value; onChanged(); return this; } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public Builder clearIscsiInterface() { bitField0_ = (bitField0_ & ~0x00000008); iscsiInterface_ = getDefaultInstance().getIscsiInterface(); onChanged(); return this; } /** * * *
       * iSCSI Interface Name that uses an iSCSI transport.
       * Defaults to 'default' (tcp).
       * +optional
       * 
* * optional string iscsiInterface = 4; */ public Builder setIscsiInterfaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; iscsiInterface_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public boolean hasFsType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000010); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 5; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000020; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 6; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000020); readOnly_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePortalsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { portals_ = new com.google.protobuf.LazyStringArrayList(portals_); bitField0_ |= 0x00000040; } } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public com.google.protobuf.ProtocolStringList getPortalsList() { return portals_.getUnmodifiableView(); } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public int getPortalsCount() { return portals_.size(); } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public java.lang.String getPortals(int index) { return portals_.get(index); } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public com.google.protobuf.ByteString getPortalsBytes(int index) { return portals_.getByteString(index); } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder setPortals(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePortalsIsMutable(); portals_.set(index, value); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder addPortals(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePortalsIsMutable(); portals_.add(value); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder addAllPortals(java.lang.Iterable values) { ensurePortalsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, portals_); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder clearPortals() { portals_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
       * is other than default (typically TCP ports 860 and 3260).
       * +optional
       * 
* * repeated string portals = 7; */ public Builder addPortalsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePortalsIsMutable(); portals_.add(value); onChanged(); return this; } private boolean chapAuthDiscovery_; /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public boolean hasChapAuthDiscovery() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public boolean getChapAuthDiscovery() { return chapAuthDiscovery_; } /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public Builder setChapAuthDiscovery(boolean value) { bitField0_ |= 0x00000080; chapAuthDiscovery_ = value; onChanged(); return this; } /** * * *
       * whether support iSCSI Discovery CHAP authentication
       * +optional
       * 
* * optional bool chapAuthDiscovery = 8; */ public Builder clearChapAuthDiscovery() { bitField0_ = (bitField0_ & ~0x00000080); chapAuthDiscovery_ = false; onChanged(); return this; } private boolean chapAuthSession_; /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public boolean hasChapAuthSession() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public boolean getChapAuthSession() { return chapAuthSession_; } /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public Builder setChapAuthSession(boolean value) { bitField0_ |= 0x00000100; chapAuthSession_ = value; onChanged(); return this; } /** * * *
       * whether support iSCSI Session CHAP authentication
       * +optional
       * 
* * optional bool chapAuthSession = 11; */ public Builder clearChapAuthSession() { bitField0_ = (bitField0_ & ~0x00000100); chapAuthSession_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000200; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * CHAP Secret for iSCSI target and initiator authentication
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private java.lang.Object initiatorName_ = ""; /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public boolean hasInitiatorName() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public java.lang.String getInitiatorName() { java.lang.Object ref = initiatorName_; 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()) { initiatorName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public com.google.protobuf.ByteString getInitiatorNameBytes() { java.lang.Object ref = initiatorName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); initiatorName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public Builder setInitiatorName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; initiatorName_ = value; onChanged(); return this; } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public Builder clearInitiatorName() { bitField0_ = (bitField0_ & ~0x00000400); initiatorName_ = getDefaultInstance().getInitiatorName(); onChanged(); return this; } /** * * *
       * Custom iSCSI Initiator Name.
       * If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
       * <target portal>:<volume name> will be created for the connection.
       * +optional
       * 
* * optional string initiatorName = 12; */ public Builder setInitiatorNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; initiatorName_ = 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.core.v1.ISCSIVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ISCSIVolumeSource) private static final io.kubernetes.client.proto.V1.ISCSIVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ISCSIVolumeSource(); } public static io.kubernetes.client.proto.V1.ISCSIVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ISCSIVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ISCSIVolumeSource(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.V1.ISCSIVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyToPathOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.KeyToPath) com.google.protobuf.MessageOrBuilder { /** * * *
     * The key to project.
     * 
* * optional string key = 1; */ boolean hasKey(); /** * * *
     * The key to project.
     * 
* * optional string key = 1; */ java.lang.String getKey(); /** * * *
     * The key to project.
     * 
* * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     * 
* * optional string path = 2; */ boolean hasPath(); /** * * *
     * The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     * 
* * optional string path = 2; */ java.lang.String getPath(); /** * * *
     * The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Optional: mode bits used to set permissions on this file.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 3; */ boolean hasMode(); /** * * *
     * Optional: mode bits used to set permissions on this file.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 3; */ int getMode(); } /** * * *
   * Maps a string key to a path within a volume.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.KeyToPath} */ public static final class KeyToPath extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.KeyToPath) KeyToPathOrBuilder { private static final long serialVersionUID = 0L; // Use KeyToPath.newBuilder() to construct. private KeyToPath(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyToPath() { key_ = ""; path_ = ""; mode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyToPath( 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; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; path_ = bs; break; } case 24: { bitField0_ |= 0x00000004; mode_ = 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.V1.internal_static_k8s_io_api_core_v1_KeyToPath_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_KeyToPath_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.KeyToPath.class, io.kubernetes.client.proto.V1.KeyToPath.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * * *
     * The key to project.
     * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The key to project.
     * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * The key to project.
     * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** * * *
     * The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * The relative path of the file to map the key to.
     * May not be an absolute path.
     * May not contain the path element '..'.
     * May not start with the string '..'.
     * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODE_FIELD_NUMBER = 3; private int mode_; /** * * *
     * Optional: mode bits used to set permissions on this file.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 3; */ public boolean hasMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional: mode bits used to set permissions on this file.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * If not specified, the volume defaultMode will be used.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 mode = 3; */ public int getMode() { return mode_; } 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, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, mode_); } 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, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mode_); } 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.V1.KeyToPath)) { return super.equals(obj); } io.kubernetes.client.proto.V1.KeyToPath other = (io.kubernetes.client.proto.V1.KeyToPath) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasMode() == other.hasMode()); if (hasMode()) { result = result && (getMode() == other.getMode()); } 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + getMode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.KeyToPath parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.KeyToPath 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.V1.KeyToPath parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.KeyToPath 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.V1.KeyToPath parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.KeyToPath parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.KeyToPath parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.KeyToPath 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.V1.KeyToPath parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.KeyToPath 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.V1.KeyToPath parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.KeyToPath 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.V1.KeyToPath 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; } /** * * *
     * Maps a string key to a path within a volume.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.KeyToPath} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.KeyToPath) io.kubernetes.client.proto.V1.KeyToPathOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_KeyToPath_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_KeyToPath_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.KeyToPath.class, io.kubernetes.client.proto.V1.KeyToPath.Builder.class); } // Construct using io.kubernetes.client.proto.V1.KeyToPath.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); mode_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_KeyToPath_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.KeyToPath getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.KeyToPath build() { io.kubernetes.client.proto.V1.KeyToPath result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.KeyToPath buildPartial() { io.kubernetes.client.proto.V1.KeyToPath result = new io.kubernetes.client.proto.V1.KeyToPath(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.mode_ = mode_; 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.V1.KeyToPath) { return mergeFrom((io.kubernetes.client.proto.V1.KeyToPath) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.KeyToPath other) { if (other == io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasMode()) { setMode(other.getMode()); } 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.V1.KeyToPath parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.KeyToPath) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * * *
       * The key to project.
       * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The key to project.
       * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The key to project.
       * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The key to project.
       * 
* * optional string key = 1; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * * *
       * The key to project.
       * 
* * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * The key to project.
       * 
* * optional string key = 1; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * The relative path of the file to map the key to.
       * May not be an absolute path.
       * May not contain the path element '..'.
       * May not start with the string '..'.
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The relative path of the file to map the key to.
       * May not be an absolute path.
       * May not contain the path element '..'.
       * May not start with the string '..'.
       * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The relative path of the file to map the key to.
       * May not be an absolute path.
       * May not contain the path element '..'.
       * May not start with the string '..'.
       * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The relative path of the file to map the key to.
       * May not be an absolute path.
       * May not contain the path element '..'.
       * May not start with the string '..'.
       * 
* * optional string path = 2; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * * *
       * The relative path of the file to map the key to.
       * May not be an absolute path.
       * May not contain the path element '..'.
       * May not start with the string '..'.
       * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * The relative path of the file to map the key to.
       * May not be an absolute path.
       * May not contain the path element '..'.
       * May not start with the string '..'.
       * 
* * optional string path = 2; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } private int mode_; /** * * *
       * Optional: mode bits used to set permissions on this file.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 3; */ public boolean hasMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: mode bits used to set permissions on this file.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 3; */ public int getMode() { return mode_; } /** * * *
       * Optional: mode bits used to set permissions on this file.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 3; */ public Builder setMode(int value) { bitField0_ |= 0x00000004; mode_ = value; onChanged(); return this; } /** * * *
       * Optional: mode bits used to set permissions on this file.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * If not specified, the volume defaultMode will be used.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 mode = 3; */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000004); mode_ = 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.core.v1.KeyToPath) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.KeyToPath) private static final io.kubernetes.client.proto.V1.KeyToPath DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.KeyToPath(); } public static io.kubernetes.client.proto.V1.KeyToPath getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public KeyToPath parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyToPath(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.V1.KeyToPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LifecycleOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Lifecycle) com.google.protobuf.MessageOrBuilder { /** * * *
     * PostStart is called immediately after a container is created. If the handler fails,
     * the container is terminated and restarted according to its restart policy.
     * Other management of the container blocks until the hook completes.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ boolean hasPostStart(); /** * * *
     * PostStart is called immediately after a container is created. If the handler fails,
     * the container is terminated and restarted according to its restart policy.
     * Other management of the container blocks until the hook completes.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ io.kubernetes.client.proto.V1.LifecycleHandler getPostStart(); /** * * *
     * PostStart is called immediately after a container is created. If the handler fails,
     * the container is terminated and restarted according to its restart policy.
     * Other management of the container blocks until the hook completes.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder getPostStartOrBuilder(); /** * * *
     * PreStop is called immediately before a container is terminated due to an
     * API request or management event such as liveness/startup probe failure,
     * preemption, resource contention, etc. The handler is not called if the
     * container crashes or exits. The reason for termination is passed to the
     * handler. The Pod's termination grace period countdown begins before the
     * PreStop hooked is executed. Regardless of the outcome of the handler, the
     * container will eventually terminate within the Pod's termination grace
     * period. Other management of the container blocks until the hook completes
     * or until the termination grace period is reached.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ boolean hasPreStop(); /** * * *
     * PreStop is called immediately before a container is terminated due to an
     * API request or management event such as liveness/startup probe failure,
     * preemption, resource contention, etc. The handler is not called if the
     * container crashes or exits. The reason for termination is passed to the
     * handler. The Pod's termination grace period countdown begins before the
     * PreStop hooked is executed. Regardless of the outcome of the handler, the
     * container will eventually terminate within the Pod's termination grace
     * period. Other management of the container blocks until the hook completes
     * or until the termination grace period is reached.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ io.kubernetes.client.proto.V1.LifecycleHandler getPreStop(); /** * * *
     * PreStop is called immediately before a container is terminated due to an
     * API request or management event such as liveness/startup probe failure,
     * preemption, resource contention, etc. The handler is not called if the
     * container crashes or exits. The reason for termination is passed to the
     * handler. The Pod's termination grace period countdown begins before the
     * PreStop hooked is executed. Regardless of the outcome of the handler, the
     * container will eventually terminate within the Pod's termination grace
     * period. Other management of the container blocks until the hook completes
     * or until the termination grace period is reached.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder getPreStopOrBuilder(); } /** * * *
   * Lifecycle describes actions that the management system should take in response to container lifecycle
   * events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
   * until the action is complete, unless the container process fails, in which case the handler is aborted.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Lifecycle} */ public static final class Lifecycle extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Lifecycle) LifecycleOrBuilder { private static final long serialVersionUID = 0L; // Use Lifecycle.newBuilder() to construct. private Lifecycle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Lifecycle() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Lifecycle( 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.V1.LifecycleHandler.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = postStart_.toBuilder(); } postStart_ = input.readMessage( io.kubernetes.client.proto.V1.LifecycleHandler.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(postStart_); postStart_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.LifecycleHandler.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = preStop_.toBuilder(); } preStop_ = input.readMessage( io.kubernetes.client.proto.V1.LifecycleHandler.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preStop_); preStop_ = 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.V1.internal_static_k8s_io_api_core_v1_Lifecycle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Lifecycle_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Lifecycle.class, io.kubernetes.client.proto.V1.Lifecycle.Builder.class); } private int bitField0_; public static final int POSTSTART_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LifecycleHandler postStart_; /** * * *
     * PostStart is called immediately after a container is created. If the handler fails,
     * the container is terminated and restarted according to its restart policy.
     * Other management of the container blocks until the hook completes.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public boolean hasPostStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * PostStart is called immediately after a container is created. If the handler fails,
     * the container is terminated and restarted according to its restart policy.
     * Other management of the container blocks until the hook completes.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public io.kubernetes.client.proto.V1.LifecycleHandler getPostStart() { return postStart_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : postStart_; } /** * * *
     * PostStart is called immediately after a container is created. If the handler fails,
     * the container is terminated and restarted according to its restart policy.
     * Other management of the container blocks until the hook completes.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder getPostStartOrBuilder() { return postStart_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : postStart_; } public static final int PRESTOP_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.LifecycleHandler preStop_; /** * * *
     * PreStop is called immediately before a container is terminated due to an
     * API request or management event such as liveness/startup probe failure,
     * preemption, resource contention, etc. The handler is not called if the
     * container crashes or exits. The reason for termination is passed to the
     * handler. The Pod's termination grace period countdown begins before the
     * PreStop hooked is executed. Regardless of the outcome of the handler, the
     * container will eventually terminate within the Pod's termination grace
     * period. Other management of the container blocks until the hook completes
     * or until the termination grace period is reached.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public boolean hasPreStop() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * PreStop is called immediately before a container is terminated due to an
     * API request or management event such as liveness/startup probe failure,
     * preemption, resource contention, etc. The handler is not called if the
     * container crashes or exits. The reason for termination is passed to the
     * handler. The Pod's termination grace period countdown begins before the
     * PreStop hooked is executed. Regardless of the outcome of the handler, the
     * container will eventually terminate within the Pod's termination grace
     * period. Other management of the container blocks until the hook completes
     * or until the termination grace period is reached.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public io.kubernetes.client.proto.V1.LifecycleHandler getPreStop() { return preStop_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : preStop_; } /** * * *
     * PreStop is called immediately before a container is terminated due to an
     * API request or management event such as liveness/startup probe failure,
     * preemption, resource contention, etc. The handler is not called if the
     * container crashes or exits. The reason for termination is passed to the
     * handler. The Pod's termination grace period countdown begins before the
     * PreStop hooked is executed. Regardless of the outcome of the handler, the
     * container will eventually terminate within the Pod's termination grace
     * period. Other management of the container blocks until the hook completes
     * or until the termination grace period is reached.
     * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder getPreStopOrBuilder() { return preStop_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : preStop_; } 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, getPostStart()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPreStop()); } 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, getPostStart()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPreStop()); } 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.V1.Lifecycle)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Lifecycle other = (io.kubernetes.client.proto.V1.Lifecycle) obj; boolean result = true; result = result && (hasPostStart() == other.hasPostStart()); if (hasPostStart()) { result = result && getPostStart().equals(other.getPostStart()); } result = result && (hasPreStop() == other.hasPreStop()); if (hasPreStop()) { result = result && getPreStop().equals(other.getPreStop()); } 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 (hasPostStart()) { hash = (37 * hash) + POSTSTART_FIELD_NUMBER; hash = (53 * hash) + getPostStart().hashCode(); } if (hasPreStop()) { hash = (37 * hash) + PRESTOP_FIELD_NUMBER; hash = (53 * hash) + getPreStop().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Lifecycle parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Lifecycle 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.V1.Lifecycle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Lifecycle 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.V1.Lifecycle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Lifecycle parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Lifecycle parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Lifecycle 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.V1.Lifecycle parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Lifecycle 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.V1.Lifecycle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Lifecycle 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.V1.Lifecycle 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; } /** * * *
     * Lifecycle describes actions that the management system should take in response to container lifecycle
     * events. For the PostStart and PreStop lifecycle handlers, management of the container blocks
     * until the action is complete, unless the container process fails, in which case the handler is aborted.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Lifecycle} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Lifecycle) io.kubernetes.client.proto.V1.LifecycleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Lifecycle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Lifecycle_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Lifecycle.class, io.kubernetes.client.proto.V1.Lifecycle.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Lifecycle.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPostStartFieldBuilder(); getPreStopFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (postStartBuilder_ == null) { postStart_ = null; } else { postStartBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (preStopBuilder_ == null) { preStop_ = null; } else { preStopBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Lifecycle_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Lifecycle getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Lifecycle build() { io.kubernetes.client.proto.V1.Lifecycle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Lifecycle buildPartial() { io.kubernetes.client.proto.V1.Lifecycle result = new io.kubernetes.client.proto.V1.Lifecycle(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (postStartBuilder_ == null) { result.postStart_ = postStart_; } else { result.postStart_ = postStartBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (preStopBuilder_ == null) { result.preStop_ = preStop_; } else { result.preStop_ = preStopBuilder_.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.V1.Lifecycle) { return mergeFrom((io.kubernetes.client.proto.V1.Lifecycle) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Lifecycle other) { if (other == io.kubernetes.client.proto.V1.Lifecycle.getDefaultInstance()) return this; if (other.hasPostStart()) { mergePostStart(other.getPostStart()); } if (other.hasPreStop()) { mergePreStop(other.getPreStop()); } 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.V1.Lifecycle parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Lifecycle) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LifecycleHandler postStart_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LifecycleHandler, io.kubernetes.client.proto.V1.LifecycleHandler.Builder, io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder> postStartBuilder_; /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public boolean hasPostStart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public io.kubernetes.client.proto.V1.LifecycleHandler getPostStart() { if (postStartBuilder_ == null) { return postStart_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : postStart_; } else { return postStartBuilder_.getMessage(); } } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public Builder setPostStart(io.kubernetes.client.proto.V1.LifecycleHandler value) { if (postStartBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postStart_ = value; onChanged(); } else { postStartBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public Builder setPostStart( io.kubernetes.client.proto.V1.LifecycleHandler.Builder builderForValue) { if (postStartBuilder_ == null) { postStart_ = builderForValue.build(); onChanged(); } else { postStartBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public Builder mergePostStart(io.kubernetes.client.proto.V1.LifecycleHandler value) { if (postStartBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && postStart_ != null && postStart_ != io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance()) { postStart_ = io.kubernetes.client.proto.V1.LifecycleHandler.newBuilder(postStart_) .mergeFrom(value) .buildPartial(); } else { postStart_ = value; } onChanged(); } else { postStartBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public Builder clearPostStart() { if (postStartBuilder_ == null) { postStart_ = null; onChanged(); } else { postStartBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public io.kubernetes.client.proto.V1.LifecycleHandler.Builder getPostStartBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPostStartFieldBuilder().getBuilder(); } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ public io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder getPostStartOrBuilder() { if (postStartBuilder_ != null) { return postStartBuilder_.getMessageOrBuilder(); } else { return postStart_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : postStart_; } } /** * * *
       * PostStart is called immediately after a container is created. If the handler fails,
       * the container is terminated and restarted according to its restart policy.
       * Other management of the container blocks until the hook completes.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LifecycleHandler, io.kubernetes.client.proto.V1.LifecycleHandler.Builder, io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder> getPostStartFieldBuilder() { if (postStartBuilder_ == null) { postStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LifecycleHandler, io.kubernetes.client.proto.V1.LifecycleHandler.Builder, io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder>( getPostStart(), getParentForChildren(), isClean()); postStart_ = null; } return postStartBuilder_; } private io.kubernetes.client.proto.V1.LifecycleHandler preStop_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LifecycleHandler, io.kubernetes.client.proto.V1.LifecycleHandler.Builder, io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder> preStopBuilder_; /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public boolean hasPreStop() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public io.kubernetes.client.proto.V1.LifecycleHandler getPreStop() { if (preStopBuilder_ == null) { return preStop_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : preStop_; } else { return preStopBuilder_.getMessage(); } } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public Builder setPreStop(io.kubernetes.client.proto.V1.LifecycleHandler value) { if (preStopBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preStop_ = value; onChanged(); } else { preStopBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public Builder setPreStop( io.kubernetes.client.proto.V1.LifecycleHandler.Builder builderForValue) { if (preStopBuilder_ == null) { preStop_ = builderForValue.build(); onChanged(); } else { preStopBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public Builder mergePreStop(io.kubernetes.client.proto.V1.LifecycleHandler value) { if (preStopBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && preStop_ != null && preStop_ != io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance()) { preStop_ = io.kubernetes.client.proto.V1.LifecycleHandler.newBuilder(preStop_) .mergeFrom(value) .buildPartial(); } else { preStop_ = value; } onChanged(); } else { preStopBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public Builder clearPreStop() { if (preStopBuilder_ == null) { preStop_ = null; onChanged(); } else { preStopBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public io.kubernetes.client.proto.V1.LifecycleHandler.Builder getPreStopBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPreStopFieldBuilder().getBuilder(); } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ public io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder getPreStopOrBuilder() { if (preStopBuilder_ != null) { return preStopBuilder_.getMessageOrBuilder(); } else { return preStop_ == null ? io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance() : preStop_; } } /** * * *
       * PreStop is called immediately before a container is terminated due to an
       * API request or management event such as liveness/startup probe failure,
       * preemption, resource contention, etc. The handler is not called if the
       * container crashes or exits. The reason for termination is passed to the
       * handler. The Pod's termination grace period countdown begins before the
       * PreStop hooked is executed. Regardless of the outcome of the handler, the
       * container will eventually terminate within the Pod's termination grace
       * period. Other management of the container blocks until the hook completes
       * or until the termination grace period is reached.
       * More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LifecycleHandler, io.kubernetes.client.proto.V1.LifecycleHandler.Builder, io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder> getPreStopFieldBuilder() { if (preStopBuilder_ == null) { preStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LifecycleHandler, io.kubernetes.client.proto.V1.LifecycleHandler.Builder, io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder>( getPreStop(), getParentForChildren(), isClean()); preStop_ = null; } return preStopBuilder_; } @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.core.v1.Lifecycle) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Lifecycle) private static final io.kubernetes.client.proto.V1.Lifecycle DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Lifecycle(); } public static io.kubernetes.client.proto.V1.Lifecycle getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Lifecycle parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Lifecycle(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.V1.Lifecycle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LifecycleHandlerOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LifecycleHandler) com.google.protobuf.MessageOrBuilder { /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ boolean hasExec(); /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ io.kubernetes.client.proto.V1.ExecAction getExec(); /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ io.kubernetes.client.proto.V1.ExecActionOrBuilder getExecOrBuilder(); /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ boolean hasHttpGet(); /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ io.kubernetes.client.proto.V1.HTTPGetAction getHttpGet(); /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder getHttpGetOrBuilder(); /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ boolean hasTcpSocket(); /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ io.kubernetes.client.proto.V1.TCPSocketAction getTcpSocket(); /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder getTcpSocketOrBuilder(); } /** * * *
   * LifecycleHandler defines a specific action that should be taken in a lifecycle
   * hook.  This type has a strong relationship to ProbeHandler - overlapping fields
   * should be identical.
   * TODO: pass structured data to these actions, and document that data here.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LifecycleHandler} */ public static final class LifecycleHandler extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LifecycleHandler) LifecycleHandlerOrBuilder { private static final long serialVersionUID = 0L; // Use LifecycleHandler.newBuilder() to construct. private LifecycleHandler(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LifecycleHandler() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LifecycleHandler( 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.V1.ExecAction.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = exec_.toBuilder(); } exec_ = input.readMessage( io.kubernetes.client.proto.V1.ExecAction.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(exec_); exec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.HTTPGetAction.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = httpGet_.toBuilder(); } httpGet_ = input.readMessage( io.kubernetes.client.proto.V1.HTTPGetAction.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(httpGet_); httpGet_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.TCPSocketAction.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = tcpSocket_.toBuilder(); } tcpSocket_ = input.readMessage( io.kubernetes.client.proto.V1.TCPSocketAction.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tcpSocket_); tcpSocket_ = 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 .V1 .internal_static_k8s_io_api_core_v1_LifecycleHandler_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LifecycleHandler_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LifecycleHandler.class, io.kubernetes.client.proto.V1.LifecycleHandler.Builder.class); } private int bitField0_; public static final int EXEC_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ExecAction exec_; /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public boolean hasExec() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecAction getExec() { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecActionOrBuilder getExecOrBuilder() { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } public static final int HTTPGET_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.HTTPGetAction httpGet_; /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public boolean hasHttpGet() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetAction getHttpGet() { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder getHttpGetOrBuilder() { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } public static final int TCPSOCKET_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.TCPSocketAction tcpSocket_; /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public boolean hasTcpSocket() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketAction getTcpSocket() { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder getTcpSocketOrBuilder() { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } 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, getExec()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getHttpGet()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getTcpSocket()); } 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, getExec()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpGet()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTcpSocket()); } 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.V1.LifecycleHandler)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LifecycleHandler other = (io.kubernetes.client.proto.V1.LifecycleHandler) obj; boolean result = true; result = result && (hasExec() == other.hasExec()); if (hasExec()) { result = result && getExec().equals(other.getExec()); } result = result && (hasHttpGet() == other.hasHttpGet()); if (hasHttpGet()) { result = result && getHttpGet().equals(other.getHttpGet()); } result = result && (hasTcpSocket() == other.hasTcpSocket()); if (hasTcpSocket()) { result = result && getTcpSocket().equals(other.getTcpSocket()); } 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 (hasExec()) { hash = (37 * hash) + EXEC_FIELD_NUMBER; hash = (53 * hash) + getExec().hashCode(); } if (hasHttpGet()) { hash = (37 * hash) + HTTPGET_FIELD_NUMBER; hash = (53 * hash) + getHttpGet().hashCode(); } if (hasTcpSocket()) { hash = (37 * hash) + TCPSOCKET_FIELD_NUMBER; hash = (53 * hash) + getTcpSocket().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LifecycleHandler parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LifecycleHandler 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.V1.LifecycleHandler parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LifecycleHandler 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.V1.LifecycleHandler parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LifecycleHandler parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LifecycleHandler parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LifecycleHandler 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.V1.LifecycleHandler parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LifecycleHandler 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.V1.LifecycleHandler parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LifecycleHandler 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.V1.LifecycleHandler 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; } /** * * *
     * LifecycleHandler defines a specific action that should be taken in a lifecycle
     * hook.  This type has a strong relationship to ProbeHandler - overlapping fields
     * should be identical.
     * TODO: pass structured data to these actions, and document that data here.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LifecycleHandler} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LifecycleHandler) io.kubernetes.client.proto.V1.LifecycleHandlerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LifecycleHandler_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LifecycleHandler_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LifecycleHandler.class, io.kubernetes.client.proto.V1.LifecycleHandler.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LifecycleHandler.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getExecFieldBuilder(); getHttpGetFieldBuilder(); getTcpSocketFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (execBuilder_ == null) { exec_ = null; } else { execBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (httpGetBuilder_ == null) { httpGet_ = null; } else { httpGetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (tcpSocketBuilder_ == null) { tcpSocket_ = null; } else { tcpSocketBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LifecycleHandler_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LifecycleHandler getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LifecycleHandler build() { io.kubernetes.client.proto.V1.LifecycleHandler result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LifecycleHandler buildPartial() { io.kubernetes.client.proto.V1.LifecycleHandler result = new io.kubernetes.client.proto.V1.LifecycleHandler(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (execBuilder_ == null) { result.exec_ = exec_; } else { result.exec_ = execBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (httpGetBuilder_ == null) { result.httpGet_ = httpGet_; } else { result.httpGet_ = httpGetBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (tcpSocketBuilder_ == null) { result.tcpSocket_ = tcpSocket_; } else { result.tcpSocket_ = tcpSocketBuilder_.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.V1.LifecycleHandler) { return mergeFrom((io.kubernetes.client.proto.V1.LifecycleHandler) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LifecycleHandler other) { if (other == io.kubernetes.client.proto.V1.LifecycleHandler.getDefaultInstance()) return this; if (other.hasExec()) { mergeExec(other.getExec()); } if (other.hasHttpGet()) { mergeHttpGet(other.getHttpGet()); } if (other.hasTcpSocket()) { mergeTcpSocket(other.getTcpSocket()); } 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.V1.LifecycleHandler parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LifecycleHandler) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ExecAction exec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ExecAction, io.kubernetes.client.proto.V1.ExecAction.Builder, io.kubernetes.client.proto.V1.ExecActionOrBuilder> execBuilder_; /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public boolean hasExec() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecAction getExec() { if (execBuilder_ == null) { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } else { return execBuilder_.getMessage(); } } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder setExec(io.kubernetes.client.proto.V1.ExecAction value) { if (execBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exec_ = value; onChanged(); } else { execBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder setExec(io.kubernetes.client.proto.V1.ExecAction.Builder builderForValue) { if (execBuilder_ == null) { exec_ = builderForValue.build(); onChanged(); } else { execBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder mergeExec(io.kubernetes.client.proto.V1.ExecAction value) { if (execBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && exec_ != null && exec_ != io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance()) { exec_ = io.kubernetes.client.proto.V1.ExecAction.newBuilder(exec_) .mergeFrom(value) .buildPartial(); } else { exec_ = value; } onChanged(); } else { execBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder clearExec() { if (execBuilder_ == null) { exec_ = null; onChanged(); } else { execBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecAction.Builder getExecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExecFieldBuilder().getBuilder(); } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecActionOrBuilder getExecOrBuilder() { if (execBuilder_ != null) { return execBuilder_.getMessageOrBuilder(); } else { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ExecAction, io.kubernetes.client.proto.V1.ExecAction.Builder, io.kubernetes.client.proto.V1.ExecActionOrBuilder> getExecFieldBuilder() { if (execBuilder_ == null) { execBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ExecAction, io.kubernetes.client.proto.V1.ExecAction.Builder, io.kubernetes.client.proto.V1.ExecActionOrBuilder>( getExec(), getParentForChildren(), isClean()); exec_ = null; } return execBuilder_; } private io.kubernetes.client.proto.V1.HTTPGetAction httpGet_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPGetAction, io.kubernetes.client.proto.V1.HTTPGetAction.Builder, io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder> httpGetBuilder_; /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public boolean hasHttpGet() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetAction getHttpGet() { if (httpGetBuilder_ == null) { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } else { return httpGetBuilder_.getMessage(); } } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder setHttpGet(io.kubernetes.client.proto.V1.HTTPGetAction value) { if (httpGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } httpGet_ = value; onChanged(); } else { httpGetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder setHttpGet( io.kubernetes.client.proto.V1.HTTPGetAction.Builder builderForValue) { if (httpGetBuilder_ == null) { httpGet_ = builderForValue.build(); onChanged(); } else { httpGetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder mergeHttpGet(io.kubernetes.client.proto.V1.HTTPGetAction value) { if (httpGetBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && httpGet_ != null && httpGet_ != io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance()) { httpGet_ = io.kubernetes.client.proto.V1.HTTPGetAction.newBuilder(httpGet_) .mergeFrom(value) .buildPartial(); } else { httpGet_ = value; } onChanged(); } else { httpGetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder clearHttpGet() { if (httpGetBuilder_ == null) { httpGet_ = null; onChanged(); } else { httpGetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetAction.Builder getHttpGetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getHttpGetFieldBuilder().getBuilder(); } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder getHttpGetOrBuilder() { if (httpGetBuilder_ != null) { return httpGetBuilder_.getMessageOrBuilder(); } else { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPGetAction, io.kubernetes.client.proto.V1.HTTPGetAction.Builder, io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder> getHttpGetFieldBuilder() { if (httpGetBuilder_ == null) { httpGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPGetAction, io.kubernetes.client.proto.V1.HTTPGetAction.Builder, io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder>( getHttpGet(), getParentForChildren(), isClean()); httpGet_ = null; } return httpGetBuilder_; } private io.kubernetes.client.proto.V1.TCPSocketAction tcpSocket_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TCPSocketAction, io.kubernetes.client.proto.V1.TCPSocketAction.Builder, io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder> tcpSocketBuilder_; /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public boolean hasTcpSocket() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketAction getTcpSocket() { if (tcpSocketBuilder_ == null) { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } else { return tcpSocketBuilder_.getMessage(); } } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder setTcpSocket(io.kubernetes.client.proto.V1.TCPSocketAction value) { if (tcpSocketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tcpSocket_ = value; onChanged(); } else { tcpSocketBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder setTcpSocket( io.kubernetes.client.proto.V1.TCPSocketAction.Builder builderForValue) { if (tcpSocketBuilder_ == null) { tcpSocket_ = builderForValue.build(); onChanged(); } else { tcpSocketBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder mergeTcpSocket(io.kubernetes.client.proto.V1.TCPSocketAction value) { if (tcpSocketBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tcpSocket_ != null && tcpSocket_ != io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance()) { tcpSocket_ = io.kubernetes.client.proto.V1.TCPSocketAction.newBuilder(tcpSocket_) .mergeFrom(value) .buildPartial(); } else { tcpSocket_ = value; } onChanged(); } else { tcpSocketBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder clearTcpSocket() { if (tcpSocketBuilder_ == null) { tcpSocket_ = null; onChanged(); } else { tcpSocketBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketAction.Builder getTcpSocketBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTcpSocketFieldBuilder().getBuilder(); } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder getTcpSocketOrBuilder() { if (tcpSocketBuilder_ != null) { return tcpSocketBuilder_.getMessageOrBuilder(); } else { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TCPSocketAction, io.kubernetes.client.proto.V1.TCPSocketAction.Builder, io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder> getTcpSocketFieldBuilder() { if (tcpSocketBuilder_ == null) { tcpSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TCPSocketAction, io.kubernetes.client.proto.V1.TCPSocketAction.Builder, io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder>( getTcpSocket(), getParentForChildren(), isClean()); tcpSocket_ = null; } return tcpSocketBuilder_; } @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.core.v1.LifecycleHandler) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LifecycleHandler) private static final io.kubernetes.client.proto.V1.LifecycleHandler DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LifecycleHandler(); } public static io.kubernetes.client.proto.V1.LifecycleHandler getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LifecycleHandler parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LifecycleHandler(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.V1.LifecycleHandler getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LimitRange) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the limits enforced.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the limits enforced.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ io.kubernetes.client.proto.V1.LimitRangeSpec getSpec(); /** * * *
     * Spec defines the limits enforced.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder getSpecOrBuilder(); } /** * * *
   * LimitRange sets resource usage limits for each kind of resource in a Namespace.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRange} */ public static final class LimitRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LimitRange) LimitRangeOrBuilder { private static final long serialVersionUID = 0L; // Use LimitRange.newBuilder() to construct. private LimitRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitRange() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitRange( 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.V1.LimitRangeSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.LimitRangeSpec.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.V1.internal_static_k8s_io_api_core_v1_LimitRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRange_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRange.class, io.kubernetes.client.proto.V1.LimitRange.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.LimitRangeSpec spec_; /** * * *
     * Spec defines the limits enforced.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the limits enforced.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public io.kubernetes.client.proto.V1.LimitRangeSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.LimitRangeSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the limits enforced.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.LimitRangeSpec.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.V1.LimitRange)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LimitRange other = (io.kubernetes.client.proto.V1.LimitRange) 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.V1.LimitRange parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRange 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.V1.LimitRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRange 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.V1.LimitRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LimitRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRange 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.V1.LimitRange parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRange 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.V1.LimitRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRange 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.V1.LimitRange 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; } /** * * *
     * LimitRange sets resource usage limits for each kind of resource in a Namespace.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LimitRange) io.kubernetes.client.proto.V1.LimitRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRange_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRange.class, io.kubernetes.client.proto.V1.LimitRange.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LimitRange.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 .V1 .internal_static_k8s_io_api_core_v1_LimitRange_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRange getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LimitRange.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRange build() { io.kubernetes.client.proto.V1.LimitRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRange buildPartial() { io.kubernetes.client.proto.V1.LimitRange result = new io.kubernetes.client.proto.V1.LimitRange(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.V1.LimitRange) { return mergeFrom((io.kubernetes.client.proto.V1.LimitRange) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LimitRange other) { if (other == io.kubernetes.client.proto.V1.LimitRange.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.V1.LimitRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LimitRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.LimitRangeSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRangeSpec, io.kubernetes.client.proto.V1.LimitRangeSpec.Builder, io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public io.kubernetes.client.proto.V1.LimitRangeSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.LimitRangeSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.LimitRangeSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.LimitRangeSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.LimitRangeSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.LimitRangeSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.LimitRangeSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public io.kubernetes.client.proto.V1.LimitRangeSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ public io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.LimitRangeSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the limits enforced.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LimitRangeSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRangeSpec, io.kubernetes.client.proto.V1.LimitRangeSpec.Builder, io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRangeSpec, io.kubernetes.client.proto.V1.LimitRangeSpec.Builder, io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder>( 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.core.v1.LimitRange) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LimitRange) private static final io.kubernetes.client.proto.V1.LimitRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LimitRange(); } public static io.kubernetes.client.proto.V1.LimitRange getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitRange(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.V1.LimitRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitRangeItemOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LimitRangeItem) com.google.protobuf.MessageOrBuilder { /** * * *
     * Type of resource that this limit applies to.
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Type of resource that this limit applies to.
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Type of resource that this limit applies to.
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ int getMaxCount(); /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ boolean containsMax(java.lang.String key); /** Use {@link #getMaxMap()} instead. */ @java.lang.Deprecated java.util.Map getMax(); /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ java.util.Map getMaxMap(); /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ io.kubernetes.client.proto.Resource.Quantity getMaxOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ io.kubernetes.client.proto.Resource.Quantity getMaxOrThrow(java.lang.String key); /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ int getMinCount(); /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ boolean containsMin(java.lang.String key); /** Use {@link #getMinMap()} instead. */ @java.lang.Deprecated java.util.Map getMin(); /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ java.util.Map getMinMap(); /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ io.kubernetes.client.proto.Resource.Quantity getMinOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ io.kubernetes.client.proto.Resource.Quantity getMinOrThrow(java.lang.String key); /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ int getDefaultCount(); /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ boolean containsDefault(java.lang.String key); /** Use {@link #getDefaultMap()} instead. */ @java.lang.Deprecated java.util.Map getDefault(); /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ java.util.Map getDefaultMap(); /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ io.kubernetes.client.proto.Resource.Quantity getDefaultOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ io.kubernetes.client.proto.Resource.Quantity getDefaultOrThrow(java.lang.String key); /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ int getDefaultRequestCount(); /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ boolean containsDefaultRequest(java.lang.String key); /** Use {@link #getDefaultRequestMap()} instead. */ @java.lang.Deprecated java.util.Map getDefaultRequest(); /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ java.util.Map getDefaultRequestMap(); /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ io.kubernetes.client.proto.Resource.Quantity getDefaultRequestOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ io.kubernetes.client.proto.Resource.Quantity getDefaultRequestOrThrow(java.lang.String key); /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ int getMaxLimitRequestRatioCount(); /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ boolean containsMaxLimitRequestRatio(java.lang.String key); /** Use {@link #getMaxLimitRequestRatioMap()} instead. */ @java.lang.Deprecated java.util.Map getMaxLimitRequestRatio(); /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ java.util.Map getMaxLimitRequestRatioMap(); /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ io.kubernetes.client.proto.Resource.Quantity getMaxLimitRequestRatioOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ io.kubernetes.client.proto.Resource.Quantity getMaxLimitRequestRatioOrThrow( java.lang.String key); } /** * * *
   * LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRangeItem} */ public static final class LimitRangeItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LimitRangeItem) LimitRangeItemOrBuilder { private static final long serialVersionUID = 0L; // Use LimitRangeItem.newBuilder() to construct. private LimitRangeItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitRangeItem() { type_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitRangeItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { max_ = com.google.protobuf.MapField.newMapField(MaxDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> max__ = input.readMessage( MaxDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); max_.getMutableMap().put(max__.getKey(), max__.getValue()); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { min_ = com.google.protobuf.MapField.newMapField(MinDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> min__ = input.readMessage( MinDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); min_.getMutableMap().put(min__.getKey(), min__.getValue()); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { default_ = com.google.protobuf.MapField.newMapField( DefaultDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> default__ = input.readMessage( DefaultDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); default_.getMutableMap().put(default__.getKey(), default__.getValue()); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { defaultRequest_ = com.google.protobuf.MapField.newMapField( DefaultRequestDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultRequest__ = input.readMessage( DefaultRequestDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); defaultRequest_ .getMutableMap() .put(defaultRequest__.getKey(), defaultRequest__.getValue()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { maxLimitRequestRatio_ = com.google.protobuf.MapField.newMapField( MaxLimitRequestRatioDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000020; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> maxLimitRequestRatio__ = input.readMessage( MaxLimitRequestRatioDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); maxLimitRequestRatio_ .getMutableMap() .put(maxLimitRequestRatio__.getKey(), maxLimitRequestRatio__.getValue()); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetMax(); case 3: return internalGetMin(); case 4: return internalGetDefault(); case 5: return internalGetDefaultRequest(); case 6: return internalGetMaxLimitRequestRatio(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRangeItem.class, io.kubernetes.client.proto.V1.LimitRangeItem.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Type of resource that this limit applies to.
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Type of resource that this limit applies to.
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type of resource that this limit applies to.
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_FIELD_NUMBER = 2; private static final class MaxDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> max_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMax() { if (max_ == null) { return com.google.protobuf.MapField.emptyMapField(MaxDefaultEntryHolder.defaultEntry); } return max_; } public int getMaxCount() { return internalGetMax().getMap().size(); } /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public boolean containsMax(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMax().getMap().containsKey(key); } /** Use {@link #getMaxMap()} instead. */ @java.lang.Deprecated public java.util.Map getMax() { return getMaxMap(); } /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public java.util.Map getMaxMap() { return internalGetMax().getMap(); } /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public io.kubernetes.client.proto.Resource.Quantity getMaxOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMax().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Max usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public io.kubernetes.client.proto.Resource.Quantity getMaxOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMax().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MIN_FIELD_NUMBER = 3; private static final class MinDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_MinEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> min_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMin() { if (min_ == null) { return com.google.protobuf.MapField.emptyMapField(MinDefaultEntryHolder.defaultEntry); } return min_; } public int getMinCount() { return internalGetMin().getMap().size(); } /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public boolean containsMin(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMin().getMap().containsKey(key); } /** Use {@link #getMinMap()} instead. */ @java.lang.Deprecated public java.util.Map getMin() { return getMinMap(); } /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public java.util.Map getMinMap() { return internalGetMin().getMap(); } /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public io.kubernetes.client.proto.Resource.Quantity getMinOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMin().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Min usage constraints on this kind by resource name.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public io.kubernetes.client.proto.Resource.Quantity getMinOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMin().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DEFAULT_FIELD_NUMBER = 4; private static final class DefaultDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> default_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetDefault() { if (default_ == null) { return com.google.protobuf.MapField.emptyMapField(DefaultDefaultEntryHolder.defaultEntry); } return default_; } public int getDefaultCount() { return internalGetDefault().getMap().size(); } /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public boolean containsDefault(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDefault().getMap().containsKey(key); } /** Use {@link #getDefaultMap()} instead. */ @java.lang.Deprecated public java.util.Map getDefault() { return getDefaultMap(); } /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public java.util.Map getDefaultMap() { return internalGetDefault().getMap(); } /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public io.kubernetes.client.proto.Resource.Quantity getDefaultOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefault().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Default resource requirement limit value by resource name if resource limit is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public io.kubernetes.client.proto.Resource.Quantity getDefaultOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefault().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DEFAULTREQUEST_FIELD_NUMBER = 5; private static final class DefaultRequestDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultRequestEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultRequest_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetDefaultRequest() { if (defaultRequest_ == null) { return com.google.protobuf.MapField.emptyMapField( DefaultRequestDefaultEntryHolder.defaultEntry); } return defaultRequest_; } public int getDefaultRequestCount() { return internalGetDefaultRequest().getMap().size(); } /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public boolean containsDefaultRequest(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDefaultRequest().getMap().containsKey(key); } /** Use {@link #getDefaultRequestMap()} instead. */ @java.lang.Deprecated public java.util.Map getDefaultRequest() { return getDefaultRequestMap(); } /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public java.util.Map getDefaultRequestMap() { return internalGetDefaultRequest().getMap(); } /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public io.kubernetes.client.proto.Resource.Quantity getDefaultRequestOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefaultRequest().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public io.kubernetes.client.proto.Resource.Quantity getDefaultRequestOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefaultRequest().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int MAXLIMITREQUESTRATIO_FIELD_NUMBER = 6; private static final class MaxLimitRequestRatioDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxLimitRequestRatioEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> maxLimitRequestRatio_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMaxLimitRequestRatio() { if (maxLimitRequestRatio_ == null) { return com.google.protobuf.MapField.emptyMapField( MaxLimitRequestRatioDefaultEntryHolder.defaultEntry); } return maxLimitRequestRatio_; } public int getMaxLimitRequestRatioCount() { return internalGetMaxLimitRequestRatio().getMap().size(); } /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public boolean containsMaxLimitRequestRatio(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMaxLimitRequestRatio().getMap().containsKey(key); } /** Use {@link #getMaxLimitRequestRatioMap()} instead. */ @java.lang.Deprecated public java.util.Map getMaxLimitRequestRatio() { return getMaxLimitRequestRatioMap(); } /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public java.util.Map getMaxLimitRequestRatioMap() { return internalGetMaxLimitRequestRatio().getMap(); } /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public io.kubernetes.client.proto.Resource.Quantity getMaxLimitRequestRatioOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMaxLimitRequestRatio().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
     * +optional
     * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public io.kubernetes.client.proto.Resource.Quantity getMaxLimitRequestRatioOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMaxLimitRequestRatio().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMax(), MaxDefaultEntryHolder.defaultEntry, 2); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMin(), MinDefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDefault(), DefaultDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDefaultRequest(), DefaultRequestDefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMaxLimitRequestRatio(), MaxLimitRequestRatioDefaultEntryHolder.defaultEntry, 6); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } for (java.util.Map.Entry entry : internalGetMax().getMap().entrySet()) { com.google.protobuf.MapEntry max__ = MaxDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, max__); } for (java.util.Map.Entry entry : internalGetMin().getMap().entrySet()) { com.google.protobuf.MapEntry min__ = MinDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, min__); } for (java.util.Map.Entry entry : internalGetDefault().getMap().entrySet()) { com.google.protobuf.MapEntry default__ = DefaultDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, default__); } for (java.util.Map.Entry entry : internalGetDefaultRequest().getMap().entrySet()) { com.google.protobuf.MapEntry defaultRequest__ = DefaultRequestDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, defaultRequest__); } for (java.util.Map.Entry entry : internalGetMaxLimitRequestRatio().getMap().entrySet()) { com.google.protobuf.MapEntry maxLimitRequestRatio__ = MaxLimitRequestRatioDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, maxLimitRequestRatio__); } 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.V1.LimitRangeItem)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LimitRangeItem other = (io.kubernetes.client.proto.V1.LimitRangeItem) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && internalGetMax().equals(other.internalGetMax()); result = result && internalGetMin().equals(other.internalGetMin()); result = result && internalGetDefault().equals(other.internalGetDefault()); result = result && internalGetDefaultRequest().equals(other.internalGetDefaultRequest()); result = result && internalGetMaxLimitRequestRatio().equals(other.internalGetMaxLimitRequestRatio()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (!internalGetMax().getMap().isEmpty()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + internalGetMax().hashCode(); } if (!internalGetMin().getMap().isEmpty()) { hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + internalGetMin().hashCode(); } if (!internalGetDefault().getMap().isEmpty()) { hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + internalGetDefault().hashCode(); } if (!internalGetDefaultRequest().getMap().isEmpty()) { hash = (37 * hash) + DEFAULTREQUEST_FIELD_NUMBER; hash = (53 * hash) + internalGetDefaultRequest().hashCode(); } if (!internalGetMaxLimitRequestRatio().getMap().isEmpty()) { hash = (37 * hash) + MAXLIMITREQUESTRATIO_FIELD_NUMBER; hash = (53 * hash) + internalGetMaxLimitRequestRatio().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LimitRangeItem parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeItem 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.V1.LimitRangeItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeItem 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.V1.LimitRangeItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LimitRangeItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeItem 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.V1.LimitRangeItem parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeItem 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.V1.LimitRangeItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeItem 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.V1.LimitRangeItem 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; } /** * * *
     * LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRangeItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LimitRangeItem) io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetMax(); case 3: return internalGetMin(); case 4: return internalGetDefault(); case 5: return internalGetDefaultRequest(); case 6: return internalGetMaxLimitRequestRatio(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableMax(); case 3: return internalGetMutableMin(); case 4: return internalGetMutableDefault(); case 5: return internalGetMutableDefaultRequest(); case 6: return internalGetMutableMaxLimitRequestRatio(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRangeItem.class, io.kubernetes.client.proto.V1.LimitRangeItem.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LimitRangeItem.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(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableMax().clear(); internalGetMutableMin().clear(); internalGetMutableDefault().clear(); internalGetMutableDefaultRequest().clear(); internalGetMutableMaxLimitRequestRatio().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeItem getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LimitRangeItem.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeItem build() { io.kubernetes.client.proto.V1.LimitRangeItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeItem buildPartial() { io.kubernetes.client.proto.V1.LimitRangeItem result = new io.kubernetes.client.proto.V1.LimitRangeItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; result.max_ = internalGetMax(); result.max_.makeImmutable(); result.min_ = internalGetMin(); result.min_.makeImmutable(); result.default_ = internalGetDefault(); result.default_.makeImmutable(); result.defaultRequest_ = internalGetDefaultRequest(); result.defaultRequest_.makeImmutable(); result.maxLimitRequestRatio_ = internalGetMaxLimitRequestRatio(); result.maxLimitRequestRatio_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.LimitRangeItem) { return mergeFrom((io.kubernetes.client.proto.V1.LimitRangeItem) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LimitRangeItem other) { if (other == io.kubernetes.client.proto.V1.LimitRangeItem.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } internalGetMutableMax().mergeFrom(other.internalGetMax()); internalGetMutableMin().mergeFrom(other.internalGetMin()); internalGetMutableDefault().mergeFrom(other.internalGetDefault()); internalGetMutableDefaultRequest().mergeFrom(other.internalGetDefaultRequest()); internalGetMutableMaxLimitRequestRatio().mergeFrom(other.internalGetMaxLimitRequestRatio()); 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.V1.LimitRangeItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LimitRangeItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Type of resource that this limit applies to.
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Type of resource that this limit applies to.
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type of resource that this limit applies to.
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type of resource that this limit applies to.
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Type of resource that this limit applies to.
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type of resource that this limit applies to.
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> max_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMax() { if (max_ == null) { return com.google.protobuf.MapField.emptyMapField(MaxDefaultEntryHolder.defaultEntry); } return max_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableMax() { onChanged(); ; if (max_ == null) { max_ = com.google.protobuf.MapField.newMapField(MaxDefaultEntryHolder.defaultEntry); } if (!max_.isMutable()) { max_ = max_.copy(); } return max_; } public int getMaxCount() { return internalGetMax().getMap().size(); } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public boolean containsMax(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMax().getMap().containsKey(key); } /** Use {@link #getMaxMap()} instead. */ @java.lang.Deprecated public java.util.Map getMax() { return getMaxMap(); } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public java.util.Map getMaxMap() { return internalGetMax().getMap(); } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public io.kubernetes.client.proto.Resource.Quantity getMaxOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMax().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public io.kubernetes.client.proto.Resource.Quantity getMaxOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMax().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMax() { internalGetMutableMax().getMutableMap().clear(); return this; } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public Builder removeMax(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableMax().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMax() { return internalGetMutableMax().getMutableMap(); } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public Builder putMax( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableMax().getMutableMap().put(key, value); return this; } /** * * *
       * Max usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2; */ public Builder putAllMax( java.util.Map values) { internalGetMutableMax().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> min_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMin() { if (min_ == null) { return com.google.protobuf.MapField.emptyMapField(MinDefaultEntryHolder.defaultEntry); } return min_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableMin() { onChanged(); ; if (min_ == null) { min_ = com.google.protobuf.MapField.newMapField(MinDefaultEntryHolder.defaultEntry); } if (!min_.isMutable()) { min_ = min_.copy(); } return min_; } public int getMinCount() { return internalGetMin().getMap().size(); } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public boolean containsMin(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMin().getMap().containsKey(key); } /** Use {@link #getMinMap()} instead. */ @java.lang.Deprecated public java.util.Map getMin() { return getMinMap(); } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public java.util.Map getMinMap() { return internalGetMin().getMap(); } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public io.kubernetes.client.proto.Resource.Quantity getMinOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMin().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public io.kubernetes.client.proto.Resource.Quantity getMinOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMin().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMin() { internalGetMutableMin().getMutableMap().clear(); return this; } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public Builder removeMin(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableMin().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMin() { return internalGetMutableMin().getMutableMap(); } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public Builder putMin( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableMin().getMutableMap().put(key, value); return this; } /** * * *
       * Min usage constraints on this kind by resource name.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3; */ public Builder putAllMin( java.util.Map values) { internalGetMutableMin().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> default_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetDefault() { if (default_ == null) { return com.google.protobuf.MapField.emptyMapField(DefaultDefaultEntryHolder.defaultEntry); } return default_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableDefault() { onChanged(); ; if (default_ == null) { default_ = com.google.protobuf.MapField.newMapField(DefaultDefaultEntryHolder.defaultEntry); } if (!default_.isMutable()) { default_ = default_.copy(); } return default_; } public int getDefaultCount() { return internalGetDefault().getMap().size(); } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public boolean containsDefault(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDefault().getMap().containsKey(key); } /** Use {@link #getDefaultMap()} instead. */ @java.lang.Deprecated public java.util.Map getDefault() { return getDefaultMap(); } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public java.util.Map getDefaultMap() { return internalGetDefault().getMap(); } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public io.kubernetes.client.proto.Resource.Quantity getDefaultOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefault().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public io.kubernetes.client.proto.Resource.Quantity getDefaultOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefault().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDefault() { internalGetMutableDefault().getMutableMap().clear(); return this; } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public Builder removeDefault(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableDefault().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDefault() { return internalGetMutableDefault().getMutableMap(); } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public Builder putDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableDefault().getMutableMap().put(key, value); return this; } /** * * *
       * Default resource requirement limit value by resource name if resource limit is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4; */ public Builder putAllDefault( java.util.Map values) { internalGetMutableDefault().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultRequest_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetDefaultRequest() { if (defaultRequest_ == null) { return com.google.protobuf.MapField.emptyMapField( DefaultRequestDefaultEntryHolder.defaultEntry); } return defaultRequest_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableDefaultRequest() { onChanged(); ; if (defaultRequest_ == null) { defaultRequest_ = com.google.protobuf.MapField.newMapField( DefaultRequestDefaultEntryHolder.defaultEntry); } if (!defaultRequest_.isMutable()) { defaultRequest_ = defaultRequest_.copy(); } return defaultRequest_; } public int getDefaultRequestCount() { return internalGetDefaultRequest().getMap().size(); } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public boolean containsDefaultRequest(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDefaultRequest().getMap().containsKey(key); } /** Use {@link #getDefaultRequestMap()} instead. */ @java.lang.Deprecated public java.util.Map getDefaultRequest() { return getDefaultRequestMap(); } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public java.util.Map getDefaultRequestMap() { return internalGetDefaultRequest().getMap(); } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public io.kubernetes.client.proto.Resource.Quantity getDefaultRequestOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefaultRequest().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public io.kubernetes.client.proto.Resource.Quantity getDefaultRequestOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDefaultRequest().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDefaultRequest() { internalGetMutableDefaultRequest().getMutableMap().clear(); return this; } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public Builder removeDefaultRequest(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableDefaultRequest().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDefaultRequest() { return internalGetMutableDefaultRequest().getMutableMap(); } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public Builder putDefaultRequest( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableDefaultRequest().getMutableMap().put(key, value); return this; } /** * * *
       * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5; * */ public Builder putAllDefaultRequest( java.util.Map values) { internalGetMutableDefaultRequest().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> maxLimitRequestRatio_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMaxLimitRequestRatio() { if (maxLimitRequestRatio_ == null) { return com.google.protobuf.MapField.emptyMapField( MaxLimitRequestRatioDefaultEntryHolder.defaultEntry); } return maxLimitRequestRatio_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableMaxLimitRequestRatio() { onChanged(); ; if (maxLimitRequestRatio_ == null) { maxLimitRequestRatio_ = com.google.protobuf.MapField.newMapField( MaxLimitRequestRatioDefaultEntryHolder.defaultEntry); } if (!maxLimitRequestRatio_.isMutable()) { maxLimitRequestRatio_ = maxLimitRequestRatio_.copy(); } return maxLimitRequestRatio_; } public int getMaxLimitRequestRatioCount() { return internalGetMaxLimitRequestRatio().getMap().size(); } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public boolean containsMaxLimitRequestRatio(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMaxLimitRequestRatio().getMap().containsKey(key); } /** Use {@link #getMaxLimitRequestRatioMap()} instead. */ @java.lang.Deprecated public java.util.Map getMaxLimitRequestRatio() { return getMaxLimitRequestRatioMap(); } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public java.util.Map getMaxLimitRequestRatioMap() { return internalGetMaxLimitRequestRatio().getMap(); } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public io.kubernetes.client.proto.Resource.Quantity getMaxLimitRequestRatioOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMaxLimitRequestRatio().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public io.kubernetes.client.proto.Resource.Quantity getMaxLimitRequestRatioOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMaxLimitRequestRatio().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMaxLimitRequestRatio() { internalGetMutableMaxLimitRequestRatio().getMutableMap().clear(); return this; } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public Builder removeMaxLimitRequestRatio(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableMaxLimitRequestRatio().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMaxLimitRequestRatio() { return internalGetMutableMaxLimitRequestRatio().getMutableMap(); } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public Builder putMaxLimitRequestRatio( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableMaxLimitRequestRatio().getMutableMap().put(key, value); return this; } /** * * *
       * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       * +optional
       * 
* * * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6; * */ public Builder putAllMaxLimitRequestRatio( java.util.Map values) { internalGetMutableMaxLimitRequestRatio().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.LimitRangeItem) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LimitRangeItem) private static final io.kubernetes.client.proto.V1.LimitRangeItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LimitRangeItem(); } public static io.kubernetes.client.proto.V1.LimitRangeItem getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitRangeItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitRangeItem(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.V1.LimitRangeItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitRangeListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LimitRangeList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ io.kubernetes.client.proto.V1.LimitRange getItems(int index); /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ int getItemsCount(); /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ io.kubernetes.client.proto.V1.LimitRangeOrBuilder getItemsOrBuilder(int index); } /** * * *
   * LimitRangeList is a list of LimitRange items.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRangeList} */ public static final class LimitRangeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LimitRangeList) LimitRangeListOrBuilder { private static final long serialVersionUID = 0L; // Use LimitRangeList.newBuilder() to construct. private LimitRangeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitRangeList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitRangeList( 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.V1.LimitRange.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 .V1 .internal_static_k8s_io_api_core_v1_LimitRangeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRangeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRangeList.class, io.kubernetes.client.proto.V1.LimitRangeList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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 a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRange getItems(int index) { return items_.get(index); } /** * * *
     * Items is a list of LimitRange objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRangeOrBuilder 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.V1.LimitRangeList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LimitRangeList other = (io.kubernetes.client.proto.V1.LimitRangeList) 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.V1.LimitRangeList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeList 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.V1.LimitRangeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeList 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.V1.LimitRangeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LimitRangeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeList 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.V1.LimitRangeList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeList 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.V1.LimitRangeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeList 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.V1.LimitRangeList 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; } /** * * *
     * LimitRangeList is a list of LimitRange items.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRangeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LimitRangeList) io.kubernetes.client.proto.V1.LimitRangeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRangeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRangeList.class, io.kubernetes.client.proto.V1.LimitRangeList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LimitRangeList.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 .V1 .internal_static_k8s_io_api_core_v1_LimitRangeList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LimitRangeList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeList build() { io.kubernetes.client.proto.V1.LimitRangeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeList buildPartial() { io.kubernetes.client.proto.V1.LimitRangeList result = new io.kubernetes.client.proto.V1.LimitRangeList(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.V1.LimitRangeList) { return mergeFrom((io.kubernetes.client.proto.V1.LimitRangeList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LimitRangeList other) { if (other == io.kubernetes.client.proto.V1.LimitRangeList.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.V1.LimitRangeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LimitRangeList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.LimitRange, io.kubernetes.client.proto.V1.LimitRange.Builder, io.kubernetes.client.proto.V1.LimitRangeOrBuilder> itemsBuilder_; /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRange getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.LimitRange 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 a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.LimitRange.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.LimitRange value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.LimitRange 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 a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.LimitRange.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.LimitRange.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange 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 a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRange.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRangeOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRange.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.LimitRange.getDefaultInstance()); } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public io.kubernetes.client.proto.V1.LimitRange.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.LimitRange.getDefaultInstance()); } /** * * *
       * Items is a list of LimitRange objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * 
* * repeated .k8s.io.api.core.v1.LimitRange items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRange, io.kubernetes.client.proto.V1.LimitRange.Builder, io.kubernetes.client.proto.V1.LimitRangeOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRange, io.kubernetes.client.proto.V1.LimitRange.Builder, io.kubernetes.client.proto.V1.LimitRangeOrBuilder>( 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.core.v1.LimitRangeList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LimitRangeList) private static final io.kubernetes.client.proto.V1.LimitRangeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LimitRangeList(); } public static io.kubernetes.client.proto.V1.LimitRangeList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitRangeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitRangeList(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.V1.LimitRangeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LimitRangeSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LimitRangeSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ java.util.List getLimitsList(); /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ io.kubernetes.client.proto.V1.LimitRangeItem getLimits(int index); /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ int getLimitsCount(); /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ java.util.List getLimitsOrBuilderList(); /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder getLimitsOrBuilder(int index); } /** * * *
   * LimitRangeSpec defines a min/max usage limit for resources that match on kind.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRangeSpec} */ public static final class LimitRangeSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LimitRangeSpec) LimitRangeSpecOrBuilder { private static final long serialVersionUID = 0L; // Use LimitRangeSpec.newBuilder() to construct. private LimitRangeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LimitRangeSpec() { limits_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LimitRangeSpec( 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)) { limits_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } limits_.add( input.readMessage( io.kubernetes.client.proto.V1.LimitRangeItem.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)) { limits_ = java.util.Collections.unmodifiableList(limits_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRangeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRangeSpec.class, io.kubernetes.client.proto.V1.LimitRangeSpec.Builder.class); } public static final int LIMITS_FIELD_NUMBER = 1; private java.util.List limits_; /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public java.util.List getLimitsList() { return limits_; } /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public java.util.List getLimitsOrBuilderList() { return limits_; } /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public int getLimitsCount() { return limits_.size(); } /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItem getLimits(int index) { return limits_.get(index); } /** * * *
     * Limits is the list of LimitRangeItem objects that are enforced.
     * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder getLimitsOrBuilder(int index) { return limits_.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 < limits_.size(); i++) { output.writeMessage(1, limits_.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 < limits_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, limits_.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.V1.LimitRangeSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LimitRangeSpec other = (io.kubernetes.client.proto.V1.LimitRangeSpec) obj; boolean result = true; result = result && getLimitsList().equals(other.getLimitsList()); 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 (getLimitsCount() > 0) { hash = (37 * hash) + LIMITS_FIELD_NUMBER; hash = (53 * hash) + getLimitsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LimitRangeSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeSpec 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.V1.LimitRangeSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeSpec 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.V1.LimitRangeSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LimitRangeSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LimitRangeSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeSpec 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.V1.LimitRangeSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeSpec 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.V1.LimitRangeSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LimitRangeSpec 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.V1.LimitRangeSpec 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; } /** * * *
     * LimitRangeSpec defines a min/max usage limit for resources that match on kind.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LimitRangeSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LimitRangeSpec) io.kubernetes.client.proto.V1.LimitRangeSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LimitRangeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LimitRangeSpec.class, io.kubernetes.client.proto.V1.LimitRangeSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LimitRangeSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLimitsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (limitsBuilder_ == null) { limits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { limitsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LimitRangeSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LimitRangeSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeSpec build() { io.kubernetes.client.proto.V1.LimitRangeSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LimitRangeSpec buildPartial() { io.kubernetes.client.proto.V1.LimitRangeSpec result = new io.kubernetes.client.proto.V1.LimitRangeSpec(this); int from_bitField0_ = bitField0_; if (limitsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { limits_ = java.util.Collections.unmodifiableList(limits_); bitField0_ = (bitField0_ & ~0x00000001); } result.limits_ = limits_; } else { result.limits_ = limitsBuilder_.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.V1.LimitRangeSpec) { return mergeFrom((io.kubernetes.client.proto.V1.LimitRangeSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LimitRangeSpec other) { if (other == io.kubernetes.client.proto.V1.LimitRangeSpec.getDefaultInstance()) return this; if (limitsBuilder_ == null) { if (!other.limits_.isEmpty()) { if (limits_.isEmpty()) { limits_ = other.limits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLimitsIsMutable(); limits_.addAll(other.limits_); } onChanged(); } } else { if (!other.limits_.isEmpty()) { if (limitsBuilder_.isEmpty()) { limitsBuilder_.dispose(); limitsBuilder_ = null; limits_ = other.limits_; bitField0_ = (bitField0_ & ~0x00000001); limitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLimitsFieldBuilder() : null; } else { limitsBuilder_.addAllMessages(other.limits_); } } } 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.V1.LimitRangeSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LimitRangeSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List limits_ = java.util.Collections.emptyList(); private void ensureLimitsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { limits_ = new java.util.ArrayList(limits_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRangeItem, io.kubernetes.client.proto.V1.LimitRangeItem.Builder, io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder> limitsBuilder_; /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public java.util.List getLimitsList() { if (limitsBuilder_ == null) { return java.util.Collections.unmodifiableList(limits_); } else { return limitsBuilder_.getMessageList(); } } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public int getLimitsCount() { if (limitsBuilder_ == null) { return limits_.size(); } else { return limitsBuilder_.getCount(); } } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItem getLimits(int index) { if (limitsBuilder_ == null) { return limits_.get(index); } else { return limitsBuilder_.getMessage(index); } } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder setLimits(int index, io.kubernetes.client.proto.V1.LimitRangeItem value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLimitsIsMutable(); limits_.set(index, value); onChanged(); } else { limitsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder setLimits( int index, io.kubernetes.client.proto.V1.LimitRangeItem.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.set(index, builderForValue.build()); onChanged(); } else { limitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder addLimits(io.kubernetes.client.proto.V1.LimitRangeItem value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLimitsIsMutable(); limits_.add(value); onChanged(); } else { limitsBuilder_.addMessage(value); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder addLimits(int index, io.kubernetes.client.proto.V1.LimitRangeItem value) { if (limitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLimitsIsMutable(); limits_.add(index, value); onChanged(); } else { limitsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder addLimits( io.kubernetes.client.proto.V1.LimitRangeItem.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.add(builderForValue.build()); onChanged(); } else { limitsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder addLimits( int index, io.kubernetes.client.proto.V1.LimitRangeItem.Builder builderForValue) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.add(index, builderForValue.build()); onChanged(); } else { limitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder addAllLimits( java.lang.Iterable values) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, limits_); onChanged(); } else { limitsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder clearLimits() { if (limitsBuilder_ == null) { limits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { limitsBuilder_.clear(); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public Builder removeLimits(int index) { if (limitsBuilder_ == null) { ensureLimitsIsMutable(); limits_.remove(index); onChanged(); } else { limitsBuilder_.remove(index); } return this; } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItem.Builder getLimitsBuilder(int index) { return getLimitsFieldBuilder().getBuilder(index); } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder getLimitsOrBuilder(int index) { if (limitsBuilder_ == null) { return limits_.get(index); } else { return limitsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public java.util.List getLimitsOrBuilderList() { if (limitsBuilder_ != null) { return limitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(limits_); } } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItem.Builder addLimitsBuilder() { return getLimitsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.LimitRangeItem.getDefaultInstance()); } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public io.kubernetes.client.proto.V1.LimitRangeItem.Builder addLimitsBuilder(int index) { return getLimitsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.LimitRangeItem.getDefaultInstance()); } /** * * *
       * Limits is the list of LimitRangeItem objects that are enforced.
       * 
* * repeated .k8s.io.api.core.v1.LimitRangeItem limits = 1; */ public java.util.List getLimitsBuilderList() { return getLimitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRangeItem, io.kubernetes.client.proto.V1.LimitRangeItem.Builder, io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder> getLimitsFieldBuilder() { if (limitsBuilder_ == null) { limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LimitRangeItem, io.kubernetes.client.proto.V1.LimitRangeItem.Builder, io.kubernetes.client.proto.V1.LimitRangeItemOrBuilder>( limits_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); limits_ = null; } return limitsBuilder_; } @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.core.v1.LimitRangeSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LimitRangeSpec) private static final io.kubernetes.client.proto.V1.LimitRangeSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LimitRangeSpec(); } public static io.kubernetes.client.proto.V1.LimitRangeSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LimitRangeSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LimitRangeSpec(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.V1.LimitRangeSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.List) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ java.util.List getItemsList(); /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ io.kubernetes.client.proto.Runtime.RawExtension getItems(int index); /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ int getItemsCount(); /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getItemsOrBuilder(int index); } /** * * *
   * List holds a list of objects, which may not be known by the server.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.List} */ public static final class List extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.List) ListOrBuilder { private static final long serialVersionUID = 0L; // Use List.newBuilder() to construct. private List(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private List() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private List( 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.Runtime.RawExtension.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 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.V1.internal_static_k8s_io_api_core_v1_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_List_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.List.class, io.kubernetes.client.proto.V1.List.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension getItems(int index) { return items_.get(index); } /** * * *
     * List of objects
     * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder 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.V1.List)) { return super.equals(obj); } io.kubernetes.client.proto.V1.List other = (io.kubernetes.client.proto.V1.List) 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.V1.List parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.List 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.V1.List parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.List 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.V1.List parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.List parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.List parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.List 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.V1.List parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.List 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.V1.List parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.List 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.V1.List 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; } /** * * *
     * List holds a list of objects, which may not be known by the server.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.List} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.List) io.kubernetes.client.proto.V1.ListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_List_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_List_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.List.class, io.kubernetes.client.proto.V1.List.Builder.class); } // Construct using io.kubernetes.client.proto.V1.List.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.V1.internal_static_k8s_io_api_core_v1_List_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.List getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.List.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.List build() { io.kubernetes.client.proto.V1.List result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.List buildPartial() { io.kubernetes.client.proto.V1.List result = new io.kubernetes.client.proto.V1.List(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.V1.List) { return mergeFrom((io.kubernetes.client.proto.V1.List) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.List other) { if (other == io.kubernetes.client.proto.V1.List.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.V1.List parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.List) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> itemsBuilder_; /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.Runtime.RawExtension value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder addItems(io.kubernetes.client.proto.Runtime.RawExtension value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.Runtime.RawExtension value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder addItems( io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension 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; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()); } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public io.kubernetes.client.proto.Runtime.RawExtension.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()); } /** * * *
       * List of objects
       * 
* * repeated .k8s.io.apimachinery.pkg.runtime.RawExtension items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder>( 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.core.v1.List) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.List) private static final io.kubernetes.client.proto.V1.List DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.List(); } public static io.kubernetes.client.proto.V1.List getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public List parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new List(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.V1.List getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoadBalancerIngressOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LoadBalancerIngress) com.google.protobuf.MessageOrBuilder { /** * * *
     * IP is set for load-balancer ingress points that are IP based
     * (typically GCE or OpenStack load-balancers)
     * +optional
     * 
* * optional string ip = 1; */ boolean hasIp(); /** * * *
     * IP is set for load-balancer ingress points that are IP based
     * (typically GCE or OpenStack load-balancers)
     * +optional
     * 
* * optional string ip = 1; */ java.lang.String getIp(); /** * * *
     * IP is set for load-balancer ingress points that are IP based
     * (typically GCE or OpenStack load-balancers)
     * +optional
     * 
* * optional string ip = 1; */ com.google.protobuf.ByteString getIpBytes(); /** * * *
     * Hostname is set for load-balancer ingress points that are DNS based
     * (typically AWS load-balancers)
     * +optional
     * 
* * optional string hostname = 2; */ boolean hasHostname(); /** * * *
     * Hostname is set for load-balancer ingress points that are DNS based
     * (typically AWS load-balancers)
     * +optional
     * 
* * optional string hostname = 2; */ java.lang.String getHostname(); /** * * *
     * Hostname is set for load-balancer ingress points that are DNS based
     * (typically AWS load-balancers)
     * +optional
     * 
* * optional string hostname = 2; */ com.google.protobuf.ByteString getHostnameBytes(); /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ java.util.List getPortsList(); /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ io.kubernetes.client.proto.V1.PortStatus getPorts(int index); /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ int getPortsCount(); /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ java.util.List getPortsOrBuilderList(); /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ io.kubernetes.client.proto.V1.PortStatusOrBuilder getPortsOrBuilder(int index); } /** * * *
   * LoadBalancerIngress represents the status of a load-balancer ingress point:
   * traffic intended for the service should be sent to an ingress point.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LoadBalancerIngress} */ public static final class LoadBalancerIngress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LoadBalancerIngress) LoadBalancerIngressOrBuilder { private static final long serialVersionUID = 0L; // Use LoadBalancerIngress.newBuilder() to construct. private LoadBalancerIngress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadBalancerIngress() { ip_ = ""; hostname_ = ""; ports_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadBalancerIngress( 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; ip_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; hostname_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } ports_.add( input.readMessage( io.kubernetes.client.proto.V1.PortStatus.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ports_ = java.util.Collections.unmodifiableList(ports_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LoadBalancerIngress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LoadBalancerIngress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LoadBalancerIngress.class, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder.class); } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private volatile java.lang.Object ip_; /** * * *
     * IP is set for load-balancer ingress points that are IP based
     * (typically GCE or OpenStack load-balancers)
     * +optional
     * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * IP is set for load-balancer ingress points that are IP based
     * (typically GCE or OpenStack load-balancers)
     * +optional
     * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * * *
     * IP is set for load-balancer ingress points that are IP based
     * (typically GCE or OpenStack load-balancers)
     * +optional
     * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTNAME_FIELD_NUMBER = 2; private volatile java.lang.Object hostname_; /** * * *
     * Hostname is set for load-balancer ingress points that are DNS based
     * (typically AWS load-balancers)
     * +optional
     * 
* * optional string hostname = 2; */ public boolean hasHostname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Hostname is set for load-balancer ingress points that are DNS based
     * (typically AWS load-balancers)
     * +optional
     * 
* * optional string hostname = 2; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * * *
     * Hostname is set for load-balancer ingress points that are DNS based
     * (typically AWS load-balancers)
     * +optional
     * 
* * optional string hostname = 2; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORTS_FIELD_NUMBER = 4; private java.util.List ports_; /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public java.util.List getPortsList() { return ports_; } /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public java.util.List getPortsOrBuilderList() { return ports_; } /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public int getPortsCount() { return ports_.size(); } /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatus getPorts(int index) { return ports_.get(index); } /** * * *
     * Ports is a list of records of service ports
     * If used, every port defined in the service should have an entry in it
     * +listType=atomic
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatusOrBuilder getPortsOrBuilder(int index) { return ports_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_); } for (int i = 0; i < ports_.size(); i++) { output.writeMessage(4, ports_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_); } for (int i = 0; i < ports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, ports_.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.V1.LoadBalancerIngress)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LoadBalancerIngress other = (io.kubernetes.client.proto.V1.LoadBalancerIngress) obj; boolean result = true; result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && getIp().equals(other.getIp()); } result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname().equals(other.getHostname()); } result = result && getPortsList().equals(other.getPortsList()); 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 (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (getPortsCount() > 0) { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LoadBalancerIngress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress 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.V1.LoadBalancerIngress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress 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.V1.LoadBalancerIngress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress 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.V1.LoadBalancerIngress parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress 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.V1.LoadBalancerIngress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress 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.V1.LoadBalancerIngress 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; } /** * * *
     * LoadBalancerIngress represents the status of a load-balancer ingress point:
     * traffic intended for the service should be sent to an ingress point.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LoadBalancerIngress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LoadBalancerIngress) io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LoadBalancerIngress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LoadBalancerIngress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LoadBalancerIngress.class, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LoadBalancerIngress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPortsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); hostname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { portsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LoadBalancerIngress_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LoadBalancerIngress getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LoadBalancerIngress.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LoadBalancerIngress build() { io.kubernetes.client.proto.V1.LoadBalancerIngress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LoadBalancerIngress buildPartial() { io.kubernetes.client.proto.V1.LoadBalancerIngress result = new io.kubernetes.client.proto.V1.LoadBalancerIngress(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.hostname_ = hostname_; if (portsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { ports_ = java.util.Collections.unmodifiableList(ports_); bitField0_ = (bitField0_ & ~0x00000004); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.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.V1.LoadBalancerIngress) { return mergeFrom((io.kubernetes.client.proto.V1.LoadBalancerIngress) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LoadBalancerIngress other) { if (other == io.kubernetes.client.proto.V1.LoadBalancerIngress.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; onChanged(); } if (other.hasHostname()) { bitField0_ |= 0x00000002; hostname_ = other.hostname_; onChanged(); } if (portsBuilder_ == null) { if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); } onChanged(); } } else { if (!other.ports_.isEmpty()) { if (portsBuilder_.isEmpty()) { portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000004); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() : null; } else { portsBuilder_.addAllMessages(other.ports_); } } } 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.V1.LoadBalancerIngress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LoadBalancerIngress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * * *
       * IP is set for load-balancer ingress points that are IP based
       * (typically GCE or OpenStack load-balancers)
       * +optional
       * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * IP is set for load-balancer ingress points that are IP based
       * (typically GCE or OpenStack load-balancers)
       * +optional
       * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * IP is set for load-balancer ingress points that are IP based
       * (typically GCE or OpenStack load-balancers)
       * +optional
       * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * IP is set for load-balancer ingress points that are IP based
       * (typically GCE or OpenStack load-balancers)
       * +optional
       * 
* * optional string ip = 1; */ public Builder setIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * * *
       * IP is set for load-balancer ingress points that are IP based
       * (typically GCE or OpenStack load-balancers)
       * +optional
       * 
* * optional string ip = 1; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * * *
       * IP is set for load-balancer ingress points that are IP based
       * (typically GCE or OpenStack load-balancers)
       * +optional
       * 
* * optional string ip = 1; */ public Builder setIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } private java.lang.Object hostname_ = ""; /** * * *
       * Hostname is set for load-balancer ingress points that are DNS based
       * (typically AWS load-balancers)
       * +optional
       * 
* * optional string hostname = 2; */ public boolean hasHostname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Hostname is set for load-balancer ingress points that are DNS based
       * (typically AWS load-balancers)
       * +optional
       * 
* * optional string hostname = 2; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Hostname is set for load-balancer ingress points that are DNS based
       * (typically AWS load-balancers)
       * +optional
       * 
* * optional string hostname = 2; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Hostname is set for load-balancer ingress points that are DNS based
       * (typically AWS load-balancers)
       * +optional
       * 
* * optional string hostname = 2; */ public Builder setHostname(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; hostname_ = value; onChanged(); return this; } /** * * *
       * Hostname is set for load-balancer ingress points that are DNS based
       * (typically AWS load-balancers)
       * +optional
       * 
* * optional string hostname = 2; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00000002); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * * *
       * Hostname is set for load-balancer ingress points that are DNS based
       * (typically AWS load-balancers)
       * +optional
       * 
* * optional string hostname = 2; */ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; hostname_ = value; onChanged(); return this; } private java.util.List ports_ = java.util.Collections.emptyList(); private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { ports_ = new java.util.ArrayList(ports_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PortStatus, io.kubernetes.client.proto.V1.PortStatus.Builder, io.kubernetes.client.proto.V1.PortStatusOrBuilder> portsBuilder_; /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public java.util.List getPortsList() { if (portsBuilder_ == null) { return java.util.Collections.unmodifiableList(ports_); } else { return portsBuilder_.getMessageList(); } } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public int getPortsCount() { if (portsBuilder_ == null) { return ports_.size(); } else { return portsBuilder_.getCount(); } } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatus getPorts(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessage(index); } } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder setPorts(int index, io.kubernetes.client.proto.V1.PortStatus value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.set(index, value); onChanged(); } else { portsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder setPorts( int index, io.kubernetes.client.proto.V1.PortStatus.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.set(index, builderForValue.build()); onChanged(); } else { portsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder addPorts(io.kubernetes.client.proto.V1.PortStatus value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(value); onChanged(); } else { portsBuilder_.addMessage(value); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder addPorts(int index, io.kubernetes.client.proto.V1.PortStatus value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(index, value); onChanged(); } else { portsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder addPorts(io.kubernetes.client.proto.V1.PortStatus.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder addPorts( int index, io.kubernetes.client.proto.V1.PortStatus.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(index, builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder addAllPorts( java.lang.Iterable values) { if (portsBuilder_ == null) { ensurePortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); onChanged(); } else { portsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { portsBuilder_.clear(); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public Builder removePorts(int index) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.remove(index); onChanged(); } else { portsBuilder_.remove(index); } return this; } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatus.Builder getPortsBuilder(int index) { return getPortsFieldBuilder().getBuilder(index); } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatusOrBuilder getPortsOrBuilder(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public java.util.List getPortsOrBuilderList() { if (portsBuilder_ != null) { return portsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ports_); } } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatus.Builder addPortsBuilder() { return getPortsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PortStatus.getDefaultInstance()); } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public io.kubernetes.client.proto.V1.PortStatus.Builder addPortsBuilder(int index) { return getPortsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PortStatus.getDefaultInstance()); } /** * * *
       * Ports is a list of records of service ports
       * If used, every port defined in the service should have an entry in it
       * +listType=atomic
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PortStatus ports = 4; */ public java.util.List getPortsBuilderList() { return getPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PortStatus, io.kubernetes.client.proto.V1.PortStatus.Builder, io.kubernetes.client.proto.V1.PortStatusOrBuilder> getPortsFieldBuilder() { if (portsBuilder_ == null) { portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PortStatus, io.kubernetes.client.proto.V1.PortStatus.Builder, io.kubernetes.client.proto.V1.PortStatusOrBuilder>( ports_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; } @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.core.v1.LoadBalancerIngress) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LoadBalancerIngress) private static final io.kubernetes.client.proto.V1.LoadBalancerIngress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LoadBalancerIngress(); } public static io.kubernetes.client.proto.V1.LoadBalancerIngress getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadBalancerIngress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadBalancerIngress(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.V1.LoadBalancerIngress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoadBalancerStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LoadBalancerStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ java.util.List getIngressList(); /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ io.kubernetes.client.proto.V1.LoadBalancerIngress getIngress(int index); /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ int getIngressCount(); /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ java.util.List getIngressOrBuilderList(); /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder getIngressOrBuilder(int index); } /** * * *
   * LoadBalancerStatus represents the status of a load-balancer.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LoadBalancerStatus} */ public static final class LoadBalancerStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LoadBalancerStatus) LoadBalancerStatusOrBuilder { private static final long serialVersionUID = 0L; // Use LoadBalancerStatus.newBuilder() to construct. private LoadBalancerStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadBalancerStatus() { ingress_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadBalancerStatus( 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)) { ingress_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ingress_.add( input.readMessage( io.kubernetes.client.proto.V1.LoadBalancerIngress.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)) { ingress_ = java.util.Collections.unmodifiableList(ingress_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LoadBalancerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LoadBalancerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LoadBalancerStatus.class, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder.class); } public static final int INGRESS_FIELD_NUMBER = 1; private java.util.List ingress_; /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public java.util.List getIngressList() { return ingress_; } /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public java.util.List getIngressOrBuilderList() { return ingress_; } /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public int getIngressCount() { return ingress_.size(); } /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngress getIngress(int index) { return ingress_.get(index); } /** * * *
     * Ingress is a list containing ingress points for the load-balancer.
     * Traffic intended for the service should be sent to these ingress points.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder getIngressOrBuilder( int index) { return ingress_.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 < ingress_.size(); i++) { output.writeMessage(1, ingress_.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 < ingress_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ingress_.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.V1.LoadBalancerStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LoadBalancerStatus other = (io.kubernetes.client.proto.V1.LoadBalancerStatus) obj; boolean result = true; result = result && getIngressList().equals(other.getIngressList()); 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 (getIngressCount() > 0) { hash = (37 * hash) + INGRESS_FIELD_NUMBER; hash = (53 * hash) + getIngressList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LoadBalancerStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus 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.V1.LoadBalancerStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus 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.V1.LoadBalancerStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus 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.V1.LoadBalancerStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus 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.V1.LoadBalancerStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus 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.V1.LoadBalancerStatus 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; } /** * * *
     * LoadBalancerStatus represents the status of a load-balancer.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LoadBalancerStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LoadBalancerStatus) io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LoadBalancerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LoadBalancerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LoadBalancerStatus.class, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LoadBalancerStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getIngressFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (ingressBuilder_ == null) { ingress_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { ingressBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LoadBalancerStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LoadBalancerStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LoadBalancerStatus build() { io.kubernetes.client.proto.V1.LoadBalancerStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LoadBalancerStatus buildPartial() { io.kubernetes.client.proto.V1.LoadBalancerStatus result = new io.kubernetes.client.proto.V1.LoadBalancerStatus(this); int from_bitField0_ = bitField0_; if (ingressBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { ingress_ = java.util.Collections.unmodifiableList(ingress_); bitField0_ = (bitField0_ & ~0x00000001); } result.ingress_ = ingress_; } else { result.ingress_ = ingressBuilder_.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.V1.LoadBalancerStatus) { return mergeFrom((io.kubernetes.client.proto.V1.LoadBalancerStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LoadBalancerStatus other) { if (other == io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()) return this; if (ingressBuilder_ == null) { if (!other.ingress_.isEmpty()) { if (ingress_.isEmpty()) { ingress_ = other.ingress_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIngressIsMutable(); ingress_.addAll(other.ingress_); } onChanged(); } } else { if (!other.ingress_.isEmpty()) { if (ingressBuilder_.isEmpty()) { ingressBuilder_.dispose(); ingressBuilder_ = null; ingress_ = other.ingress_; bitField0_ = (bitField0_ & ~0x00000001); ingressBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getIngressFieldBuilder() : null; } else { ingressBuilder_.addAllMessages(other.ingress_); } } } 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.V1.LoadBalancerStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LoadBalancerStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ingress_ = java.util.Collections.emptyList(); private void ensureIngressIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { ingress_ = new java.util.ArrayList(ingress_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LoadBalancerIngress, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder, io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder> ingressBuilder_; /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public java.util.List getIngressList() { if (ingressBuilder_ == null) { return java.util.Collections.unmodifiableList(ingress_); } else { return ingressBuilder_.getMessageList(); } } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public int getIngressCount() { if (ingressBuilder_ == null) { return ingress_.size(); } else { return ingressBuilder_.getCount(); } } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngress getIngress(int index) { if (ingressBuilder_ == null) { return ingress_.get(index); } else { return ingressBuilder_.getMessage(index); } } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder setIngress( int index, io.kubernetes.client.proto.V1.LoadBalancerIngress value) { if (ingressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIngressIsMutable(); ingress_.set(index, value); onChanged(); } else { ingressBuilder_.setMessage(index, value); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder setIngress( int index, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder builderForValue) { if (ingressBuilder_ == null) { ensureIngressIsMutable(); ingress_.set(index, builderForValue.build()); onChanged(); } else { ingressBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder addIngress(io.kubernetes.client.proto.V1.LoadBalancerIngress value) { if (ingressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIngressIsMutable(); ingress_.add(value); onChanged(); } else { ingressBuilder_.addMessage(value); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder addIngress( int index, io.kubernetes.client.proto.V1.LoadBalancerIngress value) { if (ingressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIngressIsMutable(); ingress_.add(index, value); onChanged(); } else { ingressBuilder_.addMessage(index, value); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder addIngress( io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder builderForValue) { if (ingressBuilder_ == null) { ensureIngressIsMutable(); ingress_.add(builderForValue.build()); onChanged(); } else { ingressBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder addIngress( int index, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder builderForValue) { if (ingressBuilder_ == null) { ensureIngressIsMutable(); ingress_.add(index, builderForValue.build()); onChanged(); } else { ingressBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder addAllIngress( java.lang.Iterable values) { if (ingressBuilder_ == null) { ensureIngressIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ingress_); onChanged(); } else { ingressBuilder_.addAllMessages(values); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder clearIngress() { if (ingressBuilder_ == null) { ingress_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { ingressBuilder_.clear(); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public Builder removeIngress(int index) { if (ingressBuilder_ == null) { ensureIngressIsMutable(); ingress_.remove(index); onChanged(); } else { ingressBuilder_.remove(index); } return this; } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder getIngressBuilder( int index) { return getIngressFieldBuilder().getBuilder(index); } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder getIngressOrBuilder( int index) { if (ingressBuilder_ == null) { return ingress_.get(index); } else { return ingressBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public java.util.List getIngressOrBuilderList() { if (ingressBuilder_ != null) { return ingressBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ingress_); } } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder addIngressBuilder() { return getIngressFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.LoadBalancerIngress.getDefaultInstance()); } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder addIngressBuilder( int index) { return getIngressFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.LoadBalancerIngress.getDefaultInstance()); } /** * * *
       * Ingress is a list containing ingress points for the load-balancer.
       * Traffic intended for the service should be sent to these ingress points.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LoadBalancerIngress ingress = 1; */ public java.util.List getIngressBuilderList() { return getIngressFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LoadBalancerIngress, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder, io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder> getIngressFieldBuilder() { if (ingressBuilder_ == null) { ingressBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LoadBalancerIngress, io.kubernetes.client.proto.V1.LoadBalancerIngress.Builder, io.kubernetes.client.proto.V1.LoadBalancerIngressOrBuilder>( ingress_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); ingress_ = null; } return ingressBuilder_; } @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.core.v1.LoadBalancerStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LoadBalancerStatus) private static final io.kubernetes.client.proto.V1.LoadBalancerStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LoadBalancerStatus(); } public static io.kubernetes.client.proto.V1.LoadBalancerStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadBalancerStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadBalancerStatus(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.V1.LoadBalancerStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalObjectReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LocalObjectReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * TODO: Add other useful fields. apiVersion, kind, uid?
     * +optional
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * TODO: Add other useful fields. apiVersion, kind, uid?
     * +optional
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * TODO: Add other useful fields. apiVersion, kind, uid?
     * +optional
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * * *
   * LocalObjectReference contains enough information to let you locate the
   * referenced object inside the same namespace.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LocalObjectReference} */ public static final class LocalObjectReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LocalObjectReference) LocalObjectReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use LocalObjectReference.newBuilder() to construct. private LocalObjectReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalObjectReference() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LocalObjectReference( 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; } 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 .V1 .internal_static_k8s_io_api_core_v1_LocalObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LocalObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LocalObjectReference.class, io.kubernetes.client.proto.V1.LocalObjectReference.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * TODO: Add other useful fields. apiVersion, kind, uid?
     * +optional
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * TODO: Add other useful fields. apiVersion, kind, uid?
     * +optional
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * TODO: Add other useful fields. apiVersion, kind, uid?
     * +optional
     * 
* * 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; } } 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_); } 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_); } 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.V1.LocalObjectReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LocalObjectReference other = (io.kubernetes.client.proto.V1.LocalObjectReference) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LocalObjectReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LocalObjectReference 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.V1.LocalObjectReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LocalObjectReference 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.V1.LocalObjectReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LocalObjectReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LocalObjectReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LocalObjectReference 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.V1.LocalObjectReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LocalObjectReference 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.V1.LocalObjectReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LocalObjectReference 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.V1.LocalObjectReference 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; } /** * * *
     * LocalObjectReference contains enough information to let you locate the
     * referenced object inside the same namespace.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LocalObjectReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LocalObjectReference) io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LocalObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LocalObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LocalObjectReference.class, io.kubernetes.client.proto.V1.LocalObjectReference.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LocalObjectReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LocalObjectReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LocalObjectReference build() { io.kubernetes.client.proto.V1.LocalObjectReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LocalObjectReference buildPartial() { io.kubernetes.client.proto.V1.LocalObjectReference result = new io.kubernetes.client.proto.V1.LocalObjectReference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; 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.V1.LocalObjectReference) { return mergeFrom((io.kubernetes.client.proto.V1.LocalObjectReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LocalObjectReference other) { if (other == io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; 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.V1.LocalObjectReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LocalObjectReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * TODO: Add other useful fields. apiVersion, kind, uid?
       * +optional
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * TODO: Add other useful fields. apiVersion, kind, uid?
       * +optional
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * TODO: Add other useful fields. apiVersion, kind, uid?
       * +optional
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * TODO: Add other useful fields. apiVersion, kind, uid?
       * +optional
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * TODO: Add other useful fields. apiVersion, kind, uid?
       * +optional
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * TODO: Add other useful fields. apiVersion, kind, uid?
       * +optional
       * 
* * 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; } @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.core.v1.LocalObjectReference) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LocalObjectReference) private static final io.kubernetes.client.proto.V1.LocalObjectReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LocalObjectReference(); } public static io.kubernetes.client.proto.V1.LocalObjectReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocalObjectReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LocalObjectReference(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.V1.LocalObjectReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.LocalVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * The full path to the volume on the node.
     * It can be either a directory or block device (disk, partition, ...).
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * The full path to the volume on the node.
     * It can be either a directory or block device (disk, partition, ...).
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * The full path to the volume on the node.
     * It can be either a directory or block device (disk, partition, ...).
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * Filesystem type to mount.
     * It applies only when the Path is a block device.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * It applies only when the Path is a block device.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * It applies only when the Path is a block device.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); } /** * * *
   * Local represents directly-attached storage with node affinity (Beta feature)
   * 
* * Protobuf type {@code k8s.io.api.core.v1.LocalVolumeSource} */ public static final class LocalVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.LocalVolumeSource) LocalVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use LocalVolumeSource.newBuilder() to construct. private LocalVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalVolumeSource() { path_ = ""; fsType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LocalVolumeSource( 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; path_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = 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 .V1 .internal_static_k8s_io_api_core_v1_LocalVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LocalVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LocalVolumeSource.class, io.kubernetes.client.proto.V1.LocalVolumeSource.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * The full path to the volume on the node.
     * It can be either a directory or block device (disk, partition, ...).
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The full path to the volume on the node.
     * It can be either a directory or block device (disk, partition, ...).
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * The full path to the volume on the node.
     * It can be either a directory or block device (disk, partition, ...).
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * It applies only when the Path is a block device.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * It applies only when the Path is a block device.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * It applies only when the Path is a block device.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = 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, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } 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, path_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } 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.V1.LocalVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.LocalVolumeSource other = (io.kubernetes.client.proto.V1.LocalVolumeSource) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.LocalVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LocalVolumeSource 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.V1.LocalVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LocalVolumeSource 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.V1.LocalVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.LocalVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.LocalVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LocalVolumeSource 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.V1.LocalVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LocalVolumeSource 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.V1.LocalVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.LocalVolumeSource 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.V1.LocalVolumeSource 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; } /** * * *
     * Local represents directly-attached storage with node affinity (Beta feature)
     * 
* * Protobuf type {@code k8s.io.api.core.v1.LocalVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.LocalVolumeSource) io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LocalVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_LocalVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.LocalVolumeSource.class, io.kubernetes.client.proto.V1.LocalVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.LocalVolumeSource.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_LocalVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.LocalVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.LocalVolumeSource build() { io.kubernetes.client.proto.V1.LocalVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.LocalVolumeSource buildPartial() { io.kubernetes.client.proto.V1.LocalVolumeSource result = new io.kubernetes.client.proto.V1.LocalVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; 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.V1.LocalVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.LocalVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.LocalVolumeSource other) { if (other == io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; 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.V1.LocalVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.LocalVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * The full path to the volume on the node.
       * It can be either a directory or block device (disk, partition, ...).
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The full path to the volume on the node.
       * It can be either a directory or block device (disk, partition, ...).
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The full path to the volume on the node.
       * It can be either a directory or block device (disk, partition, ...).
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The full path to the volume on the node.
       * It can be either a directory or block device (disk, partition, ...).
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * The full path to the volume on the node.
       * It can be either a directory or block device (disk, partition, ...).
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * The full path to the volume on the node.
       * It can be either a directory or block device (disk, partition, ...).
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * It applies only when the Path is a block device.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * It applies only when the Path is a block device.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * It applies only when the Path is a block device.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * It applies only when the Path is a block device.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * It applies only when the Path is a block device.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * It applies only when the Path is a block device.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = 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.core.v1.LocalVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.LocalVolumeSource) private static final io.kubernetes.client.proto.V1.LocalVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.LocalVolumeSource(); } public static io.kubernetes.client.proto.V1.LocalVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocalVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LocalVolumeSource(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.V1.LocalVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NFSVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NFSVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Server is the hostname or IP address of the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string server = 1; */ boolean hasServer(); /** * * *
     * Server is the hostname or IP address of the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string server = 1; */ java.lang.String getServer(); /** * * *
     * Server is the hostname or IP address of the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string server = 1; */ com.google.protobuf.ByteString getServerBytes(); /** * * *
     * Path that is exported by the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string path = 2; */ boolean hasPath(); /** * * *
     * Path that is exported by the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string path = 2; */ java.lang.String getPath(); /** * * *
     * Path that is exported by the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string path = 2; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * ReadOnly here will force
     * the NFS export to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force
     * the NFS export to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); } /** * * *
   * Represents an NFS mount that lasts the lifetime of a pod.
   * NFS volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NFSVolumeSource} */ public static final class NFSVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NFSVolumeSource) NFSVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use NFSVolumeSource.newBuilder() to construct. private NFSVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NFSVolumeSource() { server_ = ""; path_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NFSVolumeSource( 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; server_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; path_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NFSVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NFSVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NFSVolumeSource.class, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder.class); } private int bitField0_; public static final int SERVER_FIELD_NUMBER = 1; private volatile java.lang.Object server_; /** * * *
     * Server is the hostname or IP address of the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string server = 1; */ public boolean hasServer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Server is the hostname or IP address of the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string server = 1; */ public java.lang.String getServer() { java.lang.Object ref = server_; 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()) { server_ = s; } return s; } } /** * * *
     * Server is the hostname or IP address of the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string server = 1; */ public com.google.protobuf.ByteString getServerBytes() { java.lang.Object ref = server_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); server_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** * * *
     * Path that is exported by the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Path that is exported by the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path that is exported by the NFS server.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * ReadOnly here will force
     * the NFS export to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * ReadOnly here will force
     * the NFS export to be mounted with read-only permissions.
     * Defaults to false.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } 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, server_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } 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, server_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } 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.V1.NFSVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NFSVolumeSource other = (io.kubernetes.client.proto.V1.NFSVolumeSource) obj; boolean result = true; result = result && (hasServer() == other.hasServer()); if (hasServer()) { result = result && getServer().equals(other.getServer()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasServer()) { hash = (37 * hash) + SERVER_FIELD_NUMBER; hash = (53 * hash) + getServer().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NFSVolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NFSVolumeSource 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.V1.NFSVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NFSVolumeSource 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.V1.NFSVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NFSVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NFSVolumeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NFSVolumeSource 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.V1.NFSVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NFSVolumeSource 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.V1.NFSVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NFSVolumeSource 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.V1.NFSVolumeSource 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; } /** * * *
     * Represents an NFS mount that lasts the lifetime of a pod.
     * NFS volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NFSVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NFSVolumeSource) io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NFSVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NFSVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NFSVolumeSource.class, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NFSVolumeSource.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(); server_ = ""; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NFSVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NFSVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NFSVolumeSource build() { io.kubernetes.client.proto.V1.NFSVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NFSVolumeSource buildPartial() { io.kubernetes.client.proto.V1.NFSVolumeSource result = new io.kubernetes.client.proto.V1.NFSVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.server_ = server_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; 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.V1.NFSVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.NFSVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NFSVolumeSource other) { if (other == io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance()) return this; if (other.hasServer()) { bitField0_ |= 0x00000001; server_ = other.server_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.NFSVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NFSVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object server_ = ""; /** * * *
       * Server is the hostname or IP address of the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string server = 1; */ public boolean hasServer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Server is the hostname or IP address of the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string server = 1; */ public java.lang.String getServer() { java.lang.Object ref = server_; 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()) { server_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Server is the hostname or IP address of the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string server = 1; */ public com.google.protobuf.ByteString getServerBytes() { java.lang.Object ref = server_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); server_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Server is the hostname or IP address of the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string server = 1; */ public Builder setServer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; server_ = value; onChanged(); return this; } /** * * *
       * Server is the hostname or IP address of the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string server = 1; */ public Builder clearServer() { bitField0_ = (bitField0_ & ~0x00000001); server_ = getDefaultInstance().getServer(); onChanged(); return this; } /** * * *
       * Server is the hostname or IP address of the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string server = 1; */ public Builder setServerBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; server_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * Path that is exported by the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Path that is exported by the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path that is exported by the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path that is exported by the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string path = 2; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * * *
       * Path that is exported by the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path that is exported by the NFS server.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * 
* * optional string path = 2; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force
       * the NFS export to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * ReadOnly here will force
       * the NFS export to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force
       * the NFS export to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force
       * the NFS export to be mounted with read-only permissions.
       * Defaults to false.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = 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.core.v1.NFSVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NFSVolumeSource) private static final io.kubernetes.client.proto.V1.NFSVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NFSVolumeSource(); } public static io.kubernetes.client.proto.V1.NFSVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NFSVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NFSVolumeSource(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.V1.NFSVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NamespaceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Namespace) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the behavior of the Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the behavior of the Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ io.kubernetes.client.proto.V1.NamespaceSpec getSpec(); /** * * *
     * Spec defines the behavior of the Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Status describes the current status of a Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ boolean hasStatus(); /** * * *
     * Status describes the current status of a Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ io.kubernetes.client.proto.V1.NamespaceStatus getStatus(); /** * * *
     * Status describes the current status of a Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * Namespace provides a scope for Names.
   * Use of multiple namespaces is optional.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Namespace} */ public static final class Namespace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Namespace) NamespaceOrBuilder { private static final long serialVersionUID = 0L; // Use Namespace.newBuilder() to construct. private Namespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Namespace() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Namespace( 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.V1.NamespaceSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.NamespaceSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.NamespaceStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.NamespaceStatus.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.V1.internal_static_k8s_io_api_core_v1_Namespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Namespace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Namespace.class, io.kubernetes.client.proto.V1.Namespace.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.NamespaceSpec spec_; /** * * *
     * Spec defines the behavior of the Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the behavior of the Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public io.kubernetes.client.proto.V1.NamespaceSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the behavior of the Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.NamespaceStatus status_; /** * * *
     * Status describes the current status of a Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Status describes the current status of a Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public io.kubernetes.client.proto.V1.NamespaceStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.NamespaceStatus.getDefaultInstance() : status_; } /** * * *
     * Status describes the current status of a Namespace.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.NamespaceStatus.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.V1.Namespace)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Namespace other = (io.kubernetes.client.proto.V1.Namespace) 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.V1.Namespace parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Namespace 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.V1.Namespace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Namespace 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.V1.Namespace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Namespace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Namespace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Namespace 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.V1.Namespace parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Namespace 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.V1.Namespace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Namespace 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.V1.Namespace 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; } /** * * *
     * Namespace provides a scope for Names.
     * Use of multiple namespaces is optional.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Namespace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Namespace) io.kubernetes.client.proto.V1.NamespaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Namespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Namespace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Namespace.class, io.kubernetes.client.proto.V1.Namespace.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Namespace.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 .V1 .internal_static_k8s_io_api_core_v1_Namespace_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Namespace getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Namespace.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Namespace build() { io.kubernetes.client.proto.V1.Namespace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Namespace buildPartial() { io.kubernetes.client.proto.V1.Namespace result = new io.kubernetes.client.proto.V1.Namespace(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.V1.Namespace) { return mergeFrom((io.kubernetes.client.proto.V1.Namespace) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Namespace other) { if (other == io.kubernetes.client.proto.V1.Namespace.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.V1.Namespace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Namespace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.NamespaceSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceSpec, io.kubernetes.client.proto.V1.NamespaceSpec.Builder, io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public io.kubernetes.client.proto.V1.NamespaceSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.NamespaceSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.NamespaceSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.NamespaceSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.NamespaceSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public io.kubernetes.client.proto.V1.NamespaceSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ public io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the behavior of the Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceSpec, io.kubernetes.client.proto.V1.NamespaceSpec.Builder, io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceSpec, io.kubernetes.client.proto.V1.NamespaceSpec.Builder, io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.NamespaceStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceStatus, io.kubernetes.client.proto.V1.NamespaceStatus.Builder, io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder> statusBuilder_; /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public io.kubernetes.client.proto.V1.NamespaceStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.NamespaceStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.NamespaceStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1.NamespaceStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.NamespaceStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.NamespaceStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.NamespaceStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public io.kubernetes.client.proto.V1.NamespaceStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ public io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.NamespaceStatus.getDefaultInstance() : status_; } } /** * * *
       * Status describes the current status of a Namespace.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NamespaceStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceStatus, io.kubernetes.client.proto.V1.NamespaceStatus.Builder, io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceStatus, io.kubernetes.client.proto.V1.NamespaceStatus.Builder, io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder>( 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.core.v1.Namespace) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Namespace) private static final io.kubernetes.client.proto.V1.Namespace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Namespace(); } public static io.kubernetes.client.proto.V1.Namespace getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Namespace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Namespace(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.V1.Namespace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NamespaceConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NamespaceCondition) com.google.protobuf.MessageOrBuilder { /** * * *
     * Type of namespace controller condition.
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Type of namespace controller condition.
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Type of namespace controller condition.
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ boolean hasStatus(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ java.lang.String getStatus(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ boolean hasLastTransitionTime(); /** * * *
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); /** * * *
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); /** * * *
     * +optional
     * 
* * optional string reason = 5; */ boolean hasReason(); /** * * *
     * +optional
     * 
* * optional string reason = 5; */ java.lang.String getReason(); /** * * *
     * +optional
     * 
* * optional string reason = 5; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * +optional
     * 
* * optional string message = 6; */ boolean hasMessage(); /** * * *
     * +optional
     * 
* * optional string message = 6; */ java.lang.String getMessage(); /** * * *
     * +optional
     * 
* * optional string message = 6; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * NamespaceCondition contains details about state of namespace.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceCondition} */ public static final class NamespaceCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NamespaceCondition) NamespaceConditionOrBuilder { private static final long serialVersionUID = 0L; // Use NamespaceCondition.newBuilder() to construct. private NamespaceCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NamespaceCondition() { type_ = ""; status_ = ""; reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamespaceCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 34: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastTransitionTime_.toBuilder(); } lastTransitionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTransitionTime_); lastTransitionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; reason_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; message_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceCondition.class, io.kubernetes.client.proto.V1.NamespaceCondition.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Type of namespace controller condition.
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Type of namespace controller condition.
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type of namespace controller condition.
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** * * *
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } /** * * *
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } public static final int REASON_FIELD_NUMBER = 5; private volatile java.lang.Object reason_; /** * * *
     * +optional
     * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * +optional
     * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * +optional
     * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object message_; /** * * *
     * +optional
     * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * +optional
     * 
* * optional string message = 6; */ 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; } } /** * * *
     * +optional
     * 
* * optional string message = 6; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.V1.NamespaceCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NamespaceCondition other = (io.kubernetes.client.proto.V1.NamespaceCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); if (hasLastTransitionTime()) { result = result && getLastTransitionTime().equals(other.getLastTransitionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasLastTransitionTime()) { hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransitionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NamespaceCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceCondition 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.V1.NamespaceCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceCondition 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.V1.NamespaceCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NamespaceCondition parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceCondition 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.V1.NamespaceCondition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceCondition 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.V1.NamespaceCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceCondition 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.V1.NamespaceCondition 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; } /** * * *
     * NamespaceCondition contains details about state of namespace.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NamespaceCondition) io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceCondition.class, io.kubernetes.client.proto.V1.NamespaceCondition.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NamespaceCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000008); message_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NamespaceCondition.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceCondition build() { io.kubernetes.client.proto.V1.NamespaceCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceCondition buildPartial() { io.kubernetes.client.proto.V1.NamespaceCondition result = new io.kubernetes.client.proto.V1.NamespaceCondition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastTransitionTimeBuilder_ == null) { result.lastTransitionTime_ = lastTransitionTime_; } else { result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.message_ = message_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.NamespaceCondition) { return mergeFrom((io.kubernetes.client.proto.V1.NamespaceCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NamespaceCondition other) { if (other == io.kubernetes.client.proto.V1.NamespaceCondition.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasLastTransitionTime()) { mergeLastTransitionTime(other.getLastTransitionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000008; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000010; message_ = other.message_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.NamespaceCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NamespaceCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Type of namespace controller condition.
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Type of namespace controller condition.
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type of namespace controller condition.
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type of namespace controller condition.
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Type of namespace controller condition.
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type of namespace controller condition.
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTransitionTime_ = value; onChanged(); } else { lastTransitionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); } else { lastTransitionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastTransitionTime_ != null && lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTransitionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_) .mergeFrom(value) .buildPartial(); } else { lastTransitionTime_ = value; } onChanged(); } else { lastTransitionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder clearLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; onChanged(); } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } } /** * * *
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * +optional
       * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * +optional
       * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * +optional
       * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } /** * * *
       * +optional
       * 
* * optional string reason = 5; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000008); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * +optional
       * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; message_ = value; onChanged(); return this; } /** * * *
       * +optional
       * 
* * optional string message = 6; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000010); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; message_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.NamespaceCondition) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NamespaceCondition) private static final io.kubernetes.client.proto.V1.NamespaceCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NamespaceCondition(); } public static io.kubernetes.client.proto.V1.NamespaceCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NamespaceCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamespaceCondition(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.V1.NamespaceCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NamespaceListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NamespaceList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ io.kubernetes.client.proto.V1.Namespace getItems(int index); /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ int getItemsCount(); /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ io.kubernetes.client.proto.V1.NamespaceOrBuilder getItemsOrBuilder(int index); } /** * * *
   * NamespaceList is a list of Namespaces.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceList} */ public static final class NamespaceList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NamespaceList) NamespaceListOrBuilder { private static final long serialVersionUID = 0L; // Use NamespaceList.newBuilder() to construct. private NamespaceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NamespaceList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamespaceList( 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.V1.Namespace.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 .V1 .internal_static_k8s_io_api_core_v1_NamespaceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceList.class, io.kubernetes.client.proto.V1.NamespaceList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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 Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.Namespace getItems(int index) { return items_.get(index); } /** * * *
     * Items is the list of Namespace objects in the list.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.NamespaceOrBuilder 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.V1.NamespaceList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NamespaceList other = (io.kubernetes.client.proto.V1.NamespaceList) 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.V1.NamespaceList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceList 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.V1.NamespaceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceList 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.V1.NamespaceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NamespaceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceList 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.V1.NamespaceList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceList 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.V1.NamespaceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceList 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.V1.NamespaceList 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; } /** * * *
     * NamespaceList is a list of Namespaces.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NamespaceList) io.kubernetes.client.proto.V1.NamespaceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceList.class, io.kubernetes.client.proto.V1.NamespaceList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NamespaceList.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 .V1 .internal_static_k8s_io_api_core_v1_NamespaceList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NamespaceList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceList build() { io.kubernetes.client.proto.V1.NamespaceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceList buildPartial() { io.kubernetes.client.proto.V1.NamespaceList result = new io.kubernetes.client.proto.V1.NamespaceList(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.V1.NamespaceList) { return mergeFrom((io.kubernetes.client.proto.V1.NamespaceList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NamespaceList other) { if (other == io.kubernetes.client.proto.V1.NamespaceList.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.V1.NamespaceList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NamespaceList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Namespace, io.kubernetes.client.proto.V1.Namespace.Builder, io.kubernetes.client.proto.V1.NamespaceOrBuilder> itemsBuilder_; /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.Namespace getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Namespace.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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Namespace.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Namespace.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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.Namespace.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.NamespaceOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace 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 Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.Namespace.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Namespace.getDefaultInstance()); } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public io.kubernetes.client.proto.V1.Namespace.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Namespace.getDefaultInstance()); } /** * * *
       * Items is the list of Namespace objects in the list.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * 
* * repeated .k8s.io.api.core.v1.Namespace items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Namespace, io.kubernetes.client.proto.V1.Namespace.Builder, io.kubernetes.client.proto.V1.NamespaceOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Namespace, io.kubernetes.client.proto.V1.Namespace.Builder, io.kubernetes.client.proto.V1.NamespaceOrBuilder>( 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.core.v1.NamespaceList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NamespaceList) private static final io.kubernetes.client.proto.V1.NamespaceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NamespaceList(); } public static io.kubernetes.client.proto.V1.NamespaceList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NamespaceList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamespaceList(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.V1.NamespaceList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NamespaceSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NamespaceSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ java.util.List getFinalizersList(); /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ int getFinalizersCount(); /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ java.lang.String getFinalizers(int index); /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ com.google.protobuf.ByteString getFinalizersBytes(int index); } /** * * *
   * NamespaceSpec describes the attributes on a Namespace.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceSpec} */ public static final class NamespaceSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NamespaceSpec) NamespaceSpecOrBuilder { private static final long serialVersionUID = 0L; // Use NamespaceSpec.newBuilder() to construct. private NamespaceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NamespaceSpec() { finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamespaceSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { finalizers_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } finalizers_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { finalizers_ = finalizers_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceSpec.class, io.kubernetes.client.proto.V1.NamespaceSpec.Builder.class); } public static final int FINALIZERS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList finalizers_; /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ public com.google.protobuf.ProtocolStringList getFinalizersList() { return finalizers_; } /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ public int getFinalizersCount() { return finalizers_.size(); } /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ public java.lang.String getFinalizers(int index) { return finalizers_.get(index); } /** * * *
     * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * repeated string finalizers = 1; */ public com.google.protobuf.ByteString getFinalizersBytes(int index) { return finalizers_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < finalizers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, finalizers_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < finalizers_.size(); i++) { dataSize += computeStringSizeNoTag(finalizers_.getRaw(i)); } size += dataSize; size += 1 * getFinalizersList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.NamespaceSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NamespaceSpec other = (io.kubernetes.client.proto.V1.NamespaceSpec) obj; boolean result = true; result = result && getFinalizersList().equals(other.getFinalizersList()); 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 (getFinalizersCount() > 0) { hash = (37 * hash) + FINALIZERS_FIELD_NUMBER; hash = (53 * hash) + getFinalizersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NamespaceSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceSpec 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.V1.NamespaceSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceSpec 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.V1.NamespaceSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NamespaceSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceSpec 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.V1.NamespaceSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceSpec 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.V1.NamespaceSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceSpec 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.V1.NamespaceSpec 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; } /** * * *
     * NamespaceSpec describes the attributes on a Namespace.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NamespaceSpec) io.kubernetes.client.proto.V1.NamespaceSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceSpec.class, io.kubernetes.client.proto.V1.NamespaceSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NamespaceSpec.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(); finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceSpec build() { io.kubernetes.client.proto.V1.NamespaceSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceSpec buildPartial() { io.kubernetes.client.proto.V1.NamespaceSpec result = new io.kubernetes.client.proto.V1.NamespaceSpec(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { finalizers_ = finalizers_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.finalizers_ = finalizers_; 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.V1.NamespaceSpec) { return mergeFrom((io.kubernetes.client.proto.V1.NamespaceSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NamespaceSpec other) { if (other == io.kubernetes.client.proto.V1.NamespaceSpec.getDefaultInstance()) return this; if (!other.finalizers_.isEmpty()) { if (finalizers_.isEmpty()) { finalizers_ = other.finalizers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFinalizersIsMutable(); finalizers_.addAll(other.finalizers_); } 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.V1.NamespaceSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NamespaceSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFinalizersIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { finalizers_ = new com.google.protobuf.LazyStringArrayList(finalizers_); bitField0_ |= 0x00000001; } } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public com.google.protobuf.ProtocolStringList getFinalizersList() { return finalizers_.getUnmodifiableView(); } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public int getFinalizersCount() { return finalizers_.size(); } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public java.lang.String getFinalizers(int index) { return finalizers_.get(index); } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public com.google.protobuf.ByteString getFinalizersBytes(int index) { return finalizers_.getByteString(index); } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public Builder setFinalizers(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFinalizersIsMutable(); finalizers_.set(index, value); onChanged(); return this; } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public Builder addFinalizers(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFinalizersIsMutable(); finalizers_.add(value); onChanged(); return this; } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public Builder addAllFinalizers(java.lang.Iterable values) { ensureFinalizersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, finalizers_); onChanged(); return this; } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public Builder clearFinalizers() { finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * repeated string finalizers = 1; */ public Builder addFinalizersBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureFinalizersIsMutable(); finalizers_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.NamespaceSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NamespaceSpec) private static final io.kubernetes.client.proto.V1.NamespaceSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NamespaceSpec(); } public static io.kubernetes.client.proto.V1.NamespaceSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NamespaceSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamespaceSpec(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.V1.NamespaceSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NamespaceStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NamespaceStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Phase is the current lifecycle phase of the namespace.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * optional string phase = 1; */ boolean hasPhase(); /** * * *
     * Phase is the current lifecycle phase of the namespace.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * optional string phase = 1; */ java.lang.String getPhase(); /** * * *
     * Phase is the current lifecycle phase of the namespace.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * optional string phase = 1; */ com.google.protobuf.ByteString getPhaseBytes(); /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ java.util.List getConditionsList(); /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ io.kubernetes.client.proto.V1.NamespaceCondition getConditions(int index); /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ int getConditionsCount(); /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder getConditionsOrBuilder(int index); } /** * * *
   * NamespaceStatus is information about the current status of a Namespace.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceStatus} */ public static final class NamespaceStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NamespaceStatus) NamespaceStatusOrBuilder { private static final long serialVersionUID = 0L; // Use NamespaceStatus.newBuilder() to construct. private NamespaceStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NamespaceStatus() { phase_ = ""; conditions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamespaceStatus( 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; phase_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1.NamespaceCondition.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)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceStatus.class, io.kubernetes.client.proto.V1.NamespaceStatus.Builder.class); } private int bitField0_; public static final int PHASE_FIELD_NUMBER = 1; private volatile java.lang.Object phase_; /** * * *
     * Phase is the current lifecycle phase of the namespace.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Phase is the current lifecycle phase of the namespace.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } } /** * * *
     * Phase is the current lifecycle phase of the namespace.
     * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
     * +optional
     * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONDITIONS_FIELD_NUMBER = 2; private java.util.List conditions_; /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Represents the latest available observations of a namespace's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder getConditionsOrBuilder( int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phase_); } for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(2, conditions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phase_); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, conditions_.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.V1.NamespaceStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NamespaceStatus other = (io.kubernetes.client.proto.V1.NamespaceStatus) obj; boolean result = true; result = result && (hasPhase() == other.hasPhase()); if (hasPhase()) { result = result && getPhase().equals(other.getPhase()); } result = result && getConditionsList().equals(other.getConditionsList()); 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 (hasPhase()) { hash = (37 * hash) + PHASE_FIELD_NUMBER; hash = (53 * hash) + getPhase().hashCode(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NamespaceStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceStatus 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.V1.NamespaceStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceStatus 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.V1.NamespaceStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NamespaceStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NamespaceStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceStatus 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.V1.NamespaceStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceStatus 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.V1.NamespaceStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NamespaceStatus 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.V1.NamespaceStatus 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; } /** * * *
     * NamespaceStatus is information about the current status of a Namespace.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NamespaceStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NamespaceStatus) io.kubernetes.client.proto.V1.NamespaceStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NamespaceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NamespaceStatus.class, io.kubernetes.client.proto.V1.NamespaceStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NamespaceStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); phase_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { conditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NamespaceStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NamespaceStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceStatus build() { io.kubernetes.client.proto.V1.NamespaceStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NamespaceStatus buildPartial() { io.kubernetes.client.proto.V1.NamespaceStatus result = new io.kubernetes.client.proto.V1.NamespaceStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.phase_ = phase_; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000002); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.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.V1.NamespaceStatus) { return mergeFrom((io.kubernetes.client.proto.V1.NamespaceStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NamespaceStatus other) { if (other == io.kubernetes.client.proto.V1.NamespaceStatus.getDefaultInstance()) return this; if (other.hasPhase()) { bitField0_ |= 0x00000001; phase_ = other.phase_; onChanged(); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } 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.V1.NamespaceStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NamespaceStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object phase_ = ""; /** * * *
       * Phase is the current lifecycle phase of the namespace.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Phase is the current lifecycle phase of the namespace.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Phase is the current lifecycle phase of the namespace.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Phase is the current lifecycle phase of the namespace.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } /** * * *
       * Phase is the current lifecycle phase of the namespace.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * optional string phase = 1; */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000001); phase_ = getDefaultInstance().getPhase(); onChanged(); return this; } /** * * *
       * Phase is the current lifecycle phase of the namespace.
       * More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList( conditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceCondition, io.kubernetes.client.proto.V1.NamespaceCondition.Builder, io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder> conditionsBuilder_; /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.NamespaceCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.NamespaceCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder addConditions(io.kubernetes.client.proto.V1.NamespaceCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.NamespaceCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder addConditions( io.kubernetes.client.proto.V1.NamespaceCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.NamespaceCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceCondition.Builder getConditionsBuilder( int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.NamespaceCondition.getDefaultInstance()); } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public io.kubernetes.client.proto.V1.NamespaceCondition.Builder addConditionsBuilder( int index) { return getConditionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.NamespaceCondition.getDefaultInstance()); } /** * * *
       * Represents the latest available observations of a namespace's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NamespaceCondition conditions = 2; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceCondition, io.kubernetes.client.proto.V1.NamespaceCondition.Builder, io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NamespaceCondition, io.kubernetes.client.proto.V1.NamespaceCondition.Builder, io.kubernetes.client.proto.V1.NamespaceConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } @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.core.v1.NamespaceStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NamespaceStatus) private static final io.kubernetes.client.proto.V1.NamespaceStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NamespaceStatus(); } public static io.kubernetes.client.proto.V1.NamespaceStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NamespaceStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamespaceStatus(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.V1.NamespaceStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Node) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the behavior of a node.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the behavior of a node.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ io.kubernetes.client.proto.V1.NodeSpec getSpec(); /** * * *
     * Spec defines the behavior of a node.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ io.kubernetes.client.proto.V1.NodeSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Most recently observed status of the node.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ boolean hasStatus(); /** * * *
     * Most recently observed status of the node.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ io.kubernetes.client.proto.V1.NodeStatus getStatus(); /** * * *
     * Most recently observed status of the node.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ io.kubernetes.client.proto.V1.NodeStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * Node is a worker node in Kubernetes.
   * Each node will have a unique identifier in the cache (i.e. in etcd).
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Node} */ public static final class Node extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Node) NodeOrBuilder { private static final long serialVersionUID = 0L; // Use Node.newBuilder() to construct. private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Node() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Node( 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.V1.NodeSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.NodeSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.NodeStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.NodeStatus.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.V1.internal_static_k8s_io_api_core_v1_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Node.class, io.kubernetes.client.proto.V1.Node.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.NodeSpec spec_; /** * * *
     * Spec defines the behavior of a node.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the behavior of a node.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public io.kubernetes.client.proto.V1.NodeSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the behavior of a node.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public io.kubernetes.client.proto.V1.NodeSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.NodeStatus status_; /** * * *
     * Most recently observed status of the node.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Most recently observed status of the node.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public io.kubernetes.client.proto.V1.NodeStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.NodeStatus.getDefaultInstance() : status_; } /** * * *
     * Most recently observed status of the node.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public io.kubernetes.client.proto.V1.NodeStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.NodeStatus.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.V1.Node)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Node other = (io.kubernetes.client.proto.V1.Node) 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.V1.Node parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Node 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.V1.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Node 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.V1.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Node parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Node parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Node 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.V1.Node parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Node 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.V1.Node parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Node 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.V1.Node 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; } /** * * *
     * Node is a worker node in Kubernetes.
     * Each node will have a unique identifier in the cache (i.e. in etcd).
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Node} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Node) io.kubernetes.client.proto.V1.NodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Node_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Node_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Node.class, io.kubernetes.client.proto.V1.Node.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Node.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.V1.internal_static_k8s_io_api_core_v1_Node_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Node getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Node.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Node build() { io.kubernetes.client.proto.V1.Node result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Node buildPartial() { io.kubernetes.client.proto.V1.Node result = new io.kubernetes.client.proto.V1.Node(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.V1.Node) { return mergeFrom((io.kubernetes.client.proto.V1.Node) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Node other) { if (other == io.kubernetes.client.proto.V1.Node.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.V1.Node parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Node) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.NodeSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSpec, io.kubernetes.client.proto.V1.NodeSpec.Builder, io.kubernetes.client.proto.V1.NodeSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public io.kubernetes.client.proto.V1.NodeSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.NodeSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.NodeSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.NodeSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.NodeSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public io.kubernetes.client.proto.V1.NodeSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ public io.kubernetes.client.proto.V1.NodeSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the behavior of a node.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSpec, io.kubernetes.client.proto.V1.NodeSpec.Builder, io.kubernetes.client.proto.V1.NodeSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSpec, io.kubernetes.client.proto.V1.NodeSpec.Builder, io.kubernetes.client.proto.V1.NodeSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.NodeStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeStatus, io.kubernetes.client.proto.V1.NodeStatus.Builder, io.kubernetes.client.proto.V1.NodeStatusOrBuilder> statusBuilder_; /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public io.kubernetes.client.proto.V1.NodeStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.NodeStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.NodeStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.NodeStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.NodeStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.NodeStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.NodeStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public io.kubernetes.client.proto.V1.NodeStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ public io.kubernetes.client.proto.V1.NodeStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.NodeStatus.getDefaultInstance() : status_; } } /** * * *
       * Most recently observed status of the node.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeStatus, io.kubernetes.client.proto.V1.NodeStatus.Builder, io.kubernetes.client.proto.V1.NodeStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeStatus, io.kubernetes.client.proto.V1.NodeStatus.Builder, io.kubernetes.client.proto.V1.NodeStatusOrBuilder>( 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.core.v1.Node) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Node) private static final io.kubernetes.client.proto.V1.Node DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Node(); } public static io.kubernetes.client.proto.V1.Node getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Node parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Node(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.V1.Node getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeAddress) com.google.protobuf.MessageOrBuilder { /** * * *
     * Node address type, one of Hostname, ExternalIP or InternalIP.
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Node address type, one of Hostname, ExternalIP or InternalIP.
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Node address type, one of Hostname, ExternalIP or InternalIP.
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * The node address.
     * 
* * optional string address = 2; */ boolean hasAddress(); /** * * *
     * The node address.
     * 
* * optional string address = 2; */ java.lang.String getAddress(); /** * * *
     * The node address.
     * 
* * optional string address = 2; */ com.google.protobuf.ByteString getAddressBytes(); } /** * * *
   * NodeAddress contains information for the node's address.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeAddress} */ public static final class NodeAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeAddress) NodeAddressOrBuilder { private static final long serialVersionUID = 0L; // Use NodeAddress.newBuilder() to construct. private NodeAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeAddress() { type_ = ""; address_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeAddress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; address_ = 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 .V1 .internal_static_k8s_io_api_core_v1_NodeAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeAddress.class, io.kubernetes.client.proto.V1.NodeAddress.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Node address type, one of Hostname, ExternalIP or InternalIP.
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Node address type, one of Hostname, ExternalIP or InternalIP.
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Node address type, one of Hostname, ExternalIP or InternalIP.
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object address_; /** * * *
     * The node address.
     * 
* * optional string address = 2; */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The node address.
     * 
* * optional string address = 2; */ public java.lang.String getAddress() { java.lang.Object ref = address_; 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()) { address_ = s; } return s; } } /** * * *
     * The node address.
     * 
* * optional string address = 2; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } 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.V1.NodeAddress)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeAddress other = (io.kubernetes.client.proto.V1.NodeAddress) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasAddress() == other.hasAddress()); if (hasAddress()) { result = result && getAddress().equals(other.getAddress()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeAddress parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeAddress 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.V1.NodeAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeAddress 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.V1.NodeAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeAddress parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeAddress parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeAddress 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.V1.NodeAddress parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeAddress 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.V1.NodeAddress parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeAddress 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.V1.NodeAddress 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; } /** * * *
     * NodeAddress contains information for the node's address.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeAddress) io.kubernetes.client.proto.V1.NodeAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeAddress.class, io.kubernetes.client.proto.V1.NodeAddress.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeAddress.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(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); address_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeAddress_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeAddress getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeAddress.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeAddress build() { io.kubernetes.client.proto.V1.NodeAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeAddress buildPartial() { io.kubernetes.client.proto.V1.NodeAddress result = new io.kubernetes.client.proto.V1.NodeAddress(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.address_ = address_; 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.V1.NodeAddress) { return mergeFrom((io.kubernetes.client.proto.V1.NodeAddress) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeAddress other) { if (other == io.kubernetes.client.proto.V1.NodeAddress.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasAddress()) { bitField0_ |= 0x00000002; address_ = other.address_; 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.V1.NodeAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Node address type, one of Hostname, ExternalIP or InternalIP.
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Node address type, one of Hostname, ExternalIP or InternalIP.
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Node address type, one of Hostname, ExternalIP or InternalIP.
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Node address type, one of Hostname, ExternalIP or InternalIP.
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Node address type, one of Hostname, ExternalIP or InternalIP.
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Node address type, one of Hostname, ExternalIP or InternalIP.
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object address_ = ""; /** * * *
       * The node address.
       * 
* * optional string address = 2; */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The node address.
       * 
* * optional string address = 2; */ public java.lang.String getAddress() { java.lang.Object ref = address_; 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()) { address_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The node address.
       * 
* * optional string address = 2; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The node address.
       * 
* * optional string address = 2; */ public Builder setAddress(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; address_ = value; onChanged(); return this; } /** * * *
       * The node address.
       * 
* * optional string address = 2; */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000002); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * * *
       * The node address.
       * 
* * optional string address = 2; */ public Builder setAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; address_ = 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.core.v1.NodeAddress) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeAddress) private static final io.kubernetes.client.proto.V1.NodeAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeAddress(); } public static io.kubernetes.client.proto.V1.NodeAddress getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeAddress(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.V1.NodeAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeAffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeAffinity) com.google.protobuf.MessageOrBuilder { /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to an update), the system
     * may or may not try to eventually evict the pod from its node.
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ boolean hasRequiredDuringSchedulingIgnoredDuringExecution(); /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to an update), the system
     * may or may not try to eventually evict the pod from its node.
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ io.kubernetes.client.proto.V1.NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution(); /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to an update), the system
     * may or may not try to eventually evict the pod from its node.
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ io.kubernetes.client.proto.V1.PreferredSchedulingTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ int getPreferredDuringSchedulingIgnoredDuringExecutionCount(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index); } /** * * *
   * Node affinity is a group of node affinity scheduling rules.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeAffinity} */ public static final class NodeAffinity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeAffinity) NodeAffinityOrBuilder { private static final long serialVersionUID = 0L; // Use NodeAffinity.newBuilder() to construct. private NodeAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeAffinity() { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeAffinity( 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.V1.NodeSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = requiredDuringSchedulingIgnoredDuringExecution_.toBuilder(); } requiredDuringSchedulingIgnoredDuringExecution_ = input.readMessage( io.kubernetes.client.proto.V1.NodeSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requiredDuringSchedulingIgnoredDuringExecution_); requiredDuringSchedulingIgnoredDuringExecution_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.PreferredSchedulingTerm>(); mutable_bitField0_ |= 0x00000002; } preferredDuringSchedulingIgnoredDuringExecution_.add( input.readMessage( io.kubernetes.client.proto.V1.PreferredSchedulingTerm.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)) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeAffinity.class, io.kubernetes.client.proto.V1.NodeAffinity.Builder.class); } private int bitField0_; public static final int REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution_; /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to an update), the system
     * may or may not try to eventually evict the pod from its node.
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to an update), the system
     * may or may not try to eventually evict the pod from its node.
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : requiredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to an update), the system
     * may or may not try to eventually evict the pod from its node.
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder() { return requiredDuringSchedulingIgnoredDuringExecution_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : requiredDuringSchedulingIgnoredDuringExecution_; } public static final int PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER = 2; private java.util.List preferredDuringSchedulingIgnoredDuringExecution_; /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList() { return preferredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { return preferredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public int getPreferredDuringSchedulingIgnoredDuringExecutionCount() { return preferredDuringSchedulingIgnoredDuringExecution_.size(); } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node matches the corresponding matchExpressions; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { return preferredDuringSchedulingIgnoredDuringExecution_.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, getRequiredDuringSchedulingIgnoredDuringExecution()); } for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution_.size(); i++) { output.writeMessage(2, preferredDuringSchedulingIgnoredDuringExecution_.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, getRequiredDuringSchedulingIgnoredDuringExecution()); } for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, preferredDuringSchedulingIgnoredDuringExecution_.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.V1.NodeAffinity)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeAffinity other = (io.kubernetes.client.proto.V1.NodeAffinity) obj; boolean result = true; result = result && (hasRequiredDuringSchedulingIgnoredDuringExecution() == other.hasRequiredDuringSchedulingIgnoredDuringExecution()); if (hasRequiredDuringSchedulingIgnoredDuringExecution()) { result = result && getRequiredDuringSchedulingIgnoredDuringExecution() .equals(other.getRequiredDuringSchedulingIgnoredDuringExecution()); } result = result && getPreferredDuringSchedulingIgnoredDuringExecutionList() .equals(other.getPreferredDuringSchedulingIgnoredDuringExecutionList()); 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 (hasRequiredDuringSchedulingIgnoredDuringExecution()) { hash = (37 * hash) + REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER; hash = (53 * hash) + getRequiredDuringSchedulingIgnoredDuringExecution().hashCode(); } if (getPreferredDuringSchedulingIgnoredDuringExecutionCount() > 0) { hash = (37 * hash) + PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER; hash = (53 * hash) + getPreferredDuringSchedulingIgnoredDuringExecutionList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeAffinity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeAffinity 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.V1.NodeAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeAffinity 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.V1.NodeAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeAffinity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeAffinity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeAffinity 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.V1.NodeAffinity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeAffinity 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.V1.NodeAffinity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeAffinity 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.V1.NodeAffinity 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; } /** * * *
     * Node affinity is a group of node affinity scheduling rules.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeAffinity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeAffinity) io.kubernetes.client.proto.V1.NodeAffinityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeAffinity.class, io.kubernetes.client.proto.V1.NodeAffinity.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeAffinity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder(); getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = null; } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeAffinity getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeAffinity build() { io.kubernetes.client.proto.V1.NodeAffinity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeAffinity buildPartial() { io.kubernetes.client.proto.V1.NodeAffinity result = new io.kubernetes.client.proto.V1.NodeAffinity(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { result.requiredDuringSchedulingIgnoredDuringExecution_ = requiredDuringSchedulingIgnoredDuringExecution_; } else { result.requiredDuringSchedulingIgnoredDuringExecution_ = requiredDuringSchedulingIgnoredDuringExecutionBuilder_.build(); } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); bitField0_ = (bitField0_ & ~0x00000002); } result.preferredDuringSchedulingIgnoredDuringExecution_ = preferredDuringSchedulingIgnoredDuringExecution_; } else { result.preferredDuringSchedulingIgnoredDuringExecution_ = preferredDuringSchedulingIgnoredDuringExecutionBuilder_.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.V1.NodeAffinity) { return mergeFrom((io.kubernetes.client.proto.V1.NodeAffinity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeAffinity other) { if (other == io.kubernetes.client.proto.V1.NodeAffinity.getDefaultInstance()) return this; if (other.hasRequiredDuringSchedulingIgnoredDuringExecution()) { mergeRequiredDuringSchedulingIgnoredDuringExecution( other.getRequiredDuringSchedulingIgnoredDuringExecution()); } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (!other.preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { preferredDuringSchedulingIgnoredDuringExecution_ = other.preferredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.addAll( other.preferredDuringSchedulingIgnoredDuringExecution_); } onChanged(); } } else { if (!other.preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_.isEmpty()) { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.dispose(); preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = null; preferredDuringSchedulingIgnoredDuringExecution_ = other.preferredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000002); preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() : null; } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages( other.preferredDuringSchedulingIgnoredDuringExecution_); } } } 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.V1.NodeAffinity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> requiredDuringSchedulingIgnoredDuringExecutionBuilder_; /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : requiredDuringSchedulingIgnoredDuringExecution_; } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessage(); } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder setRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.NodeSelector value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requiredDuringSchedulingIgnoredDuringExecution_ = value; onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder setRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.NodeSelector.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = builderForValue.build(); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage( builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder mergeRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.NodeSelector value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && requiredDuringSchedulingIgnoredDuringExecution_ != null && requiredDuringSchedulingIgnoredDuringExecution_ != io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance()) { requiredDuringSchedulingIgnoredDuringExecution_ = io.kubernetes.client.proto.V1.NodeSelector.newBuilder( requiredDuringSchedulingIgnoredDuringExecution_) .mergeFrom(value) .buildPartial(); } else { requiredDuringSchedulingIgnoredDuringExecution_ = value; } onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder clearRequiredDuringSchedulingIgnoredDuringExecution() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = null; onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.NodeSelector.Builder getRequiredDuringSchedulingIgnoredDuringExecutionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilder(); } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ != null) { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilder(); } else { return requiredDuringSchedulingIgnoredDuringExecution_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : requiredDuringSchedulingIgnoredDuringExecution_; } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to an update), the system
       * may or may not try to eventually evict the pod from its node.
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder>( getRequiredDuringSchedulingIgnoredDuringExecution(), getParentForChildren(), isClean()); requiredDuringSchedulingIgnoredDuringExecution_ = null; } return requiredDuringSchedulingIgnoredDuringExecutionBuilder_; } private java.util.List preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); private void ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList( preferredDuringSchedulingIgnoredDuringExecution_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PreferredSchedulingTerm, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder, io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder> preferredDuringSchedulingIgnoredDuringExecutionBuilder_; /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageList(); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public int getPreferredDuringSchedulingIgnoredDuringExecutionCount() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.size(); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getCount(); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessage(index); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder setPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PreferredSchedulingTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.set(index, value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage(index, value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder setPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.set(index, builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage( index, builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.PreferredSchedulingTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PreferredSchedulingTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(index, value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(index, value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(index, builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( index, builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addAllPreferredDuringSchedulingIgnoredDuringExecution( java.lang.Iterable values) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preferredDuringSchedulingIgnoredDuringExecution_); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages(values); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder clearPreferredDuringSchedulingIgnoredDuringExecution() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder removePreferredDuringSchedulingIgnoredDuringExecution(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.remove(index); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.remove(index); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder getPreferredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilder(index); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ != null) { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder() { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PreferredSchedulingTerm.getDefaultInstance()); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.getDefaultInstance()); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node matches the corresponding matchExpressions; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionBuilderList() { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PreferredSchedulingTerm, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder, io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PreferredSchedulingTerm, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder, io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder>( preferredDuringSchedulingIgnoredDuringExecution_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); preferredDuringSchedulingIgnoredDuringExecution_ = null; } return preferredDuringSchedulingIgnoredDuringExecutionBuilder_; } @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.core.v1.NodeAffinity) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeAffinity) private static final io.kubernetes.client.proto.V1.NodeAffinity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeAffinity(); } public static io.kubernetes.client.proto.V1.NodeAffinity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeAffinity(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.V1.NodeAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeCondition) com.google.protobuf.MessageOrBuilder { /** * * *
     * Type of node condition.
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Type of node condition.
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Type of node condition.
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ boolean hasStatus(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ java.lang.String getStatus(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * Last time we got an update on a given condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ boolean hasLastHeartbeatTime(); /** * * *
     * Last time we got an update on a given condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime(); /** * * *
     * Last time we got an update on a given condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder(); /** * * *
     * Last time the condition transit from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ boolean hasLastTransitionTime(); /** * * *
     * Last time the condition transit from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); /** * * *
     * Last time the condition transit from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); /** * * *
     * (brief) reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ boolean hasReason(); /** * * *
     * (brief) reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ java.lang.String getReason(); /** * * *
     * (brief) reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * Human readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ boolean hasMessage(); /** * * *
     * Human readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ java.lang.String getMessage(); /** * * *
     * Human readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * NodeCondition contains condition information for a node.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeCondition} */ public static final class NodeCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeCondition) NodeConditionOrBuilder { private static final long serialVersionUID = 0L; // Use NodeCondition.newBuilder() to construct. private NodeCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeCondition() { type_ = ""; status_ = ""; reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 26: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastHeartbeatTime_.toBuilder(); } lastHeartbeatTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastHeartbeatTime_); lastHeartbeatTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = lastTransitionTime_.toBuilder(); } lastTransitionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTransitionTime_); lastTransitionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; reason_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; 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 .V1 .internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeCondition.class, io.kubernetes.client.proto.V1.NodeCondition.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Type of node condition.
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Type of node condition.
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type of node condition.
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LASTHEARTBEATTIME_FIELD_NUMBER = 3; private io.kubernetes.client.proto.Meta.Time lastHeartbeatTime_; /** * * *
     * Last time we got an update on a given condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public boolean hasLastHeartbeatTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Last time we got an update on a given condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime() { return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; } /** * * *
     * Last time we got an update on a given condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder() { return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; } public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** * * *
     * Last time the condition transit from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Last time the condition transit from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } /** * * *
     * Last time the condition transit from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } public static final int REASON_FIELD_NUMBER = 5; private volatile java.lang.Object reason_; /** * * *
     * (brief) reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * (brief) reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * (brief) reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object message_; /** * * *
     * Human readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Human readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ 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; } } /** * * *
     * Human readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastHeartbeatTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastHeartbeatTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.V1.NodeCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeCondition other = (io.kubernetes.client.proto.V1.NodeCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasLastHeartbeatTime() == other.hasLastHeartbeatTime()); if (hasLastHeartbeatTime()) { result = result && getLastHeartbeatTime().equals(other.getLastHeartbeatTime()); } result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); if (hasLastTransitionTime()) { result = result && getLastTransitionTime().equals(other.getLastTransitionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasLastHeartbeatTime()) { hash = (37 * hash) + LASTHEARTBEATTIME_FIELD_NUMBER; hash = (53 * hash) + getLastHeartbeatTime().hashCode(); } if (hasLastTransitionTime()) { hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransitionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeCondition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeCondition 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.V1.NodeCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeCondition 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.V1.NodeCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeCondition 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.V1.NodeCondition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeCondition 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.V1.NodeCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeCondition 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.V1.NodeCondition 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; } /** * * *
     * NodeCondition contains condition information for a node.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeCondition) io.kubernetes.client.proto.V1.NodeConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeCondition.class, io.kubernetes.client.proto.V1.NodeCondition.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastHeartbeatTimeFieldBuilder(); getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (lastHeartbeatTimeBuilder_ == null) { lastHeartbeatTime_ = null; } else { lastHeartbeatTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000010); message_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeCondition build() { io.kubernetes.client.proto.V1.NodeCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeCondition buildPartial() { io.kubernetes.client.proto.V1.NodeCondition result = new io.kubernetes.client.proto.V1.NodeCondition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastHeartbeatTimeBuilder_ == null) { result.lastHeartbeatTime_ = lastHeartbeatTime_; } else { result.lastHeartbeatTime_ = lastHeartbeatTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (lastTransitionTimeBuilder_ == null) { result.lastTransitionTime_ = lastTransitionTime_; } else { result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } 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.V1.NodeCondition) { return mergeFrom((io.kubernetes.client.proto.V1.NodeCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeCondition other) { if (other == io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasLastHeartbeatTime()) { mergeLastHeartbeatTime(other.getLastHeartbeatTime()); } if (other.hasLastTransitionTime()) { mergeLastTransitionTime(other.getLastTransitionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000010; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000020; 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.V1.NodeCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Type of node condition.
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Type of node condition.
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type of node condition.
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type of node condition.
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Type of node condition.
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type of node condition.
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time lastHeartbeatTime_ = 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> lastHeartbeatTimeBuilder_; /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public boolean hasLastHeartbeatTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime() { if (lastHeartbeatTimeBuilder_ == null) { return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; } else { return lastHeartbeatTimeBuilder_.getMessage(); } } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public Builder setLastHeartbeatTime(io.kubernetes.client.proto.Meta.Time value) { if (lastHeartbeatTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastHeartbeatTime_ = value; onChanged(); } else { lastHeartbeatTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public Builder setLastHeartbeatTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastHeartbeatTimeBuilder_ == null) { lastHeartbeatTime_ = builderForValue.build(); onChanged(); } else { lastHeartbeatTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public Builder mergeLastHeartbeatTime(io.kubernetes.client.proto.Meta.Time value) { if (lastHeartbeatTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastHeartbeatTime_ != null && lastHeartbeatTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastHeartbeatTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastHeartbeatTime_) .mergeFrom(value) .buildPartial(); } else { lastHeartbeatTime_ = value; } onChanged(); } else { lastHeartbeatTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public Builder clearLastHeartbeatTime() { if (lastHeartbeatTimeBuilder_ == null) { lastHeartbeatTime_ = null; onChanged(); } else { lastHeartbeatTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastHeartbeatTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastHeartbeatTimeFieldBuilder().getBuilder(); } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder() { if (lastHeartbeatTimeBuilder_ != null) { return lastHeartbeatTimeBuilder_.getMessageOrBuilder(); } else { return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; } } /** * * *
       * Last time we got an update on a given condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastHeartbeatTimeFieldBuilder() { if (lastHeartbeatTimeBuilder_ == null) { lastHeartbeatTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastHeartbeatTime(), getParentForChildren(), isClean()); lastHeartbeatTime_ = null; } return lastHeartbeatTimeBuilder_; } private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTransitionTime_ = value; onChanged(); } else { lastTransitionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); } else { lastTransitionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && lastTransitionTime_ != null && lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTransitionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_) .mergeFrom(value) .buildPartial(); } else { lastTransitionTime_ = value; } onChanged(); } else { lastTransitionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder clearLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; onChanged(); } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } } /** * * *
       * Last time the condition transit from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * (brief) reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * (brief) reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * (brief) reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * (brief) reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value; onChanged(); return this; } /** * * *
       * (brief) reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000010); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * (brief) reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Human readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Human readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * Human readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * Human readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; message_ = value; onChanged(); return this; } /** * * *
       * Human readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000020); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Human readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; 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.core.v1.NodeCondition) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeCondition) private static final io.kubernetes.client.proto.V1.NodeCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeCondition(); } public static io.kubernetes.client.proto.V1.NodeCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeCondition(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.V1.NodeCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeConfigSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeConfigSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * ConfigMap is a reference to a Node's ConfigMap
     * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ boolean hasConfigMap(); /** * * *
     * ConfigMap is a reference to a Node's ConfigMap
     * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource getConfigMap(); /** * * *
     * ConfigMap is a reference to a Node's ConfigMap
     * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder getConfigMapOrBuilder(); } /** * * *
   * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
   * This API is deprecated since 1.22
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeConfigSource} */ public static final class NodeConfigSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeConfigSource) NodeConfigSourceOrBuilder { private static final long serialVersionUID = 0L; // Use NodeConfigSource.newBuilder() to construct. private NodeConfigSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeConfigSource() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeConfigSource( 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 18: { io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = configMap_.toBuilder(); } configMap_ = input.readMessage( io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configMap_); configMap_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeConfigSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeConfigSource.class, io.kubernetes.client.proto.V1.NodeConfigSource.Builder.class); } private int bitField0_; public static final int CONFIGMAP_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource configMap_; /** * * *
     * ConfigMap is a reference to a Node's ConfigMap
     * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public boolean hasConfigMap() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * ConfigMap is a reference to a Node's ConfigMap
     * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource getConfigMap() { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance() : configMap_; } /** * * *
     * ConfigMap is a reference to a Node's ConfigMap
     * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder getConfigMapOrBuilder() { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance() : configMap_; } 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(2, getConfigMap()); } 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(2, getConfigMap()); } 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.V1.NodeConfigSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeConfigSource other = (io.kubernetes.client.proto.V1.NodeConfigSource) obj; boolean result = true; result = result && (hasConfigMap() == other.hasConfigMap()); if (hasConfigMap()) { result = result && getConfigMap().equals(other.getConfigMap()); } 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 (hasConfigMap()) { hash = (37 * hash) + CONFIGMAP_FIELD_NUMBER; hash = (53 * hash) + getConfigMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeConfigSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeConfigSource 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.V1.NodeConfigSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeConfigSource 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.V1.NodeConfigSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeConfigSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeConfigSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeConfigSource 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.V1.NodeConfigSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeConfigSource 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.V1.NodeConfigSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeConfigSource 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.V1.NodeConfigSource 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; } /** * * *
     * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.
     * This API is deprecated since 1.22
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeConfigSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeConfigSource) io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeConfigSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeConfigSource.class, io.kubernetes.client.proto.V1.NodeConfigSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeConfigSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfigMapFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (configMapBuilder_ == null) { configMap_ = null; } else { configMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeConfigSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeConfigSource build() { io.kubernetes.client.proto.V1.NodeConfigSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeConfigSource buildPartial() { io.kubernetes.client.proto.V1.NodeConfigSource result = new io.kubernetes.client.proto.V1.NodeConfigSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (configMapBuilder_ == null) { result.configMap_ = configMap_; } else { result.configMap_ = configMapBuilder_.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.V1.NodeConfigSource) { return mergeFrom((io.kubernetes.client.proto.V1.NodeConfigSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeConfigSource other) { if (other == io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance()) return this; if (other.hasConfigMap()) { mergeConfigMap(other.getConfigMap()); } 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.V1.NodeConfigSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeConfigSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource configMap_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder> configMapBuilder_; /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public boolean hasConfigMap() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource getConfigMap() { if (configMapBuilder_ == null) { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance() : configMap_; } else { return configMapBuilder_.getMessage(); } } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public Builder setConfigMap(io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource value) { if (configMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configMap_ = value; onChanged(); } else { configMapBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public Builder setConfigMap( io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder builderForValue) { if (configMapBuilder_ == null) { configMap_ = builderForValue.build(); onChanged(); } else { configMapBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public Builder mergeConfigMap(io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource value) { if (configMapBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && configMap_ != null && configMap_ != io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance()) { configMap_ = io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.newBuilder(configMap_) .mergeFrom(value) .buildPartial(); } else { configMap_ = value; } onChanged(); } else { configMapBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public Builder clearConfigMap() { if (configMapBuilder_ == null) { configMap_ = null; onChanged(); } else { configMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder getConfigMapBuilder() { bitField0_ |= 0x00000001; onChanged(); return getConfigMapFieldBuilder().getBuilder(); } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ public io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder getConfigMapOrBuilder() { if (configMapBuilder_ != null) { return configMapBuilder_.getMessageOrBuilder(); } else { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.getDefaultInstance() : configMap_; } } /** * * *
       * ConfigMap is a reference to a Node's ConfigMap
       * 
* * optional .k8s.io.api.core.v1.ConfigMapNodeConfigSource configMap = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder> getConfigMapFieldBuilder() { if (configMapBuilder_ == null) { configMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSource.Builder, io.kubernetes.client.proto.V1.ConfigMapNodeConfigSourceOrBuilder>( getConfigMap(), getParentForChildren(), isClean()); configMap_ = null; } return configMapBuilder_; } @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.core.v1.NodeConfigSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeConfigSource) private static final io.kubernetes.client.proto.V1.NodeConfigSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeConfigSource(); } public static io.kubernetes.client.proto.V1.NodeConfigSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeConfigSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeConfigSource(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.V1.NodeConfigSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeConfigStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeConfigStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Assigned reports the checkpointed config the node will try to use.
     * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
     * config payload to local disk, along with a record indicating intended
     * config. The node refers to this record to choose its config checkpoint, and
     * reports this record in Assigned. Assigned only updates in the status after
     * the record has been checkpointed to disk. When the Kubelet is restarted,
     * it tries to make the Assigned config the Active config by loading and
     * validating the checkpointed payload identified by Assigned.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ boolean hasAssigned(); /** * * *
     * Assigned reports the checkpointed config the node will try to use.
     * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
     * config payload to local disk, along with a record indicating intended
     * config. The node refers to this record to choose its config checkpoint, and
     * reports this record in Assigned. Assigned only updates in the status after
     * the record has been checkpointed to disk. When the Kubelet is restarted,
     * it tries to make the Assigned config the Active config by loading and
     * validating the checkpointed payload identified by Assigned.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ io.kubernetes.client.proto.V1.NodeConfigSource getAssigned(); /** * * *
     * Assigned reports the checkpointed config the node will try to use.
     * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
     * config payload to local disk, along with a record indicating intended
     * config. The node refers to this record to choose its config checkpoint, and
     * reports this record in Assigned. Assigned only updates in the status after
     * the record has been checkpointed to disk. When the Kubelet is restarted,
     * it tries to make the Assigned config the Active config by loading and
     * validating the checkpointed payload identified by Assigned.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getAssignedOrBuilder(); /** * * *
     * Active reports the checkpointed config the node is actively using.
     * Active will represent either the current version of the Assigned config,
     * or the current LastKnownGood config, depending on whether attempting to use the
     * Assigned config results in an error.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ boolean hasActive(); /** * * *
     * Active reports the checkpointed config the node is actively using.
     * Active will represent either the current version of the Assigned config,
     * or the current LastKnownGood config, depending on whether attempting to use the
     * Assigned config results in an error.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ io.kubernetes.client.proto.V1.NodeConfigSource getActive(); /** * * *
     * Active reports the checkpointed config the node is actively using.
     * Active will represent either the current version of the Assigned config,
     * or the current LastKnownGood config, depending on whether attempting to use the
     * Assigned config results in an error.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getActiveOrBuilder(); /** * * *
     * LastKnownGood reports the checkpointed config the node will fall back to
     * when it encounters an error attempting to use the Assigned config.
     * The Assigned config becomes the LastKnownGood config when the node determines
     * that the Assigned config is stable and correct.
     * This is currently implemented as a 10-minute soak period starting when the local
     * record of Assigned config is updated. If the Assigned config is Active at the end
     * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
     * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
     * because the local default config is always assumed good.
     * You should not make assumptions about the node's method of determining config stability
     * and correctness, as this may change or become configurable in the future.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ boolean hasLastKnownGood(); /** * * *
     * LastKnownGood reports the checkpointed config the node will fall back to
     * when it encounters an error attempting to use the Assigned config.
     * The Assigned config becomes the LastKnownGood config when the node determines
     * that the Assigned config is stable and correct.
     * This is currently implemented as a 10-minute soak period starting when the local
     * record of Assigned config is updated. If the Assigned config is Active at the end
     * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
     * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
     * because the local default config is always assumed good.
     * You should not make assumptions about the node's method of determining config stability
     * and correctness, as this may change or become configurable in the future.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ io.kubernetes.client.proto.V1.NodeConfigSource getLastKnownGood(); /** * * *
     * LastKnownGood reports the checkpointed config the node will fall back to
     * when it encounters an error attempting to use the Assigned config.
     * The Assigned config becomes the LastKnownGood config when the node determines
     * that the Assigned config is stable and correct.
     * This is currently implemented as a 10-minute soak period starting when the local
     * record of Assigned config is updated. If the Assigned config is Active at the end
     * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
     * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
     * because the local default config is always assumed good.
     * You should not make assumptions about the node's method of determining config stability
     * and correctness, as this may change or become configurable in the future.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getLastKnownGoodOrBuilder(); /** * * *
     * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
     * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
     * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
     * to load or validate the Assigned config, etc.
     * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
     * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
     * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
     * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
     * by fixing the config assigned in Spec.ConfigSource.
     * You can find additional information for debugging by searching the error message in the Kubelet log.
     * Error is a human-readable description of the error state; machines can check whether or not Error
     * is empty, but should not rely on the stability of the Error text across Kubelet versions.
     * +optional
     * 
* * optional string error = 4; */ boolean hasError(); /** * * *
     * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
     * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
     * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
     * to load or validate the Assigned config, etc.
     * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
     * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
     * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
     * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
     * by fixing the config assigned in Spec.ConfigSource.
     * You can find additional information for debugging by searching the error message in the Kubelet log.
     * Error is a human-readable description of the error state; machines can check whether or not Error
     * is empty, but should not rely on the stability of the Error text across Kubelet versions.
     * +optional
     * 
* * optional string error = 4; */ java.lang.String getError(); /** * * *
     * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
     * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
     * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
     * to load or validate the Assigned config, etc.
     * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
     * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
     * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
     * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
     * by fixing the config assigned in Spec.ConfigSource.
     * You can find additional information for debugging by searching the error message in the Kubelet log.
     * Error is a human-readable description of the error state; machines can check whether or not Error
     * is empty, but should not rely on the stability of the Error text across Kubelet versions.
     * +optional
     * 
* * optional string error = 4; */ com.google.protobuf.ByteString getErrorBytes(); } /** * * *
   * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeConfigStatus} */ public static final class NodeConfigStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeConfigStatus) NodeConfigStatusOrBuilder { private static final long serialVersionUID = 0L; // Use NodeConfigStatus.newBuilder() to construct. private NodeConfigStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeConfigStatus() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeConfigStatus( 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.V1.NodeConfigSource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = assigned_.toBuilder(); } assigned_ = input.readMessage( io.kubernetes.client.proto.V1.NodeConfigSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(assigned_); assigned_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.NodeConfigSource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = active_.toBuilder(); } active_ = input.readMessage( io.kubernetes.client.proto.V1.NodeConfigSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(active_); active_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.NodeConfigSource.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastKnownGood_.toBuilder(); } lastKnownGood_ = input.readMessage( io.kubernetes.client.proto.V1.NodeConfigSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastKnownGood_); lastKnownGood_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; error_ = 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 .V1 .internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeConfigStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeConfigStatus.class, io.kubernetes.client.proto.V1.NodeConfigStatus.Builder.class); } private int bitField0_; public static final int ASSIGNED_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.NodeConfigSource assigned_; /** * * *
     * Assigned reports the checkpointed config the node will try to use.
     * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
     * config payload to local disk, along with a record indicating intended
     * config. The node refers to this record to choose its config checkpoint, and
     * reports this record in Assigned. Assigned only updates in the status after
     * the record has been checkpointed to disk. When the Kubelet is restarted,
     * it tries to make the Assigned config the Active config by loading and
     * validating the checkpointed payload identified by Assigned.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public boolean hasAssigned() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Assigned reports the checkpointed config the node will try to use.
     * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
     * config payload to local disk, along with a record indicating intended
     * config. The node refers to this record to choose its config checkpoint, and
     * reports this record in Assigned. Assigned only updates in the status after
     * the record has been checkpointed to disk. When the Kubelet is restarted,
     * it tries to make the Assigned config the Active config by loading and
     * validating the checkpointed payload identified by Assigned.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public io.kubernetes.client.proto.V1.NodeConfigSource getAssigned() { return assigned_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : assigned_; } /** * * *
     * Assigned reports the checkpointed config the node will try to use.
     * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
     * config payload to local disk, along with a record indicating intended
     * config. The node refers to this record to choose its config checkpoint, and
     * reports this record in Assigned. Assigned only updates in the status after
     * the record has been checkpointed to disk. When the Kubelet is restarted,
     * it tries to make the Assigned config the Active config by loading and
     * validating the checkpointed payload identified by Assigned.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getAssignedOrBuilder() { return assigned_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : assigned_; } public static final int ACTIVE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.NodeConfigSource active_; /** * * *
     * Active reports the checkpointed config the node is actively using.
     * Active will represent either the current version of the Assigned config,
     * or the current LastKnownGood config, depending on whether attempting to use the
     * Assigned config results in an error.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public boolean hasActive() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Active reports the checkpointed config the node is actively using.
     * Active will represent either the current version of the Assigned config,
     * or the current LastKnownGood config, depending on whether attempting to use the
     * Assigned config results in an error.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public io.kubernetes.client.proto.V1.NodeConfigSource getActive() { return active_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : active_; } /** * * *
     * Active reports the checkpointed config the node is actively using.
     * Active will represent either the current version of the Assigned config,
     * or the current LastKnownGood config, depending on whether attempting to use the
     * Assigned config results in an error.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getActiveOrBuilder() { return active_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : active_; } public static final int LASTKNOWNGOOD_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.NodeConfigSource lastKnownGood_; /** * * *
     * LastKnownGood reports the checkpointed config the node will fall back to
     * when it encounters an error attempting to use the Assigned config.
     * The Assigned config becomes the LastKnownGood config when the node determines
     * that the Assigned config is stable and correct.
     * This is currently implemented as a 10-minute soak period starting when the local
     * record of Assigned config is updated. If the Assigned config is Active at the end
     * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
     * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
     * because the local default config is always assumed good.
     * You should not make assumptions about the node's method of determining config stability
     * and correctness, as this may change or become configurable in the future.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public boolean hasLastKnownGood() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * LastKnownGood reports the checkpointed config the node will fall back to
     * when it encounters an error attempting to use the Assigned config.
     * The Assigned config becomes the LastKnownGood config when the node determines
     * that the Assigned config is stable and correct.
     * This is currently implemented as a 10-minute soak period starting when the local
     * record of Assigned config is updated. If the Assigned config is Active at the end
     * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
     * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
     * because the local default config is always assumed good.
     * You should not make assumptions about the node's method of determining config stability
     * and correctness, as this may change or become configurable in the future.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public io.kubernetes.client.proto.V1.NodeConfigSource getLastKnownGood() { return lastKnownGood_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : lastKnownGood_; } /** * * *
     * LastKnownGood reports the checkpointed config the node will fall back to
     * when it encounters an error attempting to use the Assigned config.
     * The Assigned config becomes the LastKnownGood config when the node determines
     * that the Assigned config is stable and correct.
     * This is currently implemented as a 10-minute soak period starting when the local
     * record of Assigned config is updated. If the Assigned config is Active at the end
     * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
     * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
     * because the local default config is always assumed good.
     * You should not make assumptions about the node's method of determining config stability
     * and correctness, as this may change or become configurable in the future.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getLastKnownGoodOrBuilder() { return lastKnownGood_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : lastKnownGood_; } public static final int ERROR_FIELD_NUMBER = 4; private volatile java.lang.Object error_; /** * * *
     * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
     * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
     * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
     * to load or validate the Assigned config, etc.
     * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
     * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
     * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
     * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
     * by fixing the config assigned in Spec.ConfigSource.
     * You can find additional information for debugging by searching the error message in the Kubelet log.
     * Error is a human-readable description of the error state; machines can check whether or not Error
     * is empty, but should not rely on the stability of the Error text across Kubelet versions.
     * +optional
     * 
* * optional string error = 4; */ public boolean hasError() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
     * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
     * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
     * to load or validate the Assigned config, etc.
     * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
     * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
     * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
     * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
     * by fixing the config assigned in Spec.ConfigSource.
     * You can find additional information for debugging by searching the error message in the Kubelet log.
     * Error is a human-readable description of the error state; machines can check whether or not Error
     * is empty, but should not rely on the stability of the Error text across Kubelet versions.
     * +optional
     * 
* * optional string error = 4; */ public java.lang.String getError() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { error_ = s; } return s; } } /** * * *
     * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
     * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
     * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
     * to load or validate the Assigned config, etc.
     * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
     * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
     * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
     * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
     * by fixing the config assigned in Spec.ConfigSource.
     * You can find additional information for debugging by searching the error message in the Kubelet log.
     * Error is a human-readable description of the error state; machines can check whether or not Error
     * is empty, but should not rely on the stability of the Error text across Kubelet versions.
     * +optional
     * 
* * optional string error = 4; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getAssigned()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getActive()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastKnownGood()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_); } 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, getAssigned()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getActive()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastKnownGood()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_); } 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.V1.NodeConfigStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeConfigStatus other = (io.kubernetes.client.proto.V1.NodeConfigStatus) obj; boolean result = true; result = result && (hasAssigned() == other.hasAssigned()); if (hasAssigned()) { result = result && getAssigned().equals(other.getAssigned()); } result = result && (hasActive() == other.hasActive()); if (hasActive()) { result = result && getActive().equals(other.getActive()); } result = result && (hasLastKnownGood() == other.hasLastKnownGood()); if (hasLastKnownGood()) { result = result && getLastKnownGood().equals(other.getLastKnownGood()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError().equals(other.getError()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAssigned()) { hash = (37 * hash) + ASSIGNED_FIELD_NUMBER; hash = (53 * hash) + getAssigned().hashCode(); } if (hasActive()) { hash = (37 * hash) + ACTIVE_FIELD_NUMBER; hash = (53 * hash) + getActive().hashCode(); } if (hasLastKnownGood()) { hash = (37 * hash) + LASTKNOWNGOOD_FIELD_NUMBER; hash = (53 * hash) + getLastKnownGood().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeConfigStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeConfigStatus 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.V1.NodeConfigStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeConfigStatus 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.V1.NodeConfigStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeConfigStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeConfigStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeConfigStatus 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.V1.NodeConfigStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeConfigStatus 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.V1.NodeConfigStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeConfigStatus 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.V1.NodeConfigStatus 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; } /** * * *
     * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeConfigStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeConfigStatus) io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeConfigStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeConfigStatus.class, io.kubernetes.client.proto.V1.NodeConfigStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeConfigStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAssignedFieldBuilder(); getActiveFieldBuilder(); getLastKnownGoodFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (assignedBuilder_ == null) { assigned_ = null; } else { assignedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (activeBuilder_ == null) { active_ = null; } else { activeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (lastKnownGoodBuilder_ == null) { lastKnownGood_ = null; } else { lastKnownGoodBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); error_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeConfigStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeConfigStatus build() { io.kubernetes.client.proto.V1.NodeConfigStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeConfigStatus buildPartial() { io.kubernetes.client.proto.V1.NodeConfigStatus result = new io.kubernetes.client.proto.V1.NodeConfigStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (assignedBuilder_ == null) { result.assigned_ = assigned_; } else { result.assigned_ = assignedBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (activeBuilder_ == null) { result.active_ = active_; } else { result.active_ = activeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastKnownGoodBuilder_ == null) { result.lastKnownGood_ = lastKnownGood_; } else { result.lastKnownGood_ = lastKnownGoodBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.error_ = error_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.NodeConfigStatus) { return mergeFrom((io.kubernetes.client.proto.V1.NodeConfigStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeConfigStatus other) { if (other == io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance()) return this; if (other.hasAssigned()) { mergeAssigned(other.getAssigned()); } if (other.hasActive()) { mergeActive(other.getActive()); } if (other.hasLastKnownGood()) { mergeLastKnownGood(other.getLastKnownGood()); } if (other.hasError()) { bitField0_ |= 0x00000008; error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.NodeConfigStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeConfigStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.NodeConfigSource assigned_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> assignedBuilder_; /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public boolean hasAssigned() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public io.kubernetes.client.proto.V1.NodeConfigSource getAssigned() { if (assignedBuilder_ == null) { return assigned_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : assigned_; } else { return assignedBuilder_.getMessage(); } } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public Builder setAssigned(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (assignedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } assigned_ = value; onChanged(); } else { assignedBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public Builder setAssigned( io.kubernetes.client.proto.V1.NodeConfigSource.Builder builderForValue) { if (assignedBuilder_ == null) { assigned_ = builderForValue.build(); onChanged(); } else { assignedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public Builder mergeAssigned(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (assignedBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && assigned_ != null && assigned_ != io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance()) { assigned_ = io.kubernetes.client.proto.V1.NodeConfigSource.newBuilder(assigned_) .mergeFrom(value) .buildPartial(); } else { assigned_ = value; } onChanged(); } else { assignedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public Builder clearAssigned() { if (assignedBuilder_ == null) { assigned_ = null; onChanged(); } else { assignedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public io.kubernetes.client.proto.V1.NodeConfigSource.Builder getAssignedBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAssignedFieldBuilder().getBuilder(); } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getAssignedOrBuilder() { if (assignedBuilder_ != null) { return assignedBuilder_.getMessageOrBuilder(); } else { return assigned_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : assigned_; } } /** * * *
       * Assigned reports the checkpointed config the node will try to use.
       * When Node.Spec.ConfigSource is updated, the node checkpoints the associated
       * config payload to local disk, along with a record indicating intended
       * config. The node refers to this record to choose its config checkpoint, and
       * reports this record in Assigned. Assigned only updates in the status after
       * the record has been checkpointed to disk. When the Kubelet is restarted,
       * it tries to make the Assigned config the Active config by loading and
       * validating the checkpointed payload identified by Assigned.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource assigned = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> getAssignedFieldBuilder() { if (assignedBuilder_ == null) { assignedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder>( getAssigned(), getParentForChildren(), isClean()); assigned_ = null; } return assignedBuilder_; } private io.kubernetes.client.proto.V1.NodeConfigSource active_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> activeBuilder_; /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public boolean hasActive() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public io.kubernetes.client.proto.V1.NodeConfigSource getActive() { if (activeBuilder_ == null) { return active_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : active_; } else { return activeBuilder_.getMessage(); } } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public Builder setActive(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (activeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } active_ = value; onChanged(); } else { activeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public Builder setActive( io.kubernetes.client.proto.V1.NodeConfigSource.Builder builderForValue) { if (activeBuilder_ == null) { active_ = builderForValue.build(); onChanged(); } else { activeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public Builder mergeActive(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (activeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && active_ != null && active_ != io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance()) { active_ = io.kubernetes.client.proto.V1.NodeConfigSource.newBuilder(active_) .mergeFrom(value) .buildPartial(); } else { active_ = value; } onChanged(); } else { activeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public Builder clearActive() { if (activeBuilder_ == null) { active_ = null; onChanged(); } else { activeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public io.kubernetes.client.proto.V1.NodeConfigSource.Builder getActiveBuilder() { bitField0_ |= 0x00000002; onChanged(); return getActiveFieldBuilder().getBuilder(); } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getActiveOrBuilder() { if (activeBuilder_ != null) { return activeBuilder_.getMessageOrBuilder(); } else { return active_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : active_; } } /** * * *
       * Active reports the checkpointed config the node is actively using.
       * Active will represent either the current version of the Assigned config,
       * or the current LastKnownGood config, depending on whether attempting to use the
       * Assigned config results in an error.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource active = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> getActiveFieldBuilder() { if (activeBuilder_ == null) { activeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder>( getActive(), getParentForChildren(), isClean()); active_ = null; } return activeBuilder_; } private io.kubernetes.client.proto.V1.NodeConfigSource lastKnownGood_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> lastKnownGoodBuilder_; /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public boolean hasLastKnownGood() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public io.kubernetes.client.proto.V1.NodeConfigSource getLastKnownGood() { if (lastKnownGoodBuilder_ == null) { return lastKnownGood_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : lastKnownGood_; } else { return lastKnownGoodBuilder_.getMessage(); } } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public Builder setLastKnownGood(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (lastKnownGoodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastKnownGood_ = value; onChanged(); } else { lastKnownGoodBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public Builder setLastKnownGood( io.kubernetes.client.proto.V1.NodeConfigSource.Builder builderForValue) { if (lastKnownGoodBuilder_ == null) { lastKnownGood_ = builderForValue.build(); onChanged(); } else { lastKnownGoodBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public Builder mergeLastKnownGood(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (lastKnownGoodBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastKnownGood_ != null && lastKnownGood_ != io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance()) { lastKnownGood_ = io.kubernetes.client.proto.V1.NodeConfigSource.newBuilder(lastKnownGood_) .mergeFrom(value) .buildPartial(); } else { lastKnownGood_ = value; } onChanged(); } else { lastKnownGoodBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public Builder clearLastKnownGood() { if (lastKnownGoodBuilder_ == null) { lastKnownGood_ = null; onChanged(); } else { lastKnownGoodBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public io.kubernetes.client.proto.V1.NodeConfigSource.Builder getLastKnownGoodBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastKnownGoodFieldBuilder().getBuilder(); } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getLastKnownGoodOrBuilder() { if (lastKnownGoodBuilder_ != null) { return lastKnownGoodBuilder_.getMessageOrBuilder(); } else { return lastKnownGood_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : lastKnownGood_; } } /** * * *
       * LastKnownGood reports the checkpointed config the node will fall back to
       * when it encounters an error attempting to use the Assigned config.
       * The Assigned config becomes the LastKnownGood config when the node determines
       * that the Assigned config is stable and correct.
       * This is currently implemented as a 10-minute soak period starting when the local
       * record of Assigned config is updated. If the Assigned config is Active at the end
       * of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
       * reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
       * because the local default config is always assumed good.
       * You should not make assumptions about the node's method of determining config stability
       * and correctness, as this may change or become configurable in the future.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource lastKnownGood = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> getLastKnownGoodFieldBuilder() { if (lastKnownGoodBuilder_ == null) { lastKnownGoodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder>( getLastKnownGood(), getParentForChildren(), isClean()); lastKnownGood_ = null; } return lastKnownGoodBuilder_; } private java.lang.Object error_ = ""; /** * * *
       * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
       * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
       * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
       * to load or validate the Assigned config, etc.
       * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
       * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
       * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
       * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
       * by fixing the config assigned in Spec.ConfigSource.
       * You can find additional information for debugging by searching the error message in the Kubelet log.
       * Error is a human-readable description of the error state; machines can check whether or not Error
       * is empty, but should not rely on the stability of the Error text across Kubelet versions.
       * +optional
       * 
* * optional string error = 4; */ public boolean hasError() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
       * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
       * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
       * to load or validate the Assigned config, etc.
       * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
       * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
       * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
       * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
       * by fixing the config assigned in Spec.ConfigSource.
       * You can find additional information for debugging by searching the error message in the Kubelet log.
       * Error is a human-readable description of the error state; machines can check whether or not Error
       * is empty, but should not rely on the stability of the Error text across Kubelet versions.
       * +optional
       * 
* * optional string error = 4; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { error_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
       * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
       * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
       * to load or validate the Assigned config, etc.
       * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
       * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
       * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
       * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
       * by fixing the config assigned in Spec.ConfigSource.
       * You can find additional information for debugging by searching the error message in the Kubelet log.
       * Error is a human-readable description of the error state; machines can check whether or not Error
       * is empty, but should not rely on the stability of the Error text across Kubelet versions.
       * +optional
       * 
* * optional string error = 4; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
       * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
       * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
       * to load or validate the Assigned config, etc.
       * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
       * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
       * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
       * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
       * by fixing the config assigned in Spec.ConfigSource.
       * You can find additional information for debugging by searching the error message in the Kubelet log.
       * Error is a human-readable description of the error state; machines can check whether or not Error
       * is empty, but should not rely on the stability of the Error text across Kubelet versions.
       * +optional
       * 
* * optional string error = 4; */ public Builder setError(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; error_ = value; onChanged(); return this; } /** * * *
       * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
       * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
       * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
       * to load or validate the Assigned config, etc.
       * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
       * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
       * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
       * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
       * by fixing the config assigned in Spec.ConfigSource.
       * You can find additional information for debugging by searching the error message in the Kubelet log.
       * Error is a human-readable description of the error state; machines can check whether or not Error
       * is empty, but should not rely on the stability of the Error text across Kubelet versions.
       * +optional
       * 
* * optional string error = 4; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000008); error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * * *
       * Error describes any problems reconciling the Spec.ConfigSource to the Active config.
       * Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
       * record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
       * to load or validate the Assigned config, etc.
       * Errors may occur at different points while syncing config. Earlier errors (e.g. download or
       * checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
       * Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
       * a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
       * by fixing the config assigned in Spec.ConfigSource.
       * You can find additional information for debugging by searching the error message in the Kubelet log.
       * Error is a human-readable description of the error state; machines can check whether or not Error
       * is empty, but should not rely on the stability of the Error text across Kubelet versions.
       * +optional
       * 
* * optional string error = 4; */ public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; error_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.NodeConfigStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeConfigStatus) private static final io.kubernetes.client.proto.V1.NodeConfigStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeConfigStatus(); } public static io.kubernetes.client.proto.V1.NodeConfigStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeConfigStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeConfigStatus(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.V1.NodeConfigStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeDaemonEndpointsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeDaemonEndpoints) com.google.protobuf.MessageOrBuilder { /** * * *
     * Endpoint on which Kubelet is listening.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ boolean hasKubeletEndpoint(); /** * * *
     * Endpoint on which Kubelet is listening.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ io.kubernetes.client.proto.V1.DaemonEndpoint getKubeletEndpoint(); /** * * *
     * Endpoint on which Kubelet is listening.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder getKubeletEndpointOrBuilder(); } /** * * *
   * NodeDaemonEndpoints lists ports opened by daemons running on the Node.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeDaemonEndpoints} */ public static final class NodeDaemonEndpoints extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeDaemonEndpoints) NodeDaemonEndpointsOrBuilder { private static final long serialVersionUID = 0L; // Use NodeDaemonEndpoints.newBuilder() to construct. private NodeDaemonEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeDaemonEndpoints() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeDaemonEndpoints( 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.V1.DaemonEndpoint.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = kubeletEndpoint_.toBuilder(); } kubeletEndpoint_ = input.readMessage( io.kubernetes.client.proto.V1.DaemonEndpoint.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(kubeletEndpoint_); kubeletEndpoint_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeDaemonEndpoints.class, io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder.class); } private int bitField0_; public static final int KUBELETENDPOINT_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.DaemonEndpoint kubeletEndpoint_; /** * * *
     * Endpoint on which Kubelet is listening.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public boolean hasKubeletEndpoint() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Endpoint on which Kubelet is listening.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public io.kubernetes.client.proto.V1.DaemonEndpoint getKubeletEndpoint() { return kubeletEndpoint_ == null ? io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance() : kubeletEndpoint_; } /** * * *
     * Endpoint on which Kubelet is listening.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder getKubeletEndpointOrBuilder() { return kubeletEndpoint_ == null ? io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance() : kubeletEndpoint_; } 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, getKubeletEndpoint()); } 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, getKubeletEndpoint()); } 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.V1.NodeDaemonEndpoints)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeDaemonEndpoints other = (io.kubernetes.client.proto.V1.NodeDaemonEndpoints) obj; boolean result = true; result = result && (hasKubeletEndpoint() == other.hasKubeletEndpoint()); if (hasKubeletEndpoint()) { result = result && getKubeletEndpoint().equals(other.getKubeletEndpoint()); } 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 (hasKubeletEndpoint()) { hash = (37 * hash) + KUBELETENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getKubeletEndpoint().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints 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.V1.NodeDaemonEndpoints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints 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.V1.NodeDaemonEndpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints 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.V1.NodeDaemonEndpoints parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints 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.V1.NodeDaemonEndpoints parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints 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.V1.NodeDaemonEndpoints 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; } /** * * *
     * NodeDaemonEndpoints lists ports opened by daemons running on the Node.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeDaemonEndpoints} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeDaemonEndpoints) io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeDaemonEndpoints.class, io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeDaemonEndpoints.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getKubeletEndpointFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (kubeletEndpointBuilder_ == null) { kubeletEndpoint_ = null; } else { kubeletEndpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeDaemonEndpoints getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeDaemonEndpoints build() { io.kubernetes.client.proto.V1.NodeDaemonEndpoints result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeDaemonEndpoints buildPartial() { io.kubernetes.client.proto.V1.NodeDaemonEndpoints result = new io.kubernetes.client.proto.V1.NodeDaemonEndpoints(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (kubeletEndpointBuilder_ == null) { result.kubeletEndpoint_ = kubeletEndpoint_; } else { result.kubeletEndpoint_ = kubeletEndpointBuilder_.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.V1.NodeDaemonEndpoints) { return mergeFrom((io.kubernetes.client.proto.V1.NodeDaemonEndpoints) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeDaemonEndpoints other) { if (other == io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance()) return this; if (other.hasKubeletEndpoint()) { mergeKubeletEndpoint(other.getKubeletEndpoint()); } 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.V1.NodeDaemonEndpoints parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeDaemonEndpoints) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.DaemonEndpoint kubeletEndpoint_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DaemonEndpoint, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder, io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder> kubeletEndpointBuilder_; /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public boolean hasKubeletEndpoint() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public io.kubernetes.client.proto.V1.DaemonEndpoint getKubeletEndpoint() { if (kubeletEndpointBuilder_ == null) { return kubeletEndpoint_ == null ? io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance() : kubeletEndpoint_; } else { return kubeletEndpointBuilder_.getMessage(); } } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public Builder setKubeletEndpoint(io.kubernetes.client.proto.V1.DaemonEndpoint value) { if (kubeletEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kubeletEndpoint_ = value; onChanged(); } else { kubeletEndpointBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public Builder setKubeletEndpoint( io.kubernetes.client.proto.V1.DaemonEndpoint.Builder builderForValue) { if (kubeletEndpointBuilder_ == null) { kubeletEndpoint_ = builderForValue.build(); onChanged(); } else { kubeletEndpointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public Builder mergeKubeletEndpoint(io.kubernetes.client.proto.V1.DaemonEndpoint value) { if (kubeletEndpointBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && kubeletEndpoint_ != null && kubeletEndpoint_ != io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance()) { kubeletEndpoint_ = io.kubernetes.client.proto.V1.DaemonEndpoint.newBuilder(kubeletEndpoint_) .mergeFrom(value) .buildPartial(); } else { kubeletEndpoint_ = value; } onChanged(); } else { kubeletEndpointBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public Builder clearKubeletEndpoint() { if (kubeletEndpointBuilder_ == null) { kubeletEndpoint_ = null; onChanged(); } else { kubeletEndpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public io.kubernetes.client.proto.V1.DaemonEndpoint.Builder getKubeletEndpointBuilder() { bitField0_ |= 0x00000001; onChanged(); return getKubeletEndpointFieldBuilder().getBuilder(); } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ public io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder getKubeletEndpointOrBuilder() { if (kubeletEndpointBuilder_ != null) { return kubeletEndpointBuilder_.getMessageOrBuilder(); } else { return kubeletEndpoint_ == null ? io.kubernetes.client.proto.V1.DaemonEndpoint.getDefaultInstance() : kubeletEndpoint_; } } /** * * *
       * Endpoint on which Kubelet is listening.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DaemonEndpoint kubeletEndpoint = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DaemonEndpoint, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder, io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder> getKubeletEndpointFieldBuilder() { if (kubeletEndpointBuilder_ == null) { kubeletEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DaemonEndpoint, io.kubernetes.client.proto.V1.DaemonEndpoint.Builder, io.kubernetes.client.proto.V1.DaemonEndpointOrBuilder>( getKubeletEndpoint(), getParentForChildren(), isClean()); kubeletEndpoint_ = null; } return kubeletEndpointBuilder_; } @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.core.v1.NodeDaemonEndpoints) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeDaemonEndpoints) private static final io.kubernetes.client.proto.V1.NodeDaemonEndpoints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeDaemonEndpoints(); } public static io.kubernetes.client.proto.V1.NodeDaemonEndpoints getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeDaemonEndpoints parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeDaemonEndpoints(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.V1.NodeDaemonEndpoints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ java.util.List getItemsList(); /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ io.kubernetes.client.proto.V1.Node getItems(int index); /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ int getItemsCount(); /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ io.kubernetes.client.proto.V1.NodeOrBuilder getItemsOrBuilder(int index); } /** * * *
   * NodeList is the whole list of all Nodes which have been registered with master.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeList} */ public static final class NodeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeList) NodeListOrBuilder { private static final long serialVersionUID = 0L; // Use NodeList.newBuilder() to construct. private NodeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeList( 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.V1.Node.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.V1.internal_static_k8s_io_api_core_v1_NodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeList.class, io.kubernetes.client.proto.V1.NodeList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.Node getItems(int index) { return items_.get(index); } /** * * *
     * List of nodes
     * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.NodeOrBuilder 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.V1.NodeList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeList other = (io.kubernetes.client.proto.V1.NodeList) 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.V1.NodeList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeList 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.V1.NodeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeList 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.V1.NodeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeList 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.V1.NodeList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeList 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.V1.NodeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeList 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.V1.NodeList 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; } /** * * *
     * NodeList is the whole list of all Nodes which have been registered with master.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeList) io.kubernetes.client.proto.V1.NodeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeList.class, io.kubernetes.client.proto.V1.NodeList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeList.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.V1.internal_static_k8s_io_api_core_v1_NodeList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeList build() { io.kubernetes.client.proto.V1.NodeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeList buildPartial() { io.kubernetes.client.proto.V1.NodeList result = new io.kubernetes.client.proto.V1.NodeList(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.V1.NodeList) { return mergeFrom((io.kubernetes.client.proto.V1.NodeList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeList other) { if (other == io.kubernetes.client.proto.V1.NodeList.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.V1.NodeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Node, io.kubernetes.client.proto.V1.Node.Builder, io.kubernetes.client.proto.V1.NodeOrBuilder> itemsBuilder_; /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.Node getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Node value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Node.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Node value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Node value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Node.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Node.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node 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; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.Node.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.NodeOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.Node.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Node.getDefaultInstance()); } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public io.kubernetes.client.proto.V1.Node.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Node.getDefaultInstance()); } /** * * *
       * List of nodes
       * 
* * repeated .k8s.io.api.core.v1.Node items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Node, io.kubernetes.client.proto.V1.Node.Builder, io.kubernetes.client.proto.V1.NodeOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Node, io.kubernetes.client.proto.V1.Node.Builder, io.kubernetes.client.proto.V1.NodeOrBuilder>( 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.core.v1.NodeList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeList) private static final io.kubernetes.client.proto.V1.NodeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeList(); } public static io.kubernetes.client.proto.V1.NodeList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeList(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.V1.NodeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeProxyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeProxyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Path is the URL path to use for the current proxy request to node.
     * +optional
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * Path is the URL path to use for the current proxy request to node.
     * +optional
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * Path is the URL path to use for the current proxy request to node.
     * +optional
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); } /** * * *
   * NodeProxyOptions is the query options to a Node's proxy call.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeProxyOptions} */ public static final class NodeProxyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeProxyOptions) NodeProxyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use NodeProxyOptions.newBuilder() to construct. private NodeProxyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeProxyOptions() { path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeProxyOptions( 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; path_ = 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 .V1 .internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeProxyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeProxyOptions.class, io.kubernetes.client.proto.V1.NodeProxyOptions.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * Path is the URL path to use for the current proxy request to node.
     * +optional
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Path is the URL path to use for the current proxy request to node.
     * +optional
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path is the URL path to use for the current proxy request to node.
     * +optional
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, path_); } 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, path_); } 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.V1.NodeProxyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeProxyOptions other = (io.kubernetes.client.proto.V1.NodeProxyOptions) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeProxyOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeProxyOptions 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.V1.NodeProxyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeProxyOptions 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.V1.NodeProxyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeProxyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeProxyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeProxyOptions 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.V1.NodeProxyOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeProxyOptions 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.V1.NodeProxyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeProxyOptions 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.V1.NodeProxyOptions 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; } /** * * *
     * NodeProxyOptions is the query options to a Node's proxy call.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeProxyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeProxyOptions) io.kubernetes.client.proto.V1.NodeProxyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeProxyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeProxyOptions.class, io.kubernetes.client.proto.V1.NodeProxyOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeProxyOptions.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeProxyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeProxyOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeProxyOptions build() { io.kubernetes.client.proto.V1.NodeProxyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeProxyOptions buildPartial() { io.kubernetes.client.proto.V1.NodeProxyOptions result = new io.kubernetes.client.proto.V1.NodeProxyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; 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.V1.NodeProxyOptions) { return mergeFrom((io.kubernetes.client.proto.V1.NodeProxyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeProxyOptions other) { if (other == io.kubernetes.client.proto.V1.NodeProxyOptions.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; 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.V1.NodeProxyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeProxyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * Path is the URL path to use for the current proxy request to node.
       * +optional
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Path is the URL path to use for the current proxy request to node.
       * +optional
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path is the URL path to use for the current proxy request to node.
       * +optional
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path is the URL path to use for the current proxy request to node.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * Path is the URL path to use for the current proxy request to node.
       * +optional
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path is the URL path to use for the current proxy request to node.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = 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.core.v1.NodeProxyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeProxyOptions) private static final io.kubernetes.client.proto.V1.NodeProxyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeProxyOptions(); } public static io.kubernetes.client.proto.V1.NodeProxyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeProxyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeProxyOptions(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.V1.NodeProxyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeResources) com.google.protobuf.MessageOrBuilder { /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ int getCapacityCount(); /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ boolean containsCapacity(java.lang.String key); /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated java.util.Map getCapacity(); /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ java.util.Map getCapacityMap(); /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key); } /** * * *
   * NodeResources is an object for conveying resource information about a node.
   * see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeResources} */ public static final class NodeResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeResources) NodeResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use NodeResources.newBuilder() to construct. private NodeResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeResources() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeResources( 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)) { capacity_ = com.google.protobuf.MapField.newMapField( CapacityDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity__ = input.readMessage( CapacityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); capacity_.getMutableMap().put(capacity__.getKey(), capacity__.getValue()); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeResources_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeResources_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeResources.class, io.kubernetes.client.proto.V1.NodeResources.Builder.class); } public static final int CAPACITY_FIELD_NUMBER = 1; private static final class CapacityDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeResources_CapacityEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField(CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Capacity represents the available resources of a node
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCapacity(), CapacityDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetCapacity().getMap().entrySet()) { com.google.protobuf.MapEntry capacity__ = CapacityDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, capacity__); } 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.V1.NodeResources)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeResources other = (io.kubernetes.client.proto.V1.NodeResources) obj; boolean result = true; result = result && internalGetCapacity().equals(other.internalGetCapacity()); 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 (!internalGetCapacity().getMap().isEmpty()) { hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + internalGetCapacity().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeResources parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeResources 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.V1.NodeResources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeResources 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.V1.NodeResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeResources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeResources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeResources 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.V1.NodeResources parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeResources 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.V1.NodeResources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeResources 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.V1.NodeResources 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; } /** * * *
     * NodeResources is an object for conveying resource information about a node.
     * see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeResources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeResources) io.kubernetes.client.proto.V1.NodeResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeResources_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeResources_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeResources.class, io.kubernetes.client.proto.V1.NodeResources.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeResources.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(); internalGetMutableCapacity().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeResources_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeResources getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeResources.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeResources build() { io.kubernetes.client.proto.V1.NodeResources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeResources buildPartial() { io.kubernetes.client.proto.V1.NodeResources result = new io.kubernetes.client.proto.V1.NodeResources(this); int from_bitField0_ = bitField0_; result.capacity_ = internalGetCapacity(); result.capacity_.makeImmutable(); 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.V1.NodeResources) { return mergeFrom((io.kubernetes.client.proto.V1.NodeResources) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeResources other) { if (other == io.kubernetes.client.proto.V1.NodeResources.getDefaultInstance()) return this; internalGetMutableCapacity().mergeFrom(other.internalGetCapacity()); 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.V1.NodeResources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeResources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField( CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableCapacity() { onChanged(); ; if (capacity_ == null) { capacity_ = com.google.protobuf.MapField.newMapField(CapacityDefaultEntryHolder.defaultEntry); } if (!capacity_.isMutable()) { capacity_ = capacity_.copy(); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCapacity() { internalGetMutableCapacity().getMutableMap().clear(); return this; } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder removeCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCapacity() { return internalGetMutableCapacity().getMutableMap(); } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder putCapacity( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().put(key, value); return this; } /** * * *
       * Capacity represents the available resources of a node
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder putAllCapacity( java.util.Map values) { internalGetMutableCapacity().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.NodeResources) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeResources) private static final io.kubernetes.client.proto.V1.NodeResources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeResources(); } public static io.kubernetes.client.proto.V1.NodeResources getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeResources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeResources(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.V1.NodeResources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeSelector) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ java.util.List getNodeSelectorTermsList(); /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ io.kubernetes.client.proto.V1.NodeSelectorTerm getNodeSelectorTerms(int index); /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ int getNodeSelectorTermsCount(); /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ java.util.List getNodeSelectorTermsOrBuilderList(); /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder getNodeSelectorTermsOrBuilder( int index); } /** * * *
   * A node selector represents the union of the results of one or more label queries
   * over a set of nodes; that is, it represents the OR of the selectors represented
   * by the node selector terms.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSelector} */ public static final class NodeSelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeSelector) NodeSelectorOrBuilder { private static final long serialVersionUID = 0L; // Use NodeSelector.newBuilder() to construct. private NodeSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeSelector() { nodeSelectorTerms_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeSelector( 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)) { nodeSelectorTerms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nodeSelectorTerms_.add( input.readMessage( io.kubernetes.client.proto.V1.NodeSelectorTerm.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)) { nodeSelectorTerms_ = java.util.Collections.unmodifiableList(nodeSelectorTerms_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSelector.class, io.kubernetes.client.proto.V1.NodeSelector.Builder.class); } public static final int NODESELECTORTERMS_FIELD_NUMBER = 1; private java.util.List nodeSelectorTerms_; /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public java.util.List getNodeSelectorTermsList() { return nodeSelectorTerms_; } /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public java.util.List getNodeSelectorTermsOrBuilderList() { return nodeSelectorTerms_; } /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public int getNodeSelectorTermsCount() { return nodeSelectorTerms_.size(); } /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm getNodeSelectorTerms(int index) { return nodeSelectorTerms_.get(index); } /** * * *
     * Required. A list of node selector terms. The terms are ORed.
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder getNodeSelectorTermsOrBuilder( int index) { return nodeSelectorTerms_.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 < nodeSelectorTerms_.size(); i++) { output.writeMessage(1, nodeSelectorTerms_.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 < nodeSelectorTerms_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodeSelectorTerms_.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.V1.NodeSelector)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeSelector other = (io.kubernetes.client.proto.V1.NodeSelector) obj; boolean result = true; result = result && getNodeSelectorTermsList().equals(other.getNodeSelectorTermsList()); 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 (getNodeSelectorTermsCount() > 0) { hash = (37 * hash) + NODESELECTORTERMS_FIELD_NUMBER; hash = (53 * hash) + getNodeSelectorTermsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeSelector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelector 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.V1.NodeSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelector 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.V1.NodeSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeSelector parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelector 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.V1.NodeSelector parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelector 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.V1.NodeSelector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelector 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.V1.NodeSelector 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; } /** * * *
     * A node selector represents the union of the results of one or more label queries
     * over a set of nodes; that is, it represents the OR of the selectors represented
     * by the node selector terms.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeSelector) io.kubernetes.client.proto.V1.NodeSelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSelector.class, io.kubernetes.client.proto.V1.NodeSelector.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeSelector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNodeSelectorTermsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nodeSelectorTermsBuilder_ == null) { nodeSelectorTerms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nodeSelectorTermsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelector_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelector getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelector build() { io.kubernetes.client.proto.V1.NodeSelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelector buildPartial() { io.kubernetes.client.proto.V1.NodeSelector result = new io.kubernetes.client.proto.V1.NodeSelector(this); int from_bitField0_ = bitField0_; if (nodeSelectorTermsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { nodeSelectorTerms_ = java.util.Collections.unmodifiableList(nodeSelectorTerms_); bitField0_ = (bitField0_ & ~0x00000001); } result.nodeSelectorTerms_ = nodeSelectorTerms_; } else { result.nodeSelectorTerms_ = nodeSelectorTermsBuilder_.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.V1.NodeSelector) { return mergeFrom((io.kubernetes.client.proto.V1.NodeSelector) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeSelector other) { if (other == io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance()) return this; if (nodeSelectorTermsBuilder_ == null) { if (!other.nodeSelectorTerms_.isEmpty()) { if (nodeSelectorTerms_.isEmpty()) { nodeSelectorTerms_ = other.nodeSelectorTerms_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.addAll(other.nodeSelectorTerms_); } onChanged(); } } else { if (!other.nodeSelectorTerms_.isEmpty()) { if (nodeSelectorTermsBuilder_.isEmpty()) { nodeSelectorTermsBuilder_.dispose(); nodeSelectorTermsBuilder_ = null; nodeSelectorTerms_ = other.nodeSelectorTerms_; bitField0_ = (bitField0_ & ~0x00000001); nodeSelectorTermsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodeSelectorTermsFieldBuilder() : null; } else { nodeSelectorTermsBuilder_.addAllMessages(other.nodeSelectorTerms_); } } } 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.V1.NodeSelector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeSelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List nodeSelectorTerms_ = java.util.Collections.emptyList(); private void ensureNodeSelectorTermsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { nodeSelectorTerms_ = new java.util.ArrayList( nodeSelectorTerms_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorTerm, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder, io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder> nodeSelectorTermsBuilder_; /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public java.util.List getNodeSelectorTermsList() { if (nodeSelectorTermsBuilder_ == null) { return java.util.Collections.unmodifiableList(nodeSelectorTerms_); } else { return nodeSelectorTermsBuilder_.getMessageList(); } } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public int getNodeSelectorTermsCount() { if (nodeSelectorTermsBuilder_ == null) { return nodeSelectorTerms_.size(); } else { return nodeSelectorTermsBuilder_.getCount(); } } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm getNodeSelectorTerms(int index) { if (nodeSelectorTermsBuilder_ == null) { return nodeSelectorTerms_.get(index); } else { return nodeSelectorTermsBuilder_.getMessage(index); } } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder setNodeSelectorTerms( int index, io.kubernetes.client.proto.V1.NodeSelectorTerm value) { if (nodeSelectorTermsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.set(index, value); onChanged(); } else { nodeSelectorTermsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder setNodeSelectorTerms( int index, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder builderForValue) { if (nodeSelectorTermsBuilder_ == null) { ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.set(index, builderForValue.build()); onChanged(); } else { nodeSelectorTermsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder addNodeSelectorTerms(io.kubernetes.client.proto.V1.NodeSelectorTerm value) { if (nodeSelectorTermsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.add(value); onChanged(); } else { nodeSelectorTermsBuilder_.addMessage(value); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder addNodeSelectorTerms( int index, io.kubernetes.client.proto.V1.NodeSelectorTerm value) { if (nodeSelectorTermsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.add(index, value); onChanged(); } else { nodeSelectorTermsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder addNodeSelectorTerms( io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder builderForValue) { if (nodeSelectorTermsBuilder_ == null) { ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.add(builderForValue.build()); onChanged(); } else { nodeSelectorTermsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder addNodeSelectorTerms( int index, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder builderForValue) { if (nodeSelectorTermsBuilder_ == null) { ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.add(index, builderForValue.build()); onChanged(); } else { nodeSelectorTermsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder addAllNodeSelectorTerms( java.lang.Iterable values) { if (nodeSelectorTermsBuilder_ == null) { ensureNodeSelectorTermsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeSelectorTerms_); onChanged(); } else { nodeSelectorTermsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder clearNodeSelectorTerms() { if (nodeSelectorTermsBuilder_ == null) { nodeSelectorTerms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodeSelectorTermsBuilder_.clear(); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public Builder removeNodeSelectorTerms(int index) { if (nodeSelectorTermsBuilder_ == null) { ensureNodeSelectorTermsIsMutable(); nodeSelectorTerms_.remove(index); onChanged(); } else { nodeSelectorTermsBuilder_.remove(index); } return this; } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder getNodeSelectorTermsBuilder( int index) { return getNodeSelectorTermsFieldBuilder().getBuilder(index); } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder getNodeSelectorTermsOrBuilder( int index) { if (nodeSelectorTermsBuilder_ == null) { return nodeSelectorTerms_.get(index); } else { return nodeSelectorTermsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public java.util.List getNodeSelectorTermsOrBuilderList() { if (nodeSelectorTermsBuilder_ != null) { return nodeSelectorTermsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodeSelectorTerms_); } } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder addNodeSelectorTermsBuilder() { return getNodeSelectorTermsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance()); } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder addNodeSelectorTermsBuilder( int index) { return getNodeSelectorTermsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance()); } /** * * *
       * Required. A list of node selector terms. The terms are ORed.
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorTerm nodeSelectorTerms = 1; */ public java.util.List getNodeSelectorTermsBuilderList() { return getNodeSelectorTermsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorTerm, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder, io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder> getNodeSelectorTermsFieldBuilder() { if (nodeSelectorTermsBuilder_ == null) { nodeSelectorTermsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorTerm, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder, io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder>( nodeSelectorTerms_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); nodeSelectorTerms_ = null; } return nodeSelectorTermsBuilder_; } @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.core.v1.NodeSelector) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeSelector) private static final io.kubernetes.client.proto.V1.NodeSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeSelector(); } public static io.kubernetes.client.proto.V1.NodeSelector getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeSelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeSelector(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.V1.NodeSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeSelectorRequirementOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeSelectorRequirement) com.google.protobuf.MessageOrBuilder { /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ boolean hasKey(); /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ java.lang.String getKey(); /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * Represents a key's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
     * 
* * optional string operator = 2; */ boolean hasOperator(); /** * * *
     * Represents a key's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
     * 
* * optional string operator = 2; */ java.lang.String getOperator(); /** * * *
     * Represents a key's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
     * 
* * optional string operator = 2; */ com.google.protobuf.ByteString getOperatorBytes(); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ java.util.List getValuesList(); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ int getValuesCount(); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ java.lang.String getValues(int index); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * * *
   * A node selector requirement is a selector that contains values, a key, and an operator
   * that relates the key and values.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSelectorRequirement} */ public static final class NodeSelectorRequirement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeSelectorRequirement) NodeSelectorRequirementOrBuilder { private static final long serialVersionUID = 0L; // Use NodeSelectorRequirement.newBuilder() to construct. private NodeSelectorRequirement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeSelectorRequirement() { key_ = ""; operator_ = ""; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeSelectorRequirement( 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; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; operator_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } values_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSelectorRequirement.class, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATOR_FIELD_NUMBER = 2; private volatile java.lang.Object operator_; /** * * *
     * Represents a key's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
     * 
* * optional string operator = 2; */ public boolean hasOperator() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Represents a key's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
     * 
* * optional string operator = 2; */ public java.lang.String getOperator() { java.lang.Object ref = operator_; 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()) { operator_ = s; } return s; } } /** * * *
     * Represents a key's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
     * 
* * optional string operator = 2; */ public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public int getValuesCount() { return values_.size(); } /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public java.lang.String getValues(int index) { return values_.get(index); } /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty. If the operator is Gt or Lt, the values
     * array must have a single element, which will be interpreted as an integer.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operator_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operator_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.NodeSelectorRequirement)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeSelectorRequirement other = (io.kubernetes.client.proto.V1.NodeSelectorRequirement) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && (hasOperator() == other.hasOperator()); if (hasOperator()) { result = result && getOperator().equals(other.getOperator()); } result = result && getValuesList().equals(other.getValuesList()); 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasOperator()) { hash = (37 * hash) + OPERATOR_FIELD_NUMBER; hash = (53 * hash) + getOperator().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement 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.V1.NodeSelectorRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement 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.V1.NodeSelectorRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement 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.V1.NodeSelectorRequirement parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement 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.V1.NodeSelectorRequirement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement 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.V1.NodeSelectorRequirement 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; } /** * * *
     * A node selector requirement is a selector that contains values, a key, and an operator
     * that relates the key and values.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSelectorRequirement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeSelectorRequirement) io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSelectorRequirement.class, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeSelectorRequirement.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); operator_ = ""; bitField0_ = (bitField0_ & ~0x00000002); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelectorRequirement getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeSelectorRequirement.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelectorRequirement build() { io.kubernetes.client.proto.V1.NodeSelectorRequirement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelectorRequirement buildPartial() { io.kubernetes.client.proto.V1.NodeSelectorRequirement result = new io.kubernetes.client.proto.V1.NodeSelectorRequirement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.operator_ = operator_; if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; 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.V1.NodeSelectorRequirement) { return mergeFrom((io.kubernetes.client.proto.V1.NodeSelectorRequirement) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeSelectorRequirement other) { if (other == io.kubernetes.client.proto.V1.NodeSelectorRequirement.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasOperator()) { bitField0_ |= 0x00000002; operator_ = other.operator_; onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } 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.V1.NodeSelectorRequirement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeSelectorRequirement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object operator_ = ""; /** * * *
       * Represents a key's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
       * 
* * optional string operator = 2; */ public boolean hasOperator() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Represents a key's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
       * 
* * optional string operator = 2; */ public java.lang.String getOperator() { java.lang.Object ref = operator_; 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()) { operator_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Represents a key's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
       * 
* * optional string operator = 2; */ public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Represents a key's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
       * 
* * optional string operator = 2; */ public Builder setOperator(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value; onChanged(); return this; } /** * * *
       * Represents a key's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
       * 
* * optional string operator = 2; */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000002); operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** * * *
       * Represents a key's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
       * 
* * optional string operator = 2; */ public Builder setOperatorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000004; } } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public int getValuesCount() { return values_.size(); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public java.lang.String getValues(int index) { return values_.get(index); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder setValues(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder addValues(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty. If the operator is Gt or Lt, the values
       * array must have a single element, which will be interpreted as an integer.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.NodeSelectorRequirement) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeSelectorRequirement) private static final io.kubernetes.client.proto.V1.NodeSelectorRequirement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeSelectorRequirement(); } public static io.kubernetes.client.proto.V1.NodeSelectorRequirement getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeSelectorRequirement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeSelectorRequirement(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.V1.NodeSelectorRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeSelectorTermOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeSelectorTerm) com.google.protobuf.MessageOrBuilder { /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ java.util.List getMatchExpressionsList(); /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ io.kubernetes.client.proto.V1.NodeSelectorRequirement getMatchExpressions(int index); /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ int getMatchExpressionsCount(); /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ java.util.List getMatchExpressionsOrBuilderList(); /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder getMatchExpressionsOrBuilder( int index); /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ java.util.List getMatchFieldsList(); /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ io.kubernetes.client.proto.V1.NodeSelectorRequirement getMatchFields(int index); /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ int getMatchFieldsCount(); /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ java.util.List getMatchFieldsOrBuilderList(); /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder getMatchFieldsOrBuilder( int index); } /** * * *
   * A null or empty node selector term matches no objects. The requirements of
   * them are ANDed.
   * The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSelectorTerm} */ public static final class NodeSelectorTerm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeSelectorTerm) NodeSelectorTermOrBuilder { private static final long serialVersionUID = 0L; // Use NodeSelectorTerm.newBuilder() to construct. private NodeSelectorTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeSelectorTerm() { matchExpressions_ = java.util.Collections.emptyList(); matchFields_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeSelectorTerm( 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)) { matchExpressions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.NodeSelectorRequirement>(); mutable_bitField0_ |= 0x00000001; } matchExpressions_.add( input.readMessage( io.kubernetes.client.proto.V1.NodeSelectorRequirement.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { matchFields_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.NodeSelectorRequirement>(); mutable_bitField0_ |= 0x00000002; } matchFields_.add( input.readMessage( io.kubernetes.client.proto.V1.NodeSelectorRequirement.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)) { matchExpressions_ = java.util.Collections.unmodifiableList(matchExpressions_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { matchFields_ = java.util.Collections.unmodifiableList(matchFields_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSelectorTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSelectorTerm.class, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder.class); } public static final int MATCHEXPRESSIONS_FIELD_NUMBER = 1; private java.util.List matchExpressions_; /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public java.util.List getMatchExpressionsList() { return matchExpressions_; } /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public java.util.List getMatchExpressionsOrBuilderList() { return matchExpressions_; } /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public int getMatchExpressionsCount() { return matchExpressions_.size(); } /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement getMatchExpressions(int index) { return matchExpressions_.get(index); } /** * * *
     * A list of node selector requirements by node's labels.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(int index) { return matchExpressions_.get(index); } public static final int MATCHFIELDS_FIELD_NUMBER = 2; private java.util.List matchFields_; /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public java.util.List getMatchFieldsList() { return matchFields_; } /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public java.util.List getMatchFieldsOrBuilderList() { return matchFields_; } /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public int getMatchFieldsCount() { return matchFields_.size(); } /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement getMatchFields(int index) { return matchFields_.get(index); } /** * * *
     * A list of node selector requirements by node's fields.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder getMatchFieldsOrBuilder( int index) { return matchFields_.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 < matchExpressions_.size(); i++) { output.writeMessage(1, matchExpressions_.get(i)); } for (int i = 0; i < matchFields_.size(); i++) { output.writeMessage(2, matchFields_.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 < matchExpressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchExpressions_.get(i)); } for (int i = 0; i < matchFields_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, matchFields_.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.V1.NodeSelectorTerm)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeSelectorTerm other = (io.kubernetes.client.proto.V1.NodeSelectorTerm) obj; boolean result = true; result = result && getMatchExpressionsList().equals(other.getMatchExpressionsList()); result = result && getMatchFieldsList().equals(other.getMatchFieldsList()); 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 (getMatchExpressionsCount() > 0) { hash = (37 * hash) + MATCHEXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getMatchExpressionsList().hashCode(); } if (getMatchFieldsCount() > 0) { hash = (37 * hash) + MATCHFIELDS_FIELD_NUMBER; hash = (53 * hash) + getMatchFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeSelectorTerm parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm 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.V1.NodeSelectorTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm 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.V1.NodeSelectorTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm 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.V1.NodeSelectorTerm parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm 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.V1.NodeSelectorTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm 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.V1.NodeSelectorTerm 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; } /** * * *
     * A null or empty node selector term matches no objects. The requirements of
     * them are ANDed.
     * The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSelectorTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeSelectorTerm) io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSelectorTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSelectorTerm.class, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeSelectorTerm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMatchExpressionsFieldBuilder(); getMatchFieldsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (matchExpressionsBuilder_ == null) { matchExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { matchExpressionsBuilder_.clear(); } if (matchFieldsBuilder_ == null) { matchFields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { matchFieldsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelectorTerm getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelectorTerm build() { io.kubernetes.client.proto.V1.NodeSelectorTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSelectorTerm buildPartial() { io.kubernetes.client.proto.V1.NodeSelectorTerm result = new io.kubernetes.client.proto.V1.NodeSelectorTerm(this); int from_bitField0_ = bitField0_; if (matchExpressionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { matchExpressions_ = java.util.Collections.unmodifiableList(matchExpressions_); bitField0_ = (bitField0_ & ~0x00000001); } result.matchExpressions_ = matchExpressions_; } else { result.matchExpressions_ = matchExpressionsBuilder_.build(); } if (matchFieldsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { matchFields_ = java.util.Collections.unmodifiableList(matchFields_); bitField0_ = (bitField0_ & ~0x00000002); } result.matchFields_ = matchFields_; } else { result.matchFields_ = matchFieldsBuilder_.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.V1.NodeSelectorTerm) { return mergeFrom((io.kubernetes.client.proto.V1.NodeSelectorTerm) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeSelectorTerm other) { if (other == io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance()) return this; if (matchExpressionsBuilder_ == null) { if (!other.matchExpressions_.isEmpty()) { if (matchExpressions_.isEmpty()) { matchExpressions_ = other.matchExpressions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMatchExpressionsIsMutable(); matchExpressions_.addAll(other.matchExpressions_); } onChanged(); } } else { if (!other.matchExpressions_.isEmpty()) { if (matchExpressionsBuilder_.isEmpty()) { matchExpressionsBuilder_.dispose(); matchExpressionsBuilder_ = null; matchExpressions_ = other.matchExpressions_; bitField0_ = (bitField0_ & ~0x00000001); matchExpressionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchExpressionsFieldBuilder() : null; } else { matchExpressionsBuilder_.addAllMessages(other.matchExpressions_); } } } if (matchFieldsBuilder_ == null) { if (!other.matchFields_.isEmpty()) { if (matchFields_.isEmpty()) { matchFields_ = other.matchFields_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMatchFieldsIsMutable(); matchFields_.addAll(other.matchFields_); } onChanged(); } } else { if (!other.matchFields_.isEmpty()) { if (matchFieldsBuilder_.isEmpty()) { matchFieldsBuilder_.dispose(); matchFieldsBuilder_ = null; matchFields_ = other.matchFields_; bitField0_ = (bitField0_ & ~0x00000002); matchFieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchFieldsFieldBuilder() : null; } else { matchFieldsBuilder_.addAllMessages(other.matchFields_); } } } 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.V1.NodeSelectorTerm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeSelectorTerm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List matchExpressions_ = java.util.Collections.emptyList(); private void ensureMatchExpressionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { matchExpressions_ = new java.util.ArrayList( matchExpressions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorRequirement, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder, io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder> matchExpressionsBuilder_; /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public java.util.List getMatchExpressionsList() { if (matchExpressionsBuilder_ == null) { return java.util.Collections.unmodifiableList(matchExpressions_); } else { return matchExpressionsBuilder_.getMessageList(); } } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public int getMatchExpressionsCount() { if (matchExpressionsBuilder_ == null) { return matchExpressions_.size(); } else { return matchExpressionsBuilder_.getCount(); } } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement getMatchExpressions(int index) { if (matchExpressionsBuilder_ == null) { return matchExpressions_.get(index); } else { return matchExpressionsBuilder_.getMessage(index); } } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder setMatchExpressions( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement value) { if (matchExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchExpressionsIsMutable(); matchExpressions_.set(index, value); onChanged(); } else { matchExpressionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder setMatchExpressions( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder builderForValue) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.set(index, builderForValue.build()); onChanged(); } else { matchExpressionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder addMatchExpressions( io.kubernetes.client.proto.V1.NodeSelectorRequirement value) { if (matchExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchExpressionsIsMutable(); matchExpressions_.add(value); onChanged(); } else { matchExpressionsBuilder_.addMessage(value); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder addMatchExpressions( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement value) { if (matchExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchExpressionsIsMutable(); matchExpressions_.add(index, value); onChanged(); } else { matchExpressionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder addMatchExpressions( io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder builderForValue) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.add(builderForValue.build()); onChanged(); } else { matchExpressionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder addMatchExpressions( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder builderForValue) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.add(index, builderForValue.build()); onChanged(); } else { matchExpressionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder addAllMatchExpressions( java.lang.Iterable values) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchExpressions_); onChanged(); } else { matchExpressionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder clearMatchExpressions() { if (matchExpressionsBuilder_ == null) { matchExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { matchExpressionsBuilder_.clear(); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public Builder removeMatchExpressions(int index) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.remove(index); onChanged(); } else { matchExpressionsBuilder_.remove(index); } return this; } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder getMatchExpressionsBuilder(int index) { return getMatchExpressionsFieldBuilder().getBuilder(index); } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(int index) { if (matchExpressionsBuilder_ == null) { return matchExpressions_.get(index); } else { return matchExpressionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public java.util.List< ? extends io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder> getMatchExpressionsOrBuilderList() { if (matchExpressionsBuilder_ != null) { return matchExpressionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(matchExpressions_); } } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder addMatchExpressionsBuilder() { return getMatchExpressionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.NodeSelectorRequirement.getDefaultInstance()); } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder addMatchExpressionsBuilder(int index) { return getMatchExpressionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.NodeSelectorRequirement.getDefaultInstance()); } /** * * *
       * A list of node selector requirements by node's labels.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchExpressions = 1; */ public java.util.List getMatchExpressionsBuilderList() { return getMatchExpressionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorRequirement, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder, io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder> getMatchExpressionsFieldBuilder() { if (matchExpressionsBuilder_ == null) { matchExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorRequirement, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder, io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder>( matchExpressions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); matchExpressions_ = null; } return matchExpressionsBuilder_; } private java.util.List matchFields_ = java.util.Collections.emptyList(); private void ensureMatchFieldsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { matchFields_ = new java.util.ArrayList( matchFields_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorRequirement, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder, io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder> matchFieldsBuilder_; /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public java.util.List getMatchFieldsList() { if (matchFieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(matchFields_); } else { return matchFieldsBuilder_.getMessageList(); } } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public int getMatchFieldsCount() { if (matchFieldsBuilder_ == null) { return matchFields_.size(); } else { return matchFieldsBuilder_.getCount(); } } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement getMatchFields(int index) { if (matchFieldsBuilder_ == null) { return matchFields_.get(index); } else { return matchFieldsBuilder_.getMessage(index); } } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder setMatchFields( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement value) { if (matchFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchFieldsIsMutable(); matchFields_.set(index, value); onChanged(); } else { matchFieldsBuilder_.setMessage(index, value); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder setMatchFields( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder builderForValue) { if (matchFieldsBuilder_ == null) { ensureMatchFieldsIsMutable(); matchFields_.set(index, builderForValue.build()); onChanged(); } else { matchFieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder addMatchFields(io.kubernetes.client.proto.V1.NodeSelectorRequirement value) { if (matchFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchFieldsIsMutable(); matchFields_.add(value); onChanged(); } else { matchFieldsBuilder_.addMessage(value); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder addMatchFields( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement value) { if (matchFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchFieldsIsMutable(); matchFields_.add(index, value); onChanged(); } else { matchFieldsBuilder_.addMessage(index, value); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder addMatchFields( io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder builderForValue) { if (matchFieldsBuilder_ == null) { ensureMatchFieldsIsMutable(); matchFields_.add(builderForValue.build()); onChanged(); } else { matchFieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder addMatchFields( int index, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder builderForValue) { if (matchFieldsBuilder_ == null) { ensureMatchFieldsIsMutable(); matchFields_.add(index, builderForValue.build()); onChanged(); } else { matchFieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder addAllMatchFields( java.lang.Iterable values) { if (matchFieldsBuilder_ == null) { ensureMatchFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchFields_); onChanged(); } else { matchFieldsBuilder_.addAllMessages(values); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder clearMatchFields() { if (matchFieldsBuilder_ == null) { matchFields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { matchFieldsBuilder_.clear(); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public Builder removeMatchFields(int index) { if (matchFieldsBuilder_ == null) { ensureMatchFieldsIsMutable(); matchFields_.remove(index); onChanged(); } else { matchFieldsBuilder_.remove(index); } return this; } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder getMatchFieldsBuilder( int index) { return getMatchFieldsFieldBuilder().getBuilder(index); } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder getMatchFieldsOrBuilder( int index) { if (matchFieldsBuilder_ == null) { return matchFields_.get(index); } else { return matchFieldsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder> getMatchFieldsOrBuilderList() { if (matchFieldsBuilder_ != null) { return matchFieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(matchFields_); } } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder addMatchFieldsBuilder() { return getMatchFieldsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.NodeSelectorRequirement.getDefaultInstance()); } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder addMatchFieldsBuilder( int index) { return getMatchFieldsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.NodeSelectorRequirement.getDefaultInstance()); } /** * * *
       * A list of node selector requirements by node's fields.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.NodeSelectorRequirement matchFields = 2; */ public java.util.List getMatchFieldsBuilderList() { return getMatchFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorRequirement, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder, io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder> getMatchFieldsFieldBuilder() { if (matchFieldsBuilder_ == null) { matchFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorRequirement, io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder, io.kubernetes.client.proto.V1.NodeSelectorRequirementOrBuilder>( matchFields_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); matchFields_ = null; } return matchFieldsBuilder_; } @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.core.v1.NodeSelectorTerm) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeSelectorTerm) private static final io.kubernetes.client.proto.V1.NodeSelectorTerm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeSelectorTerm(); } public static io.kubernetes.client.proto.V1.NodeSelectorTerm getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeSelectorTerm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeSelectorTerm(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.V1.NodeSelectorTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * PodCIDR represents the pod IP range assigned to the node.
     * +optional
     * 
* * optional string podCIDR = 1; */ boolean hasPodCIDR(); /** * * *
     * PodCIDR represents the pod IP range assigned to the node.
     * +optional
     * 
* * optional string podCIDR = 1; */ java.lang.String getPodCIDR(); /** * * *
     * PodCIDR represents the pod IP range assigned to the node.
     * +optional
     * 
* * optional string podCIDR = 1; */ com.google.protobuf.ByteString getPodCIDRBytes(); /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ java.util.List getPodCIDRsList(); /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ int getPodCIDRsCount(); /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ java.lang.String getPodCIDRs(int index); /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ com.google.protobuf.ByteString getPodCIDRsBytes(int index); /** * * *
     * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
     * +optional
     * 
* * optional string providerID = 3; */ boolean hasProviderID(); /** * * *
     * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
     * +optional
     * 
* * optional string providerID = 3; */ java.lang.String getProviderID(); /** * * *
     * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
     * +optional
     * 
* * optional string providerID = 3; */ com.google.protobuf.ByteString getProviderIDBytes(); /** * * *
     * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
     * +optional
     * 
* * optional bool unschedulable = 4; */ boolean hasUnschedulable(); /** * * *
     * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
     * +optional
     * 
* * optional bool unschedulable = 4; */ boolean getUnschedulable(); /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ java.util.List getTaintsList(); /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ io.kubernetes.client.proto.V1.Taint getTaints(int index); /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ int getTaintsCount(); /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ java.util.List getTaintsOrBuilderList(); /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ io.kubernetes.client.proto.V1.TaintOrBuilder getTaintsOrBuilder(int index); /** * * *
     * Deprecated. If specified, the source of the node's configuration.
     * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
     * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ boolean hasConfigSource(); /** * * *
     * Deprecated. If specified, the source of the node's configuration.
     * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
     * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ io.kubernetes.client.proto.V1.NodeConfigSource getConfigSource(); /** * * *
     * Deprecated. If specified, the source of the node's configuration.
     * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
     * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getConfigSourceOrBuilder(); /** * * *
     * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
     * see: https://issues.k8s.io/61966
     * +optional
     * 
* * optional string externalID = 2; */ boolean hasExternalID(); /** * * *
     * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
     * see: https://issues.k8s.io/61966
     * +optional
     * 
* * optional string externalID = 2; */ java.lang.String getExternalID(); /** * * *
     * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
     * see: https://issues.k8s.io/61966
     * +optional
     * 
* * optional string externalID = 2; */ com.google.protobuf.ByteString getExternalIDBytes(); } /** * * *
   * NodeSpec describes the attributes that a node is created with.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSpec} */ public static final class NodeSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeSpec) NodeSpecOrBuilder { private static final long serialVersionUID = 0L; // Use NodeSpec.newBuilder() to construct. private NodeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeSpec() { podCIDR_ = ""; podCIDRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; providerID_ = ""; unschedulable_ = false; taints_ = java.util.Collections.emptyList(); externalID_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeSpec( 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; podCIDR_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; externalID_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; providerID_ = bs; break; } case 32: { bitField0_ |= 0x00000004; unschedulable_ = input.readBool(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { taints_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } taints_.add( input.readMessage( io.kubernetes.client.proto.V1.Taint.PARSER, extensionRegistry)); break; } case 50: { io.kubernetes.client.proto.V1.NodeConfigSource.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = configSource_.toBuilder(); } configSource_ = input.readMessage( io.kubernetes.client.proto.V1.NodeConfigSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configSource_); configSource_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { podCIDRs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } podCIDRs_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { taints_ = java.util.Collections.unmodifiableList(taints_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { podCIDRs_ = podCIDRs_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSpec.class, io.kubernetes.client.proto.V1.NodeSpec.Builder.class); } private int bitField0_; public static final int PODCIDR_FIELD_NUMBER = 1; private volatile java.lang.Object podCIDR_; /** * * *
     * PodCIDR represents the pod IP range assigned to the node.
     * +optional
     * 
* * optional string podCIDR = 1; */ public boolean hasPodCIDR() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * PodCIDR represents the pod IP range assigned to the node.
     * +optional
     * 
* * optional string podCIDR = 1; */ public java.lang.String getPodCIDR() { java.lang.Object ref = podCIDR_; 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()) { podCIDR_ = s; } return s; } } /** * * *
     * PodCIDR represents the pod IP range assigned to the node.
     * +optional
     * 
* * optional string podCIDR = 1; */ public com.google.protobuf.ByteString getPodCIDRBytes() { java.lang.Object ref = podCIDR_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); podCIDR_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PODCIDRS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList podCIDRs_; /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ public com.google.protobuf.ProtocolStringList getPodCIDRsList() { return podCIDRs_; } /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ public int getPodCIDRsCount() { return podCIDRs_.size(); } /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ public java.lang.String getPodCIDRs(int index) { return podCIDRs_.get(index); } /** * * *
     * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
     * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
     * each of IPv4 and IPv6.
     * +optional
     * +patchStrategy=merge
     * 
* * repeated string podCIDRs = 7; */ public com.google.protobuf.ByteString getPodCIDRsBytes(int index) { return podCIDRs_.getByteString(index); } public static final int PROVIDERID_FIELD_NUMBER = 3; private volatile java.lang.Object providerID_; /** * * *
     * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
     * +optional
     * 
* * optional string providerID = 3; */ public boolean hasProviderID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
     * +optional
     * 
* * optional string providerID = 3; */ public java.lang.String getProviderID() { java.lang.Object ref = providerID_; 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()) { providerID_ = s; } return s; } } /** * * *
     * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
     * +optional
     * 
* * optional string providerID = 3; */ public com.google.protobuf.ByteString getProviderIDBytes() { java.lang.Object ref = providerID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); providerID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UNSCHEDULABLE_FIELD_NUMBER = 4; private boolean unschedulable_; /** * * *
     * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
     * +optional
     * 
* * optional bool unschedulable = 4; */ public boolean hasUnschedulable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
     * +optional
     * 
* * optional bool unschedulable = 4; */ public boolean getUnschedulable() { return unschedulable_; } public static final int TAINTS_FIELD_NUMBER = 5; private java.util.List taints_; /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public java.util.List getTaintsList() { return taints_; } /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public java.util.List getTaintsOrBuilderList() { return taints_; } /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public int getTaintsCount() { return taints_.size(); } /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.Taint getTaints(int index) { return taints_.get(index); } /** * * *
     * If specified, the node's taints.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.TaintOrBuilder getTaintsOrBuilder(int index) { return taints_.get(index); } public static final int CONFIGSOURCE_FIELD_NUMBER = 6; private io.kubernetes.client.proto.V1.NodeConfigSource configSource_; /** * * *
     * Deprecated. If specified, the source of the node's configuration.
     * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
     * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public boolean hasConfigSource() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Deprecated. If specified, the source of the node's configuration.
     * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
     * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public io.kubernetes.client.proto.V1.NodeConfigSource getConfigSource() { return configSource_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : configSource_; } /** * * *
     * Deprecated. If specified, the source of the node's configuration.
     * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
     * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getConfigSourceOrBuilder() { return configSource_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : configSource_; } public static final int EXTERNALID_FIELD_NUMBER = 2; private volatile java.lang.Object externalID_; /** * * *
     * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
     * see: https://issues.k8s.io/61966
     * +optional
     * 
* * optional string externalID = 2; */ public boolean hasExternalID() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
     * see: https://issues.k8s.io/61966
     * +optional
     * 
* * optional string externalID = 2; */ public java.lang.String getExternalID() { java.lang.Object ref = externalID_; 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()) { externalID_ = s; } return s; } } /** * * *
     * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
     * see: https://issues.k8s.io/61966
     * +optional
     * 
* * optional string externalID = 2; */ public com.google.protobuf.ByteString getExternalIDBytes() { java.lang.Object ref = externalID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalID_ = 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, podCIDR_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, providerID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, unschedulable_); } for (int i = 0; i < taints_.size(); i++) { output.writeMessage(5, taints_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(6, getConfigSource()); } for (int i = 0; i < podCIDRs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, podCIDRs_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, podCIDR_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, providerID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, unschedulable_); } for (int i = 0; i < taints_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, taints_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getConfigSource()); } { int dataSize = 0; for (int i = 0; i < podCIDRs_.size(); i++) { dataSize += computeStringSizeNoTag(podCIDRs_.getRaw(i)); } size += dataSize; size += 1 * getPodCIDRsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.NodeSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeSpec other = (io.kubernetes.client.proto.V1.NodeSpec) obj; boolean result = true; result = result && (hasPodCIDR() == other.hasPodCIDR()); if (hasPodCIDR()) { result = result && getPodCIDR().equals(other.getPodCIDR()); } result = result && getPodCIDRsList().equals(other.getPodCIDRsList()); result = result && (hasProviderID() == other.hasProviderID()); if (hasProviderID()) { result = result && getProviderID().equals(other.getProviderID()); } result = result && (hasUnschedulable() == other.hasUnschedulable()); if (hasUnschedulable()) { result = result && (getUnschedulable() == other.getUnschedulable()); } result = result && getTaintsList().equals(other.getTaintsList()); result = result && (hasConfigSource() == other.hasConfigSource()); if (hasConfigSource()) { result = result && getConfigSource().equals(other.getConfigSource()); } result = result && (hasExternalID() == other.hasExternalID()); if (hasExternalID()) { result = result && getExternalID().equals(other.getExternalID()); } 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 (hasPodCIDR()) { hash = (37 * hash) + PODCIDR_FIELD_NUMBER; hash = (53 * hash) + getPodCIDR().hashCode(); } if (getPodCIDRsCount() > 0) { hash = (37 * hash) + PODCIDRS_FIELD_NUMBER; hash = (53 * hash) + getPodCIDRsList().hashCode(); } if (hasProviderID()) { hash = (37 * hash) + PROVIDERID_FIELD_NUMBER; hash = (53 * hash) + getProviderID().hashCode(); } if (hasUnschedulable()) { hash = (37 * hash) + UNSCHEDULABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnschedulable()); } if (getTaintsCount() > 0) { hash = (37 * hash) + TAINTS_FIELD_NUMBER; hash = (53 * hash) + getTaintsList().hashCode(); } if (hasConfigSource()) { hash = (37 * hash) + CONFIGSOURCE_FIELD_NUMBER; hash = (53 * hash) + getConfigSource().hashCode(); } if (hasExternalID()) { hash = (37 * hash) + EXTERNALID_FIELD_NUMBER; hash = (53 * hash) + getExternalID().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSpec 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.V1.NodeSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSpec 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.V1.NodeSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSpec 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.V1.NodeSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSpec 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.V1.NodeSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSpec 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.V1.NodeSpec 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; } /** * * *
     * NodeSpec describes the attributes that a node is created with.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeSpec) io.kubernetes.client.proto.V1.NodeSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSpec.class, io.kubernetes.client.proto.V1.NodeSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTaintsFieldBuilder(); getConfigSourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); podCIDR_ = ""; bitField0_ = (bitField0_ & ~0x00000001); podCIDRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); providerID_ = ""; bitField0_ = (bitField0_ & ~0x00000004); unschedulable_ = false; bitField0_ = (bitField0_ & ~0x00000008); if (taintsBuilder_ == null) { taints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { taintsBuilder_.clear(); } if (configSourceBuilder_ == null) { configSource_ = null; } else { configSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); externalID_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSpec build() { io.kubernetes.client.proto.V1.NodeSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSpec buildPartial() { io.kubernetes.client.proto.V1.NodeSpec result = new io.kubernetes.client.proto.V1.NodeSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.podCIDR_ = podCIDR_; if (((bitField0_ & 0x00000002) == 0x00000002)) { podCIDRs_ = podCIDRs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.podCIDRs_ = podCIDRs_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.providerID_ = providerID_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.unschedulable_ = unschedulable_; if (taintsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { taints_ = java.util.Collections.unmodifiableList(taints_); bitField0_ = (bitField0_ & ~0x00000010); } result.taints_ = taints_; } else { result.taints_ = taintsBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } if (configSourceBuilder_ == null) { result.configSource_ = configSource_; } else { result.configSource_ = configSourceBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.externalID_ = externalID_; 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.V1.NodeSpec) { return mergeFrom((io.kubernetes.client.proto.V1.NodeSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeSpec other) { if (other == io.kubernetes.client.proto.V1.NodeSpec.getDefaultInstance()) return this; if (other.hasPodCIDR()) { bitField0_ |= 0x00000001; podCIDR_ = other.podCIDR_; onChanged(); } if (!other.podCIDRs_.isEmpty()) { if (podCIDRs_.isEmpty()) { podCIDRs_ = other.podCIDRs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePodCIDRsIsMutable(); podCIDRs_.addAll(other.podCIDRs_); } onChanged(); } if (other.hasProviderID()) { bitField0_ |= 0x00000004; providerID_ = other.providerID_; onChanged(); } if (other.hasUnschedulable()) { setUnschedulable(other.getUnschedulable()); } if (taintsBuilder_ == null) { if (!other.taints_.isEmpty()) { if (taints_.isEmpty()) { taints_ = other.taints_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTaintsIsMutable(); taints_.addAll(other.taints_); } onChanged(); } } else { if (!other.taints_.isEmpty()) { if (taintsBuilder_.isEmpty()) { taintsBuilder_.dispose(); taintsBuilder_ = null; taints_ = other.taints_; bitField0_ = (bitField0_ & ~0x00000010); taintsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTaintsFieldBuilder() : null; } else { taintsBuilder_.addAllMessages(other.taints_); } } } if (other.hasConfigSource()) { mergeConfigSource(other.getConfigSource()); } if (other.hasExternalID()) { bitField0_ |= 0x00000040; externalID_ = other.externalID_; 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.V1.NodeSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object podCIDR_ = ""; /** * * *
       * PodCIDR represents the pod IP range assigned to the node.
       * +optional
       * 
* * optional string podCIDR = 1; */ public boolean hasPodCIDR() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * PodCIDR represents the pod IP range assigned to the node.
       * +optional
       * 
* * optional string podCIDR = 1; */ public java.lang.String getPodCIDR() { java.lang.Object ref = podCIDR_; 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()) { podCIDR_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * PodCIDR represents the pod IP range assigned to the node.
       * +optional
       * 
* * optional string podCIDR = 1; */ public com.google.protobuf.ByteString getPodCIDRBytes() { java.lang.Object ref = podCIDR_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); podCIDR_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * PodCIDR represents the pod IP range assigned to the node.
       * +optional
       * 
* * optional string podCIDR = 1; */ public Builder setPodCIDR(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; podCIDR_ = value; onChanged(); return this; } /** * * *
       * PodCIDR represents the pod IP range assigned to the node.
       * +optional
       * 
* * optional string podCIDR = 1; */ public Builder clearPodCIDR() { bitField0_ = (bitField0_ & ~0x00000001); podCIDR_ = getDefaultInstance().getPodCIDR(); onChanged(); return this; } /** * * *
       * PodCIDR represents the pod IP range assigned to the node.
       * +optional
       * 
* * optional string podCIDR = 1; */ public Builder setPodCIDRBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; podCIDR_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList podCIDRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePodCIDRsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { podCIDRs_ = new com.google.protobuf.LazyStringArrayList(podCIDRs_); bitField0_ |= 0x00000002; } } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public com.google.protobuf.ProtocolStringList getPodCIDRsList() { return podCIDRs_.getUnmodifiableView(); } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public int getPodCIDRsCount() { return podCIDRs_.size(); } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public java.lang.String getPodCIDRs(int index) { return podCIDRs_.get(index); } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public com.google.protobuf.ByteString getPodCIDRsBytes(int index) { return podCIDRs_.getByteString(index); } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public Builder setPodCIDRs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePodCIDRsIsMutable(); podCIDRs_.set(index, value); onChanged(); return this; } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public Builder addPodCIDRs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePodCIDRsIsMutable(); podCIDRs_.add(value); onChanged(); return this; } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public Builder addAllPodCIDRs(java.lang.Iterable values) { ensurePodCIDRsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podCIDRs_); onChanged(); return this; } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public Builder clearPodCIDRs() { podCIDRs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
       * field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
       * each of IPv4 and IPv6.
       * +optional
       * +patchStrategy=merge
       * 
* * repeated string podCIDRs = 7; */ public Builder addPodCIDRsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePodCIDRsIsMutable(); podCIDRs_.add(value); onChanged(); return this; } private java.lang.Object providerID_ = ""; /** * * *
       * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
       * +optional
       * 
* * optional string providerID = 3; */ public boolean hasProviderID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
       * +optional
       * 
* * optional string providerID = 3; */ public java.lang.String getProviderID() { java.lang.Object ref = providerID_; 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()) { providerID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
       * +optional
       * 
* * optional string providerID = 3; */ public com.google.protobuf.ByteString getProviderIDBytes() { java.lang.Object ref = providerID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); providerID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
       * +optional
       * 
* * optional string providerID = 3; */ public Builder setProviderID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; providerID_ = value; onChanged(); return this; } /** * * *
       * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
       * +optional
       * 
* * optional string providerID = 3; */ public Builder clearProviderID() { bitField0_ = (bitField0_ & ~0x00000004); providerID_ = getDefaultInstance().getProviderID(); onChanged(); return this; } /** * * *
       * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
       * +optional
       * 
* * optional string providerID = 3; */ public Builder setProviderIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; providerID_ = value; onChanged(); return this; } private boolean unschedulable_; /** * * *
       * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
       * +optional
       * 
* * optional bool unschedulable = 4; */ public boolean hasUnschedulable() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
       * +optional
       * 
* * optional bool unschedulable = 4; */ public boolean getUnschedulable() { return unschedulable_; } /** * * *
       * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
       * +optional
       * 
* * optional bool unschedulable = 4; */ public Builder setUnschedulable(boolean value) { bitField0_ |= 0x00000008; unschedulable_ = value; onChanged(); return this; } /** * * *
       * Unschedulable controls node schedulability of new pods. By default, node is schedulable.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
       * +optional
       * 
* * optional bool unschedulable = 4; */ public Builder clearUnschedulable() { bitField0_ = (bitField0_ & ~0x00000008); unschedulable_ = false; onChanged(); return this; } private java.util.List taints_ = java.util.Collections.emptyList(); private void ensureTaintsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { taints_ = new java.util.ArrayList(taints_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Taint, io.kubernetes.client.proto.V1.Taint.Builder, io.kubernetes.client.proto.V1.TaintOrBuilder> taintsBuilder_; /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public java.util.List getTaintsList() { if (taintsBuilder_ == null) { return java.util.Collections.unmodifiableList(taints_); } else { return taintsBuilder_.getMessageList(); } } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public int getTaintsCount() { if (taintsBuilder_ == null) { return taints_.size(); } else { return taintsBuilder_.getCount(); } } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.Taint getTaints(int index) { if (taintsBuilder_ == null) { return taints_.get(index); } else { return taintsBuilder_.getMessage(index); } } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder setTaints(int index, io.kubernetes.client.proto.V1.Taint value) { if (taintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaintsIsMutable(); taints_.set(index, value); onChanged(); } else { taintsBuilder_.setMessage(index, value); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder setTaints( int index, io.kubernetes.client.proto.V1.Taint.Builder builderForValue) { if (taintsBuilder_ == null) { ensureTaintsIsMutable(); taints_.set(index, builderForValue.build()); onChanged(); } else { taintsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder addTaints(io.kubernetes.client.proto.V1.Taint value) { if (taintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaintsIsMutable(); taints_.add(value); onChanged(); } else { taintsBuilder_.addMessage(value); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder addTaints(int index, io.kubernetes.client.proto.V1.Taint value) { if (taintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTaintsIsMutable(); taints_.add(index, value); onChanged(); } else { taintsBuilder_.addMessage(index, value); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder addTaints(io.kubernetes.client.proto.V1.Taint.Builder builderForValue) { if (taintsBuilder_ == null) { ensureTaintsIsMutable(); taints_.add(builderForValue.build()); onChanged(); } else { taintsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder addTaints( int index, io.kubernetes.client.proto.V1.Taint.Builder builderForValue) { if (taintsBuilder_ == null) { ensureTaintsIsMutable(); taints_.add(index, builderForValue.build()); onChanged(); } else { taintsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder addAllTaints( java.lang.Iterable values) { if (taintsBuilder_ == null) { ensureTaintsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taints_); onChanged(); } else { taintsBuilder_.addAllMessages(values); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder clearTaints() { if (taintsBuilder_ == null) { taints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { taintsBuilder_.clear(); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public Builder removeTaints(int index) { if (taintsBuilder_ == null) { ensureTaintsIsMutable(); taints_.remove(index); onChanged(); } else { taintsBuilder_.remove(index); } return this; } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.Taint.Builder getTaintsBuilder(int index) { return getTaintsFieldBuilder().getBuilder(index); } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.TaintOrBuilder getTaintsOrBuilder(int index) { if (taintsBuilder_ == null) { return taints_.get(index); } else { return taintsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public java.util.List getTaintsOrBuilderList() { if (taintsBuilder_ != null) { return taintsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(taints_); } } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.Taint.Builder addTaintsBuilder() { return getTaintsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Taint.getDefaultInstance()); } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public io.kubernetes.client.proto.V1.Taint.Builder addTaintsBuilder(int index) { return getTaintsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Taint.getDefaultInstance()); } /** * * *
       * If specified, the node's taints.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Taint taints = 5; */ public java.util.List getTaintsBuilderList() { return getTaintsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Taint, io.kubernetes.client.proto.V1.Taint.Builder, io.kubernetes.client.proto.V1.TaintOrBuilder> getTaintsFieldBuilder() { if (taintsBuilder_ == null) { taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Taint, io.kubernetes.client.proto.V1.Taint.Builder, io.kubernetes.client.proto.V1.TaintOrBuilder>( taints_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); taints_ = null; } return taintsBuilder_; } private io.kubernetes.client.proto.V1.NodeConfigSource configSource_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> configSourceBuilder_; /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public boolean hasConfigSource() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public io.kubernetes.client.proto.V1.NodeConfigSource getConfigSource() { if (configSourceBuilder_ == null) { return configSource_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : configSource_; } else { return configSourceBuilder_.getMessage(); } } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public Builder setConfigSource(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (configSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configSource_ = value; onChanged(); } else { configSourceBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public Builder setConfigSource( io.kubernetes.client.proto.V1.NodeConfigSource.Builder builderForValue) { if (configSourceBuilder_ == null) { configSource_ = builderForValue.build(); onChanged(); } else { configSourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public Builder mergeConfigSource(io.kubernetes.client.proto.V1.NodeConfigSource value) { if (configSourceBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && configSource_ != null && configSource_ != io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance()) { configSource_ = io.kubernetes.client.proto.V1.NodeConfigSource.newBuilder(configSource_) .mergeFrom(value) .buildPartial(); } else { configSource_ = value; } onChanged(); } else { configSourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public Builder clearConfigSource() { if (configSourceBuilder_ == null) { configSource_ = null; onChanged(); } else { configSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public io.kubernetes.client.proto.V1.NodeConfigSource.Builder getConfigSourceBuilder() { bitField0_ |= 0x00000020; onChanged(); return getConfigSourceFieldBuilder().getBuilder(); } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ public io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder getConfigSourceOrBuilder() { if (configSourceBuilder_ != null) { return configSourceBuilder_.getMessageOrBuilder(); } else { return configSource_ == null ? io.kubernetes.client.proto.V1.NodeConfigSource.getDefaultInstance() : configSource_; } } /** * * *
       * Deprecated. If specified, the source of the node's configuration.
       * The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field.
       * This field is deprecated as of 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigSource configSource = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder> getConfigSourceFieldBuilder() { if (configSourceBuilder_ == null) { configSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigSource, io.kubernetes.client.proto.V1.NodeConfigSource.Builder, io.kubernetes.client.proto.V1.NodeConfigSourceOrBuilder>( getConfigSource(), getParentForChildren(), isClean()); configSource_ = null; } return configSourceBuilder_; } private java.lang.Object externalID_ = ""; /** * * *
       * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
       * see: https://issues.k8s.io/61966
       * +optional
       * 
* * optional string externalID = 2; */ public boolean hasExternalID() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
       * see: https://issues.k8s.io/61966
       * +optional
       * 
* * optional string externalID = 2; */ public java.lang.String getExternalID() { java.lang.Object ref = externalID_; 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()) { externalID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
       * see: https://issues.k8s.io/61966
       * +optional
       * 
* * optional string externalID = 2; */ public com.google.protobuf.ByteString getExternalIDBytes() { java.lang.Object ref = externalID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
       * see: https://issues.k8s.io/61966
       * +optional
       * 
* * optional string externalID = 2; */ public Builder setExternalID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; externalID_ = value; onChanged(); return this; } /** * * *
       * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
       * see: https://issues.k8s.io/61966
       * +optional
       * 
* * optional string externalID = 2; */ public Builder clearExternalID() { bitField0_ = (bitField0_ & ~0x00000040); externalID_ = getDefaultInstance().getExternalID(); onChanged(); return this; } /** * * *
       * Deprecated. Not all kubelets will set this field. Remove field after 1.13.
       * see: https://issues.k8s.io/61966
       * +optional
       * 
* * optional string externalID = 2; */ public Builder setExternalIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; externalID_ = 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.core.v1.NodeSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeSpec) private static final io.kubernetes.client.proto.V1.NodeSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeSpec(); } public static io.kubernetes.client.proto.V1.NodeSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeSpec(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.V1.NodeSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ int getCapacityCount(); /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ boolean containsCapacity(java.lang.String key); /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated java.util.Map getCapacity(); /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ java.util.Map getCapacityMap(); /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key); /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ int getAllocatableCount(); /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ boolean containsAllocatable(java.lang.String key); /** Use {@link #getAllocatableMap()} instead. */ @java.lang.Deprecated java.util.Map getAllocatable(); /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ java.util.Map getAllocatableMap(); /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ io.kubernetes.client.proto.Resource.Quantity getAllocatableOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ io.kubernetes.client.proto.Resource.Quantity getAllocatableOrThrow(java.lang.String key); /** * * *
     * NodePhase is the recently observed lifecycle phase of the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
     * The field is never populated, and now is deprecated.
     * +optional
     * 
* * optional string phase = 3; */ boolean hasPhase(); /** * * *
     * NodePhase is the recently observed lifecycle phase of the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
     * The field is never populated, and now is deprecated.
     * +optional
     * 
* * optional string phase = 3; */ java.lang.String getPhase(); /** * * *
     * NodePhase is the recently observed lifecycle phase of the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
     * The field is never populated, and now is deprecated.
     * +optional
     * 
* * optional string phase = 3; */ com.google.protobuf.ByteString getPhaseBytes(); /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ java.util.List getConditionsList(); /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ io.kubernetes.client.proto.V1.NodeCondition getConditions(int index); /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ int getConditionsCount(); /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ io.kubernetes.client.proto.V1.NodeConditionOrBuilder getConditionsOrBuilder(int index); /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ java.util.List getAddressesList(); /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ io.kubernetes.client.proto.V1.NodeAddress getAddresses(int index); /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ int getAddressesCount(); /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ java.util.List getAddressesOrBuilderList(); /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ io.kubernetes.client.proto.V1.NodeAddressOrBuilder getAddressesOrBuilder(int index); /** * * *
     * Endpoints of daemons running on the Node.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ boolean hasDaemonEndpoints(); /** * * *
     * Endpoints of daemons running on the Node.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ io.kubernetes.client.proto.V1.NodeDaemonEndpoints getDaemonEndpoints(); /** * * *
     * Endpoints of daemons running on the Node.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder getDaemonEndpointsOrBuilder(); /** * * *
     * Set of ids/uuids to uniquely identify the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ boolean hasNodeInfo(); /** * * *
     * Set of ids/uuids to uniquely identify the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ io.kubernetes.client.proto.V1.NodeSystemInfo getNodeInfo(); /** * * *
     * Set of ids/uuids to uniquely identify the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder getNodeInfoOrBuilder(); /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ java.util.List getImagesList(); /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ io.kubernetes.client.proto.V1.ContainerImage getImages(int index); /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ int getImagesCount(); /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ java.util.List getImagesOrBuilderList(); /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ io.kubernetes.client.proto.V1.ContainerImageOrBuilder getImagesOrBuilder(int index); /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ java.util.List getVolumesInUseList(); /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ int getVolumesInUseCount(); /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ java.lang.String getVolumesInUse(int index); /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ com.google.protobuf.ByteString getVolumesInUseBytes(int index); /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ java.util.List getVolumesAttachedList(); /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ io.kubernetes.client.proto.V1.AttachedVolume getVolumesAttached(int index); /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ int getVolumesAttachedCount(); /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ java.util.List getVolumesAttachedOrBuilderList(); /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilder(int index); /** * * *
     * Status of the config assigned to the node via the dynamic Kubelet config feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ boolean hasConfig(); /** * * *
     * Status of the config assigned to the node via the dynamic Kubelet config feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ io.kubernetes.client.proto.V1.NodeConfigStatus getConfig(); /** * * *
     * Status of the config assigned to the node via the dynamic Kubelet config feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder getConfigOrBuilder(); } /** * * *
   * NodeStatus is information about the current status of a node.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeStatus} */ public static final class NodeStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeStatus) NodeStatusOrBuilder { private static final long serialVersionUID = 0L; // Use NodeStatus.newBuilder() to construct. private NodeStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeStatus() { phase_ = ""; conditions_ = java.util.Collections.emptyList(); addresses_ = java.util.Collections.emptyList(); images_ = java.util.Collections.emptyList(); volumesInUse_ = com.google.protobuf.LazyStringArrayList.EMPTY; volumesAttached_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeStatus( 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)) { capacity_ = com.google.protobuf.MapField.newMapField( CapacityDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity__ = input.readMessage( CapacityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); capacity_.getMutableMap().put(capacity__.getKey(), capacity__.getValue()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { allocatable_ = com.google.protobuf.MapField.newMapField( AllocatableDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatable__ = input.readMessage( AllocatableDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); allocatable_.getMutableMap().put(allocatable__.getKey(), allocatable__.getValue()); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; phase_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1.NodeCondition.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { addresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } addresses_.add( input.readMessage( io.kubernetes.client.proto.V1.NodeAddress.PARSER, extensionRegistry)); break; } case 50: { io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = daemonEndpoints_.toBuilder(); } daemonEndpoints_ = input.readMessage( io.kubernetes.client.proto.V1.NodeDaemonEndpoints.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(daemonEndpoints_); daemonEndpoints_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 58: { io.kubernetes.client.proto.V1.NodeSystemInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = nodeInfo_.toBuilder(); } nodeInfo_ = input.readMessage( io.kubernetes.client.proto.V1.NodeSystemInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodeInfo_); nodeInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { images_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } images_.add( input.readMessage( io.kubernetes.client.proto.V1.ContainerImage.PARSER, extensionRegistry)); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { volumesInUse_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000100; } volumesInUse_.add(bs); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { volumesAttached_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } volumesAttached_.add( input.readMessage( io.kubernetes.client.proto.V1.AttachedVolume.PARSER, extensionRegistry)); break; } case 90: { io.kubernetes.client.proto.V1.NodeConfigStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = config_.toBuilder(); } config_ = input.readMessage( io.kubernetes.client.proto.V1.NodeConfigStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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_ & 0x00000008) == 0x00000008)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { images_ = java.util.Collections.unmodifiableList(images_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { volumesInUse_ = volumesInUse_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { volumesAttached_ = java.util.Collections.unmodifiableList(volumesAttached_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetCapacity(); case 2: return internalGetAllocatable(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeStatus.class, io.kubernetes.client.proto.V1.NodeStatus.Builder.class); } private int bitField0_; public static final int CAPACITY_FIELD_NUMBER = 1; private static final class CapacityDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeStatus_CapacityEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField(CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Capacity represents the total resources of a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ALLOCATABLE_FIELD_NUMBER = 2; private static final class AllocatableDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatable_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetAllocatable() { if (allocatable_ == null) { return com.google.protobuf.MapField.emptyMapField( AllocatableDefaultEntryHolder.defaultEntry); } return allocatable_; } public int getAllocatableCount() { return internalGetAllocatable().getMap().size(); } /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public boolean containsAllocatable(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAllocatable().getMap().containsKey(key); } /** Use {@link #getAllocatableMap()} instead. */ @java.lang.Deprecated public java.util.Map getAllocatable() { return getAllocatableMap(); } /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public java.util.Map getAllocatableMap() { return internalGetAllocatable().getMap(); } /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public io.kubernetes.client.proto.Resource.Quantity getAllocatableOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAllocatable().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Allocatable represents the resources of a node that are available for scheduling.
     * Defaults to Capacity.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public io.kubernetes.client.proto.Resource.Quantity getAllocatableOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAllocatable().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PHASE_FIELD_NUMBER = 3; private volatile java.lang.Object phase_; /** * * *
     * NodePhase is the recently observed lifecycle phase of the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
     * The field is never populated, and now is deprecated.
     * +optional
     * 
* * optional string phase = 3; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * NodePhase is the recently observed lifecycle phase of the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
     * The field is never populated, and now is deprecated.
     * +optional
     * 
* * optional string phase = 3; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } } /** * * *
     * NodePhase is the recently observed lifecycle phase of the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
     * The field is never populated, and now is deprecated.
     * +optional
     * 
* * optional string phase = 3; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONDITIONS_FIELD_NUMBER = 4; private java.util.List conditions_; /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Conditions is an array of current observed node conditions.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } public static final int ADDRESSES_FIELD_NUMBER = 5; private java.util.List addresses_; /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public java.util.List getAddressesList() { return addresses_; } /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public java.util.List getAddressesOrBuilderList() { return addresses_; } /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public int getAddressesCount() { return addresses_.size(); } /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddress getAddresses(int index) { return addresses_.get(index); } /** * * *
     * List of addresses reachable to the node.
     * Queried from cloud provider, if available.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
     * Note: This field is declared as mergeable, but the merge key is not sufficiently
     * unique, which can cause data corruption when it is merged. Callers should instead
     * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddressOrBuilder getAddressesOrBuilder(int index) { return addresses_.get(index); } public static final int DAEMONENDPOINTS_FIELD_NUMBER = 6; private io.kubernetes.client.proto.V1.NodeDaemonEndpoints daemonEndpoints_; /** * * *
     * Endpoints of daemons running on the Node.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public boolean hasDaemonEndpoints() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Endpoints of daemons running on the Node.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public io.kubernetes.client.proto.V1.NodeDaemonEndpoints getDaemonEndpoints() { return daemonEndpoints_ == null ? io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance() : daemonEndpoints_; } /** * * *
     * Endpoints of daemons running on the Node.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder getDaemonEndpointsOrBuilder() { return daemonEndpoints_ == null ? io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance() : daemonEndpoints_; } public static final int NODEINFO_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.NodeSystemInfo nodeInfo_; /** * * *
     * Set of ids/uuids to uniquely identify the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public boolean hasNodeInfo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Set of ids/uuids to uniquely identify the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public io.kubernetes.client.proto.V1.NodeSystemInfo getNodeInfo() { return nodeInfo_ == null ? io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance() : nodeInfo_; } /** * * *
     * Set of ids/uuids to uniquely identify the node.
     * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder getNodeInfoOrBuilder() { return nodeInfo_ == null ? io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance() : nodeInfo_; } public static final int IMAGES_FIELD_NUMBER = 8; private java.util.List images_; /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public java.util.List getImagesList() { return images_; } /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public java.util.List getImagesOrBuilderList() { return images_; } /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public int getImagesCount() { return images_.size(); } /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImage getImages(int index) { return images_.get(index); } /** * * *
     * List of container images on this node
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImageOrBuilder getImagesOrBuilder(int index) { return images_.get(index); } public static final int VOLUMESINUSE_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList volumesInUse_; /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ public com.google.protobuf.ProtocolStringList getVolumesInUseList() { return volumesInUse_; } /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ public int getVolumesInUseCount() { return volumesInUse_.size(); } /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ public java.lang.String getVolumesInUse(int index) { return volumesInUse_.get(index); } /** * * *
     * List of attachable volumes in use (mounted) by the node.
     * +optional
     * 
* * repeated string volumesInUse = 9; */ public com.google.protobuf.ByteString getVolumesInUseBytes(int index) { return volumesInUse_.getByteString(index); } public static final int VOLUMESATTACHED_FIELD_NUMBER = 10; private java.util.List volumesAttached_; /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public java.util.List getVolumesAttachedList() { return volumesAttached_; } /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public java.util.List getVolumesAttachedOrBuilderList() { return volumesAttached_; } /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public int getVolumesAttachedCount() { return volumesAttached_.size(); } /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolume getVolumesAttached(int index) { return volumesAttached_.get(index); } /** * * *
     * List of volumes that are attached to the node.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilder( int index) { return volumesAttached_.get(index); } public static final int CONFIG_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.NodeConfigStatus config_; /** * * *
     * Status of the config assigned to the node via the dynamic Kubelet config feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public boolean hasConfig() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Status of the config assigned to the node via the dynamic Kubelet config feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public io.kubernetes.client.proto.V1.NodeConfigStatus getConfig() { return config_ == null ? io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance() : config_; } /** * * *
     * Status of the config assigned to the node via the dynamic Kubelet config feature.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder getConfigOrBuilder() { return config_ == null ? io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance() : config_; } 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 { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCapacity(), CapacityDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAllocatable(), AllocatableDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phase_); } for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(4, conditions_.get(i)); } for (int i = 0; i < addresses_.size(); i++) { output.writeMessage(5, addresses_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(6, getDaemonEndpoints()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(7, getNodeInfo()); } for (int i = 0; i < images_.size(); i++) { output.writeMessage(8, images_.get(i)); } for (int i = 0; i < volumesInUse_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, volumesInUse_.getRaw(i)); } for (int i = 0; i < volumesAttached_.size(); i++) { output.writeMessage(10, volumesAttached_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(11, getConfig()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetCapacity().getMap().entrySet()) { com.google.protobuf.MapEntry capacity__ = CapacityDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, capacity__); } for (java.util.Map.Entry entry : internalGetAllocatable().getMap().entrySet()) { com.google.protobuf.MapEntry allocatable__ = AllocatableDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, allocatable__); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phase_); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, conditions_.get(i)); } for (int i = 0; i < addresses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, addresses_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDaemonEndpoints()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNodeInfo()); } for (int i = 0; i < images_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, images_.get(i)); } { int dataSize = 0; for (int i = 0; i < volumesInUse_.size(); i++) { dataSize += computeStringSizeNoTag(volumesInUse_.getRaw(i)); } size += dataSize; size += 1 * getVolumesInUseList().size(); } for (int i = 0; i < volumesAttached_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, volumesAttached_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getConfig()); } 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.V1.NodeStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeStatus other = (io.kubernetes.client.proto.V1.NodeStatus) obj; boolean result = true; result = result && internalGetCapacity().equals(other.internalGetCapacity()); result = result && internalGetAllocatable().equals(other.internalGetAllocatable()); result = result && (hasPhase() == other.hasPhase()); if (hasPhase()) { result = result && getPhase().equals(other.getPhase()); } result = result && getConditionsList().equals(other.getConditionsList()); result = result && getAddressesList().equals(other.getAddressesList()); result = result && (hasDaemonEndpoints() == other.hasDaemonEndpoints()); if (hasDaemonEndpoints()) { result = result && getDaemonEndpoints().equals(other.getDaemonEndpoints()); } result = result && (hasNodeInfo() == other.hasNodeInfo()); if (hasNodeInfo()) { result = result && getNodeInfo().equals(other.getNodeInfo()); } result = result && getImagesList().equals(other.getImagesList()); result = result && getVolumesInUseList().equals(other.getVolumesInUseList()); result = result && getVolumesAttachedList().equals(other.getVolumesAttachedList()); result = result && (hasConfig() == other.hasConfig()); if (hasConfig()) { result = result && getConfig().equals(other.getConfig()); } 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 (!internalGetCapacity().getMap().isEmpty()) { hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + internalGetCapacity().hashCode(); } if (!internalGetAllocatable().getMap().isEmpty()) { hash = (37 * hash) + ALLOCATABLE_FIELD_NUMBER; hash = (53 * hash) + internalGetAllocatable().hashCode(); } if (hasPhase()) { hash = (37 * hash) + PHASE_FIELD_NUMBER; hash = (53 * hash) + getPhase().hashCode(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } if (getAddressesCount() > 0) { hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getAddressesList().hashCode(); } if (hasDaemonEndpoints()) { hash = (37 * hash) + DAEMONENDPOINTS_FIELD_NUMBER; hash = (53 * hash) + getDaemonEndpoints().hashCode(); } if (hasNodeInfo()) { hash = (37 * hash) + NODEINFO_FIELD_NUMBER; hash = (53 * hash) + getNodeInfo().hashCode(); } if (getImagesCount() > 0) { hash = (37 * hash) + IMAGES_FIELD_NUMBER; hash = (53 * hash) + getImagesList().hashCode(); } if (getVolumesInUseCount() > 0) { hash = (37 * hash) + VOLUMESINUSE_FIELD_NUMBER; hash = (53 * hash) + getVolumesInUseList().hashCode(); } if (getVolumesAttachedCount() > 0) { hash = (37 * hash) + VOLUMESATTACHED_FIELD_NUMBER; hash = (53 * hash) + getVolumesAttachedList().hashCode(); } if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeStatus 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.V1.NodeStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeStatus 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.V1.NodeStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeStatus 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.V1.NodeStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeStatus 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.V1.NodeStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeStatus 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.V1.NodeStatus 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; } /** * * *
     * NodeStatus is information about the current status of a node.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeStatus) io.kubernetes.client.proto.V1.NodeStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeStatus_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetCapacity(); case 2: return internalGetAllocatable(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableCapacity(); case 2: return internalGetMutableAllocatable(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeStatus.class, io.kubernetes.client.proto.V1.NodeStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); getAddressesFieldBuilder(); getDaemonEndpointsFieldBuilder(); getNodeInfoFieldBuilder(); getImagesFieldBuilder(); getVolumesAttachedFieldBuilder(); getConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableCapacity().clear(); internalGetMutableAllocatable().clear(); phase_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { conditionsBuilder_.clear(); } if (addressesBuilder_ == null) { addresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { addressesBuilder_.clear(); } if (daemonEndpointsBuilder_ == null) { daemonEndpoints_ = null; } else { daemonEndpointsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (nodeInfoBuilder_ == null) { nodeInfo_ = null; } else { nodeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (imagesBuilder_ == null) { images_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { imagesBuilder_.clear(); } volumesInUse_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); if (volumesAttachedBuilder_ == null) { volumesAttached_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { volumesAttachedBuilder_.clear(); } if (configBuilder_ == null) { config_ = null; } else { configBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeStatus build() { io.kubernetes.client.proto.V1.NodeStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeStatus buildPartial() { io.kubernetes.client.proto.V1.NodeStatus result = new io.kubernetes.client.proto.V1.NodeStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.capacity_ = internalGetCapacity(); result.capacity_.makeImmutable(); result.allocatable_ = internalGetAllocatable(); result.allocatable_.makeImmutable(); if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.phase_ = phase_; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000008); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } if (addressesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { addresses_ = java.util.Collections.unmodifiableList(addresses_); bitField0_ = (bitField0_ & ~0x00000010); } result.addresses_ = addresses_; } else { result.addresses_ = addressesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000002; } if (daemonEndpointsBuilder_ == null) { result.daemonEndpoints_ = daemonEndpoints_; } else { result.daemonEndpoints_ = daemonEndpointsBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000004; } if (nodeInfoBuilder_ == null) { result.nodeInfo_ = nodeInfo_; } else { result.nodeInfo_ = nodeInfoBuilder_.build(); } if (imagesBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { images_ = java.util.Collections.unmodifiableList(images_); bitField0_ = (bitField0_ & ~0x00000080); } result.images_ = images_; } else { result.images_ = imagesBuilder_.build(); } if (((bitField0_ & 0x00000100) == 0x00000100)) { volumesInUse_ = volumesInUse_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000100); } result.volumesInUse_ = volumesInUse_; if (volumesAttachedBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { volumesAttached_ = java.util.Collections.unmodifiableList(volumesAttached_); bitField0_ = (bitField0_ & ~0x00000200); } result.volumesAttached_ = volumesAttached_; } else { result.volumesAttached_ = volumesAttachedBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000008; } if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.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.V1.NodeStatus) { return mergeFrom((io.kubernetes.client.proto.V1.NodeStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeStatus other) { if (other == io.kubernetes.client.proto.V1.NodeStatus.getDefaultInstance()) return this; internalGetMutableCapacity().mergeFrom(other.internalGetCapacity()); internalGetMutableAllocatable().mergeFrom(other.internalGetAllocatable()); if (other.hasPhase()) { bitField0_ |= 0x00000004; phase_ = other.phase_; onChanged(); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000008); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } if (addressesBuilder_ == null) { if (!other.addresses_.isEmpty()) { if (addresses_.isEmpty()) { addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAddressesIsMutable(); addresses_.addAll(other.addresses_); } onChanged(); } } else { if (!other.addresses_.isEmpty()) { if (addressesBuilder_.isEmpty()) { addressesBuilder_.dispose(); addressesBuilder_ = null; addresses_ = other.addresses_; bitField0_ = (bitField0_ & ~0x00000010); addressesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAddressesFieldBuilder() : null; } else { addressesBuilder_.addAllMessages(other.addresses_); } } } if (other.hasDaemonEndpoints()) { mergeDaemonEndpoints(other.getDaemonEndpoints()); } if (other.hasNodeInfo()) { mergeNodeInfo(other.getNodeInfo()); } if (imagesBuilder_ == null) { if (!other.images_.isEmpty()) { if (images_.isEmpty()) { images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureImagesIsMutable(); images_.addAll(other.images_); } onChanged(); } } else { if (!other.images_.isEmpty()) { if (imagesBuilder_.isEmpty()) { imagesBuilder_.dispose(); imagesBuilder_ = null; images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000080); imagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImagesFieldBuilder() : null; } else { imagesBuilder_.addAllMessages(other.images_); } } } if (!other.volumesInUse_.isEmpty()) { if (volumesInUse_.isEmpty()) { volumesInUse_ = other.volumesInUse_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureVolumesInUseIsMutable(); volumesInUse_.addAll(other.volumesInUse_); } onChanged(); } if (volumesAttachedBuilder_ == null) { if (!other.volumesAttached_.isEmpty()) { if (volumesAttached_.isEmpty()) { volumesAttached_ = other.volumesAttached_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureVolumesAttachedIsMutable(); volumesAttached_.addAll(other.volumesAttached_); } onChanged(); } } else { if (!other.volumesAttached_.isEmpty()) { if (volumesAttachedBuilder_.isEmpty()) { volumesAttachedBuilder_.dispose(); volumesAttachedBuilder_ = null; volumesAttached_ = other.volumesAttached_; bitField0_ = (bitField0_ & ~0x00000200); volumesAttachedBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumesAttachedFieldBuilder() : null; } else { volumesAttachedBuilder_.addAllMessages(other.volumesAttached_); } } } if (other.hasConfig()) { mergeConfig(other.getConfig()); } 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.V1.NodeStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField( CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableCapacity() { onChanged(); ; if (capacity_ == null) { capacity_ = com.google.protobuf.MapField.newMapField(CapacityDefaultEntryHolder.defaultEntry); } if (!capacity_.isMutable()) { capacity_ = capacity_.copy(); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCapacity() { internalGetMutableCapacity().getMutableMap().clear(); return this; } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder removeCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCapacity() { return internalGetMutableCapacity().getMutableMap(); } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder putCapacity( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().put(key, value); return this; } /** * * *
       * Capacity represents the total resources of a node.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder putAllCapacity( java.util.Map values) { internalGetMutableCapacity().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatable_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetAllocatable() { if (allocatable_ == null) { return com.google.protobuf.MapField.emptyMapField( AllocatableDefaultEntryHolder.defaultEntry); } return allocatable_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableAllocatable() { onChanged(); ; if (allocatable_ == null) { allocatable_ = com.google.protobuf.MapField.newMapField(AllocatableDefaultEntryHolder.defaultEntry); } if (!allocatable_.isMutable()) { allocatable_ = allocatable_.copy(); } return allocatable_; } public int getAllocatableCount() { return internalGetAllocatable().getMap().size(); } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public boolean containsAllocatable(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetAllocatable().getMap().containsKey(key); } /** Use {@link #getAllocatableMap()} instead. */ @java.lang.Deprecated public java.util.Map getAllocatable() { return getAllocatableMap(); } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public java.util.Map getAllocatableMap() { return internalGetAllocatable().getMap(); } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public io.kubernetes.client.proto.Resource.Quantity getAllocatableOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAllocatable().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public io.kubernetes.client.proto.Resource.Quantity getAllocatableOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAllocatable().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAllocatable() { internalGetMutableAllocatable().getMutableMap().clear(); return this; } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public Builder removeAllocatable(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableAllocatable().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAllocatable() { return internalGetMutableAllocatable().getMutableMap(); } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public Builder putAllocatable( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableAllocatable().getMutableMap().put(key, value); return this; } /** * * *
       * Allocatable represents the resources of a node that are available for scheduling.
       * Defaults to Capacity.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2; * */ public Builder putAllAllocatable( java.util.Map values) { internalGetMutableAllocatable().getMutableMap().putAll(values); return this; } private java.lang.Object phase_ = ""; /** * * *
       * NodePhase is the recently observed lifecycle phase of the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
       * The field is never populated, and now is deprecated.
       * +optional
       * 
* * optional string phase = 3; */ public boolean hasPhase() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * NodePhase is the recently observed lifecycle phase of the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
       * The field is never populated, and now is deprecated.
       * +optional
       * 
* * optional string phase = 3; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * NodePhase is the recently observed lifecycle phase of the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
       * The field is never populated, and now is deprecated.
       * +optional
       * 
* * optional string phase = 3; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * NodePhase is the recently observed lifecycle phase of the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
       * The field is never populated, and now is deprecated.
       * +optional
       * 
* * optional string phase = 3; */ public Builder setPhase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; phase_ = value; onChanged(); return this; } /** * * *
       * NodePhase is the recently observed lifecycle phase of the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
       * The field is never populated, and now is deprecated.
       * +optional
       * 
* * optional string phase = 3; */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000004); phase_ = getDefaultInstance().getPhase(); onChanged(); return this; } /** * * *
       * NodePhase is the recently observed lifecycle phase of the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
       * The field is never populated, and now is deprecated.
       * +optional
       * 
* * optional string phase = 3; */ public Builder setPhaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; phase_ = value; onChanged(); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeCondition, io.kubernetes.client.proto.V1.NodeCondition.Builder, io.kubernetes.client.proto.V1.NodeConditionOrBuilder> conditionsBuilder_; /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder setConditions(int index, io.kubernetes.client.proto.V1.NodeCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.NodeCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder addConditions(io.kubernetes.client.proto.V1.NodeCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder addConditions(int index, io.kubernetes.client.proto.V1.NodeCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder addConditions( io.kubernetes.client.proto.V1.NodeCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.NodeCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeCondition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeConditionOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance()); } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public io.kubernetes.client.proto.V1.NodeCondition.Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance()); } /** * * *
       * Conditions is an array of current observed node conditions.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeCondition conditions = 4; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeCondition, io.kubernetes.client.proto.V1.NodeCondition.Builder, io.kubernetes.client.proto.V1.NodeConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeCondition, io.kubernetes.client.proto.V1.NodeCondition.Builder, io.kubernetes.client.proto.V1.NodeConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } private java.util.List addresses_ = java.util.Collections.emptyList(); private void ensureAddressesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { addresses_ = new java.util.ArrayList(addresses_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeAddress, io.kubernetes.client.proto.V1.NodeAddress.Builder, io.kubernetes.client.proto.V1.NodeAddressOrBuilder> addressesBuilder_; /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public java.util.List getAddressesList() { if (addressesBuilder_ == null) { return java.util.Collections.unmodifiableList(addresses_); } else { return addressesBuilder_.getMessageList(); } } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public int getAddressesCount() { if (addressesBuilder_ == null) { return addresses_.size(); } else { return addressesBuilder_.getCount(); } } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddress getAddresses(int index) { if (addressesBuilder_ == null) { return addresses_.get(index); } else { return addressesBuilder_.getMessage(index); } } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder setAddresses(int index, io.kubernetes.client.proto.V1.NodeAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.set(index, value); onChanged(); } else { addressesBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder setAddresses( int index, io.kubernetes.client.proto.V1.NodeAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.set(index, builderForValue.build()); onChanged(); } else { addressesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder addAddresses(io.kubernetes.client.proto.V1.NodeAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(value); onChanged(); } else { addressesBuilder_.addMessage(value); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder addAddresses(int index, io.kubernetes.client.proto.V1.NodeAddress value) { if (addressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddressesIsMutable(); addresses_.add(index, value); onChanged(); } else { addressesBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder addAddresses( io.kubernetes.client.proto.V1.NodeAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.add(builderForValue.build()); onChanged(); } else { addressesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder addAddresses( int index, io.kubernetes.client.proto.V1.NodeAddress.Builder builderForValue) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.add(index, builderForValue.build()); onChanged(); } else { addressesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder addAllAddresses( java.lang.Iterable values) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); onChanged(); } else { addressesBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder clearAddresses() { if (addressesBuilder_ == null) { addresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { addressesBuilder_.clear(); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public Builder removeAddresses(int index) { if (addressesBuilder_ == null) { ensureAddressesIsMutable(); addresses_.remove(index); onChanged(); } else { addressesBuilder_.remove(index); } return this; } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddress.Builder getAddressesBuilder(int index) { return getAddressesFieldBuilder().getBuilder(index); } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddressOrBuilder getAddressesOrBuilder(int index) { if (addressesBuilder_ == null) { return addresses_.get(index); } else { return addressesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public java.util.List getAddressesOrBuilderList() { if (addressesBuilder_ != null) { return addressesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addresses_); } } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddress.Builder addAddressesBuilder() { return getAddressesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.NodeAddress.getDefaultInstance()); } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public io.kubernetes.client.proto.V1.NodeAddress.Builder addAddressesBuilder(int index) { return getAddressesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.NodeAddress.getDefaultInstance()); } /** * * *
       * List of addresses reachable to the node.
       * Queried from cloud provider, if available.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
       * Note: This field is declared as mergeable, but the merge key is not sufficiently
       * unique, which can cause data corruption when it is merged. Callers should instead
       * use a full-replacement patch. See http://pr.k8s.io/79391 for an example.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.NodeAddress addresses = 5; */ public java.util.List getAddressesBuilderList() { return getAddressesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeAddress, io.kubernetes.client.proto.V1.NodeAddress.Builder, io.kubernetes.client.proto.V1.NodeAddressOrBuilder> getAddressesFieldBuilder() { if (addressesBuilder_ == null) { addressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.NodeAddress, io.kubernetes.client.proto.V1.NodeAddress.Builder, io.kubernetes.client.proto.V1.NodeAddressOrBuilder>( addresses_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); addresses_ = null; } return addressesBuilder_; } private io.kubernetes.client.proto.V1.NodeDaemonEndpoints daemonEndpoints_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeDaemonEndpoints, io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder, io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder> daemonEndpointsBuilder_; /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public boolean hasDaemonEndpoints() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public io.kubernetes.client.proto.V1.NodeDaemonEndpoints getDaemonEndpoints() { if (daemonEndpointsBuilder_ == null) { return daemonEndpoints_ == null ? io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance() : daemonEndpoints_; } else { return daemonEndpointsBuilder_.getMessage(); } } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public Builder setDaemonEndpoints(io.kubernetes.client.proto.V1.NodeDaemonEndpoints value) { if (daemonEndpointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } daemonEndpoints_ = value; onChanged(); } else { daemonEndpointsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public Builder setDaemonEndpoints( io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder builderForValue) { if (daemonEndpointsBuilder_ == null) { daemonEndpoints_ = builderForValue.build(); onChanged(); } else { daemonEndpointsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public Builder mergeDaemonEndpoints(io.kubernetes.client.proto.V1.NodeDaemonEndpoints value) { if (daemonEndpointsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && daemonEndpoints_ != null && daemonEndpoints_ != io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance()) { daemonEndpoints_ = io.kubernetes.client.proto.V1.NodeDaemonEndpoints.newBuilder(daemonEndpoints_) .mergeFrom(value) .buildPartial(); } else { daemonEndpoints_ = value; } onChanged(); } else { daemonEndpointsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public Builder clearDaemonEndpoints() { if (daemonEndpointsBuilder_ == null) { daemonEndpoints_ = null; onChanged(); } else { daemonEndpointsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder getDaemonEndpointsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDaemonEndpointsFieldBuilder().getBuilder(); } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ public io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder getDaemonEndpointsOrBuilder() { if (daemonEndpointsBuilder_ != null) { return daemonEndpointsBuilder_.getMessageOrBuilder(); } else { return daemonEndpoints_ == null ? io.kubernetes.client.proto.V1.NodeDaemonEndpoints.getDefaultInstance() : daemonEndpoints_; } } /** * * *
       * Endpoints of daemons running on the Node.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeDaemonEndpoints daemonEndpoints = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeDaemonEndpoints, io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder, io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder> getDaemonEndpointsFieldBuilder() { if (daemonEndpointsBuilder_ == null) { daemonEndpointsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeDaemonEndpoints, io.kubernetes.client.proto.V1.NodeDaemonEndpoints.Builder, io.kubernetes.client.proto.V1.NodeDaemonEndpointsOrBuilder>( getDaemonEndpoints(), getParentForChildren(), isClean()); daemonEndpoints_ = null; } return daemonEndpointsBuilder_; } private io.kubernetes.client.proto.V1.NodeSystemInfo nodeInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSystemInfo, io.kubernetes.client.proto.V1.NodeSystemInfo.Builder, io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder> nodeInfoBuilder_; /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public boolean hasNodeInfo() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public io.kubernetes.client.proto.V1.NodeSystemInfo getNodeInfo() { if (nodeInfoBuilder_ == null) { return nodeInfo_ == null ? io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance() : nodeInfo_; } else { return nodeInfoBuilder_.getMessage(); } } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public Builder setNodeInfo(io.kubernetes.client.proto.V1.NodeSystemInfo value) { if (nodeInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeInfo_ = value; onChanged(); } else { nodeInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public Builder setNodeInfo( io.kubernetes.client.proto.V1.NodeSystemInfo.Builder builderForValue) { if (nodeInfoBuilder_ == null) { nodeInfo_ = builderForValue.build(); onChanged(); } else { nodeInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public Builder mergeNodeInfo(io.kubernetes.client.proto.V1.NodeSystemInfo value) { if (nodeInfoBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && nodeInfo_ != null && nodeInfo_ != io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance()) { nodeInfo_ = io.kubernetes.client.proto.V1.NodeSystemInfo.newBuilder(nodeInfo_) .mergeFrom(value) .buildPartial(); } else { nodeInfo_ = value; } onChanged(); } else { nodeInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public Builder clearNodeInfo() { if (nodeInfoBuilder_ == null) { nodeInfo_ = null; onChanged(); } else { nodeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public io.kubernetes.client.proto.V1.NodeSystemInfo.Builder getNodeInfoBuilder() { bitField0_ |= 0x00000040; onChanged(); return getNodeInfoFieldBuilder().getBuilder(); } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ public io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder getNodeInfoOrBuilder() { if (nodeInfoBuilder_ != null) { return nodeInfoBuilder_.getMessageOrBuilder(); } else { return nodeInfo_ == null ? io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance() : nodeInfo_; } } /** * * *
       * Set of ids/uuids to uniquely identify the node.
       * More info: https://kubernetes.io/docs/concepts/nodes/node/#info
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeSystemInfo nodeInfo = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSystemInfo, io.kubernetes.client.proto.V1.NodeSystemInfo.Builder, io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder> getNodeInfoFieldBuilder() { if (nodeInfoBuilder_ == null) { nodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSystemInfo, io.kubernetes.client.proto.V1.NodeSystemInfo.Builder, io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder>( getNodeInfo(), getParentForChildren(), isClean()); nodeInfo_ = null; } return nodeInfoBuilder_; } private java.util.List images_ = java.util.Collections.emptyList(); private void ensureImagesIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { images_ = new java.util.ArrayList(images_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerImage, io.kubernetes.client.proto.V1.ContainerImage.Builder, io.kubernetes.client.proto.V1.ContainerImageOrBuilder> imagesBuilder_; /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public java.util.List getImagesList() { if (imagesBuilder_ == null) { return java.util.Collections.unmodifiableList(images_); } else { return imagesBuilder_.getMessageList(); } } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public int getImagesCount() { if (imagesBuilder_ == null) { return images_.size(); } else { return imagesBuilder_.getCount(); } } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImage getImages(int index) { if (imagesBuilder_ == null) { return images_.get(index); } else { return imagesBuilder_.getMessage(index); } } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder setImages(int index, io.kubernetes.client.proto.V1.ContainerImage value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagesIsMutable(); images_.set(index, value); onChanged(); } else { imagesBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder setImages( int index, io.kubernetes.client.proto.V1.ContainerImage.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.set(index, builderForValue.build()); onChanged(); } else { imagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder addImages(io.kubernetes.client.proto.V1.ContainerImage value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagesIsMutable(); images_.add(value); onChanged(); } else { imagesBuilder_.addMessage(value); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder addImages(int index, io.kubernetes.client.proto.V1.ContainerImage value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagesIsMutable(); images_.add(index, value); onChanged(); } else { imagesBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder addImages( io.kubernetes.client.proto.V1.ContainerImage.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(builderForValue.build()); onChanged(); } else { imagesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder addImages( int index, io.kubernetes.client.proto.V1.ContainerImage.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(index, builderForValue.build()); onChanged(); } else { imagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder addAllImages( java.lang.Iterable values) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); onChanged(); } else { imagesBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder clearImages() { if (imagesBuilder_ == null) { images_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { imagesBuilder_.clear(); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public Builder removeImages(int index) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.remove(index); onChanged(); } else { imagesBuilder_.remove(index); } return this; } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImage.Builder getImagesBuilder(int index) { return getImagesFieldBuilder().getBuilder(index); } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImageOrBuilder getImagesOrBuilder(int index) { if (imagesBuilder_ == null) { return images_.get(index); } else { return imagesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public java.util.List getImagesOrBuilderList() { if (imagesBuilder_ != null) { return imagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(images_); } } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImage.Builder addImagesBuilder() { return getImagesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ContainerImage.getDefaultInstance()); } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public io.kubernetes.client.proto.V1.ContainerImage.Builder addImagesBuilder(int index) { return getImagesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ContainerImage.getDefaultInstance()); } /** * * *
       * List of container images on this node
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerImage images = 8; */ public java.util.List getImagesBuilderList() { return getImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerImage, io.kubernetes.client.proto.V1.ContainerImage.Builder, io.kubernetes.client.proto.V1.ContainerImageOrBuilder> getImagesFieldBuilder() { if (imagesBuilder_ == null) { imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerImage, io.kubernetes.client.proto.V1.ContainerImage.Builder, io.kubernetes.client.proto.V1.ContainerImageOrBuilder>( images_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); images_ = null; } return imagesBuilder_; } private com.google.protobuf.LazyStringList volumesInUse_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVolumesInUseIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { volumesInUse_ = new com.google.protobuf.LazyStringArrayList(volumesInUse_); bitField0_ |= 0x00000100; } } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public com.google.protobuf.ProtocolStringList getVolumesInUseList() { return volumesInUse_.getUnmodifiableView(); } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public int getVolumesInUseCount() { return volumesInUse_.size(); } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public java.lang.String getVolumesInUse(int index) { return volumesInUse_.get(index); } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public com.google.protobuf.ByteString getVolumesInUseBytes(int index) { return volumesInUse_.getByteString(index); } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public Builder setVolumesInUse(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVolumesInUseIsMutable(); volumesInUse_.set(index, value); onChanged(); return this; } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public Builder addVolumesInUse(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVolumesInUseIsMutable(); volumesInUse_.add(value); onChanged(); return this; } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public Builder addAllVolumesInUse(java.lang.Iterable values) { ensureVolumesInUseIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumesInUse_); onChanged(); return this; } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public Builder clearVolumesInUse() { volumesInUse_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
       * List of attachable volumes in use (mounted) by the node.
       * +optional
       * 
* * repeated string volumesInUse = 9; */ public Builder addVolumesInUseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureVolumesInUseIsMutable(); volumesInUse_.add(value); onChanged(); return this; } private java.util.List volumesAttached_ = java.util.Collections.emptyList(); private void ensureVolumesAttachedIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { volumesAttached_ = new java.util.ArrayList( volumesAttached_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.AttachedVolume, io.kubernetes.client.proto.V1.AttachedVolume.Builder, io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder> volumesAttachedBuilder_; /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public java.util.List getVolumesAttachedList() { if (volumesAttachedBuilder_ == null) { return java.util.Collections.unmodifiableList(volumesAttached_); } else { return volumesAttachedBuilder_.getMessageList(); } } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public int getVolumesAttachedCount() { if (volumesAttachedBuilder_ == null) { return volumesAttached_.size(); } else { return volumesAttachedBuilder_.getCount(); } } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolume getVolumesAttached(int index) { if (volumesAttachedBuilder_ == null) { return volumesAttached_.get(index); } else { return volumesAttachedBuilder_.getMessage(index); } } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder setVolumesAttached( int index, io.kubernetes.client.proto.V1.AttachedVolume value) { if (volumesAttachedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesAttachedIsMutable(); volumesAttached_.set(index, value); onChanged(); } else { volumesAttachedBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder setVolumesAttached( int index, io.kubernetes.client.proto.V1.AttachedVolume.Builder builderForValue) { if (volumesAttachedBuilder_ == null) { ensureVolumesAttachedIsMutable(); volumesAttached_.set(index, builderForValue.build()); onChanged(); } else { volumesAttachedBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder addVolumesAttached(io.kubernetes.client.proto.V1.AttachedVolume value) { if (volumesAttachedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesAttachedIsMutable(); volumesAttached_.add(value); onChanged(); } else { volumesAttachedBuilder_.addMessage(value); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder addVolumesAttached( int index, io.kubernetes.client.proto.V1.AttachedVolume value) { if (volumesAttachedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesAttachedIsMutable(); volumesAttached_.add(index, value); onChanged(); } else { volumesAttachedBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder addVolumesAttached( io.kubernetes.client.proto.V1.AttachedVolume.Builder builderForValue) { if (volumesAttachedBuilder_ == null) { ensureVolumesAttachedIsMutable(); volumesAttached_.add(builderForValue.build()); onChanged(); } else { volumesAttachedBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder addVolumesAttached( int index, io.kubernetes.client.proto.V1.AttachedVolume.Builder builderForValue) { if (volumesAttachedBuilder_ == null) { ensureVolumesAttachedIsMutable(); volumesAttached_.add(index, builderForValue.build()); onChanged(); } else { volumesAttachedBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder addAllVolumesAttached( java.lang.Iterable values) { if (volumesAttachedBuilder_ == null) { ensureVolumesAttachedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumesAttached_); onChanged(); } else { volumesAttachedBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder clearVolumesAttached() { if (volumesAttachedBuilder_ == null) { volumesAttached_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { volumesAttachedBuilder_.clear(); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public Builder removeVolumesAttached(int index) { if (volumesAttachedBuilder_ == null) { ensureVolumesAttachedIsMutable(); volumesAttached_.remove(index); onChanged(); } else { volumesAttachedBuilder_.remove(index); } return this; } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolume.Builder getVolumesAttachedBuilder( int index) { return getVolumesAttachedFieldBuilder().getBuilder(index); } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilder( int index) { if (volumesAttachedBuilder_ == null) { return volumesAttached_.get(index); } else { return volumesAttachedBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public java.util.List getVolumesAttachedOrBuilderList() { if (volumesAttachedBuilder_ != null) { return volumesAttachedBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumesAttached_); } } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolume.Builder addVolumesAttachedBuilder() { return getVolumesAttachedFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.AttachedVolume.getDefaultInstance()); } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public io.kubernetes.client.proto.V1.AttachedVolume.Builder addVolumesAttachedBuilder( int index) { return getVolumesAttachedFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.AttachedVolume.getDefaultInstance()); } /** * * *
       * List of volumes that are attached to the node.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.AttachedVolume volumesAttached = 10; */ public java.util.List getVolumesAttachedBuilderList() { return getVolumesAttachedFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.AttachedVolume, io.kubernetes.client.proto.V1.AttachedVolume.Builder, io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder> getVolumesAttachedFieldBuilder() { if (volumesAttachedBuilder_ == null) { volumesAttachedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.AttachedVolume, io.kubernetes.client.proto.V1.AttachedVolume.Builder, io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder>( volumesAttached_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); volumesAttached_ = null; } return volumesAttachedBuilder_; } private io.kubernetes.client.proto.V1.NodeConfigStatus config_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigStatus, io.kubernetes.client.proto.V1.NodeConfigStatus.Builder, io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder> configBuilder_; /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public boolean hasConfig() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public io.kubernetes.client.proto.V1.NodeConfigStatus getConfig() { if (configBuilder_ == null) { return config_ == null ? io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public Builder setConfig(io.kubernetes.client.proto.V1.NodeConfigStatus value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public Builder setConfig( io.kubernetes.client.proto.V1.NodeConfigStatus.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public Builder mergeConfig(io.kubernetes.client.proto.V1.NodeConfigStatus value) { if (configBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && config_ != null && config_ != io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance()) { config_ = io.kubernetes.client.proto.V1.NodeConfigStatus.newBuilder(config_) .mergeFrom(value) .buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { configBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public io.kubernetes.client.proto.V1.NodeConfigStatus.Builder getConfigBuilder() { bitField0_ |= 0x00000400; onChanged(); return getConfigFieldBuilder().getBuilder(); } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ public io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? io.kubernetes.client.proto.V1.NodeConfigStatus.getDefaultInstance() : config_; } } /** * * *
       * Status of the config assigned to the node via the dynamic Kubelet config feature.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NodeConfigStatus config = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigStatus, io.kubernetes.client.proto.V1.NodeConfigStatus.Builder, io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeConfigStatus, io.kubernetes.client.proto.V1.NodeConfigStatus.Builder, io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } @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.core.v1.NodeStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeStatus) private static final io.kubernetes.client.proto.V1.NodeStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeStatus(); } public static io.kubernetes.client.proto.V1.NodeStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeStatus(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.V1.NodeStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeSystemInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeSystemInfo) com.google.protobuf.MessageOrBuilder { /** * * *
     * MachineID reported by the node. For unique machine identification
     * in the cluster this field is preferred. Learn more from man(5)
     * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
     * 
* * optional string machineID = 1; */ boolean hasMachineID(); /** * * *
     * MachineID reported by the node. For unique machine identification
     * in the cluster this field is preferred. Learn more from man(5)
     * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
     * 
* * optional string machineID = 1; */ java.lang.String getMachineID(); /** * * *
     * MachineID reported by the node. For unique machine identification
     * in the cluster this field is preferred. Learn more from man(5)
     * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
     * 
* * optional string machineID = 1; */ com.google.protobuf.ByteString getMachineIDBytes(); /** * * *
     * SystemUUID reported by the node. For unique machine identification
     * MachineID is preferred. This field is specific to Red Hat hosts
     * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
     * 
* * optional string systemUUID = 2; */ boolean hasSystemUUID(); /** * * *
     * SystemUUID reported by the node. For unique machine identification
     * MachineID is preferred. This field is specific to Red Hat hosts
     * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
     * 
* * optional string systemUUID = 2; */ java.lang.String getSystemUUID(); /** * * *
     * SystemUUID reported by the node. For unique machine identification
     * MachineID is preferred. This field is specific to Red Hat hosts
     * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
     * 
* * optional string systemUUID = 2; */ com.google.protobuf.ByteString getSystemUUIDBytes(); /** * * *
     * Boot ID reported by the node.
     * 
* * optional string bootID = 3; */ boolean hasBootID(); /** * * *
     * Boot ID reported by the node.
     * 
* * optional string bootID = 3; */ java.lang.String getBootID(); /** * * *
     * Boot ID reported by the node.
     * 
* * optional string bootID = 3; */ com.google.protobuf.ByteString getBootIDBytes(); /** * * *
     * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
     * 
* * optional string kernelVersion = 4; */ boolean hasKernelVersion(); /** * * *
     * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
     * 
* * optional string kernelVersion = 4; */ java.lang.String getKernelVersion(); /** * * *
     * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
     * 
* * optional string kernelVersion = 4; */ com.google.protobuf.ByteString getKernelVersionBytes(); /** * * *
     * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
     * 
* * optional string osImage = 5; */ boolean hasOsImage(); /** * * *
     * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
     * 
* * optional string osImage = 5; */ java.lang.String getOsImage(); /** * * *
     * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
     * 
* * optional string osImage = 5; */ com.google.protobuf.ByteString getOsImageBytes(); /** * * *
     * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
     * 
* * optional string containerRuntimeVersion = 6; */ boolean hasContainerRuntimeVersion(); /** * * *
     * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
     * 
* * optional string containerRuntimeVersion = 6; */ java.lang.String getContainerRuntimeVersion(); /** * * *
     * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
     * 
* * optional string containerRuntimeVersion = 6; */ com.google.protobuf.ByteString getContainerRuntimeVersionBytes(); /** * * *
     * Kubelet Version reported by the node.
     * 
* * optional string kubeletVersion = 7; */ boolean hasKubeletVersion(); /** * * *
     * Kubelet Version reported by the node.
     * 
* * optional string kubeletVersion = 7; */ java.lang.String getKubeletVersion(); /** * * *
     * Kubelet Version reported by the node.
     * 
* * optional string kubeletVersion = 7; */ com.google.protobuf.ByteString getKubeletVersionBytes(); /** * * *
     * KubeProxy Version reported by the node.
     * 
* * optional string kubeProxyVersion = 8; */ boolean hasKubeProxyVersion(); /** * * *
     * KubeProxy Version reported by the node.
     * 
* * optional string kubeProxyVersion = 8; */ java.lang.String getKubeProxyVersion(); /** * * *
     * KubeProxy Version reported by the node.
     * 
* * optional string kubeProxyVersion = 8; */ com.google.protobuf.ByteString getKubeProxyVersionBytes(); /** * * *
     * The Operating System reported by the node
     * 
* * optional string operatingSystem = 9; */ boolean hasOperatingSystem(); /** * * *
     * The Operating System reported by the node
     * 
* * optional string operatingSystem = 9; */ java.lang.String getOperatingSystem(); /** * * *
     * The Operating System reported by the node
     * 
* * optional string operatingSystem = 9; */ com.google.protobuf.ByteString getOperatingSystemBytes(); /** * * *
     * The Architecture reported by the node
     * 
* * optional string architecture = 10; */ boolean hasArchitecture(); /** * * *
     * The Architecture reported by the node
     * 
* * optional string architecture = 10; */ java.lang.String getArchitecture(); /** * * *
     * The Architecture reported by the node
     * 
* * optional string architecture = 10; */ com.google.protobuf.ByteString getArchitectureBytes(); } /** * * *
   * NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSystemInfo} */ public static final class NodeSystemInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeSystemInfo) NodeSystemInfoOrBuilder { private static final long serialVersionUID = 0L; // Use NodeSystemInfo.newBuilder() to construct. private NodeSystemInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeSystemInfo() { machineID_ = ""; systemUUID_ = ""; bootID_ = ""; kernelVersion_ = ""; osImage_ = ""; containerRuntimeVersion_ = ""; kubeletVersion_ = ""; kubeProxyVersion_ = ""; operatingSystem_ = ""; architecture_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeSystemInfo( 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; machineID_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; systemUUID_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; bootID_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; kernelVersion_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; osImage_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; containerRuntimeVersion_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; kubeletVersion_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; kubeProxyVersion_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; operatingSystem_ = bs; break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; architecture_ = 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 .V1 .internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSystemInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSystemInfo.class, io.kubernetes.client.proto.V1.NodeSystemInfo.Builder.class); } private int bitField0_; public static final int MACHINEID_FIELD_NUMBER = 1; private volatile java.lang.Object machineID_; /** * * *
     * MachineID reported by the node. For unique machine identification
     * in the cluster this field is preferred. Learn more from man(5)
     * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
     * 
* * optional string machineID = 1; */ public boolean hasMachineID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * MachineID reported by the node. For unique machine identification
     * in the cluster this field is preferred. Learn more from man(5)
     * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
     * 
* * optional string machineID = 1; */ public java.lang.String getMachineID() { java.lang.Object ref = machineID_; 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()) { machineID_ = s; } return s; } } /** * * *
     * MachineID reported by the node. For unique machine identification
     * in the cluster this field is preferred. Learn more from man(5)
     * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
     * 
* * optional string machineID = 1; */ public com.google.protobuf.ByteString getMachineIDBytes() { java.lang.Object ref = machineID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYSTEMUUID_FIELD_NUMBER = 2; private volatile java.lang.Object systemUUID_; /** * * *
     * SystemUUID reported by the node. For unique machine identification
     * MachineID is preferred. This field is specific to Red Hat hosts
     * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
     * 
* * optional string systemUUID = 2; */ public boolean hasSystemUUID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * SystemUUID reported by the node. For unique machine identification
     * MachineID is preferred. This field is specific to Red Hat hosts
     * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
     * 
* * optional string systemUUID = 2; */ public java.lang.String getSystemUUID() { java.lang.Object ref = systemUUID_; 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()) { systemUUID_ = s; } return s; } } /** * * *
     * SystemUUID reported by the node. For unique machine identification
     * MachineID is preferred. This field is specific to Red Hat hosts
     * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
     * 
* * optional string systemUUID = 2; */ public com.google.protobuf.ByteString getSystemUUIDBytes() { java.lang.Object ref = systemUUID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); systemUUID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOTID_FIELD_NUMBER = 3; private volatile java.lang.Object bootID_; /** * * *
     * Boot ID reported by the node.
     * 
* * optional string bootID = 3; */ public boolean hasBootID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Boot ID reported by the node.
     * 
* * optional string bootID = 3; */ public java.lang.String getBootID() { java.lang.Object ref = bootID_; 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()) { bootID_ = s; } return s; } } /** * * *
     * Boot ID reported by the node.
     * 
* * optional string bootID = 3; */ public com.google.protobuf.ByteString getBootIDBytes() { java.lang.Object ref = bootID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bootID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KERNELVERSION_FIELD_NUMBER = 4; private volatile java.lang.Object kernelVersion_; /** * * *
     * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
     * 
* * optional string kernelVersion = 4; */ public boolean hasKernelVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
     * 
* * optional string kernelVersion = 4; */ public java.lang.String getKernelVersion() { java.lang.Object ref = kernelVersion_; 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()) { kernelVersion_ = s; } return s; } } /** * * *
     * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
     * 
* * optional string kernelVersion = 4; */ public com.google.protobuf.ByteString getKernelVersionBytes() { java.lang.Object ref = kernelVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kernelVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OSIMAGE_FIELD_NUMBER = 5; private volatile java.lang.Object osImage_; /** * * *
     * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
     * 
* * optional string osImage = 5; */ public boolean hasOsImage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
     * 
* * optional string osImage = 5; */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; 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()) { osImage_ = s; } return s; } } /** * * *
     * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
     * 
* * optional string osImage = 5; */ public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTAINERRUNTIMEVERSION_FIELD_NUMBER = 6; private volatile java.lang.Object containerRuntimeVersion_; /** * * *
     * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
     * 
* * optional string containerRuntimeVersion = 6; */ public boolean hasContainerRuntimeVersion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
     * 
* * optional string containerRuntimeVersion = 6; */ public java.lang.String getContainerRuntimeVersion() { java.lang.Object ref = containerRuntimeVersion_; 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()) { containerRuntimeVersion_ = s; } return s; } } /** * * *
     * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
     * 
* * optional string containerRuntimeVersion = 6; */ public com.google.protobuf.ByteString getContainerRuntimeVersionBytes() { java.lang.Object ref = containerRuntimeVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerRuntimeVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KUBELETVERSION_FIELD_NUMBER = 7; private volatile java.lang.Object kubeletVersion_; /** * * *
     * Kubelet Version reported by the node.
     * 
* * optional string kubeletVersion = 7; */ public boolean hasKubeletVersion() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Kubelet Version reported by the node.
     * 
* * optional string kubeletVersion = 7; */ public java.lang.String getKubeletVersion() { java.lang.Object ref = kubeletVersion_; 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()) { kubeletVersion_ = s; } return s; } } /** * * *
     * Kubelet Version reported by the node.
     * 
* * optional string kubeletVersion = 7; */ public com.google.protobuf.ByteString getKubeletVersionBytes() { java.lang.Object ref = kubeletVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubeletVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KUBEPROXYVERSION_FIELD_NUMBER = 8; private volatile java.lang.Object kubeProxyVersion_; /** * * *
     * KubeProxy Version reported by the node.
     * 
* * optional string kubeProxyVersion = 8; */ public boolean hasKubeProxyVersion() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * KubeProxy Version reported by the node.
     * 
* * optional string kubeProxyVersion = 8; */ public java.lang.String getKubeProxyVersion() { java.lang.Object ref = kubeProxyVersion_; 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()) { kubeProxyVersion_ = s; } return s; } } /** * * *
     * KubeProxy Version reported by the node.
     * 
* * optional string kubeProxyVersion = 8; */ public com.google.protobuf.ByteString getKubeProxyVersionBytes() { java.lang.Object ref = kubeProxyVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubeProxyVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATINGSYSTEM_FIELD_NUMBER = 9; private volatile java.lang.Object operatingSystem_; /** * * *
     * The Operating System reported by the node
     * 
* * optional string operatingSystem = 9; */ public boolean hasOperatingSystem() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * The Operating System reported by the node
     * 
* * optional string operatingSystem = 9; */ public java.lang.String getOperatingSystem() { java.lang.Object ref = operatingSystem_; 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()) { operatingSystem_ = s; } return s; } } /** * * *
     * The Operating System reported by the node
     * 
* * optional string operatingSystem = 9; */ public com.google.protobuf.ByteString getOperatingSystemBytes() { java.lang.Object ref = operatingSystem_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operatingSystem_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARCHITECTURE_FIELD_NUMBER = 10; private volatile java.lang.Object architecture_; /** * * *
     * The Architecture reported by the node
     * 
* * optional string architecture = 10; */ public boolean hasArchitecture() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * The Architecture reported by the node
     * 
* * optional string architecture = 10; */ public java.lang.String getArchitecture() { java.lang.Object ref = architecture_; 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()) { architecture_ = s; } return s; } } /** * * *
     * The Architecture reported by the node
     * 
* * optional string architecture = 10; */ public com.google.protobuf.ByteString getArchitectureBytes() { java.lang.Object ref = architecture_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); architecture_ = 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, machineID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, systemUUID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bootID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kernelVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, osImage_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, containerRuntimeVersion_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, kubeletVersion_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kubeProxyVersion_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, operatingSystem_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, architecture_); } 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, machineID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, systemUUID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bootID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kernelVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, osImage_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, containerRuntimeVersion_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kubeletVersion_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kubeProxyVersion_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, operatingSystem_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, architecture_); } 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.V1.NodeSystemInfo)) { return super.equals(obj); } io.kubernetes.client.proto.V1.NodeSystemInfo other = (io.kubernetes.client.proto.V1.NodeSystemInfo) obj; boolean result = true; result = result && (hasMachineID() == other.hasMachineID()); if (hasMachineID()) { result = result && getMachineID().equals(other.getMachineID()); } result = result && (hasSystemUUID() == other.hasSystemUUID()); if (hasSystemUUID()) { result = result && getSystemUUID().equals(other.getSystemUUID()); } result = result && (hasBootID() == other.hasBootID()); if (hasBootID()) { result = result && getBootID().equals(other.getBootID()); } result = result && (hasKernelVersion() == other.hasKernelVersion()); if (hasKernelVersion()) { result = result && getKernelVersion().equals(other.getKernelVersion()); } result = result && (hasOsImage() == other.hasOsImage()); if (hasOsImage()) { result = result && getOsImage().equals(other.getOsImage()); } result = result && (hasContainerRuntimeVersion() == other.hasContainerRuntimeVersion()); if (hasContainerRuntimeVersion()) { result = result && getContainerRuntimeVersion().equals(other.getContainerRuntimeVersion()); } result = result && (hasKubeletVersion() == other.hasKubeletVersion()); if (hasKubeletVersion()) { result = result && getKubeletVersion().equals(other.getKubeletVersion()); } result = result && (hasKubeProxyVersion() == other.hasKubeProxyVersion()); if (hasKubeProxyVersion()) { result = result && getKubeProxyVersion().equals(other.getKubeProxyVersion()); } result = result && (hasOperatingSystem() == other.hasOperatingSystem()); if (hasOperatingSystem()) { result = result && getOperatingSystem().equals(other.getOperatingSystem()); } result = result && (hasArchitecture() == other.hasArchitecture()); if (hasArchitecture()) { result = result && getArchitecture().equals(other.getArchitecture()); } 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 (hasMachineID()) { hash = (37 * hash) + MACHINEID_FIELD_NUMBER; hash = (53 * hash) + getMachineID().hashCode(); } if (hasSystemUUID()) { hash = (37 * hash) + SYSTEMUUID_FIELD_NUMBER; hash = (53 * hash) + getSystemUUID().hashCode(); } if (hasBootID()) { hash = (37 * hash) + BOOTID_FIELD_NUMBER; hash = (53 * hash) + getBootID().hashCode(); } if (hasKernelVersion()) { hash = (37 * hash) + KERNELVERSION_FIELD_NUMBER; hash = (53 * hash) + getKernelVersion().hashCode(); } if (hasOsImage()) { hash = (37 * hash) + OSIMAGE_FIELD_NUMBER; hash = (53 * hash) + getOsImage().hashCode(); } if (hasContainerRuntimeVersion()) { hash = (37 * hash) + CONTAINERRUNTIMEVERSION_FIELD_NUMBER; hash = (53 * hash) + getContainerRuntimeVersion().hashCode(); } if (hasKubeletVersion()) { hash = (37 * hash) + KUBELETVERSION_FIELD_NUMBER; hash = (53 * hash) + getKubeletVersion().hashCode(); } if (hasKubeProxyVersion()) { hash = (37 * hash) + KUBEPROXYVERSION_FIELD_NUMBER; hash = (53 * hash) + getKubeProxyVersion().hashCode(); } if (hasOperatingSystem()) { hash = (37 * hash) + OPERATINGSYSTEM_FIELD_NUMBER; hash = (53 * hash) + getOperatingSystem().hashCode(); } if (hasArchitecture()) { hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; hash = (53 * hash) + getArchitecture().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.NodeSystemInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSystemInfo 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.V1.NodeSystemInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSystemInfo 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.V1.NodeSystemInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.NodeSystemInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.NodeSystemInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSystemInfo 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.V1.NodeSystemInfo parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSystemInfo 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.V1.NodeSystemInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.NodeSystemInfo 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.V1.NodeSystemInfo 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; } /** * * *
     * NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.NodeSystemInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeSystemInfo) io.kubernetes.client.proto.V1.NodeSystemInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_NodeSystemInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.NodeSystemInfo.class, io.kubernetes.client.proto.V1.NodeSystemInfo.Builder.class); } // Construct using io.kubernetes.client.proto.V1.NodeSystemInfo.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(); machineID_ = ""; bitField0_ = (bitField0_ & ~0x00000001); systemUUID_ = ""; bitField0_ = (bitField0_ & ~0x00000002); bootID_ = ""; bitField0_ = (bitField0_ & ~0x00000004); kernelVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000008); osImage_ = ""; bitField0_ = (bitField0_ & ~0x00000010); containerRuntimeVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000020); kubeletVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000040); kubeProxyVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000080); operatingSystem_ = ""; bitField0_ = (bitField0_ & ~0x00000100); architecture_ = ""; bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSystemInfo getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSystemInfo build() { io.kubernetes.client.proto.V1.NodeSystemInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.NodeSystemInfo buildPartial() { io.kubernetes.client.proto.V1.NodeSystemInfo result = new io.kubernetes.client.proto.V1.NodeSystemInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.machineID_ = machineID_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.systemUUID_ = systemUUID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.bootID_ = bootID_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.kernelVersion_ = kernelVersion_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.osImage_ = osImage_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.containerRuntimeVersion_ = containerRuntimeVersion_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.kubeletVersion_ = kubeletVersion_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.kubeProxyVersion_ = kubeProxyVersion_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.operatingSystem_ = operatingSystem_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.architecture_ = architecture_; 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.V1.NodeSystemInfo) { return mergeFrom((io.kubernetes.client.proto.V1.NodeSystemInfo) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeSystemInfo other) { if (other == io.kubernetes.client.proto.V1.NodeSystemInfo.getDefaultInstance()) return this; if (other.hasMachineID()) { bitField0_ |= 0x00000001; machineID_ = other.machineID_; onChanged(); } if (other.hasSystemUUID()) { bitField0_ |= 0x00000002; systemUUID_ = other.systemUUID_; onChanged(); } if (other.hasBootID()) { bitField0_ |= 0x00000004; bootID_ = other.bootID_; onChanged(); } if (other.hasKernelVersion()) { bitField0_ |= 0x00000008; kernelVersion_ = other.kernelVersion_; onChanged(); } if (other.hasOsImage()) { bitField0_ |= 0x00000010; osImage_ = other.osImage_; onChanged(); } if (other.hasContainerRuntimeVersion()) { bitField0_ |= 0x00000020; containerRuntimeVersion_ = other.containerRuntimeVersion_; onChanged(); } if (other.hasKubeletVersion()) { bitField0_ |= 0x00000040; kubeletVersion_ = other.kubeletVersion_; onChanged(); } if (other.hasKubeProxyVersion()) { bitField0_ |= 0x00000080; kubeProxyVersion_ = other.kubeProxyVersion_; onChanged(); } if (other.hasOperatingSystem()) { bitField0_ |= 0x00000100; operatingSystem_ = other.operatingSystem_; onChanged(); } if (other.hasArchitecture()) { bitField0_ |= 0x00000200; architecture_ = other.architecture_; 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.V1.NodeSystemInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.NodeSystemInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object machineID_ = ""; /** * * *
       * MachineID reported by the node. For unique machine identification
       * in the cluster this field is preferred. Learn more from man(5)
       * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
       * 
* * optional string machineID = 1; */ public boolean hasMachineID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * MachineID reported by the node. For unique machine identification
       * in the cluster this field is preferred. Learn more from man(5)
       * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
       * 
* * optional string machineID = 1; */ public java.lang.String getMachineID() { java.lang.Object ref = machineID_; 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()) { machineID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * MachineID reported by the node. For unique machine identification
       * in the cluster this field is preferred. Learn more from man(5)
       * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
       * 
* * optional string machineID = 1; */ public com.google.protobuf.ByteString getMachineIDBytes() { java.lang.Object ref = machineID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * MachineID reported by the node. For unique machine identification
       * in the cluster this field is preferred. Learn more from man(5)
       * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
       * 
* * optional string machineID = 1; */ public Builder setMachineID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; machineID_ = value; onChanged(); return this; } /** * * *
       * MachineID reported by the node. For unique machine identification
       * in the cluster this field is preferred. Learn more from man(5)
       * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
       * 
* * optional string machineID = 1; */ public Builder clearMachineID() { bitField0_ = (bitField0_ & ~0x00000001); machineID_ = getDefaultInstance().getMachineID(); onChanged(); return this; } /** * * *
       * MachineID reported by the node. For unique machine identification
       * in the cluster this field is preferred. Learn more from man(5)
       * machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
       * 
* * optional string machineID = 1; */ public Builder setMachineIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; machineID_ = value; onChanged(); return this; } private java.lang.Object systemUUID_ = ""; /** * * *
       * SystemUUID reported by the node. For unique machine identification
       * MachineID is preferred. This field is specific to Red Hat hosts
       * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
       * 
* * optional string systemUUID = 2; */ public boolean hasSystemUUID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * SystemUUID reported by the node. For unique machine identification
       * MachineID is preferred. This field is specific to Red Hat hosts
       * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
       * 
* * optional string systemUUID = 2; */ public java.lang.String getSystemUUID() { java.lang.Object ref = systemUUID_; 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()) { systemUUID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * SystemUUID reported by the node. For unique machine identification
       * MachineID is preferred. This field is specific to Red Hat hosts
       * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
       * 
* * optional string systemUUID = 2; */ public com.google.protobuf.ByteString getSystemUUIDBytes() { java.lang.Object ref = systemUUID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); systemUUID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * SystemUUID reported by the node. For unique machine identification
       * MachineID is preferred. This field is specific to Red Hat hosts
       * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
       * 
* * optional string systemUUID = 2; */ public Builder setSystemUUID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; systemUUID_ = value; onChanged(); return this; } /** * * *
       * SystemUUID reported by the node. For unique machine identification
       * MachineID is preferred. This field is specific to Red Hat hosts
       * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
       * 
* * optional string systemUUID = 2; */ public Builder clearSystemUUID() { bitField0_ = (bitField0_ & ~0x00000002); systemUUID_ = getDefaultInstance().getSystemUUID(); onChanged(); return this; } /** * * *
       * SystemUUID reported by the node. For unique machine identification
       * MachineID is preferred. This field is specific to Red Hat hosts
       * https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
       * 
* * optional string systemUUID = 2; */ public Builder setSystemUUIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; systemUUID_ = value; onChanged(); return this; } private java.lang.Object bootID_ = ""; /** * * *
       * Boot ID reported by the node.
       * 
* * optional string bootID = 3; */ public boolean hasBootID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Boot ID reported by the node.
       * 
* * optional string bootID = 3; */ public java.lang.String getBootID() { java.lang.Object ref = bootID_; 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()) { bootID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Boot ID reported by the node.
       * 
* * optional string bootID = 3; */ public com.google.protobuf.ByteString getBootIDBytes() { java.lang.Object ref = bootID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bootID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Boot ID reported by the node.
       * 
* * optional string bootID = 3; */ public Builder setBootID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; bootID_ = value; onChanged(); return this; } /** * * *
       * Boot ID reported by the node.
       * 
* * optional string bootID = 3; */ public Builder clearBootID() { bitField0_ = (bitField0_ & ~0x00000004); bootID_ = getDefaultInstance().getBootID(); onChanged(); return this; } /** * * *
       * Boot ID reported by the node.
       * 
* * optional string bootID = 3; */ public Builder setBootIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; bootID_ = value; onChanged(); return this; } private java.lang.Object kernelVersion_ = ""; /** * * *
       * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
       * 
* * optional string kernelVersion = 4; */ public boolean hasKernelVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
       * 
* * optional string kernelVersion = 4; */ public java.lang.String getKernelVersion() { java.lang.Object ref = kernelVersion_; 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()) { kernelVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
       * 
* * optional string kernelVersion = 4; */ public com.google.protobuf.ByteString getKernelVersionBytes() { java.lang.Object ref = kernelVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kernelVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
       * 
* * optional string kernelVersion = 4; */ public Builder setKernelVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; kernelVersion_ = value; onChanged(); return this; } /** * * *
       * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
       * 
* * optional string kernelVersion = 4; */ public Builder clearKernelVersion() { bitField0_ = (bitField0_ & ~0x00000008); kernelVersion_ = getDefaultInstance().getKernelVersion(); onChanged(); return this; } /** * * *
       * Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
       * 
* * optional string kernelVersion = 4; */ public Builder setKernelVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; kernelVersion_ = value; onChanged(); return this; } private java.lang.Object osImage_ = ""; /** * * *
       * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
       * 
* * optional string osImage = 5; */ public boolean hasOsImage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
       * 
* * optional string osImage = 5; */ public java.lang.String getOsImage() { java.lang.Object ref = osImage_; 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()) { osImage_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
       * 
* * optional string osImage = 5; */ public com.google.protobuf.ByteString getOsImageBytes() { java.lang.Object ref = osImage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); osImage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
       * 
* * optional string osImage = 5; */ public Builder setOsImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; osImage_ = value; onChanged(); return this; } /** * * *
       * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
       * 
* * optional string osImage = 5; */ public Builder clearOsImage() { bitField0_ = (bitField0_ & ~0x00000010); osImage_ = getDefaultInstance().getOsImage(); onChanged(); return this; } /** * * *
       * OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
       * 
* * optional string osImage = 5; */ public Builder setOsImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; osImage_ = value; onChanged(); return this; } private java.lang.Object containerRuntimeVersion_ = ""; /** * * *
       * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
       * 
* * optional string containerRuntimeVersion = 6; */ public boolean hasContainerRuntimeVersion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
       * 
* * optional string containerRuntimeVersion = 6; */ public java.lang.String getContainerRuntimeVersion() { java.lang.Object ref = containerRuntimeVersion_; 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()) { containerRuntimeVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
       * 
* * optional string containerRuntimeVersion = 6; */ public com.google.protobuf.ByteString getContainerRuntimeVersionBytes() { java.lang.Object ref = containerRuntimeVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerRuntimeVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
       * 
* * optional string containerRuntimeVersion = 6; */ public Builder setContainerRuntimeVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; containerRuntimeVersion_ = value; onChanged(); return this; } /** * * *
       * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
       * 
* * optional string containerRuntimeVersion = 6; */ public Builder clearContainerRuntimeVersion() { bitField0_ = (bitField0_ & ~0x00000020); containerRuntimeVersion_ = getDefaultInstance().getContainerRuntimeVersion(); onChanged(); return this; } /** * * *
       * ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
       * 
* * optional string containerRuntimeVersion = 6; */ public Builder setContainerRuntimeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; containerRuntimeVersion_ = value; onChanged(); return this; } private java.lang.Object kubeletVersion_ = ""; /** * * *
       * Kubelet Version reported by the node.
       * 
* * optional string kubeletVersion = 7; */ public boolean hasKubeletVersion() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Kubelet Version reported by the node.
       * 
* * optional string kubeletVersion = 7; */ public java.lang.String getKubeletVersion() { java.lang.Object ref = kubeletVersion_; 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()) { kubeletVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Kubelet Version reported by the node.
       * 
* * optional string kubeletVersion = 7; */ public com.google.protobuf.ByteString getKubeletVersionBytes() { java.lang.Object ref = kubeletVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubeletVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Kubelet Version reported by the node.
       * 
* * optional string kubeletVersion = 7; */ public Builder setKubeletVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; kubeletVersion_ = value; onChanged(); return this; } /** * * *
       * Kubelet Version reported by the node.
       * 
* * optional string kubeletVersion = 7; */ public Builder clearKubeletVersion() { bitField0_ = (bitField0_ & ~0x00000040); kubeletVersion_ = getDefaultInstance().getKubeletVersion(); onChanged(); return this; } /** * * *
       * Kubelet Version reported by the node.
       * 
* * optional string kubeletVersion = 7; */ public Builder setKubeletVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; kubeletVersion_ = value; onChanged(); return this; } private java.lang.Object kubeProxyVersion_ = ""; /** * * *
       * KubeProxy Version reported by the node.
       * 
* * optional string kubeProxyVersion = 8; */ public boolean hasKubeProxyVersion() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * KubeProxy Version reported by the node.
       * 
* * optional string kubeProxyVersion = 8; */ public java.lang.String getKubeProxyVersion() { java.lang.Object ref = kubeProxyVersion_; 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()) { kubeProxyVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * KubeProxy Version reported by the node.
       * 
* * optional string kubeProxyVersion = 8; */ public com.google.protobuf.ByteString getKubeProxyVersionBytes() { java.lang.Object ref = kubeProxyVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubeProxyVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * KubeProxy Version reported by the node.
       * 
* * optional string kubeProxyVersion = 8; */ public Builder setKubeProxyVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; kubeProxyVersion_ = value; onChanged(); return this; } /** * * *
       * KubeProxy Version reported by the node.
       * 
* * optional string kubeProxyVersion = 8; */ public Builder clearKubeProxyVersion() { bitField0_ = (bitField0_ & ~0x00000080); kubeProxyVersion_ = getDefaultInstance().getKubeProxyVersion(); onChanged(); return this; } /** * * *
       * KubeProxy Version reported by the node.
       * 
* * optional string kubeProxyVersion = 8; */ public Builder setKubeProxyVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; kubeProxyVersion_ = value; onChanged(); return this; } private java.lang.Object operatingSystem_ = ""; /** * * *
       * The Operating System reported by the node
       * 
* * optional string operatingSystem = 9; */ public boolean hasOperatingSystem() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * The Operating System reported by the node
       * 
* * optional string operatingSystem = 9; */ public java.lang.String getOperatingSystem() { java.lang.Object ref = operatingSystem_; 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()) { operatingSystem_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Operating System reported by the node
       * 
* * optional string operatingSystem = 9; */ public com.google.protobuf.ByteString getOperatingSystemBytes() { java.lang.Object ref = operatingSystem_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operatingSystem_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Operating System reported by the node
       * 
* * optional string operatingSystem = 9; */ public Builder setOperatingSystem(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; operatingSystem_ = value; onChanged(); return this; } /** * * *
       * The Operating System reported by the node
       * 
* * optional string operatingSystem = 9; */ public Builder clearOperatingSystem() { bitField0_ = (bitField0_ & ~0x00000100); operatingSystem_ = getDefaultInstance().getOperatingSystem(); onChanged(); return this; } /** * * *
       * The Operating System reported by the node
       * 
* * optional string operatingSystem = 9; */ public Builder setOperatingSystemBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; operatingSystem_ = value; onChanged(); return this; } private java.lang.Object architecture_ = ""; /** * * *
       * The Architecture reported by the node
       * 
* * optional string architecture = 10; */ public boolean hasArchitecture() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * The Architecture reported by the node
       * 
* * optional string architecture = 10; */ public java.lang.String getArchitecture() { java.lang.Object ref = architecture_; 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()) { architecture_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Architecture reported by the node
       * 
* * optional string architecture = 10; */ public com.google.protobuf.ByteString getArchitectureBytes() { java.lang.Object ref = architecture_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); architecture_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Architecture reported by the node
       * 
* * optional string architecture = 10; */ public Builder setArchitecture(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; architecture_ = value; onChanged(); return this; } /** * * *
       * The Architecture reported by the node
       * 
* * optional string architecture = 10; */ public Builder clearArchitecture() { bitField0_ = (bitField0_ & ~0x00000200); architecture_ = getDefaultInstance().getArchitecture(); onChanged(); return this; } /** * * *
       * The Architecture reported by the node
       * 
* * optional string architecture = 10; */ public Builder setArchitectureBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; architecture_ = 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.core.v1.NodeSystemInfo) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeSystemInfo) private static final io.kubernetes.client.proto.V1.NodeSystemInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeSystemInfo(); } public static io.kubernetes.client.proto.V1.NodeSystemInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeSystemInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeSystemInfo(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.V1.NodeSystemInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObjectFieldSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ObjectFieldSelector) com.google.protobuf.MessageOrBuilder { /** * * *
     * Version of the schema the FieldPath is written in terms of, defaults to "v1".
     * +optional
     * 
* * optional string apiVersion = 1; */ boolean hasApiVersion(); /** * * *
     * Version of the schema the FieldPath is written in terms of, defaults to "v1".
     * +optional
     * 
* * optional string apiVersion = 1; */ java.lang.String getApiVersion(); /** * * *
     * Version of the schema the FieldPath is written in terms of, defaults to "v1".
     * +optional
     * 
* * optional string apiVersion = 1; */ com.google.protobuf.ByteString getApiVersionBytes(); /** * * *
     * Path of the field to select in the specified API version.
     * 
* * optional string fieldPath = 2; */ boolean hasFieldPath(); /** * * *
     * Path of the field to select in the specified API version.
     * 
* * optional string fieldPath = 2; */ java.lang.String getFieldPath(); /** * * *
     * Path of the field to select in the specified API version.
     * 
* * optional string fieldPath = 2; */ com.google.protobuf.ByteString getFieldPathBytes(); } /** * * *
   * ObjectFieldSelector selects an APIVersioned field of an object.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ObjectFieldSelector} */ public static final class ObjectFieldSelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ObjectFieldSelector) ObjectFieldSelectorOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectFieldSelector.newBuilder() to construct. private ObjectFieldSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectFieldSelector() { apiVersion_ = ""; fieldPath_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectFieldSelector( 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; apiVersion_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fieldPath_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ObjectFieldSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ObjectFieldSelector.class, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder.class); } private int bitField0_; public static final int APIVERSION_FIELD_NUMBER = 1; private volatile java.lang.Object apiVersion_; /** * * *
     * Version of the schema the FieldPath is written in terms of, defaults to "v1".
     * +optional
     * 
* * optional string apiVersion = 1; */ public boolean hasApiVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Version of the schema the FieldPath is written in terms of, defaults to "v1".
     * +optional
     * 
* * optional string apiVersion = 1; */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { apiVersion_ = s; } return s; } } /** * * *
     * Version of the schema the FieldPath is written in terms of, defaults to "v1".
     * +optional
     * 
* * optional string apiVersion = 1; */ public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELDPATH_FIELD_NUMBER = 2; private volatile java.lang.Object fieldPath_; /** * * *
     * Path of the field to select in the specified API version.
     * 
* * optional string fieldPath = 2; */ public boolean hasFieldPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Path of the field to select in the specified API version.
     * 
* * optional string fieldPath = 2; */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; 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()) { fieldPath_ = s; } return s; } } /** * * *
     * Path of the field to select in the specified API version.
     * 
* * optional string fieldPath = 2; */ public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = 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, apiVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldPath_); } 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, apiVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldPath_); } 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.V1.ObjectFieldSelector)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ObjectFieldSelector other = (io.kubernetes.client.proto.V1.ObjectFieldSelector) obj; boolean result = true; result = result && (hasApiVersion() == other.hasApiVersion()); if (hasApiVersion()) { result = result && getApiVersion().equals(other.getApiVersion()); } result = result && (hasFieldPath() == other.hasFieldPath()); if (hasFieldPath()) { result = result && getFieldPath().equals(other.getFieldPath()); } 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 (hasApiVersion()) { hash = (37 * hash) + APIVERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); } if (hasFieldPath()) { hash = (37 * hash) + FIELDPATH_FIELD_NUMBER; hash = (53 * hash) + getFieldPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ObjectFieldSelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector 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.V1.ObjectFieldSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector 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.V1.ObjectFieldSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector 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.V1.ObjectFieldSelector parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector 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.V1.ObjectFieldSelector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector 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.V1.ObjectFieldSelector 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; } /** * * *
     * ObjectFieldSelector selects an APIVersioned field of an object.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ObjectFieldSelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ObjectFieldSelector) io.kubernetes.client.proto.V1.ObjectFieldSelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ObjectFieldSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ObjectFieldSelector.class, io.kubernetes.client.proto.V1.ObjectFieldSelector.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ObjectFieldSelector.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(); apiVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fieldPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ObjectFieldSelector getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ObjectFieldSelector build() { io.kubernetes.client.proto.V1.ObjectFieldSelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ObjectFieldSelector buildPartial() { io.kubernetes.client.proto.V1.ObjectFieldSelector result = new io.kubernetes.client.proto.V1.ObjectFieldSelector(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.apiVersion_ = apiVersion_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fieldPath_ = fieldPath_; 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.V1.ObjectFieldSelector) { return mergeFrom((io.kubernetes.client.proto.V1.ObjectFieldSelector) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ObjectFieldSelector other) { if (other == io.kubernetes.client.proto.V1.ObjectFieldSelector.getDefaultInstance()) return this; if (other.hasApiVersion()) { bitField0_ |= 0x00000001; apiVersion_ = other.apiVersion_; onChanged(); } if (other.hasFieldPath()) { bitField0_ |= 0x00000002; fieldPath_ = other.fieldPath_; 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.V1.ObjectFieldSelector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ObjectFieldSelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object apiVersion_ = ""; /** * * *
       * Version of the schema the FieldPath is written in terms of, defaults to "v1".
       * +optional
       * 
* * optional string apiVersion = 1; */ public boolean hasApiVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Version of the schema the FieldPath is written in terms of, defaults to "v1".
       * +optional
       * 
* * optional string apiVersion = 1; */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { apiVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Version of the schema the FieldPath is written in terms of, defaults to "v1".
       * +optional
       * 
* * optional string apiVersion = 1; */ public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Version of the schema the FieldPath is written in terms of, defaults to "v1".
       * +optional
       * 
* * optional string apiVersion = 1; */ public Builder setApiVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; apiVersion_ = value; onChanged(); return this; } /** * * *
       * Version of the schema the FieldPath is written in terms of, defaults to "v1".
       * +optional
       * 
* * optional string apiVersion = 1; */ public Builder clearApiVersion() { bitField0_ = (bitField0_ & ~0x00000001); apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** * * *
       * Version of the schema the FieldPath is written in terms of, defaults to "v1".
       * +optional
       * 
* * optional string apiVersion = 1; */ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; apiVersion_ = value; onChanged(); return this; } private java.lang.Object fieldPath_ = ""; /** * * *
       * Path of the field to select in the specified API version.
       * 
* * optional string fieldPath = 2; */ public boolean hasFieldPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Path of the field to select in the specified API version.
       * 
* * optional string fieldPath = 2; */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; 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()) { fieldPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path of the field to select in the specified API version.
       * 
* * optional string fieldPath = 2; */ public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path of the field to select in the specified API version.
       * 
* * optional string fieldPath = 2; */ public Builder setFieldPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fieldPath_ = value; onChanged(); return this; } /** * * *
       * Path of the field to select in the specified API version.
       * 
* * optional string fieldPath = 2; */ public Builder clearFieldPath() { bitField0_ = (bitField0_ & ~0x00000002); fieldPath_ = getDefaultInstance().getFieldPath(); onChanged(); return this; } /** * * *
       * Path of the field to select in the specified API version.
       * 
* * optional string fieldPath = 2; */ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fieldPath_ = 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.core.v1.ObjectFieldSelector) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ObjectFieldSelector) private static final io.kubernetes.client.proto.V1.ObjectFieldSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ObjectFieldSelector(); } public static io.kubernetes.client.proto.V1.ObjectFieldSelector getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectFieldSelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectFieldSelector(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.V1.ObjectFieldSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObjectReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ObjectReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * Kind of the referent.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional string kind = 1; */ boolean hasKind(); /** * * *
     * Kind of the referent.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional string kind = 1; */ java.lang.String getKind(); /** * * *
     * Kind of the referent.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional string kind = 1; */ com.google.protobuf.ByteString getKindBytes(); /** * * *
     * Namespace of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * +optional
     * 
* * optional string namespace = 2; */ boolean hasNamespace(); /** * * *
     * Namespace of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * +optional
     * 
* * optional string namespace = 2; */ java.lang.String getNamespace(); /** * * *
     * Namespace of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * +optional
     * 
* * optional string namespace = 2; */ com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * +optional
     * 
* * optional string name = 3; */ boolean hasName(); /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * +optional
     * 
* * optional string name = 3; */ java.lang.String getName(); /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * +optional
     * 
* * optional string name = 3; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * UID of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
     * +optional
     * 
* * optional string uid = 4; */ boolean hasUid(); /** * * *
     * UID of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
     * +optional
     * 
* * optional string uid = 4; */ java.lang.String getUid(); /** * * *
     * UID of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
     * +optional
     * 
* * optional string uid = 4; */ com.google.protobuf.ByteString getUidBytes(); /** * * *
     * API version of the referent.
     * +optional
     * 
* * optional string apiVersion = 5; */ boolean hasApiVersion(); /** * * *
     * API version of the referent.
     * +optional
     * 
* * optional string apiVersion = 5; */ java.lang.String getApiVersion(); /** * * *
     * API version of the referent.
     * +optional
     * 
* * optional string apiVersion = 5; */ com.google.protobuf.ByteString getApiVersionBytes(); /** * * *
     * Specific resourceVersion to which this reference is made, if any.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
     * +optional
     * 
* * optional string resourceVersion = 6; */ boolean hasResourceVersion(); /** * * *
     * Specific resourceVersion to which this reference is made, if any.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
     * +optional
     * 
* * optional string resourceVersion = 6; */ java.lang.String getResourceVersion(); /** * * *
     * Specific resourceVersion to which this reference is made, if any.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
     * +optional
     * 
* * optional string resourceVersion = 6; */ com.google.protobuf.ByteString getResourceVersionBytes(); /** * * *
     * If referring to a piece of an object instead of an entire object, this string
     * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
     * For example, if the object reference is to a container within a pod, this would take on a value like:
     * "spec.containers{name}" (where "name" refers to the name of the container that triggered
     * the event) or if no container name is specified "spec.containers[2]" (container with
     * index 2 in this pod). This syntax is chosen only to have some well-defined way of
     * referencing a part of an object.
     * TODO: this design is not final and this field is subject to change in the future.
     * +optional
     * 
* * optional string fieldPath = 7; */ boolean hasFieldPath(); /** * * *
     * If referring to a piece of an object instead of an entire object, this string
     * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
     * For example, if the object reference is to a container within a pod, this would take on a value like:
     * "spec.containers{name}" (where "name" refers to the name of the container that triggered
     * the event) or if no container name is specified "spec.containers[2]" (container with
     * index 2 in this pod). This syntax is chosen only to have some well-defined way of
     * referencing a part of an object.
     * TODO: this design is not final and this field is subject to change in the future.
     * +optional
     * 
* * optional string fieldPath = 7; */ java.lang.String getFieldPath(); /** * * *
     * If referring to a piece of an object instead of an entire object, this string
     * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
     * For example, if the object reference is to a container within a pod, this would take on a value like:
     * "spec.containers{name}" (where "name" refers to the name of the container that triggered
     * the event) or if no container name is specified "spec.containers[2]" (container with
     * index 2 in this pod). This syntax is chosen only to have some well-defined way of
     * referencing a part of an object.
     * TODO: this design is not final and this field is subject to change in the future.
     * +optional
     * 
* * optional string fieldPath = 7; */ com.google.protobuf.ByteString getFieldPathBytes(); } /** * * *
   * ObjectReference contains enough information to let you inspect or modify the referred object.
   * ---
   * New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
   *  1. Ignored fields.  It includes many fields which are not generally honored.  For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
   *  2. Invalid usage help.  It is impossible to add specific help for individual usage.  In most embedded usages, there are particular
   *     restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
   *     Those cannot be well described when embedded.
   *  3. Inconsistent validation.  Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
   *  4. The fields are both imprecise and overly precise.  Kind is not a precise mapping to a URL. This can produce ambiguity
   *     during interpretation and require a REST mapping.  In most cases, the dependency is on the group,resource tuple
   *     and the version of the actual struct is irrelevant.
   *  5. We cannot easily change it.  Because this type is embedded in many locations, updates to this type
   *     will affect numerous schemas.  Don't make new APIs embed an underspecified API type they do not control.
   * Instead of using this type, create a locally provided and used type that is well-focused on your reference.
   * For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
   * +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ObjectReference} */ public static final class ObjectReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ObjectReference) ObjectReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectReference.newBuilder() to construct. private ObjectReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectReference() { kind_ = ""; namespace_ = ""; name_ = ""; uid_ = ""; apiVersion_ = ""; resourceVersion_ = ""; fieldPath_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; kind_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; namespace_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; name_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; uid_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; apiVersion_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; resourceVersion_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; fieldPath_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ObjectReference.class, io.kubernetes.client.proto.V1.ObjectReference.Builder.class); } private int bitField0_; public static final int KIND_FIELD_NUMBER = 1; private volatile java.lang.Object kind_; /** * * *
     * Kind of the referent.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional string kind = 1; */ public boolean hasKind() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Kind of the referent.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional string kind = 1; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } } /** * * *
     * Kind of the referent.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional string kind = 1; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * * *
     * Namespace of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * +optional
     * 
* * optional string namespace = 2; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Namespace of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * +optional
     * 
* * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } } /** * * *
     * Namespace of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
     * +optional
     * 
* * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * +optional
     * 
* * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * +optional
     * 
* * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * +optional
     * 
* * optional string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UID_FIELD_NUMBER = 4; private volatile java.lang.Object uid_; /** * * *
     * UID of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
     * +optional
     * 
* * optional string uid = 4; */ public boolean hasUid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * UID of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
     * +optional
     * 
* * optional string uid = 4; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } } /** * * *
     * UID of the referent.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
     * +optional
     * 
* * optional string uid = 4; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APIVERSION_FIELD_NUMBER = 5; private volatile java.lang.Object apiVersion_; /** * * *
     * API version of the referent.
     * +optional
     * 
* * optional string apiVersion = 5; */ public boolean hasApiVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * API version of the referent.
     * +optional
     * 
* * optional string apiVersion = 5; */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { apiVersion_ = s; } return s; } } /** * * *
     * API version of the referent.
     * +optional
     * 
* * optional string apiVersion = 5; */ public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCEVERSION_FIELD_NUMBER = 6; private volatile java.lang.Object resourceVersion_; /** * * *
     * Specific resourceVersion to which this reference is made, if any.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
     * +optional
     * 
* * optional string resourceVersion = 6; */ public boolean hasResourceVersion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Specific resourceVersion to which this reference is made, if any.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
     * +optional
     * 
* * optional string resourceVersion = 6; */ public java.lang.String getResourceVersion() { java.lang.Object ref = resourceVersion_; 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()) { resourceVersion_ = s; } return s; } } /** * * *
     * Specific resourceVersion to which this reference is made, if any.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
     * +optional
     * 
* * optional string resourceVersion = 6; */ public com.google.protobuf.ByteString getResourceVersionBytes() { java.lang.Object ref = resourceVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIELDPATH_FIELD_NUMBER = 7; private volatile java.lang.Object fieldPath_; /** * * *
     * If referring to a piece of an object instead of an entire object, this string
     * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
     * For example, if the object reference is to a container within a pod, this would take on a value like:
     * "spec.containers{name}" (where "name" refers to the name of the container that triggered
     * the event) or if no container name is specified "spec.containers[2]" (container with
     * index 2 in this pod). This syntax is chosen only to have some well-defined way of
     * referencing a part of an object.
     * TODO: this design is not final and this field is subject to change in the future.
     * +optional
     * 
* * optional string fieldPath = 7; */ public boolean hasFieldPath() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * If referring to a piece of an object instead of an entire object, this string
     * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
     * For example, if the object reference is to a container within a pod, this would take on a value like:
     * "spec.containers{name}" (where "name" refers to the name of the container that triggered
     * the event) or if no container name is specified "spec.containers[2]" (container with
     * index 2 in this pod). This syntax is chosen only to have some well-defined way of
     * referencing a part of an object.
     * TODO: this design is not final and this field is subject to change in the future.
     * +optional
     * 
* * optional string fieldPath = 7; */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; 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()) { fieldPath_ = s; } return s; } } /** * * *
     * If referring to a piece of an object instead of an entire object, this string
     * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
     * For example, if the object reference is to a container within a pod, this would take on a value like:
     * "spec.containers{name}" (where "name" refers to the name of the container that triggered
     * the event) or if no container name is specified "spec.containers[2]" (container with
     * index 2 in this pod). This syntax is chosen only to have some well-defined way of
     * referencing a part of an object.
     * TODO: this design is not final and this field is subject to change in the future.
     * +optional
     * 
* * optional string fieldPath = 7; */ public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uid_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, apiVersion_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceVersion_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, fieldPath_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uid_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, apiVersion_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceVersion_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, fieldPath_); } 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.V1.ObjectReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ObjectReference other = (io.kubernetes.client.proto.V1.ObjectReference) obj; boolean result = true; result = result && (hasKind() == other.hasKind()); if (hasKind()) { result = result && getKind().equals(other.getKind()); } result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { result = result && getNamespace().equals(other.getNamespace()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasUid() == other.hasUid()); if (hasUid()) { result = result && getUid().equals(other.getUid()); } result = result && (hasApiVersion() == other.hasApiVersion()); if (hasApiVersion()) { result = result && getApiVersion().equals(other.getApiVersion()); } result = result && (hasResourceVersion() == other.hasResourceVersion()); if (hasResourceVersion()) { result = result && getResourceVersion().equals(other.getResourceVersion()); } result = result && (hasFieldPath() == other.hasFieldPath()); if (hasFieldPath()) { result = result && getFieldPath().equals(other.getFieldPath()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasUid()) { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); } if (hasApiVersion()) { hash = (37 * hash) + APIVERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); } if (hasResourceVersion()) { hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER; hash = (53 * hash) + getResourceVersion().hashCode(); } if (hasFieldPath()) { hash = (37 * hash) + FIELDPATH_FIELD_NUMBER; hash = (53 * hash) + getFieldPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ObjectReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ObjectReference 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.V1.ObjectReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ObjectReference 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.V1.ObjectReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ObjectReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ObjectReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ObjectReference 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.V1.ObjectReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ObjectReference 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.V1.ObjectReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ObjectReference 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.V1.ObjectReference 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; } /** * * *
     * ObjectReference contains enough information to let you inspect or modify the referred object.
     * ---
     * New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
     *  1. Ignored fields.  It includes many fields which are not generally honored.  For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
     *  2. Invalid usage help.  It is impossible to add specific help for individual usage.  In most embedded usages, there are particular
     *     restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
     *     Those cannot be well described when embedded.
     *  3. Inconsistent validation.  Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
     *  4. The fields are both imprecise and overly precise.  Kind is not a precise mapping to a URL. This can produce ambiguity
     *     during interpretation and require a REST mapping.  In most cases, the dependency is on the group,resource tuple
     *     and the version of the actual struct is irrelevant.
     *  5. We cannot easily change it.  Because this type is embedded in many locations, updates to this type
     *     will affect numerous schemas.  Don't make new APIs embed an underspecified API type they do not control.
     * Instead of using this type, create a locally provided and used type that is well-focused on your reference.
     * For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
     * +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ObjectReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ObjectReference) io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ObjectReference.class, io.kubernetes.client.proto.V1.ObjectReference.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ObjectReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); kind_ = ""; bitField0_ = (bitField0_ & ~0x00000001); namespace_ = ""; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); uid_ = ""; bitField0_ = (bitField0_ & ~0x00000008); apiVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000010); resourceVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000020); fieldPath_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ObjectReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ObjectReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ObjectReference build() { io.kubernetes.client.proto.V1.ObjectReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ObjectReference buildPartial() { io.kubernetes.client.proto.V1.ObjectReference result = new io.kubernetes.client.proto.V1.ObjectReference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.kind_ = kind_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.namespace_ = namespace_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.uid_ = uid_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.apiVersion_ = apiVersion_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.resourceVersion_ = resourceVersion_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.fieldPath_ = fieldPath_; 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.V1.ObjectReference) { return mergeFrom((io.kubernetes.client.proto.V1.ObjectReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ObjectReference other) { if (other == io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) return this; if (other.hasKind()) { bitField0_ |= 0x00000001; kind_ = other.kind_; onChanged(); } if (other.hasNamespace()) { bitField0_ |= 0x00000002; namespace_ = other.namespace_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } if (other.hasUid()) { bitField0_ |= 0x00000008; uid_ = other.uid_; onChanged(); } if (other.hasApiVersion()) { bitField0_ |= 0x00000010; apiVersion_ = other.apiVersion_; onChanged(); } if (other.hasResourceVersion()) { bitField0_ |= 0x00000020; resourceVersion_ = other.resourceVersion_; onChanged(); } if (other.hasFieldPath()) { bitField0_ |= 0x00000040; fieldPath_ = other.fieldPath_; 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.V1.ObjectReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ObjectReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object kind_ = ""; /** * * *
       * Kind of the referent.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional string kind = 1; */ public boolean hasKind() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Kind of the referent.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional string kind = 1; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Kind of the referent.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional string kind = 1; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Kind of the referent.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional string kind = 1; */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; kind_ = value; onChanged(); return this; } /** * * *
       * Kind of the referent.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional string kind = 1; */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000001); kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** * * *
       * Kind of the referent.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional string kind = 1; */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; kind_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * * *
       * Namespace of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * +optional
       * 
* * optional string namespace = 2; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Namespace of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * +optional
       * 
* * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Namespace of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * +optional
       * 
* * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Namespace of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * +optional
       * 
* * optional string namespace = 2; */ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; namespace_ = value; onChanged(); return this; } /** * * *
       * Namespace of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * +optional
       * 
* * optional string namespace = 2; */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000002); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * * *
       * Namespace of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
       * +optional
       * 
* * optional string namespace = 2; */ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; namespace_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * +optional
       * 
* * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * +optional
       * 
* * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * +optional
       * 
* * optional string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * +optional
       * 
* * optional string name = 3; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * +optional
       * 
* * optional string name = 3; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * +optional
       * 
* * optional string name = 3; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } private java.lang.Object uid_ = ""; /** * * *
       * UID of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
       * +optional
       * 
* * optional string uid = 4; */ public boolean hasUid() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * UID of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
       * +optional
       * 
* * optional string uid = 4; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * UID of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
       * +optional
       * 
* * optional string uid = 4; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * UID of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
       * +optional
       * 
* * optional string uid = 4; */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; uid_ = value; onChanged(); return this; } /** * * *
       * UID of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
       * +optional
       * 
* * optional string uid = 4; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000008); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * * *
       * UID of the referent.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
       * +optional
       * 
* * optional string uid = 4; */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; uid_ = value; onChanged(); return this; } private java.lang.Object apiVersion_ = ""; /** * * *
       * API version of the referent.
       * +optional
       * 
* * optional string apiVersion = 5; */ public boolean hasApiVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * API version of the referent.
       * +optional
       * 
* * optional string apiVersion = 5; */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { apiVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * API version of the referent.
       * +optional
       * 
* * optional string apiVersion = 5; */ public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * API version of the referent.
       * +optional
       * 
* * optional string apiVersion = 5; */ public Builder setApiVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; apiVersion_ = value; onChanged(); return this; } /** * * *
       * API version of the referent.
       * +optional
       * 
* * optional string apiVersion = 5; */ public Builder clearApiVersion() { bitField0_ = (bitField0_ & ~0x00000010); apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** * * *
       * API version of the referent.
       * +optional
       * 
* * optional string apiVersion = 5; */ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; apiVersion_ = value; onChanged(); return this; } private java.lang.Object resourceVersion_ = ""; /** * * *
       * Specific resourceVersion to which this reference is made, if any.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       * +optional
       * 
* * optional string resourceVersion = 6; */ public boolean hasResourceVersion() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Specific resourceVersion to which this reference is made, if any.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       * +optional
       * 
* * optional string resourceVersion = 6; */ public java.lang.String getResourceVersion() { java.lang.Object ref = resourceVersion_; 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()) { resourceVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Specific resourceVersion to which this reference is made, if any.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       * +optional
       * 
* * optional string resourceVersion = 6; */ public com.google.protobuf.ByteString getResourceVersionBytes() { java.lang.Object ref = resourceVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Specific resourceVersion to which this reference is made, if any.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       * +optional
       * 
* * optional string resourceVersion = 6; */ public Builder setResourceVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; resourceVersion_ = value; onChanged(); return this; } /** * * *
       * Specific resourceVersion to which this reference is made, if any.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       * +optional
       * 
* * optional string resourceVersion = 6; */ public Builder clearResourceVersion() { bitField0_ = (bitField0_ & ~0x00000020); resourceVersion_ = getDefaultInstance().getResourceVersion(); onChanged(); return this; } /** * * *
       * Specific resourceVersion to which this reference is made, if any.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
       * +optional
       * 
* * optional string resourceVersion = 6; */ public Builder setResourceVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; resourceVersion_ = value; onChanged(); return this; } private java.lang.Object fieldPath_ = ""; /** * * *
       * If referring to a piece of an object instead of an entire object, this string
       * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
       * For example, if the object reference is to a container within a pod, this would take on a value like:
       * "spec.containers{name}" (where "name" refers to the name of the container that triggered
       * the event) or if no container name is specified "spec.containers[2]" (container with
       * index 2 in this pod). This syntax is chosen only to have some well-defined way of
       * referencing a part of an object.
       * TODO: this design is not final and this field is subject to change in the future.
       * +optional
       * 
* * optional string fieldPath = 7; */ public boolean hasFieldPath() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * If referring to a piece of an object instead of an entire object, this string
       * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
       * For example, if the object reference is to a container within a pod, this would take on a value like:
       * "spec.containers{name}" (where "name" refers to the name of the container that triggered
       * the event) or if no container name is specified "spec.containers[2]" (container with
       * index 2 in this pod). This syntax is chosen only to have some well-defined way of
       * referencing a part of an object.
       * TODO: this design is not final and this field is subject to change in the future.
       * +optional
       * 
* * optional string fieldPath = 7; */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; 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()) { fieldPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * If referring to a piece of an object instead of an entire object, this string
       * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
       * For example, if the object reference is to a container within a pod, this would take on a value like:
       * "spec.containers{name}" (where "name" refers to the name of the container that triggered
       * the event) or if no container name is specified "spec.containers[2]" (container with
       * index 2 in this pod). This syntax is chosen only to have some well-defined way of
       * referencing a part of an object.
       * TODO: this design is not final and this field is subject to change in the future.
       * +optional
       * 
* * optional string fieldPath = 7; */ public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * If referring to a piece of an object instead of an entire object, this string
       * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
       * For example, if the object reference is to a container within a pod, this would take on a value like:
       * "spec.containers{name}" (where "name" refers to the name of the container that triggered
       * the event) or if no container name is specified "spec.containers[2]" (container with
       * index 2 in this pod). This syntax is chosen only to have some well-defined way of
       * referencing a part of an object.
       * TODO: this design is not final and this field is subject to change in the future.
       * +optional
       * 
* * optional string fieldPath = 7; */ public Builder setFieldPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; fieldPath_ = value; onChanged(); return this; } /** * * *
       * If referring to a piece of an object instead of an entire object, this string
       * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
       * For example, if the object reference is to a container within a pod, this would take on a value like:
       * "spec.containers{name}" (where "name" refers to the name of the container that triggered
       * the event) or if no container name is specified "spec.containers[2]" (container with
       * index 2 in this pod). This syntax is chosen only to have some well-defined way of
       * referencing a part of an object.
       * TODO: this design is not final and this field is subject to change in the future.
       * +optional
       * 
* * optional string fieldPath = 7; */ public Builder clearFieldPath() { bitField0_ = (bitField0_ & ~0x00000040); fieldPath_ = getDefaultInstance().getFieldPath(); onChanged(); return this; } /** * * *
       * If referring to a piece of an object instead of an entire object, this string
       * should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
       * For example, if the object reference is to a container within a pod, this would take on a value like:
       * "spec.containers{name}" (where "name" refers to the name of the container that triggered
       * the event) or if no container name is specified "spec.containers[2]" (container with
       * index 2 in this pod). This syntax is chosen only to have some well-defined way of
       * referencing a part of an object.
       * TODO: this design is not final and this field is subject to change in the future.
       * +optional
       * 
* * optional string fieldPath = 7; */ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; fieldPath_ = 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.core.v1.ObjectReference) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ObjectReference) private static final io.kubernetes.client.proto.V1.ObjectReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ObjectReference(); } public static io.kubernetes.client.proto.V1.ObjectReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectReference(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.V1.ObjectReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolume) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines a specification of a persistent volume owned by the cluster.
     * Provisioned by an administrator.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines a specification of a persistent volume owned by the cluster.
     * Provisioned by an administrator.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeSpec getSpec(); /** * * *
     * Spec defines a specification of a persistent volume owned by the cluster.
     * Provisioned by an administrator.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Status represents the current information/status for the persistent volume.
     * Populated by the system.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ boolean hasStatus(); /** * * *
     * Status represents the current information/status for the persistent volume.
     * Populated by the system.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ io.kubernetes.client.proto.V1.PersistentVolumeStatus getStatus(); /** * * *
     * Status represents the current information/status for the persistent volume.
     * Populated by the system.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * PersistentVolume (PV) is a storage resource provisioned by an administrator.
   * It is analogous to a node.
   * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolume} */ public static final class PersistentVolume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolume) PersistentVolumeOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolume.newBuilder() to construct. private PersistentVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolume() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolume( 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.V1.PersistentVolumeSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeStatus.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolume.class, io.kubernetes.client.proto.V1.PersistentVolume.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PersistentVolumeSpec spec_; /** * * *
     * Spec defines a specification of a persistent volume owned by the cluster.
     * Provisioned by an administrator.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines a specification of a persistent volume owned by the cluster.
     * Provisioned by an administrator.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines a specification of a persistent volume owned by the cluster.
     * Provisioned by an administrator.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.PersistentVolumeStatus status_; /** * * *
     * Status represents the current information/status for the persistent volume.
     * Populated by the system.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Status represents the current information/status for the persistent volume.
     * Populated by the system.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeStatus.getDefaultInstance() : status_; } /** * * *
     * Status represents the current information/status for the persistent volume.
     * Populated by the system.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeStatus.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.V1.PersistentVolume)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolume other = (io.kubernetes.client.proto.V1.PersistentVolume) 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.V1.PersistentVolume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolume 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.V1.PersistentVolume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolume 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.V1.PersistentVolume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolume parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolume 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.V1.PersistentVolume parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolume 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.V1.PersistentVolume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolume 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.V1.PersistentVolume 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; } /** * * *
     * PersistentVolume (PV) is a storage resource provisioned by an administrator.
     * It is analogous to a node.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolume) io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolume.class, io.kubernetes.client.proto.V1.PersistentVolume.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolume.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolume getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolume.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolume build() { io.kubernetes.client.proto.V1.PersistentVolume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolume buildPartial() { io.kubernetes.client.proto.V1.PersistentVolume result = new io.kubernetes.client.proto.V1.PersistentVolume(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.V1.PersistentVolume) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolume) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolume other) { if (other == io.kubernetes.client.proto.V1.PersistentVolume.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.V1.PersistentVolume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.PersistentVolumeSpec spec_ = 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> specBuilder_; /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PersistentVolumeSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.PersistentVolumeSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.PersistentVolumeSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines a specification of a persistent volume owned by the cluster.
       * Provisioned by an administrator.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSpec spec = 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> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSpec, io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.PersistentVolumeStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeStatus, io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder, io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder> statusBuilder_; /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.PersistentVolumeStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.PersistentVolumeStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.PersistentVolumeStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.PersistentVolumeStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeStatus.getDefaultInstance() : status_; } } /** * * *
       * Status represents the current information/status for the persistent volume.
       * Populated by the system.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeStatus, io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder, io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeStatus, io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder, io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder>( 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.core.v1.PersistentVolume) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolume) private static final io.kubernetes.client.proto.V1.PersistentVolume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolume(); } public static io.kubernetes.client.proto.V1.PersistentVolume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolume(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.V1.PersistentVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaim) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the desired characteristics of a volume requested by a pod author.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the desired characteristics of a volume requested by a pod author.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getSpec(); /** * * *
     * Spec defines the desired characteristics of a volume requested by a pod author.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Status represents the current information/status of a persistent volume claim.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ boolean hasStatus(); /** * * *
     * Status represents the current information/status of a persistent volume claim.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus getStatus(); /** * * *
     * Status represents the current information/status of a persistent volume claim.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * PersistentVolumeClaim is a user's request for and claim to a persistent volume
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaim} */ public static final class PersistentVolumeClaim extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaim) PersistentVolumeClaimOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaim.newBuilder() to construct. private PersistentVolumeClaim(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaim() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaim( 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.V1.PersistentVolumeClaimSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaim.class, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec spec_; /** * * *
     * Spec defines the desired characteristics of a volume requested by a pod author.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the desired characteristics of a volume requested by a pod author.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the desired characteristics of a volume requested by a pod author.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus status_; /** * * *
     * Status represents the current information/status of a persistent volume claim.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Status represents the current information/status of a persistent volume claim.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.getDefaultInstance() : status_; } /** * * *
     * Status represents the current information/status of a persistent volume claim.
     * Read-only.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.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.V1.PersistentVolumeClaim)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaim other = (io.kubernetes.client.proto.V1.PersistentVolumeClaim) 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.V1.PersistentVolumeClaim parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim 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.V1.PersistentVolumeClaim parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim 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.V1.PersistentVolumeClaim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim 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.V1.PersistentVolumeClaim parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim 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.V1.PersistentVolumeClaim parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim 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.V1.PersistentVolumeClaim 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; } /** * * *
     * PersistentVolumeClaim is a user's request for and claim to a persistent volume
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaim} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaim) io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaim.class, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeClaim.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaim getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaim.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaim build() { io.kubernetes.client.proto.V1.PersistentVolumeClaim result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaim buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaim result = new io.kubernetes.client.proto.V1.PersistentVolumeClaim(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.V1.PersistentVolumeClaim) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaim) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeClaim other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaim.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.V1.PersistentVolumeClaim parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaim) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the desired characteristics of a volume requested by a pod author.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder> statusBuilder_; /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus .getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.getDefaultInstance() : status_; } } /** * * *
       * Status represents the current information/status of a persistent volume claim.
       * Read-only.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder>( 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.core.v1.PersistentVolumeClaim) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaim) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaim DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaim(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaim getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaim parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaim(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.V1.PersistentVolumeClaim getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaimCondition) com.google.protobuf.MessageOrBuilder { /** optional string type = 1; */ boolean hasType(); /** optional string type = 1; */ java.lang.String getType(); /** optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** optional string status = 2; */ boolean hasStatus(); /** optional string status = 2; */ java.lang.String getStatus(); /** optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ boolean hasLastProbeTime(); /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ io.kubernetes.client.proto.Meta.Time getLastProbeTime(); /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastProbeTimeOrBuilder(); /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ boolean hasLastTransitionTime(); /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); /** * * *
     * Unique, this should be a short, machine understandable string that gives the reason
     * for condition's last transition. If it reports "ResizeStarted" that means the underlying
     * persistent volume is being resized.
     * +optional
     * 
* * optional string reason = 5; */ boolean hasReason(); /** * * *
     * Unique, this should be a short, machine understandable string that gives the reason
     * for condition's last transition. If it reports "ResizeStarted" that means the underlying
     * persistent volume is being resized.
     * +optional
     * 
* * optional string reason = 5; */ java.lang.String getReason(); /** * * *
     * Unique, this should be a short, machine understandable string that gives the reason
     * for condition's last transition. If it reports "ResizeStarted" that means the underlying
     * persistent volume is being resized.
     * +optional
     * 
* * optional string reason = 5; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ boolean hasMessage(); /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ java.lang.String getMessage(); /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * PersistentVolumeClaimCondition contails details about state of pvc
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimCondition} */ public static final class PersistentVolumeClaimCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaimCondition) PersistentVolumeClaimConditionOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaimCondition.newBuilder() to construct. private PersistentVolumeClaimCondition( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaimCondition() { type_ = ""; status_ = ""; reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaimCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 26: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastProbeTime_.toBuilder(); } lastProbeTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastProbeTime_); lastProbeTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = lastTransitionTime_.toBuilder(); } lastTransitionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTransitionTime_); lastTransitionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; reason_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; 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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LASTPROBETIME_FIELD_NUMBER = 3; private io.kubernetes.client.proto.Meta.Time lastProbeTime_; /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public boolean hasLastProbeTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastProbeTime() { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastProbeTimeOrBuilder() { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } public static final int REASON_FIELD_NUMBER = 5; private volatile java.lang.Object reason_; /** * * *
     * Unique, this should be a short, machine understandable string that gives the reason
     * for condition's last transition. If it reports "ResizeStarted" that means the underlying
     * persistent volume is being resized.
     * +optional
     * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Unique, this should be a short, machine understandable string that gives the reason
     * for condition's last transition. If it reports "ResizeStarted" that means the underlying
     * persistent volume is being resized.
     * +optional
     * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * Unique, this should be a short, machine understandable string that gives the reason
     * for condition's last transition. If it reports "ResizeStarted" that means the underlying
     * persistent volume is being resized.
     * +optional
     * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object message_; /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ 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; } } /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastProbeTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastProbeTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.V1.PersistentVolumeClaimCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition other = (io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasLastProbeTime() == other.hasLastProbeTime()); if (hasLastProbeTime()) { result = result && getLastProbeTime().equals(other.getLastProbeTime()); } result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); if (hasLastTransitionTime()) { result = result && getLastTransitionTime().equals(other.getLastTransitionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasLastProbeTime()) { hash = (37 * hash) + LASTPROBETIME_FIELD_NUMBER; hash = (53 * hash) + getLastProbeTime().hashCode(); } if (hasLastTransitionTime()) { hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransitionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition 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.V1.PersistentVolumeClaimCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition 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.V1.PersistentVolumeClaimCondition parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition 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.V1.PersistentVolumeClaimCondition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition 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.V1.PersistentVolumeClaimCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition 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.V1.PersistentVolumeClaimCondition 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; } /** * * *
     * PersistentVolumeClaimCondition contails details about state of pvc
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaimCondition) io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastProbeTimeFieldBuilder(); getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (lastProbeTimeBuilder_ == null) { lastProbeTime_ = null; } else { lastProbeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000010); message_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition build() { io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastProbeTimeBuilder_ == null) { result.lastProbeTime_ = lastProbeTime_; } else { result.lastProbeTime_ = lastProbeTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (lastTransitionTimeBuilder_ == null) { result.lastTransitionTime_ = lastTransitionTime_; } else { result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } 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.V1.PersistentVolumeClaimCondition) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasLastProbeTime()) { mergeLastProbeTime(other.getLastProbeTime()); } if (other.hasLastTransitionTime()) { mergeLastTransitionTime(other.getLastTransitionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000010; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000020; 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.V1.PersistentVolumeClaimCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time lastProbeTime_ = 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> lastProbeTimeBuilder_; /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public boolean hasLastProbeTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastProbeTime() { if (lastProbeTimeBuilder_ == null) { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } else { return lastProbeTimeBuilder_.getMessage(); } } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder setLastProbeTime(io.kubernetes.client.proto.Meta.Time value) { if (lastProbeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastProbeTime_ = value; onChanged(); } else { lastProbeTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder setLastProbeTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastProbeTimeBuilder_ == null) { lastProbeTime_ = builderForValue.build(); onChanged(); } else { lastProbeTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder mergeLastProbeTime(io.kubernetes.client.proto.Meta.Time value) { if (lastProbeTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastProbeTime_ != null && lastProbeTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastProbeTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastProbeTime_) .mergeFrom(value) .buildPartial(); } else { lastProbeTime_ = value; } onChanged(); } else { lastProbeTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder clearLastProbeTime() { if (lastProbeTimeBuilder_ == null) { lastProbeTime_ = null; onChanged(); } else { lastProbeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastProbeTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastProbeTimeFieldBuilder().getBuilder(); } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastProbeTimeOrBuilder() { if (lastProbeTimeBuilder_ != null) { return lastProbeTimeBuilder_.getMessageOrBuilder(); } else { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastProbeTimeFieldBuilder() { if (lastProbeTimeBuilder_ == null) { lastProbeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastProbeTime(), getParentForChildren(), isClean()); lastProbeTime_ = null; } return lastProbeTimeBuilder_; } private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTransitionTime_ = value; onChanged(); } else { lastTransitionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); } else { lastTransitionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && lastTransitionTime_ != null && lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTransitionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_) .mergeFrom(value) .buildPartial(); } else { lastTransitionTime_ = value; } onChanged(); } else { lastTransitionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder clearLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; onChanged(); } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * Unique, this should be a short, machine understandable string that gives the reason
       * for condition's last transition. If it reports "ResizeStarted" that means the underlying
       * persistent volume is being resized.
       * +optional
       * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Unique, this should be a short, machine understandable string that gives the reason
       * for condition's last transition. If it reports "ResizeStarted" that means the underlying
       * persistent volume is being resized.
       * +optional
       * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Unique, this should be a short, machine understandable string that gives the reason
       * for condition's last transition. If it reports "ResizeStarted" that means the underlying
       * persistent volume is being resized.
       * +optional
       * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Unique, this should be a short, machine understandable string that gives the reason
       * for condition's last transition. If it reports "ResizeStarted" that means the underlying
       * persistent volume is being resized.
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value; onChanged(); return this; } /** * * *
       * Unique, this should be a short, machine understandable string that gives the reason
       * for condition's last transition. If it reports "ResizeStarted" that means the underlying
       * persistent volume is being resized.
       * +optional
       * 
* * optional string reason = 5; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000010); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * Unique, this should be a short, machine understandable string that gives the reason
       * for condition's last transition. If it reports "ResizeStarted" that means the underlying
       * persistent volume is being resized.
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; message_ = value; onChanged(); return this; } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000020); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; 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.core.v1.PersistentVolumeClaimCondition) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaimCondition) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaimCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaimCondition(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.V1.PersistentVolumeClaimCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaimList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ java.util.List getItemsList(); /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeClaim getItems(int index); /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ int getItemsCount(); /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getItemsOrBuilder(int index); } /** * * *
   * PersistentVolumeClaimList is a list of PersistentVolumeClaim items.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimList} */ public static final class PersistentVolumeClaimList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaimList) PersistentVolumeClaimListOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaimList.newBuilder() to construct. private PersistentVolumeClaimList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaimList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaimList( 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.V1.PersistentVolumeClaim>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaim.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimList.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaim getItems(int index) { return items_.get(index); } /** * * *
     * A list of persistent volume claims.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder 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.V1.PersistentVolumeClaimList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaimList other = (io.kubernetes.client.proto.V1.PersistentVolumeClaimList) 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.V1.PersistentVolumeClaimList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList 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.V1.PersistentVolumeClaimList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList 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.V1.PersistentVolumeClaimList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList 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.V1.PersistentVolumeClaimList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList 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.V1.PersistentVolumeClaimList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList 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.V1.PersistentVolumeClaimList 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; } /** * * *
     * PersistentVolumeClaimList is a list of PersistentVolumeClaim items.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaimList) io.kubernetes.client.proto.V1.PersistentVolumeClaimListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimList.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeClaimList.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaimList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimList build() { io.kubernetes.client.proto.V1.PersistentVolumeClaimList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimList buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaimList result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimList(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.V1.PersistentVolumeClaimList) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaimList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeClaimList other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaimList.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.V1.PersistentVolumeClaimList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaimList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.PersistentVolumeClaim, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder> itemsBuilder_; /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaim getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaim value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.PersistentVolumeClaim value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaim value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim 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; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PersistentVolumeClaim.getDefaultInstance()); } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.PersistentVolumeClaim.getDefaultInstance()); } /** * * *
       * A list of persistent volume claims.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaim items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaim, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaim, io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder>( 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.core.v1.PersistentVolumeClaimList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaimList) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaimList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaimList(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaimList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaimList(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.V1.PersistentVolumeClaimList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaimSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ java.util.List getAccessModesList(); /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ int getAccessModesCount(); /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ java.lang.String getAccessModes(int index); /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ com.google.protobuf.ByteString getAccessModesBytes(int index); /** * * *
     * A label query over volumes to consider for binding.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ boolean hasSelector(); /** * * *
     * A label query over volumes to consider for binding.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ io.kubernetes.client.proto.Meta.LabelSelector getSelector(); /** * * *
     * A label query over volumes to consider for binding.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder(); /** * * *
     * Resources represents the minimum resources the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ boolean hasResources(); /** * * *
     * Resources represents the minimum resources the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ io.kubernetes.client.proto.V1.ResourceRequirements getResources(); /** * * *
     * Resources represents the minimum resources the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder(); /** * * *
     * VolumeName is the binding reference to the PersistentVolume backing this claim.
     * +optional
     * 
* * optional string volumeName = 3; */ boolean hasVolumeName(); /** * * *
     * VolumeName is the binding reference to the PersistentVolume backing this claim.
     * +optional
     * 
* * optional string volumeName = 3; */ java.lang.String getVolumeName(); /** * * *
     * VolumeName is the binding reference to the PersistentVolume backing this claim.
     * +optional
     * 
* * optional string volumeName = 3; */ com.google.protobuf.ByteString getVolumeNameBytes(); /** * * *
     * Name of the StorageClass required by the claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
     * +optional
     * 
* * optional string storageClassName = 5; */ boolean hasStorageClassName(); /** * * *
     * Name of the StorageClass required by the claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
     * +optional
     * 
* * optional string storageClassName = 5; */ java.lang.String getStorageClassName(); /** * * *
     * Name of the StorageClass required by the claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
     * +optional
     * 
* * optional string storageClassName = 5; */ com.google.protobuf.ByteString getStorageClassNameBytes(); /** * * *
     * volumeMode defines what type of volume is required by the claim.
     * Value of Filesystem is implied when not included in claim spec.
     * +optional
     * 
* * optional string volumeMode = 6; */ boolean hasVolumeMode(); /** * * *
     * volumeMode defines what type of volume is required by the claim.
     * Value of Filesystem is implied when not included in claim spec.
     * +optional
     * 
* * optional string volumeMode = 6; */ java.lang.String getVolumeMode(); /** * * *
     * volumeMode defines what type of volume is required by the claim.
     * Value of Filesystem is implied when not included in claim spec.
     * +optional
     * 
* * optional string volumeMode = 6; */ com.google.protobuf.ByteString getVolumeModeBytes(); /** * * *
     * This field can be used to specify either:
     * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
     * * An existing PVC (PersistentVolumeClaim)
     * If the provisioner or an external controller can support the specified data source,
     * it will create a new volume based on the contents of the specified data source.
     * If the AnyVolumeDataSource feature gate is enabled, this field will always have
     * the same contents as the DataSourceRef field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ boolean hasDataSource(); /** * * *
     * This field can be used to specify either:
     * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
     * * An existing PVC (PersistentVolumeClaim)
     * If the provisioner or an external controller can support the specified data source,
     * it will create a new volume based on the contents of the specified data source.
     * If the AnyVolumeDataSource feature gate is enabled, this field will always have
     * the same contents as the DataSourceRef field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSource(); /** * * *
     * This field can be used to specify either:
     * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
     * * An existing PVC (PersistentVolumeClaim)
     * If the provisioner or an external controller can support the specified data source,
     * it will create a new volume based on the contents of the specified data source.
     * If the AnyVolumeDataSource feature gate is enabled, this field will always have
     * the same contents as the DataSourceRef field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataSourceOrBuilder(); /** * * *
     * Specifies the object from which to populate the volume with data, if a non-empty
     * volume is desired. This may be any local object from a non-empty API group (non
     * core object) or a PersistentVolumeClaim object.
     * When this field is specified, volume binding will only succeed if the type of
     * the specified object matches some installed volume populator or dynamic
     * provisioner.
     * This field will replace the functionality of the DataSource field and as such
     * if both fields are non-empty, they must have the same value. For backwards
     * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
     * value automatically if one of them is empty and the other is non-empty.
     * There are two important differences between DataSource and DataSourceRef:
     * * While DataSource only allows two specific types of objects, DataSourceRef
     *   allows any non-core object, as well as PersistentVolumeClaim objects.
     * * While DataSource ignores disallowed values (dropping them), DataSourceRef
     *   preserves all values, and generates an error if a disallowed value is
     *   specified.
     * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ boolean hasDataSourceRef(); /** * * *
     * Specifies the object from which to populate the volume with data, if a non-empty
     * volume is desired. This may be any local object from a non-empty API group (non
     * core object) or a PersistentVolumeClaim object.
     * When this field is specified, volume binding will only succeed if the type of
     * the specified object matches some installed volume populator or dynamic
     * provisioner.
     * This field will replace the functionality of the DataSource field and as such
     * if both fields are non-empty, they must have the same value. For backwards
     * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
     * value automatically if one of them is empty and the other is non-empty.
     * There are two important differences between DataSource and DataSourceRef:
     * * While DataSource only allows two specific types of objects, DataSourceRef
     *   allows any non-core object, as well as PersistentVolumeClaim objects.
     * * While DataSource ignores disallowed values (dropping them), DataSourceRef
     *   preserves all values, and generates an error if a disallowed value is
     *   specified.
     * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSourceRef(); /** * * *
     * Specifies the object from which to populate the volume with data, if a non-empty
     * volume is desired. This may be any local object from a non-empty API group (non
     * core object) or a PersistentVolumeClaim object.
     * When this field is specified, volume binding will only succeed if the type of
     * the specified object matches some installed volume populator or dynamic
     * provisioner.
     * This field will replace the functionality of the DataSource field and as such
     * if both fields are non-empty, they must have the same value. For backwards
     * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
     * value automatically if one of them is empty and the other is non-empty.
     * There are two important differences between DataSource and DataSourceRef:
     * * While DataSource only allows two specific types of objects, DataSourceRef
     *   allows any non-core object, as well as PersistentVolumeClaim objects.
     * * While DataSource ignores disallowed values (dropping them), DataSourceRef
     *   preserves all values, and generates an error if a disallowed value is
     *   specified.
     * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataSourceRefOrBuilder(); } /** * * *
   * PersistentVolumeClaimSpec describes the common attributes of storage devices
   * and allows a Source for provider-specific attributes
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimSpec} */ public static final class PersistentVolumeClaimSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaimSpec) PersistentVolumeClaimSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaimSpec.newBuilder() to construct. private PersistentVolumeClaimSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaimSpec() { accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; volumeName_ = ""; storageClassName_ = ""; volumeMode_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaimSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { accessModes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } accessModes_.add(bs); break; } case 18: { io.kubernetes.client.proto.V1.ResourceRequirements.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceRequirements.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; volumeName_ = bs; break; } case 34: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = selector_.toBuilder(); } selector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(selector_); selector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; storageClassName_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; volumeMode_ = bs; break; } case 58: { io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = dataSource_.toBuilder(); } dataSource_ = input.readMessage( io.kubernetes.client.proto.V1.TypedLocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dataSource_); dataSource_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 66: { io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = dataSourceRef_.toBuilder(); } dataSourceRef_ = input.readMessage( io.kubernetes.client.proto.V1.TypedLocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dataSourceRef_); dataSourceRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; 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)) { accessModes_ = accessModes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder.class); } private int bitField0_; public static final int ACCESSMODES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList accessModes_; /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ public com.google.protobuf.ProtocolStringList getAccessModesList() { return accessModes_; } /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ public int getAccessModesCount() { return accessModes_.size(); } /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ public java.lang.String getAccessModes(int index) { return accessModes_.get(index); } /** * * *
     * AccessModes contains the desired access modes the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 1; */ public com.google.protobuf.ByteString getAccessModesBytes(int index) { return accessModes_.getByteString(index); } public static final int SELECTOR_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.LabelSelector selector_; /** * * *
     * A label query over volumes to consider for binding.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public boolean hasSelector() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * A label query over volumes to consider for binding.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } /** * * *
     * A label query over volumes to consider for binding.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } public static final int RESOURCES_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ResourceRequirements resources_; /** * * *
     * Resources represents the minimum resources the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public boolean hasResources() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Resources represents the minimum resources the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } /** * * *
     * Resources represents the minimum resources the volume should have.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } public static final int VOLUMENAME_FIELD_NUMBER = 3; private volatile java.lang.Object volumeName_; /** * * *
     * VolumeName is the binding reference to the PersistentVolume backing this claim.
     * +optional
     * 
* * optional string volumeName = 3; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * VolumeName is the binding reference to the PersistentVolume backing this claim.
     * +optional
     * 
* * optional string volumeName = 3; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } } /** * * *
     * VolumeName is the binding reference to the PersistentVolume backing this claim.
     * +optional
     * 
* * optional string volumeName = 3; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGECLASSNAME_FIELD_NUMBER = 5; private volatile java.lang.Object storageClassName_; /** * * *
     * Name of the StorageClass required by the claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
     * +optional
     * 
* * optional string storageClassName = 5; */ public boolean hasStorageClassName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Name of the StorageClass required by the claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
     * +optional
     * 
* * optional string storageClassName = 5; */ 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; } } /** * * *
     * Name of the StorageClass required by the claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
     * +optional
     * 
* * optional string storageClassName = 5; */ 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 VOLUMEMODE_FIELD_NUMBER = 6; private volatile java.lang.Object volumeMode_; /** * * *
     * volumeMode defines what type of volume is required by the claim.
     * Value of Filesystem is implied when not included in claim spec.
     * +optional
     * 
* * optional string volumeMode = 6; */ public boolean hasVolumeMode() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * volumeMode defines what type of volume is required by the claim.
     * Value of Filesystem is implied when not included in claim spec.
     * +optional
     * 
* * optional string volumeMode = 6; */ public java.lang.String getVolumeMode() { java.lang.Object ref = volumeMode_; 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()) { volumeMode_ = s; } return s; } } /** * * *
     * volumeMode defines what type of volume is required by the claim.
     * Value of Filesystem is implied when not included in claim spec.
     * +optional
     * 
* * optional string volumeMode = 6; */ public com.google.protobuf.ByteString getVolumeModeBytes() { java.lang.Object ref = volumeMode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATASOURCE_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.TypedLocalObjectReference dataSource_; /** * * *
     * This field can be used to specify either:
     * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
     * * An existing PVC (PersistentVolumeClaim)
     * If the provisioner or an external controller can support the specified data source,
     * it will create a new volume based on the contents of the specified data source.
     * If the AnyVolumeDataSource feature gate is enabled, this field will always have
     * the same contents as the DataSourceRef field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public boolean hasDataSource() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * This field can be used to specify either:
     * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
     * * An existing PVC (PersistentVolumeClaim)
     * If the provisioner or an external controller can support the specified data source,
     * it will create a new volume based on the contents of the specified data source.
     * If the AnyVolumeDataSource feature gate is enabled, this field will always have
     * the same contents as the DataSourceRef field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSource() { return dataSource_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSource_; } /** * * *
     * This field can be used to specify either:
     * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
     * * An existing PVC (PersistentVolumeClaim)
     * If the provisioner or an external controller can support the specified data source,
     * it will create a new volume based on the contents of the specified data source.
     * If the AnyVolumeDataSource feature gate is enabled, this field will always have
     * the same contents as the DataSourceRef field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataSourceOrBuilder() { return dataSource_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSource_; } public static final int DATASOURCEREF_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.TypedLocalObjectReference dataSourceRef_; /** * * *
     * Specifies the object from which to populate the volume with data, if a non-empty
     * volume is desired. This may be any local object from a non-empty API group (non
     * core object) or a PersistentVolumeClaim object.
     * When this field is specified, volume binding will only succeed if the type of
     * the specified object matches some installed volume populator or dynamic
     * provisioner.
     * This field will replace the functionality of the DataSource field and as such
     * if both fields are non-empty, they must have the same value. For backwards
     * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
     * value automatically if one of them is empty and the other is non-empty.
     * There are two important differences between DataSource and DataSourceRef:
     * * While DataSource only allows two specific types of objects, DataSourceRef
     *   allows any non-core object, as well as PersistentVolumeClaim objects.
     * * While DataSource ignores disallowed values (dropping them), DataSourceRef
     *   preserves all values, and generates an error if a disallowed value is
     *   specified.
     * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public boolean hasDataSourceRef() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Specifies the object from which to populate the volume with data, if a non-empty
     * volume is desired. This may be any local object from a non-empty API group (non
     * core object) or a PersistentVolumeClaim object.
     * When this field is specified, volume binding will only succeed if the type of
     * the specified object matches some installed volume populator or dynamic
     * provisioner.
     * This field will replace the functionality of the DataSource field and as such
     * if both fields are non-empty, they must have the same value. For backwards
     * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
     * value automatically if one of them is empty and the other is non-empty.
     * There are two important differences between DataSource and DataSourceRef:
     * * While DataSource only allows two specific types of objects, DataSourceRef
     *   allows any non-core object, as well as PersistentVolumeClaim objects.
     * * While DataSource ignores disallowed values (dropping them), DataSourceRef
     *   preserves all values, and generates an error if a disallowed value is
     *   specified.
     * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSourceRef() { return dataSourceRef_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSourceRef_; } /** * * *
     * Specifies the object from which to populate the volume with data, if a non-empty
     * volume is desired. This may be any local object from a non-empty API group (non
     * core object) or a PersistentVolumeClaim object.
     * When this field is specified, volume binding will only succeed if the type of
     * the specified object matches some installed volume populator or dynamic
     * provisioner.
     * This field will replace the functionality of the DataSource field and as such
     * if both fields are non-empty, they must have the same value. For backwards
     * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
     * value automatically if one of them is empty and the other is non-empty.
     * There are two important differences between DataSource and DataSourceRef:
     * * While DataSource only allows two specific types of objects, DataSourceRef
     *   allows any non-core object, as well as PersistentVolumeClaim objects.
     * * While DataSource ignores disallowed values (dropping them), DataSourceRef
     *   preserves all values, and generates an error if a disallowed value is
     *   specified.
     * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataSourceRefOrBuilder() { return dataSourceRef_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSourceRef_; } 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 < accessModes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessModes_.getRaw(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getResources()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, volumeName_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(4, getSelector()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, storageClassName_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, volumeMode_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(7, getDataSource()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(8, getDataSourceRef()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < accessModes_.size(); i++) { dataSize += computeStringSizeNoTag(accessModes_.getRaw(i)); } size += dataSize; size += 1 * getAccessModesList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResources()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, volumeName_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSelector()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, storageClassName_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, volumeMode_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDataSource()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDataSourceRef()); } 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.V1.PersistentVolumeClaimSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec other = (io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec) obj; boolean result = true; result = result && getAccessModesList().equals(other.getAccessModesList()); result = result && (hasSelector() == other.hasSelector()); if (hasSelector()) { result = result && getSelector().equals(other.getSelector()); } result = result && (hasResources() == other.hasResources()); if (hasResources()) { result = result && getResources().equals(other.getResources()); } result = result && (hasVolumeName() == other.hasVolumeName()); if (hasVolumeName()) { result = result && getVolumeName().equals(other.getVolumeName()); } result = result && (hasStorageClassName() == other.hasStorageClassName()); if (hasStorageClassName()) { result = result && getStorageClassName().equals(other.getStorageClassName()); } result = result && (hasVolumeMode() == other.hasVolumeMode()); if (hasVolumeMode()) { result = result && getVolumeMode().equals(other.getVolumeMode()); } result = result && (hasDataSource() == other.hasDataSource()); if (hasDataSource()) { result = result && getDataSource().equals(other.getDataSource()); } result = result && (hasDataSourceRef() == other.hasDataSourceRef()); if (hasDataSourceRef()) { result = result && getDataSourceRef().equals(other.getDataSourceRef()); } 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 (getAccessModesCount() > 0) { hash = (37 * hash) + ACCESSMODES_FIELD_NUMBER; hash = (53 * hash) + getAccessModesList().hashCode(); } if (hasSelector()) { hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getSelector().hashCode(); } if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } if (hasVolumeName()) { hash = (37 * hash) + VOLUMENAME_FIELD_NUMBER; hash = (53 * hash) + getVolumeName().hashCode(); } if (hasStorageClassName()) { hash = (37 * hash) + STORAGECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getStorageClassName().hashCode(); } if (hasVolumeMode()) { hash = (37 * hash) + VOLUMEMODE_FIELD_NUMBER; hash = (53 * hash) + getVolumeMode().hashCode(); } if (hasDataSource()) { hash = (37 * hash) + DATASOURCE_FIELD_NUMBER; hash = (53 * hash) + getDataSource().hashCode(); } if (hasDataSourceRef()) { hash = (37 * hash) + DATASOURCEREF_FIELD_NUMBER; hash = (53 * hash) + getDataSourceRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec 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.V1.PersistentVolumeClaimSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec 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.V1.PersistentVolumeClaimSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec 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.V1.PersistentVolumeClaimSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec 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.V1.PersistentVolumeClaimSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec 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.V1.PersistentVolumeClaimSpec 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; } /** * * *
     * PersistentVolumeClaimSpec describes the common attributes of storage devices
     * and allows a Source for provider-specific attributes
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaimSpec) io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSelectorFieldBuilder(); getResourcesFieldBuilder(); getDataSourceFieldBuilder(); getDataSourceRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (selectorBuilder_ == null) { selector_ = null; } else { selectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (resourcesBuilder_ == null) { resources_ = null; } else { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); volumeName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); storageClassName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); volumeMode_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (dataSourceBuilder_ == null) { dataSource_ = null; } else { dataSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (dataSourceRefBuilder_ == null) { dataSourceRef_ = null; } else { dataSourceRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec build() { io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { accessModes_ = accessModes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.accessModes_ = accessModes_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (selectorBuilder_ == null) { result.selector_ = selector_; } else { result.selector_ = selectorBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.volumeName_ = volumeName_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.storageClassName_ = storageClassName_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.volumeMode_ = volumeMode_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (dataSourceBuilder_ == null) { result.dataSource_ = dataSource_; } else { result.dataSource_ = dataSourceBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } if (dataSourceRefBuilder_ == null) { result.dataSourceRef_ = dataSourceRef_; } else { result.dataSourceRef_ = dataSourceRefBuilder_.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.V1.PersistentVolumeClaimSpec) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance()) return this; if (!other.accessModes_.isEmpty()) { if (accessModes_.isEmpty()) { accessModes_ = other.accessModes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAccessModesIsMutable(); accessModes_.addAll(other.accessModes_); } onChanged(); } if (other.hasSelector()) { mergeSelector(other.getSelector()); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.hasVolumeName()) { bitField0_ |= 0x00000008; volumeName_ = other.volumeName_; onChanged(); } if (other.hasStorageClassName()) { bitField0_ |= 0x00000010; storageClassName_ = other.storageClassName_; onChanged(); } if (other.hasVolumeMode()) { bitField0_ |= 0x00000020; volumeMode_ = other.volumeMode_; onChanged(); } if (other.hasDataSource()) { mergeDataSource(other.getDataSource()); } if (other.hasDataSourceRef()) { mergeDataSourceRef(other.getDataSourceRef()); } 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.V1.PersistentVolumeClaimSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAccessModesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { accessModes_ = new com.google.protobuf.LazyStringArrayList(accessModes_); bitField0_ |= 0x00000001; } } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public com.google.protobuf.ProtocolStringList getAccessModesList() { return accessModes_.getUnmodifiableView(); } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public int getAccessModesCount() { return accessModes_.size(); } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public java.lang.String getAccessModes(int index) { return accessModes_.get(index); } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public com.google.protobuf.ByteString getAccessModesBytes(int index) { return accessModes_.getByteString(index); } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public Builder setAccessModes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.set(index, value); onChanged(); return this; } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public Builder addAccessModes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.add(value); onChanged(); return this; } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public Builder addAllAccessModes(java.lang.Iterable values) { ensureAccessModesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessModes_); onChanged(); return this; } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public Builder clearAccessModes() { accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * AccessModes contains the desired access modes the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 1; */ public Builder addAccessModesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.Meta.LabelSelector selector_ = 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> selectorBuilder_; /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public boolean hasSelector() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { if (selectorBuilder_ == null) { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } else { return selectorBuilder_.getMessage(); } } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public Builder setSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (selectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selector_ = value; onChanged(); } else { selectorBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public Builder setSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (selectorBuilder_ == null) { selector_ = builderForValue.build(); onChanged(); } else { selectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public Builder mergeSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (selectorBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && selector_ != null && selector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { selector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(selector_) .mergeFrom(value) .buildPartial(); } else { selector_ = value; } onChanged(); } else { selectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public Builder clearSelector() { if (selectorBuilder_ == null) { selector_ = null; onChanged(); } else { selectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getSelectorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSelectorFieldBuilder().getBuilder(); } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() { if (selectorBuilder_ != null) { return selectorBuilder_.getMessageOrBuilder(); } else { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } } /** * * *
       * A label query over volumes to consider for binding.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getSelectorFieldBuilder() { if (selectorBuilder_ == null) { selectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getSelector(), getParentForChildren(), isClean()); selector_ = null; } return selectorBuilder_; } private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public boolean hasResources() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public Builder setResources( io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && resources_ != null && resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { resources_ = io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_) .mergeFrom(value) .buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } } /** * * *
       * Resources represents the minimum resources the volume should have.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceRequirements resources = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.lang.Object volumeName_ = ""; /** * * *
       * VolumeName is the binding reference to the PersistentVolume backing this claim.
       * +optional
       * 
* * optional string volumeName = 3; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * VolumeName is the binding reference to the PersistentVolume backing this claim.
       * +optional
       * 
* * optional string volumeName = 3; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeName is the binding reference to the PersistentVolume backing this claim.
       * +optional
       * 
* * optional string volumeName = 3; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeName is the binding reference to the PersistentVolume backing this claim.
       * +optional
       * 
* * optional string volumeName = 3; */ public Builder setVolumeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; volumeName_ = value; onChanged(); return this; } /** * * *
       * VolumeName is the binding reference to the PersistentVolume backing this claim.
       * +optional
       * 
* * optional string volumeName = 3; */ public Builder clearVolumeName() { bitField0_ = (bitField0_ & ~0x00000008); volumeName_ = getDefaultInstance().getVolumeName(); onChanged(); return this; } /** * * *
       * VolumeName is the binding reference to the PersistentVolume backing this claim.
       * +optional
       * 
* * optional string volumeName = 3; */ public Builder setVolumeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; volumeName_ = value; onChanged(); return this; } private java.lang.Object storageClassName_ = ""; /** * * *
       * Name of the StorageClass required by the claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
       * +optional
       * 
* * optional string storageClassName = 5; */ public boolean hasStorageClassName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Name of the StorageClass required by the claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
       * +optional
       * 
* * optional string storageClassName = 5; */ 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; } } /** * * *
       * Name of the StorageClass required by the claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
       * +optional
       * 
* * optional string storageClassName = 5; */ 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; } } /** * * *
       * Name of the StorageClass required by the claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
       * +optional
       * 
* * optional string storageClassName = 5; */ public Builder setStorageClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; storageClassName_ = value; onChanged(); return this; } /** * * *
       * Name of the StorageClass required by the claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
       * +optional
       * 
* * optional string storageClassName = 5; */ public Builder clearStorageClassName() { bitField0_ = (bitField0_ & ~0x00000010); storageClassName_ = getDefaultInstance().getStorageClassName(); onChanged(); return this; } /** * * *
       * Name of the StorageClass required by the claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
       * +optional
       * 
* * optional string storageClassName = 5; */ public Builder setStorageClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; storageClassName_ = value; onChanged(); return this; } private java.lang.Object volumeMode_ = ""; /** * * *
       * volumeMode defines what type of volume is required by the claim.
       * Value of Filesystem is implied when not included in claim spec.
       * +optional
       * 
* * optional string volumeMode = 6; */ public boolean hasVolumeMode() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * volumeMode defines what type of volume is required by the claim.
       * Value of Filesystem is implied when not included in claim spec.
       * +optional
       * 
* * optional string volumeMode = 6; */ public java.lang.String getVolumeMode() { java.lang.Object ref = volumeMode_; 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()) { volumeMode_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * volumeMode defines what type of volume is required by the claim.
       * Value of Filesystem is implied when not included in claim spec.
       * +optional
       * 
* * optional string volumeMode = 6; */ public com.google.protobuf.ByteString getVolumeModeBytes() { java.lang.Object ref = volumeMode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * volumeMode defines what type of volume is required by the claim.
       * Value of Filesystem is implied when not included in claim spec.
       * +optional
       * 
* * optional string volumeMode = 6; */ public Builder setVolumeMode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; volumeMode_ = value; onChanged(); return this; } /** * * *
       * volumeMode defines what type of volume is required by the claim.
       * Value of Filesystem is implied when not included in claim spec.
       * +optional
       * 
* * optional string volumeMode = 6; */ public Builder clearVolumeMode() { bitField0_ = (bitField0_ & ~0x00000020); volumeMode_ = getDefaultInstance().getVolumeMode(); onChanged(); return this; } /** * * *
       * volumeMode defines what type of volume is required by the claim.
       * Value of Filesystem is implied when not included in claim spec.
       * +optional
       * 
* * optional string volumeMode = 6; */ public Builder setVolumeModeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; volumeMode_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.TypedLocalObjectReference dataSource_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TypedLocalObjectReference, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder, io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder> dataSourceBuilder_; /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public boolean hasDataSource() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSource() { if (dataSourceBuilder_ == null) { return dataSource_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSource_; } else { return dataSourceBuilder_.getMessage(); } } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public Builder setDataSource(io.kubernetes.client.proto.V1.TypedLocalObjectReference value) { if (dataSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataSource_ = value; onChanged(); } else { dataSourceBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public Builder setDataSource( io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder builderForValue) { if (dataSourceBuilder_ == null) { dataSource_ = builderForValue.build(); onChanged(); } else { dataSourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public Builder mergeDataSource( io.kubernetes.client.proto.V1.TypedLocalObjectReference value) { if (dataSourceBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && dataSource_ != null && dataSource_ != io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()) { dataSource_ = io.kubernetes.client.proto.V1.TypedLocalObjectReference.newBuilder(dataSource_) .mergeFrom(value) .buildPartial(); } else { dataSource_ = value; } onChanged(); } else { dataSourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public Builder clearDataSource() { if (dataSourceBuilder_ == null) { dataSource_ = null; onChanged(); } else { dataSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder getDataSourceBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDataSourceFieldBuilder().getBuilder(); } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataSourceOrBuilder() { if (dataSourceBuilder_ != null) { return dataSourceBuilder_.getMessageOrBuilder(); } else { return dataSource_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSource_; } } /** * * *
       * This field can be used to specify either:
       * * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
       * * An existing PVC (PersistentVolumeClaim)
       * If the provisioner or an external controller can support the specified data source,
       * it will create a new volume based on the contents of the specified data source.
       * If the AnyVolumeDataSource feature gate is enabled, this field will always have
       * the same contents as the DataSourceRef field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSource = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TypedLocalObjectReference, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder, io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder> getDataSourceFieldBuilder() { if (dataSourceBuilder_ == null) { dataSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TypedLocalObjectReference, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder, io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder>( getDataSource(), getParentForChildren(), isClean()); dataSource_ = null; } return dataSourceBuilder_; } private io.kubernetes.client.proto.V1.TypedLocalObjectReference dataSourceRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TypedLocalObjectReference, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder, io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder> dataSourceRefBuilder_; /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public boolean hasDataSourceRef() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSourceRef() { if (dataSourceRefBuilder_ == null) { return dataSourceRef_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSourceRef_; } else { return dataSourceRefBuilder_.getMessage(); } } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public Builder setDataSourceRef( io.kubernetes.client.proto.V1.TypedLocalObjectReference value) { if (dataSourceRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dataSourceRef_ = value; onChanged(); } else { dataSourceRefBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public Builder setDataSourceRef( io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder builderForValue) { if (dataSourceRefBuilder_ == null) { dataSourceRef_ = builderForValue.build(); onChanged(); } else { dataSourceRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public Builder mergeDataSourceRef( io.kubernetes.client.proto.V1.TypedLocalObjectReference value) { if (dataSourceRefBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && dataSourceRef_ != null && dataSourceRef_ != io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()) { dataSourceRef_ = io.kubernetes.client.proto.V1.TypedLocalObjectReference.newBuilder(dataSourceRef_) .mergeFrom(value) .buildPartial(); } else { dataSourceRef_ = value; } onChanged(); } else { dataSourceRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public Builder clearDataSourceRef() { if (dataSourceRefBuilder_ == null) { dataSourceRef_ = null; onChanged(); } else { dataSourceRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder getDataSourceRefBuilder() { bitField0_ |= 0x00000080; onChanged(); return getDataSourceRefFieldBuilder().getBuilder(); } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataSourceRefOrBuilder() { if (dataSourceRefBuilder_ != null) { return dataSourceRefBuilder_.getMessageOrBuilder(); } else { return dataSourceRef_ == null ? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance() : dataSourceRef_; } } /** * * *
       * Specifies the object from which to populate the volume with data, if a non-empty
       * volume is desired. This may be any local object from a non-empty API group (non
       * core object) or a PersistentVolumeClaim object.
       * When this field is specified, volume binding will only succeed if the type of
       * the specified object matches some installed volume populator or dynamic
       * provisioner.
       * This field will replace the functionality of the DataSource field and as such
       * if both fields are non-empty, they must have the same value. For backwards
       * compatibility, both fields (DataSource and DataSourceRef) will be set to the same
       * value automatically if one of them is empty and the other is non-empty.
       * There are two important differences between DataSource and DataSourceRef:
       * * While DataSource only allows two specific types of objects, DataSourceRef
       *   allows any non-core object, as well as PersistentVolumeClaim objects.
       * * While DataSource ignores disallowed values (dropping them), DataSourceRef
       *   preserves all values, and generates an error if a disallowed value is
       *   specified.
       * (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TypedLocalObjectReference dataSourceRef = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TypedLocalObjectReference, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder, io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder> getDataSourceRefFieldBuilder() { if (dataSourceRefBuilder_ == null) { dataSourceRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TypedLocalObjectReference, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder, io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder>( getDataSourceRef(), getParentForChildren(), isClean()); dataSourceRef_ = null; } return dataSourceRefBuilder_; } @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.core.v1.PersistentVolumeClaimSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaimSpec) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaimSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaimSpec(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.V1.PersistentVolumeClaimSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaimStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Phase represents the current phase of PersistentVolumeClaim.
     * +optional
     * 
* * optional string phase = 1; */ boolean hasPhase(); /** * * *
     * Phase represents the current phase of PersistentVolumeClaim.
     * +optional
     * 
* * optional string phase = 1; */ java.lang.String getPhase(); /** * * *
     * Phase represents the current phase of PersistentVolumeClaim.
     * +optional
     * 
* * optional string phase = 1; */ com.google.protobuf.ByteString getPhaseBytes(); /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ java.util.List getAccessModesList(); /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ int getAccessModesCount(); /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ java.lang.String getAccessModes(int index); /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ com.google.protobuf.ByteString getAccessModesBytes(int index); /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ int getCapacityCount(); /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ boolean containsCapacity(java.lang.String key); /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated java.util.Map getCapacity(); /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ java.util.Map getCapacityMap(); /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key); /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ java.util.List getConditionsList(); /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition getConditions(int index); /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ int getConditionsCount(); /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder getConditionsOrBuilder( int index); } /** * * *
   * PersistentVolumeClaimStatus is the current status of a persistent volume claim.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimStatus} */ public static final class PersistentVolumeClaimStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaimStatus) PersistentVolumeClaimStatusOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaimStatus.newBuilder() to construct. private PersistentVolumeClaimStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaimStatus() { phase_ = ""; accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; conditions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaimStatus( 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; phase_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { accessModes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } accessModes_.add(bs); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { capacity_ = com.google.protobuf.MapField.newMapField( CapacityDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity__ = input.readMessage( CapacityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); capacity_.getMutableMap().put(capacity__.getKey(), capacity__.getValue()); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition>(); mutable_bitField0_ |= 0x00000008; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.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)) { accessModes_ = accessModes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder.class); } private int bitField0_; public static final int PHASE_FIELD_NUMBER = 1; private volatile java.lang.Object phase_; /** * * *
     * Phase represents the current phase of PersistentVolumeClaim.
     * +optional
     * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Phase represents the current phase of PersistentVolumeClaim.
     * +optional
     * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } } /** * * *
     * Phase represents the current phase of PersistentVolumeClaim.
     * +optional
     * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACCESSMODES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList accessModes_; /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ public com.google.protobuf.ProtocolStringList getAccessModesList() { return accessModes_; } /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ public int getAccessModesCount() { return accessModes_.size(); } /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ public java.lang.String getAccessModes(int index) { return accessModes_.get(index); } /** * * *
     * AccessModes contains the actual access modes the volume backing the PVC has.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
     * +optional
     * 
* * repeated string accessModes = 2; */ public com.google.protobuf.ByteString getAccessModesBytes(int index) { return accessModes_.getByteString(index); } public static final int CAPACITY_FIELD_NUMBER = 3; private static final class CapacityDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_CapacityEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField(CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Represents the actual resources of the underlying volume.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CONDITIONS_FIELD_NUMBER = 4; private java.util.List conditions_; /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public java.util.List< ? extends io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder> getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Current Condition of persistent volume claim. If underlying persistent volume is being
     * resized then the Condition will be set to 'ResizeStarted'.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phase_); } for (int i = 0; i < accessModes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessModes_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCapacity(), CapacityDefaultEntryHolder.defaultEntry, 3); for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(4, conditions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phase_); } { int dataSize = 0; for (int i = 0; i < accessModes_.size(); i++) { dataSize += computeStringSizeNoTag(accessModes_.getRaw(i)); } size += dataSize; size += 1 * getAccessModesList().size(); } for (java.util.Map.Entry entry : internalGetCapacity().getMap().entrySet()) { com.google.protobuf.MapEntry capacity__ = CapacityDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, capacity__); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, conditions_.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.V1.PersistentVolumeClaimStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus other = (io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus) obj; boolean result = true; result = result && (hasPhase() == other.hasPhase()); if (hasPhase()) { result = result && getPhase().equals(other.getPhase()); } result = result && getAccessModesList().equals(other.getAccessModesList()); result = result && internalGetCapacity().equals(other.internalGetCapacity()); result = result && getConditionsList().equals(other.getConditionsList()); 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 (hasPhase()) { hash = (37 * hash) + PHASE_FIELD_NUMBER; hash = (53 * hash) + getPhase().hashCode(); } if (getAccessModesCount() > 0) { hash = (37 * hash) + ACCESSMODES_FIELD_NUMBER; hash = (53 * hash) + getAccessModesList().hashCode(); } if (!internalGetCapacity().getMap().isEmpty()) { hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + internalGetCapacity().hashCode(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus 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.V1.PersistentVolumeClaimStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus 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.V1.PersistentVolumeClaimStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus 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.V1.PersistentVolumeClaimStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus 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.V1.PersistentVolumeClaimStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus 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.V1.PersistentVolumeClaimStatus 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; } /** * * *
     * PersistentVolumeClaimStatus is the current status of a persistent volume claim.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaimStatus) io.kubernetes.client.proto.V1.PersistentVolumeClaimStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); phase_ = ""; bitField0_ = (bitField0_ & ~0x00000001); accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableCapacity().clear(); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { conditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus build() { io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.phase_ = phase_; if (((bitField0_ & 0x00000002) == 0x00000002)) { accessModes_ = accessModes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.accessModes_ = accessModes_; result.capacity_ = internalGetCapacity(); result.capacity_.makeImmutable(); if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000008); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.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.V1.PersistentVolumeClaimStatus) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus.getDefaultInstance()) return this; if (other.hasPhase()) { bitField0_ |= 0x00000001; phase_ = other.phase_; onChanged(); } if (!other.accessModes_.isEmpty()) { if (accessModes_.isEmpty()) { accessModes_ = other.accessModes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAccessModesIsMutable(); accessModes_.addAll(other.accessModes_); } onChanged(); } internalGetMutableCapacity().mergeFrom(other.internalGetCapacity()); if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000008); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } 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.V1.PersistentVolumeClaimStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object phase_ = ""; /** * * *
       * Phase represents the current phase of PersistentVolumeClaim.
       * +optional
       * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Phase represents the current phase of PersistentVolumeClaim.
       * +optional
       * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Phase represents the current phase of PersistentVolumeClaim.
       * +optional
       * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Phase represents the current phase of PersistentVolumeClaim.
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } /** * * *
       * Phase represents the current phase of PersistentVolumeClaim.
       * +optional
       * 
* * optional string phase = 1; */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000001); phase_ = getDefaultInstance().getPhase(); onChanged(); return this; } /** * * *
       * Phase represents the current phase of PersistentVolumeClaim.
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAccessModesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { accessModes_ = new com.google.protobuf.LazyStringArrayList(accessModes_); bitField0_ |= 0x00000002; } } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public com.google.protobuf.ProtocolStringList getAccessModesList() { return accessModes_.getUnmodifiableView(); } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public int getAccessModesCount() { return accessModes_.size(); } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public java.lang.String getAccessModes(int index) { return accessModes_.get(index); } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public com.google.protobuf.ByteString getAccessModesBytes(int index) { return accessModes_.getByteString(index); } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public Builder setAccessModes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.set(index, value); onChanged(); return this; } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public Builder addAccessModes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.add(value); onChanged(); return this; } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public Builder addAllAccessModes(java.lang.Iterable values) { ensureAccessModesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessModes_); onChanged(); return this; } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public Builder clearAccessModes() { accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * AccessModes contains the actual access modes the volume backing the PVC has.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
       * +optional
       * 
* * repeated string accessModes = 2; */ public Builder addAccessModesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.add(value); onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField( CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableCapacity() { onChanged(); ; if (capacity_ == null) { capacity_ = com.google.protobuf.MapField.newMapField(CapacityDefaultEntryHolder.defaultEntry); } if (!capacity_.isMutable()) { capacity_ = capacity_.copy(); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCapacity() { internalGetMutableCapacity().getMutableMap().clear(); return this; } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public Builder removeCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCapacity() { return internalGetMutableCapacity().getMutableMap(); } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public Builder putCapacity( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().put(key, value); return this; } /** * * *
       * Represents the actual resources of the underlying volume.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 3; * */ public Builder putAllCapacity( java.util.Map values) { internalGetMutableCapacity().getMutableMap().putAll(values); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { conditions_ = new java.util.ArrayList( conditions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder> conditionsBuilder_; /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder addConditions( io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder addConditions( io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public java.util.List< ? extends io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder> getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.getDefaultInstance()); } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.getDefaultInstance()); } /** * * *
       * Current Condition of persistent volume claim. If underlying persistent volume is being
       * resized then the Condition will be set to 'ResizeStarted'.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolumeClaimCondition conditions = 4; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition, io.kubernetes.client.proto.V1.PersistentVolumeClaimCondition.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } @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.core.v1.PersistentVolumeClaimStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaimStatus) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaimStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaimStatus(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.V1.PersistentVolumeClaimStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaimTemplate) com.google.protobuf.MessageOrBuilder { /** * * *
     * May contain labels and annotations that will be copied into the PVC
     * when creating it. No other fields are allowed and will be rejected during
     * validation.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * May contain labels and annotations that will be copied into the PVC
     * when creating it. No other fields are allowed and will be rejected during
     * validation.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * May contain labels and annotations that will be copied into the PVC
     * when creating it. No other fields are allowed and will be rejected during
     * validation.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * The specification for the PersistentVolumeClaim. The entire content is
     * copied unchanged into the PVC that gets created from this
     * template. The same fields as in a PersistentVolumeClaim
     * are also valid here.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ boolean hasSpec(); /** * * *
     * The specification for the PersistentVolumeClaim. The entire content is
     * copied unchanged into the PVC that gets created from this
     * template. The same fields as in a PersistentVolumeClaim
     * are also valid here.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getSpec(); /** * * *
     * The specification for the PersistentVolumeClaim. The entire content is
     * copied unchanged into the PVC that gets created from this
     * template. The same fields as in a PersistentVolumeClaim
     * are also valid here.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder getSpecOrBuilder(); } /** * * *
   * PersistentVolumeClaimTemplate is used to produce
   * PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimTemplate} */ public static final class PersistentVolumeClaimTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaimTemplate) PersistentVolumeClaimTemplateOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaimTemplate.newBuilder() to construct. private PersistentVolumeClaimTemplate( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaimTemplate() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaimTemplate( 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.V1.PersistentVolumeClaimSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * May contain labels and annotations that will be copied into the PVC
     * when creating it. No other fields are allowed and will be rejected during
     * validation.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * May contain labels and annotations that will be copied into the PVC
     * when creating it. No other fields are allowed and will be rejected during
     * validation.
     * +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_; } /** * * *
     * May contain labels and annotations that will be copied into the PVC
     * when creating it. No other fields are allowed and will be rejected during
     * validation.
     * +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.V1.PersistentVolumeClaimSpec spec_; /** * * *
     * The specification for the PersistentVolumeClaim. The entire content is
     * copied unchanged into the PVC that gets created from this
     * template. The same fields as in a PersistentVolumeClaim
     * are also valid here.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The specification for the PersistentVolumeClaim. The entire content is
     * copied unchanged into the PVC that gets created from this
     * template. The same fields as in a PersistentVolumeClaim
     * are also valid here.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } /** * * *
     * The specification for the PersistentVolumeClaim. The entire content is
     * copied unchanged into the PVC that gets created from this
     * template. The same fields as in a PersistentVolumeClaim
     * are also valid here.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.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.V1.PersistentVolumeClaimTemplate)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate other = (io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate) 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.V1.PersistentVolumeClaimTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate 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.V1.PersistentVolumeClaimTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate 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.V1.PersistentVolumeClaimTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate 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.V1.PersistentVolumeClaimTemplate parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate 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.V1.PersistentVolumeClaimTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate 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.V1.PersistentVolumeClaimTemplate 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; } /** * * *
     * PersistentVolumeClaimTemplate is used to produce
     * PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaimTemplate) io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate build() { io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate(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.V1.PersistentVolumeClaimTemplate) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate.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.V1.PersistentVolumeClaimTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate) 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_; /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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(); } } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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; } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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; } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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; } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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; } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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(); } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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_; } } /** * * *
       * May contain labels and annotations that will be copied into the PVC
       * when creating it. No other fields are allowed and will be rejected during
       * validation.
       * +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.V1.PersistentVolumeClaimSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder> specBuilder_; /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.getDefaultInstance() : spec_; } } /** * * *
       * The specification for the PersistentVolumeClaim. The entire content is
       * copied unchanged into the PVC that gets created from this
       * template. The same fields as in a PersistentVolumeClaim
       * are also valid here.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeClaimSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpec.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimSpecOrBuilder>( 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.core.v1.PersistentVolumeClaimTemplate) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaimTemplate) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaimTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaimTemplate(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.V1.PersistentVolumeClaimTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeClaimVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * optional string claimName = 1; */ boolean hasClaimName(); /** * * *
     * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * optional string claimName = 1; */ java.lang.String getClaimName(); /** * * *
     * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * optional string claimName = 1; */ com.google.protobuf.ByteString getClaimNameBytes(); /** * * *
     * Will force the ReadOnly setting in VolumeMounts.
     * Default false.
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean hasReadOnly(); /** * * *
     * Will force the ReadOnly setting in VolumeMounts.
     * Default false.
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean getReadOnly(); } /** * * *
   * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.
   * This volume finds the bound PV and mounts that volume for the pod. A
   * PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another
   * type of volume that is owned by someone else (the system).
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource} */ public static final class PersistentVolumeClaimVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource) PersistentVolumeClaimVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeClaimVolumeSource.newBuilder() to construct. private PersistentVolumeClaimVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeClaimVolumeSource() { claimName_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeClaimVolumeSource( 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; claimName_ = bs; break; } case 16: { bitField0_ |= 0x00000002; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder.class); } private int bitField0_; public static final int CLAIMNAME_FIELD_NUMBER = 1; private volatile java.lang.Object claimName_; /** * * *
     * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * optional string claimName = 1; */ public boolean hasClaimName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * optional string claimName = 1; */ public java.lang.String getClaimName() { java.lang.Object ref = claimName_; 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()) { claimName_ = s; } return s; } } /** * * *
     * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * 
* * optional string claimName = 1; */ public com.google.protobuf.ByteString getClaimNameBytes() { java.lang.Object ref = claimName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); claimName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 2; private boolean readOnly_; /** * * *
     * Will force the ReadOnly setting in VolumeMounts.
     * Default false.
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Will force the ReadOnly setting in VolumeMounts.
     * Default false.
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } 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, claimName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, readOnly_); } 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, claimName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, readOnly_); } 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.V1.PersistentVolumeClaimVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource other = (io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource) obj; boolean result = true; result = result && (hasClaimName() == other.hasClaimName()); if (hasClaimName()) { result = result && getClaimName().equals(other.getClaimName()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasClaimName()) { hash = (37 * hash) + CLAIMNAME_FIELD_NUMBER; hash = (53 * hash) + getClaimName().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource 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.V1.PersistentVolumeClaimVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource 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.V1.PersistentVolumeClaimVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource 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.V1.PersistentVolumeClaimVolumeSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource 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.V1.PersistentVolumeClaimVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource 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.V1.PersistentVolumeClaimVolumeSource 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; } /** * * *
     * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.
     * This volume finds the bound PV and mounts that volume for the pod. A
     * PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another
     * type of volume that is owned by someone else (the system).
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource) io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.class, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder.class); } // Construct using // io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.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(); claimName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource build() { io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.claimName_ = claimName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.readOnly_ = readOnly_; 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.V1.PersistentVolumeClaimVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.getDefaultInstance()) return this; if (other.hasClaimName()) { bitField0_ |= 0x00000001; claimName_ = other.claimName_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.PersistentVolumeClaimVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object claimName_ = ""; /** * * *
       * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * optional string claimName = 1; */ public boolean hasClaimName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * optional string claimName = 1; */ public java.lang.String getClaimName() { java.lang.Object ref = claimName_; 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()) { claimName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * optional string claimName = 1; */ public com.google.protobuf.ByteString getClaimNameBytes() { java.lang.Object ref = claimName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); claimName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * optional string claimName = 1; */ public Builder setClaimName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; claimName_ = value; onChanged(); return this; } /** * * *
       * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * optional string claimName = 1; */ public Builder clearClaimName() { bitField0_ = (bitField0_ & ~0x00000001); claimName_ = getDefaultInstance().getClaimName(); onChanged(); return this; } /** * * *
       * ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * 
* * optional string claimName = 1; */ public Builder setClaimNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; claimName_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Will force the ReadOnly setting in VolumeMounts.
       * Default false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Will force the ReadOnly setting in VolumeMounts.
       * Default false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Will force the ReadOnly setting in VolumeMounts.
       * Default false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000002; readOnly_ = value; onChanged(); return this; } /** * * *
       * Will force the ReadOnly setting in VolumeMounts.
       * Default false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = 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.core.v1.PersistentVolumeClaimVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource) private static final io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource(); } public static io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeClaimVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeClaimVolumeSource(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.V1.PersistentVolumeClaimVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ java.util.List getItemsList(); /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ io.kubernetes.client.proto.V1.PersistentVolume getItems(int index); /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ int getItemsCount(); /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder getItemsOrBuilder(int index); } /** * * *
   * PersistentVolumeList is a list of PersistentVolume items.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeList} */ public static final class PersistentVolumeList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeList) PersistentVolumeListOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeList.newBuilder() to construct. private PersistentVolumeList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeList( 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.V1.PersistentVolume.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeList.class, io.kubernetes.client.proto.V1.PersistentVolumeList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolume getItems(int index) { return items_.get(index); } /** * * *
     * List of persistent volumes.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
     * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder 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.V1.PersistentVolumeList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeList other = (io.kubernetes.client.proto.V1.PersistentVolumeList) 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.V1.PersistentVolumeList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeList 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.V1.PersistentVolumeList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeList 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.V1.PersistentVolumeList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeList 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.V1.PersistentVolumeList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeList 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.V1.PersistentVolumeList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeList 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.V1.PersistentVolumeList 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; } /** * * *
     * PersistentVolumeList is a list of PersistentVolume items.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeList) io.kubernetes.client.proto.V1.PersistentVolumeListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeList.class, io.kubernetes.client.proto.V1.PersistentVolumeList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeList.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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeList build() { io.kubernetes.client.proto.V1.PersistentVolumeList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeList buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeList result = new io.kubernetes.client.proto.V1.PersistentVolumeList(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.V1.PersistentVolumeList) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeList other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeList.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.V1.PersistentVolumeList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.PersistentVolume, io.kubernetes.client.proto.V1.PersistentVolume.Builder, io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder> itemsBuilder_; /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolume getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.PersistentVolume value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.PersistentVolume.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.PersistentVolume value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.PersistentVolume value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1.PersistentVolume.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.PersistentVolume.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume 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; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolume.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolume.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PersistentVolume.getDefaultInstance()); } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public io.kubernetes.client.proto.V1.PersistentVolume.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PersistentVolume.getDefaultInstance()); } /** * * *
       * List of persistent volumes.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes
       * 
* * repeated .k8s.io.api.core.v1.PersistentVolume items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolume, io.kubernetes.client.proto.V1.PersistentVolume.Builder, io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolume, io.kubernetes.client.proto.V1.PersistentVolume.Builder, io.kubernetes.client.proto.V1.PersistentVolumeOrBuilder>( 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.core.v1.PersistentVolumeList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeList) private static final io.kubernetes.client.proto.V1.PersistentVolumeList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeList(); } public static io.kubernetes.client.proto.V1.PersistentVolumeList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeList(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.V1.PersistentVolumeList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ boolean hasGcePersistentDisk(); /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getGcePersistentDisk(); /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder(); /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ boolean hasAwsElasticBlockStore(); /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore(); /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder(); /** * * *
     * HostPath represents a directory on the host.
     * Provisioned by a developer or tester.
     * This is useful for single-node development and testing only!
     * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ boolean hasHostPath(); /** * * *
     * HostPath represents a directory on the host.
     * Provisioned by a developer or tester.
     * This is useful for single-node development and testing only!
     * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ io.kubernetes.client.proto.V1.HostPathVolumeSource getHostPath(); /** * * *
     * HostPath represents a directory on the host.
     * Provisioned by a developer or tester.
     * This is useful for single-node development and testing only!
     * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder getHostPathOrBuilder(); /** * * *
     * Glusterfs represents a Glusterfs volume that is attached to a host and
     * exposed to the pod. Provisioned by an admin.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ boolean hasGlusterfs(); /** * * *
     * Glusterfs represents a Glusterfs volume that is attached to a host and
     * exposed to the pod. Provisioned by an admin.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource getGlusterfs(); /** * * *
     * Glusterfs represents a Glusterfs volume that is attached to a host and
     * exposed to the pod. Provisioned by an admin.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder getGlusterfsOrBuilder(); /** * * *
     * NFS represents an NFS mount on the host. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ boolean hasNfs(); /** * * *
     * NFS represents an NFS mount on the host. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ io.kubernetes.client.proto.V1.NFSVolumeSource getNfs(); /** * * *
     * NFS represents an NFS mount on the host. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder getNfsOrBuilder(); /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ boolean hasRbd(); /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ io.kubernetes.client.proto.V1.RBDPersistentVolumeSource getRbd(); /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder getRbdOrBuilder(); /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ boolean hasIscsi(); /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource getIscsi(); /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder getIscsiOrBuilder(); /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ boolean hasCinder(); /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ io.kubernetes.client.proto.V1.CinderPersistentVolumeSource getCinder(); /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder getCinderOrBuilder(); /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ boolean hasCephfs(); /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource getCephfs(); /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder getCephfsOrBuilder(); /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ boolean hasFc(); /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ io.kubernetes.client.proto.V1.FCVolumeSource getFc(); /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder getFcOrBuilder(); /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ boolean hasFlocker(); /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ io.kubernetes.client.proto.V1.FlockerVolumeSource getFlocker(); /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder(); /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ boolean hasFlexVolume(); /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ io.kubernetes.client.proto.V1.FlexPersistentVolumeSource getFlexVolume(); /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder getFlexVolumeOrBuilder(); /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ boolean hasAzureFile(); /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource getAzureFile(); /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder getAzureFileOrBuilder(); /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; */ boolean hasVsphereVolume(); /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; */ io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getVsphereVolume(); /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; */ io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder(); /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ boolean hasQuobyte(); /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ io.kubernetes.client.proto.V1.QuobyteVolumeSource getQuobyte(); /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder(); /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ boolean hasAzureDisk(); /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ io.kubernetes.client.proto.V1.AzureDiskVolumeSource getAzureDisk(); /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder(); /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ boolean hasPhotonPersistentDisk(); /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk(); /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder(); /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ boolean hasPortworxVolume(); /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ io.kubernetes.client.proto.V1.PortworxVolumeSource getPortworxVolume(); /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder(); /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ boolean hasScaleIO(); /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource getScaleIO(); /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder getScaleIOOrBuilder(); /** * * *
     * Local represents directly-attached storage with node affinity
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ boolean hasLocal(); /** * * *
     * Local represents directly-attached storage with node affinity
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ io.kubernetes.client.proto.V1.LocalVolumeSource getLocal(); /** * * *
     * Local represents directly-attached storage with node affinity
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder getLocalOrBuilder(); /** * * *
     * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
     * More info: https://examples.k8s.io/volumes/storageos/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ boolean hasStorageos(); /** * * *
     * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
     * More info: https://examples.k8s.io/volumes/storageos/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource getStorageos(); /** * * *
     * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
     * More info: https://examples.k8s.io/volumes/storageos/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder getStorageosOrBuilder(); /** * * *
     * CSI represents storage that is handled by an external CSI driver (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ boolean hasCsi(); /** * * *
     * CSI represents storage that is handled by an external CSI driver (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ io.kubernetes.client.proto.V1.CSIPersistentVolumeSource getCsi(); /** * * *
     * CSI represents storage that is handled by an external CSI driver (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder getCsiOrBuilder(); } /** * * *
   * PersistentVolumeSource is similar to VolumeSource but meant for the
   * administrator who creates PVs. Exactly one of its members must be set.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeSource} */ public static final class PersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeSource) PersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeSource.newBuilder() to construct. private PersistentVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeSource() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeSource( 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.V1.GCEPersistentDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = gcePersistentDisk_.toBuilder(); } gcePersistentDisk_ = input.readMessage( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(gcePersistentDisk_); gcePersistentDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = awsElasticBlockStore_.toBuilder(); } awsElasticBlockStore_ = input.readMessage( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(awsElasticBlockStore_); awsElasticBlockStore_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = hostPath_.toBuilder(); } hostPath_ = input.readMessage( io.kubernetes.client.proto.V1.HostPathVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hostPath_); hostPath_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = glusterfs_.toBuilder(); } glusterfs_ = input.readMessage( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(glusterfs_); glusterfs_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { io.kubernetes.client.proto.V1.NFSVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = nfs_.toBuilder(); } nfs_ = input.readMessage( io.kubernetes.client.proto.V1.NFSVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nfs_); nfs_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = rbd_.toBuilder(); } rbd_ = input.readMessage( io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rbd_); rbd_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = iscsi_.toBuilder(); } iscsi_ = input.readMessage( io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(iscsi_); iscsi_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = cinder_.toBuilder(); } cinder_ = input.readMessage( io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cinder_); cinder_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 74: { io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = cephfs_.toBuilder(); } cephfs_ = input.readMessage( io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cephfs_); cephfs_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 82: { io.kubernetes.client.proto.V1.FCVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = fc_.toBuilder(); } fc_ = input.readMessage( io.kubernetes.client.proto.V1.FCVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fc_); fc_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 90: { io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = flocker_.toBuilder(); } flocker_ = input.readMessage( io.kubernetes.client.proto.V1.FlockerVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flocker_); flocker_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 98: { io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = flexVolume_.toBuilder(); } flexVolume_ = input.readMessage( io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flexVolume_); flexVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 106: { io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = azureFile_.toBuilder(); } azureFile_ = input.readMessage( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(azureFile_); azureFile_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 114: { io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00002000) == 0x00002000)) { subBuilder = vsphereVolume_.toBuilder(); } vsphereVolume_ = input.readMessage( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vsphereVolume_); vsphereVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00002000; break; } case 122: { io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00004000) == 0x00004000)) { subBuilder = quobyte_.toBuilder(); } quobyte_ = input.readMessage( io.kubernetes.client.proto.V1.QuobyteVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(quobyte_); quobyte_ = subBuilder.buildPartial(); } bitField0_ |= 0x00004000; break; } case 130: { io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00008000) == 0x00008000)) { subBuilder = azureDisk_.toBuilder(); } azureDisk_ = input.readMessage( io.kubernetes.client.proto.V1.AzureDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(azureDisk_); azureDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00008000; break; } case 138: { io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00010000) == 0x00010000)) { subBuilder = photonPersistentDisk_.toBuilder(); } photonPersistentDisk_ = input.readMessage( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(photonPersistentDisk_); photonPersistentDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00010000; break; } case 146: { io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00020000) == 0x00020000)) { subBuilder = portworxVolume_.toBuilder(); } portworxVolume_ = input.readMessage( io.kubernetes.client.proto.V1.PortworxVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(portworxVolume_); portworxVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00020000; break; } case 154: { io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00040000) == 0x00040000)) { subBuilder = scaleIO_.toBuilder(); } scaleIO_ = input.readMessage( io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scaleIO_); scaleIO_ = subBuilder.buildPartial(); } bitField0_ |= 0x00040000; break; } case 162: { io.kubernetes.client.proto.V1.LocalVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00080000) == 0x00080000)) { subBuilder = local_.toBuilder(); } local_ = input.readMessage( io.kubernetes.client.proto.V1.LocalVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(local_); local_ = subBuilder.buildPartial(); } bitField0_ |= 0x00080000; break; } case 170: { io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00100000) == 0x00100000)) { subBuilder = storageos_.toBuilder(); } storageos_ = input.readMessage( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storageos_); storageos_ = subBuilder.buildPartial(); } bitField0_ |= 0x00100000; break; } case 178: { io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00200000) == 0x00200000)) { subBuilder = csi_.toBuilder(); } csi_ = input.readMessage( io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(csi_); csi_ = subBuilder.buildPartial(); } bitField0_ |= 0x00200000; 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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeSource.class, io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder.class); } private int bitField0_; public static final int GCEPERSISTENTDISK_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource gcePersistentDisk_; /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public boolean hasGcePersistentDisk() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder() { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } public static final int AWSELASTICBLOCKSTORE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore_; /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public boolean hasAwsElasticBlockStore() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder() { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } public static final int HOSTPATH_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.HostPathVolumeSource hostPath_; /** * * *
     * HostPath represents a directory on the host.
     * Provisioned by a developer or tester.
     * This is useful for single-node development and testing only!
     * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * HostPath represents a directory on the host.
     * Provisioned by a developer or tester.
     * This is useful for single-node development and testing only!
     * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public io.kubernetes.client.proto.V1.HostPathVolumeSource getHostPath() { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } /** * * *
     * HostPath represents a directory on the host.
     * Provisioned by a developer or tester.
     * This is useful for single-node development and testing only!
     * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder getHostPathOrBuilder() { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } public static final int GLUSTERFS_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource glusterfs_; /** * * *
     * Glusterfs represents a Glusterfs volume that is attached to a host and
     * exposed to the pod. Provisioned by an admin.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public boolean hasGlusterfs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Glusterfs represents a Glusterfs volume that is attached to a host and
     * exposed to the pod. Provisioned by an admin.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource getGlusterfs() { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.getDefaultInstance() : glusterfs_; } /** * * *
     * Glusterfs represents a Glusterfs volume that is attached to a host and
     * exposed to the pod. Provisioned by an admin.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder getGlusterfsOrBuilder() { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.getDefaultInstance() : glusterfs_; } public static final int NFS_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.NFSVolumeSource nfs_; /** * * *
     * NFS represents an NFS mount on the host. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public boolean hasNfs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * NFS represents an NFS mount on the host. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public io.kubernetes.client.proto.V1.NFSVolumeSource getNfs() { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } /** * * *
     * NFS represents an NFS mount on the host. Provisioned by an admin.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder getNfsOrBuilder() { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } public static final int RBD_FIELD_NUMBER = 6; private io.kubernetes.client.proto.V1.RBDPersistentVolumeSource rbd_; /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public boolean hasRbd() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public io.kubernetes.client.proto.V1.RBDPersistentVolumeSource getRbd() { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance() : rbd_; } /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder getRbdOrBuilder() { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance() : rbd_; } public static final int ISCSI_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource iscsi_; /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public boolean hasIscsi() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource getIscsi() { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.getDefaultInstance() : iscsi_; } /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder getIscsiOrBuilder() { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.getDefaultInstance() : iscsi_; } public static final int CINDER_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.CinderPersistentVolumeSource cinder_; /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public boolean hasCinder() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public io.kubernetes.client.proto.V1.CinderPersistentVolumeSource getCinder() { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.getDefaultInstance() : cinder_; } /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder getCinderOrBuilder() { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.getDefaultInstance() : cinder_; } public static final int CEPHFS_FIELD_NUMBER = 9; private io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource cephfs_; /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public boolean hasCephfs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource getCephfs() { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.getDefaultInstance() : cephfs_; } /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder getCephfsOrBuilder() { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.getDefaultInstance() : cephfs_; } public static final int FC_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.FCVolumeSource fc_; /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public boolean hasFc() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public io.kubernetes.client.proto.V1.FCVolumeSource getFc() { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder getFcOrBuilder() { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } public static final int FLOCKER_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.FlockerVolumeSource flocker_; /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public boolean hasFlocker() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public io.kubernetes.client.proto.V1.FlockerVolumeSource getFlocker() { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder() { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } public static final int FLEXVOLUME_FIELD_NUMBER = 12; private io.kubernetes.client.proto.V1.FlexPersistentVolumeSource flexVolume_; /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public boolean hasFlexVolume() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexPersistentVolumeSource getFlexVolume() { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.getDefaultInstance() : flexVolume_; } /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder getFlexVolumeOrBuilder() { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.getDefaultInstance() : flexVolume_; } public static final int AZUREFILE_FIELD_NUMBER = 13; private io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource azureFile_; /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public boolean hasAzureFile() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource getAzureFile() { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.getDefaultInstance() : azureFile_; } /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder getAzureFileOrBuilder() { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.getDefaultInstance() : azureFile_; } public static final int VSPHEREVOLUME_FIELD_NUMBER = 14; private io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource vsphereVolume_; /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; */ public boolean hasVsphereVolume() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder() { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } public static final int QUOBYTE_FIELD_NUMBER = 15; private io.kubernetes.client.proto.V1.QuobyteVolumeSource quobyte_; /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public boolean hasQuobyte() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSource getQuobyte() { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder() { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } public static final int AZUREDISK_FIELD_NUMBER = 16; private io.kubernetes.client.proto.V1.AzureDiskVolumeSource azureDisk_; /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public boolean hasAzureDisk() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getAzureDisk() { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder() { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } public static final int PHOTONPERSISTENTDISK_FIELD_NUMBER = 17; private io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource photonPersistentDisk_; /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public boolean hasPhotonPersistentDisk() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder() { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } public static final int PORTWORXVOLUME_FIELD_NUMBER = 18; private io.kubernetes.client.proto.V1.PortworxVolumeSource portworxVolume_; /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public boolean hasPortworxVolume() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public io.kubernetes.client.proto.V1.PortworxVolumeSource getPortworxVolume() { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder() { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } public static final int SCALEIO_FIELD_NUMBER = 19; private io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource scaleIO_; /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public boolean hasScaleIO() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource getScaleIO() { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.getDefaultInstance() : scaleIO_; } /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder getScaleIOOrBuilder() { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.getDefaultInstance() : scaleIO_; } public static final int LOCAL_FIELD_NUMBER = 20; private io.kubernetes.client.proto.V1.LocalVolumeSource local_; /** * * *
     * Local represents directly-attached storage with node affinity
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public boolean hasLocal() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
     * Local represents directly-attached storage with node affinity
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public io.kubernetes.client.proto.V1.LocalVolumeSource getLocal() { return local_ == null ? io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance() : local_; } /** * * *
     * Local represents directly-attached storage with node affinity
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder getLocalOrBuilder() { return local_ == null ? io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance() : local_; } public static final int STORAGEOS_FIELD_NUMBER = 21; private io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource storageos_; /** * * *
     * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
     * More info: https://examples.k8s.io/volumes/storageos/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public boolean hasStorageos() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
     * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
     * More info: https://examples.k8s.io/volumes/storageos/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource getStorageos() { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.getDefaultInstance() : storageos_; } /** * * *
     * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
     * More info: https://examples.k8s.io/volumes/storageos/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder getStorageosOrBuilder() { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.getDefaultInstance() : storageos_; } public static final int CSI_FIELD_NUMBER = 22; private io.kubernetes.client.proto.V1.CSIPersistentVolumeSource csi_; /** * * *
     * CSI represents storage that is handled by an external CSI driver (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public boolean hasCsi() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
     * CSI represents storage that is handled by an external CSI driver (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public io.kubernetes.client.proto.V1.CSIPersistentVolumeSource getCsi() { return csi_ == null ? io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance() : csi_; } /** * * *
     * CSI represents storage that is handled by an external CSI driver (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder getCsiOrBuilder() { return csi_ == null ? io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance() : csi_; } 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, getGcePersistentDisk()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getAwsElasticBlockStore()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getHostPath()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getGlusterfs()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getNfs()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getRbd()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getIscsi()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, getCinder()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(9, getCephfs()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(10, getFc()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(11, getFlocker()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(12, getFlexVolume()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(13, getAzureFile()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeMessage(14, getVsphereVolume()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeMessage(15, getQuobyte()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeMessage(16, getAzureDisk()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeMessage(17, getPhotonPersistentDisk()); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeMessage(18, getPortworxVolume()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeMessage(19, getScaleIO()); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeMessage(20, getLocal()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeMessage(21, getStorageos()); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeMessage(22, getCsi()); } 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, getGcePersistentDisk()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAwsElasticBlockStore()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHostPath()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGlusterfs()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getNfs()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRbd()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getIscsi()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCinder()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCephfs()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getFc()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getFlocker()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFlexVolume()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getAzureFile()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getVsphereVolume()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getQuobyte()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getAzureDisk()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getPhotonPersistentDisk()); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getPortworxVolume()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getScaleIO()); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getLocal()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getStorageos()); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCsi()); } 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.V1.PersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeSource other = (io.kubernetes.client.proto.V1.PersistentVolumeSource) obj; boolean result = true; result = result && (hasGcePersistentDisk() == other.hasGcePersistentDisk()); if (hasGcePersistentDisk()) { result = result && getGcePersistentDisk().equals(other.getGcePersistentDisk()); } result = result && (hasAwsElasticBlockStore() == other.hasAwsElasticBlockStore()); if (hasAwsElasticBlockStore()) { result = result && getAwsElasticBlockStore().equals(other.getAwsElasticBlockStore()); } result = result && (hasHostPath() == other.hasHostPath()); if (hasHostPath()) { result = result && getHostPath().equals(other.getHostPath()); } result = result && (hasGlusterfs() == other.hasGlusterfs()); if (hasGlusterfs()) { result = result && getGlusterfs().equals(other.getGlusterfs()); } result = result && (hasNfs() == other.hasNfs()); if (hasNfs()) { result = result && getNfs().equals(other.getNfs()); } result = result && (hasRbd() == other.hasRbd()); if (hasRbd()) { result = result && getRbd().equals(other.getRbd()); } result = result && (hasIscsi() == other.hasIscsi()); if (hasIscsi()) { result = result && getIscsi().equals(other.getIscsi()); } result = result && (hasCinder() == other.hasCinder()); if (hasCinder()) { result = result && getCinder().equals(other.getCinder()); } result = result && (hasCephfs() == other.hasCephfs()); if (hasCephfs()) { result = result && getCephfs().equals(other.getCephfs()); } result = result && (hasFc() == other.hasFc()); if (hasFc()) { result = result && getFc().equals(other.getFc()); } result = result && (hasFlocker() == other.hasFlocker()); if (hasFlocker()) { result = result && getFlocker().equals(other.getFlocker()); } result = result && (hasFlexVolume() == other.hasFlexVolume()); if (hasFlexVolume()) { result = result && getFlexVolume().equals(other.getFlexVolume()); } result = result && (hasAzureFile() == other.hasAzureFile()); if (hasAzureFile()) { result = result && getAzureFile().equals(other.getAzureFile()); } result = result && (hasVsphereVolume() == other.hasVsphereVolume()); if (hasVsphereVolume()) { result = result && getVsphereVolume().equals(other.getVsphereVolume()); } result = result && (hasQuobyte() == other.hasQuobyte()); if (hasQuobyte()) { result = result && getQuobyte().equals(other.getQuobyte()); } result = result && (hasAzureDisk() == other.hasAzureDisk()); if (hasAzureDisk()) { result = result && getAzureDisk().equals(other.getAzureDisk()); } result = result && (hasPhotonPersistentDisk() == other.hasPhotonPersistentDisk()); if (hasPhotonPersistentDisk()) { result = result && getPhotonPersistentDisk().equals(other.getPhotonPersistentDisk()); } result = result && (hasPortworxVolume() == other.hasPortworxVolume()); if (hasPortworxVolume()) { result = result && getPortworxVolume().equals(other.getPortworxVolume()); } result = result && (hasScaleIO() == other.hasScaleIO()); if (hasScaleIO()) { result = result && getScaleIO().equals(other.getScaleIO()); } result = result && (hasLocal() == other.hasLocal()); if (hasLocal()) { result = result && getLocal().equals(other.getLocal()); } result = result && (hasStorageos() == other.hasStorageos()); if (hasStorageos()) { result = result && getStorageos().equals(other.getStorageos()); } result = result && (hasCsi() == other.hasCsi()); if (hasCsi()) { result = result && getCsi().equals(other.getCsi()); } 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 (hasGcePersistentDisk()) { hash = (37 * hash) + GCEPERSISTENTDISK_FIELD_NUMBER; hash = (53 * hash) + getGcePersistentDisk().hashCode(); } if (hasAwsElasticBlockStore()) { hash = (37 * hash) + AWSELASTICBLOCKSTORE_FIELD_NUMBER; hash = (53 * hash) + getAwsElasticBlockStore().hashCode(); } if (hasHostPath()) { hash = (37 * hash) + HOSTPATH_FIELD_NUMBER; hash = (53 * hash) + getHostPath().hashCode(); } if (hasGlusterfs()) { hash = (37 * hash) + GLUSTERFS_FIELD_NUMBER; hash = (53 * hash) + getGlusterfs().hashCode(); } if (hasNfs()) { hash = (37 * hash) + NFS_FIELD_NUMBER; hash = (53 * hash) + getNfs().hashCode(); } if (hasRbd()) { hash = (37 * hash) + RBD_FIELD_NUMBER; hash = (53 * hash) + getRbd().hashCode(); } if (hasIscsi()) { hash = (37 * hash) + ISCSI_FIELD_NUMBER; hash = (53 * hash) + getIscsi().hashCode(); } if (hasCinder()) { hash = (37 * hash) + CINDER_FIELD_NUMBER; hash = (53 * hash) + getCinder().hashCode(); } if (hasCephfs()) { hash = (37 * hash) + CEPHFS_FIELD_NUMBER; hash = (53 * hash) + getCephfs().hashCode(); } if (hasFc()) { hash = (37 * hash) + FC_FIELD_NUMBER; hash = (53 * hash) + getFc().hashCode(); } if (hasFlocker()) { hash = (37 * hash) + FLOCKER_FIELD_NUMBER; hash = (53 * hash) + getFlocker().hashCode(); } if (hasFlexVolume()) { hash = (37 * hash) + FLEXVOLUME_FIELD_NUMBER; hash = (53 * hash) + getFlexVolume().hashCode(); } if (hasAzureFile()) { hash = (37 * hash) + AZUREFILE_FIELD_NUMBER; hash = (53 * hash) + getAzureFile().hashCode(); } if (hasVsphereVolume()) { hash = (37 * hash) + VSPHEREVOLUME_FIELD_NUMBER; hash = (53 * hash) + getVsphereVolume().hashCode(); } if (hasQuobyte()) { hash = (37 * hash) + QUOBYTE_FIELD_NUMBER; hash = (53 * hash) + getQuobyte().hashCode(); } if (hasAzureDisk()) { hash = (37 * hash) + AZUREDISK_FIELD_NUMBER; hash = (53 * hash) + getAzureDisk().hashCode(); } if (hasPhotonPersistentDisk()) { hash = (37 * hash) + PHOTONPERSISTENTDISK_FIELD_NUMBER; hash = (53 * hash) + getPhotonPersistentDisk().hashCode(); } if (hasPortworxVolume()) { hash = (37 * hash) + PORTWORXVOLUME_FIELD_NUMBER; hash = (53 * hash) + getPortworxVolume().hashCode(); } if (hasScaleIO()) { hash = (37 * hash) + SCALEIO_FIELD_NUMBER; hash = (53 * hash) + getScaleIO().hashCode(); } if (hasLocal()) { hash = (37 * hash) + LOCAL_FIELD_NUMBER; hash = (53 * hash) + getLocal().hashCode(); } if (hasStorageos()) { hash = (37 * hash) + STORAGEOS_FIELD_NUMBER; hash = (53 * hash) + getStorageos().hashCode(); } if (hasCsi()) { hash = (37 * hash) + CSI_FIELD_NUMBER; hash = (53 * hash) + getCsi().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource 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.V1.PersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource 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.V1.PersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource 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.V1.PersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource 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.V1.PersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource 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.V1.PersistentVolumeSource 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; } /** * * *
     * PersistentVolumeSource is similar to VolumeSource but meant for the
     * administrator who creates PVs. Exactly one of its members must be set.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeSource) io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeSource.class, io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGcePersistentDiskFieldBuilder(); getAwsElasticBlockStoreFieldBuilder(); getHostPathFieldBuilder(); getGlusterfsFieldBuilder(); getNfsFieldBuilder(); getRbdFieldBuilder(); getIscsiFieldBuilder(); getCinderFieldBuilder(); getCephfsFieldBuilder(); getFcFieldBuilder(); getFlockerFieldBuilder(); getFlexVolumeFieldBuilder(); getAzureFileFieldBuilder(); getVsphereVolumeFieldBuilder(); getQuobyteFieldBuilder(); getAzureDiskFieldBuilder(); getPhotonPersistentDiskFieldBuilder(); getPortworxVolumeFieldBuilder(); getScaleIOFieldBuilder(); getLocalFieldBuilder(); getStorageosFieldBuilder(); getCsiFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (gcePersistentDiskBuilder_ == null) { gcePersistentDisk_ = null; } else { gcePersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStore_ = null; } else { awsElasticBlockStoreBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (hostPathBuilder_ == null) { hostPath_ = null; } else { hostPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (glusterfsBuilder_ == null) { glusterfs_ = null; } else { glusterfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (nfsBuilder_ == null) { nfs_ = null; } else { nfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (rbdBuilder_ == null) { rbd_ = null; } else { rbdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (iscsiBuilder_ == null) { iscsi_ = null; } else { iscsiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (cinderBuilder_ == null) { cinder_ = null; } else { cinderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (cephfsBuilder_ == null) { cephfs_ = null; } else { cephfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (fcBuilder_ == null) { fc_ = null; } else { fcBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (flockerBuilder_ == null) { flocker_ = null; } else { flockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (flexVolumeBuilder_ == null) { flexVolume_ = null; } else { flexVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (azureFileBuilder_ == null) { azureFile_ = null; } else { azureFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (vsphereVolumeBuilder_ == null) { vsphereVolume_ = null; } else { vsphereVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (quobyteBuilder_ == null) { quobyte_ = null; } else { quobyteBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); if (azureDiskBuilder_ == null) { azureDisk_ = null; } else { azureDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); if (photonPersistentDiskBuilder_ == null) { photonPersistentDisk_ = null; } else { photonPersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); if (portworxVolumeBuilder_ == null) { portworxVolume_ = null; } else { portworxVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); if (scaleIOBuilder_ == null) { scaleIO_ = null; } else { scaleIOBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); if (localBuilder_ == null) { local_ = null; } else { localBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); if (storageosBuilder_ == null) { storageos_ = null; } else { storageosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); if (csiBuilder_ == null) { csi_ = null; } else { csiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeSource build() { io.kubernetes.client.proto.V1.PersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeSource result = new io.kubernetes.client.proto.V1.PersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (gcePersistentDiskBuilder_ == null) { result.gcePersistentDisk_ = gcePersistentDisk_; } else { result.gcePersistentDisk_ = gcePersistentDiskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (awsElasticBlockStoreBuilder_ == null) { result.awsElasticBlockStore_ = awsElasticBlockStore_; } else { result.awsElasticBlockStore_ = awsElasticBlockStoreBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (hostPathBuilder_ == null) { result.hostPath_ = hostPath_; } else { result.hostPath_ = hostPathBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (glusterfsBuilder_ == null) { result.glusterfs_ = glusterfs_; } else { result.glusterfs_ = glusterfsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (nfsBuilder_ == null) { result.nfs_ = nfs_; } else { result.nfs_ = nfsBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (rbdBuilder_ == null) { result.rbd_ = rbd_; } else { result.rbd_ = rbdBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (iscsiBuilder_ == null) { result.iscsi_ = iscsi_; } else { result.iscsi_ = iscsiBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (cinderBuilder_ == null) { result.cinder_ = cinder_; } else { result.cinder_ = cinderBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (cephfsBuilder_ == null) { result.cephfs_ = cephfs_; } else { result.cephfs_ = cephfsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (fcBuilder_ == null) { result.fc_ = fc_; } else { result.fc_ = fcBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (flockerBuilder_ == null) { result.flocker_ = flocker_; } else { result.flocker_ = flockerBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } if (flexVolumeBuilder_ == null) { result.flexVolume_ = flexVolume_; } else { result.flexVolume_ = flexVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } if (azureFileBuilder_ == null) { result.azureFile_ = azureFile_; } else { result.azureFile_ = azureFileBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } if (vsphereVolumeBuilder_ == null) { result.vsphereVolume_ = vsphereVolume_; } else { result.vsphereVolume_ = vsphereVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } if (quobyteBuilder_ == null) { result.quobyte_ = quobyte_; } else { result.quobyte_ = quobyteBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } if (azureDiskBuilder_ == null) { result.azureDisk_ = azureDisk_; } else { result.azureDisk_ = azureDiskBuilder_.build(); } if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } if (photonPersistentDiskBuilder_ == null) { result.photonPersistentDisk_ = photonPersistentDisk_; } else { result.photonPersistentDisk_ = photonPersistentDiskBuilder_.build(); } if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } if (portworxVolumeBuilder_ == null) { result.portworxVolume_ = portworxVolume_; } else { result.portworxVolume_ = portworxVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } if (scaleIOBuilder_ == null) { result.scaleIO_ = scaleIO_; } else { result.scaleIO_ = scaleIOBuilder_.build(); } if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } if (localBuilder_ == null) { result.local_ = local_; } else { result.local_ = localBuilder_.build(); } if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } if (storageosBuilder_ == null) { result.storageos_ = storageos_; } else { result.storageos_ = storageosBuilder_.build(); } if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } if (csiBuilder_ == null) { result.csi_ = csi_; } else { result.csi_ = csiBuilder_.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.V1.PersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance()) return this; if (other.hasGcePersistentDisk()) { mergeGcePersistentDisk(other.getGcePersistentDisk()); } if (other.hasAwsElasticBlockStore()) { mergeAwsElasticBlockStore(other.getAwsElasticBlockStore()); } if (other.hasHostPath()) { mergeHostPath(other.getHostPath()); } if (other.hasGlusterfs()) { mergeGlusterfs(other.getGlusterfs()); } if (other.hasNfs()) { mergeNfs(other.getNfs()); } if (other.hasRbd()) { mergeRbd(other.getRbd()); } if (other.hasIscsi()) { mergeIscsi(other.getIscsi()); } if (other.hasCinder()) { mergeCinder(other.getCinder()); } if (other.hasCephfs()) { mergeCephfs(other.getCephfs()); } if (other.hasFc()) { mergeFc(other.getFc()); } if (other.hasFlocker()) { mergeFlocker(other.getFlocker()); } if (other.hasFlexVolume()) { mergeFlexVolume(other.getFlexVolume()); } if (other.hasAzureFile()) { mergeAzureFile(other.getAzureFile()); } if (other.hasVsphereVolume()) { mergeVsphereVolume(other.getVsphereVolume()); } if (other.hasQuobyte()) { mergeQuobyte(other.getQuobyte()); } if (other.hasAzureDisk()) { mergeAzureDisk(other.getAzureDisk()); } if (other.hasPhotonPersistentDisk()) { mergePhotonPersistentDisk(other.getPhotonPersistentDisk()); } if (other.hasPortworxVolume()) { mergePortworxVolume(other.getPortworxVolume()); } if (other.hasScaleIO()) { mergeScaleIO(other.getScaleIO()); } if (other.hasLocal()) { mergeLocal(other.getLocal()); } if (other.hasStorageos()) { mergeStorageos(other.getStorageos()); } if (other.hasCsi()) { mergeCsi(other.getCsi()); } 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.V1.PersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource gcePersistentDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder> gcePersistentDiskBuilder_; /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public boolean hasGcePersistentDisk() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getGcePersistentDisk() { if (gcePersistentDiskBuilder_ == null) { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } else { return gcePersistentDiskBuilder_.getMessage(); } } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public Builder setGcePersistentDisk( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource value) { if (gcePersistentDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gcePersistentDisk_ = value; onChanged(); } else { gcePersistentDiskBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public Builder setGcePersistentDisk( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder builderForValue) { if (gcePersistentDiskBuilder_ == null) { gcePersistentDisk_ = builderForValue.build(); onChanged(); } else { gcePersistentDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public Builder mergeGcePersistentDisk( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource value) { if (gcePersistentDiskBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && gcePersistentDisk_ != null && gcePersistentDisk_ != io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource .getDefaultInstance()) { gcePersistentDisk_ = io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.newBuilder( gcePersistentDisk_) .mergeFrom(value) .buildPartial(); } else { gcePersistentDisk_ = value; } onChanged(); } else { gcePersistentDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public Builder clearGcePersistentDisk() { if (gcePersistentDiskBuilder_ == null) { gcePersistentDisk_ = null; onChanged(); } else { gcePersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder getGcePersistentDiskBuilder() { bitField0_ |= 0x00000001; onChanged(); return getGcePersistentDiskFieldBuilder().getBuilder(); } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder() { if (gcePersistentDiskBuilder_ != null) { return gcePersistentDiskBuilder_.getMessageOrBuilder(); } else { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder> getGcePersistentDiskFieldBuilder() { if (gcePersistentDiskBuilder_ == null) { gcePersistentDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder>( getGcePersistentDisk(), getParentForChildren(), isClean()); gcePersistentDisk_ = null; } return gcePersistentDiskBuilder_; } private io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder> awsElasticBlockStoreBuilder_; /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public boolean hasAwsElasticBlockStore() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { if (awsElasticBlockStoreBuilder_ == null) { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } else { return awsElasticBlockStoreBuilder_.getMessage(); } } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public Builder setAwsElasticBlockStore( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource value) { if (awsElasticBlockStoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } awsElasticBlockStore_ = value; onChanged(); } else { awsElasticBlockStoreBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public Builder setAwsElasticBlockStore( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder builderForValue) { if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStore_ = builderForValue.build(); onChanged(); } else { awsElasticBlockStoreBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public Builder mergeAwsElasticBlockStore( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource value) { if (awsElasticBlockStoreBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && awsElasticBlockStore_ != null && awsElasticBlockStore_ != io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource .getDefaultInstance()) { awsElasticBlockStore_ = io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.newBuilder( awsElasticBlockStore_) .mergeFrom(value) .buildPartial(); } else { awsElasticBlockStore_ = value; } onChanged(); } else { awsElasticBlockStoreBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public Builder clearAwsElasticBlockStore() { if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStore_ = null; onChanged(); } else { awsElasticBlockStoreBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder getAwsElasticBlockStoreBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAwsElasticBlockStoreFieldBuilder().getBuilder(); } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder() { if (awsElasticBlockStoreBuilder_ != null) { return awsElasticBlockStoreBuilder_.getMessageOrBuilder(); } else { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder> getAwsElasticBlockStoreFieldBuilder() { if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder>( getAwsElasticBlockStore(), getParentForChildren(), isClean()); awsElasticBlockStore_ = null; } return awsElasticBlockStoreBuilder_; } private io.kubernetes.client.proto.V1.HostPathVolumeSource hostPath_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HostPathVolumeSource, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder, io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder> hostPathBuilder_; /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public io.kubernetes.client.proto.V1.HostPathVolumeSource getHostPath() { if (hostPathBuilder_ == null) { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } else { return hostPathBuilder_.getMessage(); } } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public Builder setHostPath(io.kubernetes.client.proto.V1.HostPathVolumeSource value) { if (hostPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hostPath_ = value; onChanged(); } else { hostPathBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public Builder setHostPath( io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder builderForValue) { if (hostPathBuilder_ == null) { hostPath_ = builderForValue.build(); onChanged(); } else { hostPathBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public Builder mergeHostPath(io.kubernetes.client.proto.V1.HostPathVolumeSource value) { if (hostPathBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && hostPath_ != null && hostPath_ != io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance()) { hostPath_ = io.kubernetes.client.proto.V1.HostPathVolumeSource.newBuilder(hostPath_) .mergeFrom(value) .buildPartial(); } else { hostPath_ = value; } onChanged(); } else { hostPathBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public Builder clearHostPath() { if (hostPathBuilder_ == null) { hostPath_ = null; onChanged(); } else { hostPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder getHostPathBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHostPathFieldBuilder().getBuilder(); } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ public io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder getHostPathOrBuilder() { if (hostPathBuilder_ != null) { return hostPathBuilder_.getMessageOrBuilder(); } else { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } } /** * * *
       * HostPath represents a directory on the host.
       * Provisioned by a developer or tester.
       * This is useful for single-node development and testing only!
       * On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HostPathVolumeSource, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder, io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder> getHostPathFieldBuilder() { if (hostPathBuilder_ == null) { hostPathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HostPathVolumeSource, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder, io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder>( getHostPath(), getParentForChildren(), isClean()); hostPath_ = null; } return hostPathBuilder_; } private io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource glusterfs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder> glusterfsBuilder_; /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public boolean hasGlusterfs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource getGlusterfs() { if (glusterfsBuilder_ == null) { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.getDefaultInstance() : glusterfs_; } else { return glusterfsBuilder_.getMessage(); } } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public Builder setGlusterfs( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource value) { if (glusterfsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } glusterfs_ = value; onChanged(); } else { glusterfsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public Builder setGlusterfs( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder builderForValue) { if (glusterfsBuilder_ == null) { glusterfs_ = builderForValue.build(); onChanged(); } else { glusterfsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public Builder mergeGlusterfs( io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource value) { if (glusterfsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && glusterfs_ != null && glusterfs_ != io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource .getDefaultInstance()) { glusterfs_ = io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.newBuilder(glusterfs_) .mergeFrom(value) .buildPartial(); } else { glusterfs_ = value; } onChanged(); } else { glusterfsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public Builder clearGlusterfs() { if (glusterfsBuilder_ == null) { glusterfs_ = null; onChanged(); } else { glusterfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder getGlusterfsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGlusterfsFieldBuilder().getBuilder(); } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ public io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder getGlusterfsOrBuilder() { if (glusterfsBuilder_ != null) { return glusterfsBuilder_.getMessageOrBuilder(); } else { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.getDefaultInstance() : glusterfs_; } } /** * * *
       * Glusterfs represents a Glusterfs volume that is attached to a host and
       * exposed to the pod. Provisioned by an admin.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsPersistentVolumeSource glusterfs = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder> getGlusterfsFieldBuilder() { if (glusterfsBuilder_ == null) { glusterfsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.GlusterfsPersistentVolumeSourceOrBuilder>( getGlusterfs(), getParentForChildren(), isClean()); glusterfs_ = null; } return glusterfsBuilder_; } private io.kubernetes.client.proto.V1.NFSVolumeSource nfs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NFSVolumeSource, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder, io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder> nfsBuilder_; /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public boolean hasNfs() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public io.kubernetes.client.proto.V1.NFSVolumeSource getNfs() { if (nfsBuilder_ == null) { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } else { return nfsBuilder_.getMessage(); } } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public Builder setNfs(io.kubernetes.client.proto.V1.NFSVolumeSource value) { if (nfsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nfs_ = value; onChanged(); } else { nfsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public Builder setNfs(io.kubernetes.client.proto.V1.NFSVolumeSource.Builder builderForValue) { if (nfsBuilder_ == null) { nfs_ = builderForValue.build(); onChanged(); } else { nfsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public Builder mergeNfs(io.kubernetes.client.proto.V1.NFSVolumeSource value) { if (nfsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && nfs_ != null && nfs_ != io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance()) { nfs_ = io.kubernetes.client.proto.V1.NFSVolumeSource.newBuilder(nfs_) .mergeFrom(value) .buildPartial(); } else { nfs_ = value; } onChanged(); } else { nfsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public Builder clearNfs() { if (nfsBuilder_ == null) { nfs_ = null; onChanged(); } else { nfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public io.kubernetes.client.proto.V1.NFSVolumeSource.Builder getNfsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getNfsFieldBuilder().getBuilder(); } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ public io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder getNfsOrBuilder() { if (nfsBuilder_ != null) { return nfsBuilder_.getMessageOrBuilder(); } else { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } } /** * * *
       * NFS represents an NFS mount on the host. Provisioned by an admin.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NFSVolumeSource, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder, io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder> getNfsFieldBuilder() { if (nfsBuilder_ == null) { nfsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NFSVolumeSource, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder, io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder>( getNfs(), getParentForChildren(), isClean()); nfs_ = null; } return nfsBuilder_; } private io.kubernetes.client.proto.V1.RBDPersistentVolumeSource rbd_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.RBDPersistentVolumeSource, io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder> rbdBuilder_; /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public boolean hasRbd() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public io.kubernetes.client.proto.V1.RBDPersistentVolumeSource getRbd() { if (rbdBuilder_ == null) { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance() : rbd_; } else { return rbdBuilder_.getMessage(); } } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public Builder setRbd(io.kubernetes.client.proto.V1.RBDPersistentVolumeSource value) { if (rbdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rbd_ = value; onChanged(); } else { rbdBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public Builder setRbd( io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder builderForValue) { if (rbdBuilder_ == null) { rbd_ = builderForValue.build(); onChanged(); } else { rbdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public Builder mergeRbd(io.kubernetes.client.proto.V1.RBDPersistentVolumeSource value) { if (rbdBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && rbd_ != null && rbd_ != io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance()) { rbd_ = io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.newBuilder(rbd_) .mergeFrom(value) .buildPartial(); } else { rbd_ = value; } onChanged(); } else { rbdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public Builder clearRbd() { if (rbdBuilder_ == null) { rbd_ = null; onChanged(); } else { rbdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder getRbdBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRbdFieldBuilder().getBuilder(); } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ public io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder getRbdOrBuilder() { if (rbdBuilder_ != null) { return rbdBuilder_.getMessageOrBuilder(); } else { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance() : rbd_; } } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDPersistentVolumeSource rbd = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.RBDPersistentVolumeSource, io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder> getRbdFieldBuilder() { if (rbdBuilder_ == null) { rbdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.RBDPersistentVolumeSource, io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder>( getRbd(), getParentForChildren(), isClean()); rbd_ = null; } return rbdBuilder_; } private io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource iscsi_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder> iscsiBuilder_; /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public boolean hasIscsi() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource getIscsi() { if (iscsiBuilder_ == null) { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.getDefaultInstance() : iscsi_; } else { return iscsiBuilder_.getMessage(); } } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public Builder setIscsi(io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource value) { if (iscsiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } iscsi_ = value; onChanged(); } else { iscsiBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public Builder setIscsi( io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder builderForValue) { if (iscsiBuilder_ == null) { iscsi_ = builderForValue.build(); onChanged(); } else { iscsiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public Builder mergeIscsi(io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource value) { if (iscsiBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && iscsi_ != null && iscsi_ != io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource .getDefaultInstance()) { iscsi_ = io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.newBuilder(iscsi_) .mergeFrom(value) .buildPartial(); } else { iscsi_ = value; } onChanged(); } else { iscsiBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public Builder clearIscsi() { if (iscsiBuilder_ == null) { iscsi_ = null; onChanged(); } else { iscsiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder getIscsiBuilder() { bitField0_ |= 0x00000040; onChanged(); return getIscsiFieldBuilder().getBuilder(); } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ public io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder getIscsiOrBuilder() { if (iscsiBuilder_ != null) { return iscsiBuilder_.getMessageOrBuilder(); } else { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.getDefaultInstance() : iscsi_; } } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod. Provisioned by an admin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIPersistentVolumeSource iscsi = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder> getIscsiFieldBuilder() { if (iscsiBuilder_ == null) { iscsiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.ISCSIPersistentVolumeSourceOrBuilder>( getIscsi(), getParentForChildren(), isClean()); iscsi_ = null; } return iscsiBuilder_; } private io.kubernetes.client.proto.V1.CinderPersistentVolumeSource cinder_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CinderPersistentVolumeSource, io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder> cinderBuilder_; /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public boolean hasCinder() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public io.kubernetes.client.proto.V1.CinderPersistentVolumeSource getCinder() { if (cinderBuilder_ == null) { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.getDefaultInstance() : cinder_; } else { return cinderBuilder_.getMessage(); } } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public Builder setCinder(io.kubernetes.client.proto.V1.CinderPersistentVolumeSource value) { if (cinderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cinder_ = value; onChanged(); } else { cinderBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public Builder setCinder( io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder builderForValue) { if (cinderBuilder_ == null) { cinder_ = builderForValue.build(); onChanged(); } else { cinderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public Builder mergeCinder(io.kubernetes.client.proto.V1.CinderPersistentVolumeSource value) { if (cinderBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && cinder_ != null && cinder_ != io.kubernetes.client.proto.V1.CinderPersistentVolumeSource .getDefaultInstance()) { cinder_ = io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.newBuilder(cinder_) .mergeFrom(value) .buildPartial(); } else { cinder_ = value; } onChanged(); } else { cinderBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public Builder clearCinder() { if (cinderBuilder_ == null) { cinder_ = null; onChanged(); } else { cinderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder getCinderBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCinderFieldBuilder().getBuilder(); } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ public io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder getCinderOrBuilder() { if (cinderBuilder_ != null) { return cinderBuilder_.getMessageOrBuilder(); } else { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.getDefaultInstance() : cinder_; } } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderPersistentVolumeSource cinder = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CinderPersistentVolumeSource, io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder> getCinderFieldBuilder() { if (cinderBuilder_ == null) { cinderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CinderPersistentVolumeSource, io.kubernetes.client.proto.V1.CinderPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CinderPersistentVolumeSourceOrBuilder>( getCinder(), getParentForChildren(), isClean()); cinder_ = null; } return cinderBuilder_; } private io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource cephfs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder> cephfsBuilder_; /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public boolean hasCephfs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource getCephfs() { if (cephfsBuilder_ == null) { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.getDefaultInstance() : cephfs_; } else { return cephfsBuilder_.getMessage(); } } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public Builder setCephfs(io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource value) { if (cephfsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cephfs_ = value; onChanged(); } else { cephfsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public Builder setCephfs( io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder builderForValue) { if (cephfsBuilder_ == null) { cephfs_ = builderForValue.build(); onChanged(); } else { cephfsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public Builder mergeCephfs(io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource value) { if (cephfsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && cephfs_ != null && cephfs_ != io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource .getDefaultInstance()) { cephfs_ = io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.newBuilder(cephfs_) .mergeFrom(value) .buildPartial(); } else { cephfs_ = value; } onChanged(); } else { cephfsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public Builder clearCephfs() { if (cephfsBuilder_ == null) { cephfs_ = null; onChanged(); } else { cephfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder getCephfsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCephfsFieldBuilder().getBuilder(); } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ public io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder getCephfsOrBuilder() { if (cephfsBuilder_ != null) { return cephfsBuilder_.getMessageOrBuilder(); } else { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.getDefaultInstance() : cephfs_; } } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSPersistentVolumeSource cephfs = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder> getCephfsFieldBuilder() { if (cephfsBuilder_ == null) { cephfsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CephFSPersistentVolumeSourceOrBuilder>( getCephfs(), getParentForChildren(), isClean()); cephfs_ = null; } return cephfsBuilder_; } private io.kubernetes.client.proto.V1.FCVolumeSource fc_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FCVolumeSource, io.kubernetes.client.proto.V1.FCVolumeSource.Builder, io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder> fcBuilder_; /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public boolean hasFc() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public io.kubernetes.client.proto.V1.FCVolumeSource getFc() { if (fcBuilder_ == null) { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } else { return fcBuilder_.getMessage(); } } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public Builder setFc(io.kubernetes.client.proto.V1.FCVolumeSource value) { if (fcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fc_ = value; onChanged(); } else { fcBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public Builder setFc(io.kubernetes.client.proto.V1.FCVolumeSource.Builder builderForValue) { if (fcBuilder_ == null) { fc_ = builderForValue.build(); onChanged(); } else { fcBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public Builder mergeFc(io.kubernetes.client.proto.V1.FCVolumeSource value) { if (fcBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && fc_ != null && fc_ != io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance()) { fc_ = io.kubernetes.client.proto.V1.FCVolumeSource.newBuilder(fc_) .mergeFrom(value) .buildPartial(); } else { fc_ = value; } onChanged(); } else { fcBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public Builder clearFc() { if (fcBuilder_ == null) { fc_ = null; onChanged(); } else { fcBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public io.kubernetes.client.proto.V1.FCVolumeSource.Builder getFcBuilder() { bitField0_ |= 0x00000200; onChanged(); return getFcFieldBuilder().getBuilder(); } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ public io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder getFcOrBuilder() { if (fcBuilder_ != null) { return fcBuilder_.getMessageOrBuilder(); } else { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FCVolumeSource, io.kubernetes.client.proto.V1.FCVolumeSource.Builder, io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder> getFcFieldBuilder() { if (fcBuilder_ == null) { fcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FCVolumeSource, io.kubernetes.client.proto.V1.FCVolumeSource.Builder, io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder>( getFc(), getParentForChildren(), isClean()); fc_ = null; } return fcBuilder_; } private io.kubernetes.client.proto.V1.FlockerVolumeSource flocker_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlockerVolumeSource, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder, io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder> flockerBuilder_; /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public boolean hasFlocker() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public io.kubernetes.client.proto.V1.FlockerVolumeSource getFlocker() { if (flockerBuilder_ == null) { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } else { return flockerBuilder_.getMessage(); } } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public Builder setFlocker(io.kubernetes.client.proto.V1.FlockerVolumeSource value) { if (flockerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flocker_ = value; onChanged(); } else { flockerBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public Builder setFlocker( io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder builderForValue) { if (flockerBuilder_ == null) { flocker_ = builderForValue.build(); onChanged(); } else { flockerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public Builder mergeFlocker(io.kubernetes.client.proto.V1.FlockerVolumeSource value) { if (flockerBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && flocker_ != null && flocker_ != io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance()) { flocker_ = io.kubernetes.client.proto.V1.FlockerVolumeSource.newBuilder(flocker_) .mergeFrom(value) .buildPartial(); } else { flocker_ = value; } onChanged(); } else { flockerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public Builder clearFlocker() { if (flockerBuilder_ == null) { flocker_ = null; onChanged(); } else { flockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder getFlockerBuilder() { bitField0_ |= 0x00000400; onChanged(); return getFlockerFieldBuilder().getBuilder(); } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ public io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder() { if (flockerBuilder_ != null) { return flockerBuilder_.getMessageOrBuilder(); } else { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlockerVolumeSource, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder, io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder> getFlockerFieldBuilder() { if (flockerBuilder_ == null) { flockerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlockerVolumeSource, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder, io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder>( getFlocker(), getParentForChildren(), isClean()); flocker_ = null; } return flockerBuilder_; } private io.kubernetes.client.proto.V1.FlexPersistentVolumeSource flexVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlexPersistentVolumeSource, io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder> flexVolumeBuilder_; /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public boolean hasFlexVolume() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexPersistentVolumeSource getFlexVolume() { if (flexVolumeBuilder_ == null) { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.getDefaultInstance() : flexVolume_; } else { return flexVolumeBuilder_.getMessage(); } } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public Builder setFlexVolume(io.kubernetes.client.proto.V1.FlexPersistentVolumeSource value) { if (flexVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flexVolume_ = value; onChanged(); } else { flexVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public Builder setFlexVolume( io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder builderForValue) { if (flexVolumeBuilder_ == null) { flexVolume_ = builderForValue.build(); onChanged(); } else { flexVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public Builder mergeFlexVolume( io.kubernetes.client.proto.V1.FlexPersistentVolumeSource value) { if (flexVolumeBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && flexVolume_ != null && flexVolume_ != io.kubernetes.client.proto.V1.FlexPersistentVolumeSource .getDefaultInstance()) { flexVolume_ = io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.newBuilder(flexVolume_) .mergeFrom(value) .buildPartial(); } else { flexVolume_ = value; } onChanged(); } else { flexVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public Builder clearFlexVolume() { if (flexVolumeBuilder_ == null) { flexVolume_ = null; onChanged(); } else { flexVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder getFlexVolumeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getFlexVolumeFieldBuilder().getBuilder(); } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder getFlexVolumeOrBuilder() { if (flexVolumeBuilder_ != null) { return flexVolumeBuilder_.getMessageOrBuilder(); } else { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.getDefaultInstance() : flexVolume_; } } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexPersistentVolumeSource flexVolume = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlexPersistentVolumeSource, io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder> getFlexVolumeFieldBuilder() { if (flexVolumeBuilder_ == null) { flexVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlexPersistentVolumeSource, io.kubernetes.client.proto.V1.FlexPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.FlexPersistentVolumeSourceOrBuilder>( getFlexVolume(), getParentForChildren(), isClean()); flexVolume_ = null; } return flexVolumeBuilder_; } private io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource azureFile_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder> azureFileBuilder_; /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public boolean hasAzureFile() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource getAzureFile() { if (azureFileBuilder_ == null) { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.getDefaultInstance() : azureFile_; } else { return azureFileBuilder_.getMessage(); } } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public Builder setAzureFile( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource value) { if (azureFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } azureFile_ = value; onChanged(); } else { azureFileBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public Builder setAzureFile( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder builderForValue) { if (azureFileBuilder_ == null) { azureFile_ = builderForValue.build(); onChanged(); } else { azureFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public Builder mergeAzureFile( io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource value) { if (azureFileBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && azureFile_ != null && azureFile_ != io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource .getDefaultInstance()) { azureFile_ = io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.newBuilder(azureFile_) .mergeFrom(value) .buildPartial(); } else { azureFile_ = value; } onChanged(); } else { azureFileBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public Builder clearAzureFile() { if (azureFileBuilder_ == null) { azureFile_ = null; onChanged(); } else { azureFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder getAzureFileBuilder() { bitField0_ |= 0x00001000; onChanged(); return getAzureFileFieldBuilder().getBuilder(); } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ public io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder getAzureFileOrBuilder() { if (azureFileBuilder_ != null) { return azureFileBuilder_.getMessageOrBuilder(); } else { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.getDefaultInstance() : azureFile_; } } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFilePersistentVolumeSource azureFile = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder> getAzureFileFieldBuilder() { if (azureFileBuilder_ == null) { azureFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureFilePersistentVolumeSourceOrBuilder>( getAzureFile(), getParentForChildren(), isClean()); azureFile_ = null; } return azureFileBuilder_; } private io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource vsphereVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder> vsphereVolumeBuilder_; /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public boolean hasVsphereVolume() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getVsphereVolume() { if (vsphereVolumeBuilder_ == null) { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } else { return vsphereVolumeBuilder_.getMessage(); } } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public Builder setVsphereVolume( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource value) { if (vsphereVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } vsphereVolume_ = value; onChanged(); } else { vsphereVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public Builder setVsphereVolume( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder builderForValue) { if (vsphereVolumeBuilder_ == null) { vsphereVolume_ = builderForValue.build(); onChanged(); } else { vsphereVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public Builder mergeVsphereVolume( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource value) { if (vsphereVolumeBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && vsphereVolume_ != null && vsphereVolume_ != io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource .getDefaultInstance()) { vsphereVolume_ = io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.newBuilder( vsphereVolume_) .mergeFrom(value) .buildPartial(); } else { vsphereVolume_ = value; } onChanged(); } else { vsphereVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public Builder clearVsphereVolume() { if (vsphereVolumeBuilder_ == null) { vsphereVolume_ = null; onChanged(); } else { vsphereVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder getVsphereVolumeBuilder() { bitField0_ |= 0x00002000; onChanged(); return getVsphereVolumeFieldBuilder().getBuilder(); } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder() { if (vsphereVolumeBuilder_ != null) { return vsphereVolumeBuilder_.getMessageOrBuilder(); } else { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 14; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder> getVsphereVolumeFieldBuilder() { if (vsphereVolumeBuilder_ == null) { vsphereVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder>( getVsphereVolume(), getParentForChildren(), isClean()); vsphereVolume_ = null; } return vsphereVolumeBuilder_; } private io.kubernetes.client.proto.V1.QuobyteVolumeSource quobyte_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.QuobyteVolumeSource, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder, io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder> quobyteBuilder_; /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public boolean hasQuobyte() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSource getQuobyte() { if (quobyteBuilder_ == null) { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } else { return quobyteBuilder_.getMessage(); } } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public Builder setQuobyte(io.kubernetes.client.proto.V1.QuobyteVolumeSource value) { if (quobyteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } quobyte_ = value; onChanged(); } else { quobyteBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public Builder setQuobyte( io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder builderForValue) { if (quobyteBuilder_ == null) { quobyte_ = builderForValue.build(); onChanged(); } else { quobyteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public Builder mergeQuobyte(io.kubernetes.client.proto.V1.QuobyteVolumeSource value) { if (quobyteBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && quobyte_ != null && quobyte_ != io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance()) { quobyte_ = io.kubernetes.client.proto.V1.QuobyteVolumeSource.newBuilder(quobyte_) .mergeFrom(value) .buildPartial(); } else { quobyte_ = value; } onChanged(); } else { quobyteBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public Builder clearQuobyte() { if (quobyteBuilder_ == null) { quobyte_ = null; onChanged(); } else { quobyteBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder getQuobyteBuilder() { bitField0_ |= 0x00004000; onChanged(); return getQuobyteFieldBuilder().getBuilder(); } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder() { if (quobyteBuilder_ != null) { return quobyteBuilder_.getMessageOrBuilder(); } else { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.QuobyteVolumeSource, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder, io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder> getQuobyteFieldBuilder() { if (quobyteBuilder_ == null) { quobyteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.QuobyteVolumeSource, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder, io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder>( getQuobyte(), getParentForChildren(), isClean()); quobyte_ = null; } return quobyteBuilder_; } private io.kubernetes.client.proto.V1.AzureDiskVolumeSource azureDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureDiskVolumeSource, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder> azureDiskBuilder_; /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public boolean hasAzureDisk() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getAzureDisk() { if (azureDiskBuilder_ == null) { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } else { return azureDiskBuilder_.getMessage(); } } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public Builder setAzureDisk(io.kubernetes.client.proto.V1.AzureDiskVolumeSource value) { if (azureDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } azureDisk_ = value; onChanged(); } else { azureDiskBuilder_.setMessage(value); } bitField0_ |= 0x00008000; return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public Builder setAzureDisk( io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder builderForValue) { if (azureDiskBuilder_ == null) { azureDisk_ = builderForValue.build(); onChanged(); } else { azureDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public Builder mergeAzureDisk(io.kubernetes.client.proto.V1.AzureDiskVolumeSource value) { if (azureDiskBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000) && azureDisk_ != null && azureDisk_ != io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance()) { azureDisk_ = io.kubernetes.client.proto.V1.AzureDiskVolumeSource.newBuilder(azureDisk_) .mergeFrom(value) .buildPartial(); } else { azureDisk_ = value; } onChanged(); } else { azureDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public Builder clearAzureDisk() { if (azureDiskBuilder_ == null) { azureDisk_ = null; onChanged(); } else { azureDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder getAzureDiskBuilder() { bitField0_ |= 0x00008000; onChanged(); return getAzureDiskFieldBuilder().getBuilder(); } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder() { if (azureDiskBuilder_ != null) { return azureDiskBuilder_.getMessageOrBuilder(); } else { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 16; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureDiskVolumeSource, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder> getAzureDiskFieldBuilder() { if (azureDiskBuilder_ == null) { azureDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureDiskVolumeSource, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder>( getAzureDisk(), getParentForChildren(), isClean()); azureDisk_ = null; } return azureDiskBuilder_; } private io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource photonPersistentDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder> photonPersistentDiskBuilder_; /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public boolean hasPhotonPersistentDisk() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { if (photonPersistentDiskBuilder_ == null) { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } else { return photonPersistentDiskBuilder_.getMessage(); } } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public Builder setPhotonPersistentDisk( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource value) { if (photonPersistentDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } photonPersistentDisk_ = value; onChanged(); } else { photonPersistentDiskBuilder_.setMessage(value); } bitField0_ |= 0x00010000; return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public Builder setPhotonPersistentDisk( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder builderForValue) { if (photonPersistentDiskBuilder_ == null) { photonPersistentDisk_ = builderForValue.build(); onChanged(); } else { photonPersistentDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public Builder mergePhotonPersistentDisk( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource value) { if (photonPersistentDiskBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000) && photonPersistentDisk_ != null && photonPersistentDisk_ != io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource .getDefaultInstance()) { photonPersistentDisk_ = io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.newBuilder( photonPersistentDisk_) .mergeFrom(value) .buildPartial(); } else { photonPersistentDisk_ = value; } onChanged(); } else { photonPersistentDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00010000; return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public Builder clearPhotonPersistentDisk() { if (photonPersistentDiskBuilder_ == null) { photonPersistentDisk_ = null; onChanged(); } else { photonPersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder getPhotonPersistentDiskBuilder() { bitField0_ |= 0x00010000; onChanged(); return getPhotonPersistentDiskFieldBuilder().getBuilder(); } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder() { if (photonPersistentDiskBuilder_ != null) { return photonPersistentDiskBuilder_.getMessageOrBuilder(); } else { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 17; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder> getPhotonPersistentDiskFieldBuilder() { if (photonPersistentDiskBuilder_ == null) { photonPersistentDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder>( getPhotonPersistentDisk(), getParentForChildren(), isClean()); photonPersistentDisk_ = null; } return photonPersistentDiskBuilder_; } private io.kubernetes.client.proto.V1.PortworxVolumeSource portworxVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PortworxVolumeSource, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder, io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder> portworxVolumeBuilder_; /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public boolean hasPortworxVolume() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public io.kubernetes.client.proto.V1.PortworxVolumeSource getPortworxVolume() { if (portworxVolumeBuilder_ == null) { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } else { return portworxVolumeBuilder_.getMessage(); } } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public Builder setPortworxVolume(io.kubernetes.client.proto.V1.PortworxVolumeSource value) { if (portworxVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } portworxVolume_ = value; onChanged(); } else { portworxVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00020000; return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public Builder setPortworxVolume( io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder builderForValue) { if (portworxVolumeBuilder_ == null) { portworxVolume_ = builderForValue.build(); onChanged(); } else { portworxVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public Builder mergePortworxVolume(io.kubernetes.client.proto.V1.PortworxVolumeSource value) { if (portworxVolumeBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000) && portworxVolume_ != null && portworxVolume_ != io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance()) { portworxVolume_ = io.kubernetes.client.proto.V1.PortworxVolumeSource.newBuilder(portworxVolume_) .mergeFrom(value) .buildPartial(); } else { portworxVolume_ = value; } onChanged(); } else { portworxVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public Builder clearPortworxVolume() { if (portworxVolumeBuilder_ == null) { portworxVolume_ = null; onChanged(); } else { portworxVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder getPortworxVolumeBuilder() { bitField0_ |= 0x00020000; onChanged(); return getPortworxVolumeFieldBuilder().getBuilder(); } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ public io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder() { if (portworxVolumeBuilder_ != null) { return portworxVolumeBuilder_.getMessageOrBuilder(); } else { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 18; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PortworxVolumeSource, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder, io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder> getPortworxVolumeFieldBuilder() { if (portworxVolumeBuilder_ == null) { portworxVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PortworxVolumeSource, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder, io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder>( getPortworxVolume(), getParentForChildren(), isClean()); portworxVolume_ = null; } return portworxVolumeBuilder_; } private io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource scaleIO_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder> scaleIOBuilder_; /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public boolean hasScaleIO() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource getScaleIO() { if (scaleIOBuilder_ == null) { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.getDefaultInstance() : scaleIO_; } else { return scaleIOBuilder_.getMessage(); } } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public Builder setScaleIO(io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource value) { if (scaleIOBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scaleIO_ = value; onChanged(); } else { scaleIOBuilder_.setMessage(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public Builder setScaleIO( io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder builderForValue) { if (scaleIOBuilder_ == null) { scaleIO_ = builderForValue.build(); onChanged(); } else { scaleIOBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public Builder mergeScaleIO( io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource value) { if (scaleIOBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000) && scaleIO_ != null && scaleIO_ != io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource .getDefaultInstance()) { scaleIO_ = io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.newBuilder(scaleIO_) .mergeFrom(value) .buildPartial(); } else { scaleIO_ = value; } onChanged(); } else { scaleIOBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public Builder clearScaleIO() { if (scaleIOBuilder_ == null) { scaleIO_ = null; onChanged(); } else { scaleIOBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder getScaleIOBuilder() { bitField0_ |= 0x00040000; onChanged(); return getScaleIOFieldBuilder().getBuilder(); } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder getScaleIOOrBuilder() { if (scaleIOBuilder_ != null) { return scaleIOBuilder_.getMessageOrBuilder(); } else { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.getDefaultInstance() : scaleIO_; } } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOPersistentVolumeSource scaleIO = 19; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder> getScaleIOFieldBuilder() { if (scaleIOBuilder_ == null) { scaleIOBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder>( getScaleIO(), getParentForChildren(), isClean()); scaleIO_ = null; } return scaleIOBuilder_; } private io.kubernetes.client.proto.V1.LocalVolumeSource local_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalVolumeSource, io.kubernetes.client.proto.V1.LocalVolumeSource.Builder, io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder> localBuilder_; /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public boolean hasLocal() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public io.kubernetes.client.proto.V1.LocalVolumeSource getLocal() { if (localBuilder_ == null) { return local_ == null ? io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance() : local_; } else { return localBuilder_.getMessage(); } } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public Builder setLocal(io.kubernetes.client.proto.V1.LocalVolumeSource value) { if (localBuilder_ == null) { if (value == null) { throw new NullPointerException(); } local_ = value; onChanged(); } else { localBuilder_.setMessage(value); } bitField0_ |= 0x00080000; return this; } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public Builder setLocal( io.kubernetes.client.proto.V1.LocalVolumeSource.Builder builderForValue) { if (localBuilder_ == null) { local_ = builderForValue.build(); onChanged(); } else { localBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; return this; } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public Builder mergeLocal(io.kubernetes.client.proto.V1.LocalVolumeSource value) { if (localBuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000) && local_ != null && local_ != io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance()) { local_ = io.kubernetes.client.proto.V1.LocalVolumeSource.newBuilder(local_) .mergeFrom(value) .buildPartial(); } else { local_ = value; } onChanged(); } else { localBuilder_.mergeFrom(value); } bitField0_ |= 0x00080000; return this; } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public Builder clearLocal() { if (localBuilder_ == null) { local_ = null; onChanged(); } else { localBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); return this; } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public io.kubernetes.client.proto.V1.LocalVolumeSource.Builder getLocalBuilder() { bitField0_ |= 0x00080000; onChanged(); return getLocalFieldBuilder().getBuilder(); } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ public io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder getLocalOrBuilder() { if (localBuilder_ != null) { return localBuilder_.getMessageOrBuilder(); } else { return local_ == null ? io.kubernetes.client.proto.V1.LocalVolumeSource.getDefaultInstance() : local_; } } /** * * *
       * Local represents directly-attached storage with node affinity
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalVolumeSource local = 20; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalVolumeSource, io.kubernetes.client.proto.V1.LocalVolumeSource.Builder, io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder> getLocalFieldBuilder() { if (localBuilder_ == null) { localBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalVolumeSource, io.kubernetes.client.proto.V1.LocalVolumeSource.Builder, io.kubernetes.client.proto.V1.LocalVolumeSourceOrBuilder>( getLocal(), getParentForChildren(), isClean()); local_ = null; } return localBuilder_; } private io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource storageos_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder> storageosBuilder_; /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public boolean hasStorageos() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource getStorageos() { if (storageosBuilder_ == null) { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.getDefaultInstance() : storageos_; } else { return storageosBuilder_.getMessage(); } } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public Builder setStorageos( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource value) { if (storageosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storageos_ = value; onChanged(); } else { storageosBuilder_.setMessage(value); } bitField0_ |= 0x00100000; return this; } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public Builder setStorageos( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder builderForValue) { if (storageosBuilder_ == null) { storageos_ = builderForValue.build(); onChanged(); } else { storageosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00100000; return this; } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public Builder mergeStorageos( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource value) { if (storageosBuilder_ == null) { if (((bitField0_ & 0x00100000) == 0x00100000) && storageos_ != null && storageos_ != io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource .getDefaultInstance()) { storageos_ = io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.newBuilder(storageos_) .mergeFrom(value) .buildPartial(); } else { storageos_ = value; } onChanged(); } else { storageosBuilder_.mergeFrom(value); } bitField0_ |= 0x00100000; return this; } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public Builder clearStorageos() { if (storageosBuilder_ == null) { storageos_ = null; onChanged(); } else { storageosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); return this; } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder getStorageosBuilder() { bitField0_ |= 0x00100000; onChanged(); return getStorageosFieldBuilder().getBuilder(); } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder getStorageosOrBuilder() { if (storageosBuilder_ != null) { return storageosBuilder_.getMessageOrBuilder(); } else { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.getDefaultInstance() : storageos_; } } /** * * *
       * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod
       * More info: https://examples.k8s.io/volumes/storageos/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSPersistentVolumeSource storageos = 21; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder> getStorageosFieldBuilder() { if (storageosBuilder_ == null) { storageosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder>( getStorageos(), getParentForChildren(), isClean()); storageos_ = null; } return storageosBuilder_; } private io.kubernetes.client.proto.V1.CSIPersistentVolumeSource csi_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CSIPersistentVolumeSource, io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder> csiBuilder_; /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public boolean hasCsi() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public io.kubernetes.client.proto.V1.CSIPersistentVolumeSource getCsi() { if (csiBuilder_ == null) { return csi_ == null ? io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance() : csi_; } else { return csiBuilder_.getMessage(); } } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public Builder setCsi(io.kubernetes.client.proto.V1.CSIPersistentVolumeSource value) { if (csiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } csi_ = value; onChanged(); } else { csiBuilder_.setMessage(value); } bitField0_ |= 0x00200000; return this; } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public Builder setCsi( io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder builderForValue) { if (csiBuilder_ == null) { csi_ = builderForValue.build(); onChanged(); } else { csiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00200000; return this; } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public Builder mergeCsi(io.kubernetes.client.proto.V1.CSIPersistentVolumeSource value) { if (csiBuilder_ == null) { if (((bitField0_ & 0x00200000) == 0x00200000) && csi_ != null && csi_ != io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance()) { csi_ = io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.newBuilder(csi_) .mergeFrom(value) .buildPartial(); } else { csi_ = value; } onChanged(); } else { csiBuilder_.mergeFrom(value); } bitField0_ |= 0x00200000; return this; } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public Builder clearCsi() { if (csiBuilder_ == null) { csi_ = null; onChanged(); } else { csiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); return this; } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder getCsiBuilder() { bitField0_ |= 0x00200000; onChanged(); return getCsiFieldBuilder().getBuilder(); } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ public io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder getCsiOrBuilder() { if (csiBuilder_ != null) { return csiBuilder_.getMessageOrBuilder(); } else { return csi_ == null ? io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.getDefaultInstance() : csi_; } } /** * * *
       * CSI represents storage that is handled by an external CSI driver (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIPersistentVolumeSource csi = 22; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CSIPersistentVolumeSource, io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder> getCsiFieldBuilder() { if (csiBuilder_ == null) { csiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CSIPersistentVolumeSource, io.kubernetes.client.proto.V1.CSIPersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.CSIPersistentVolumeSourceOrBuilder>( getCsi(), getParentForChildren(), isClean()); csi_ = null; } return csiBuilder_; } @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.core.v1.PersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeSource) private static final io.kubernetes.client.proto.V1.PersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.PersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeSource(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.V1.PersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ int getCapacityCount(); /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ boolean containsCapacity(java.lang.String key); /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated java.util.Map getCapacity(); /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ java.util.Map getCapacityMap(); /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key); /** * * *
     * The actual volume backing the persistent volume.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; */ boolean hasPersistentVolumeSource(); /** * * *
     * The actual volume backing the persistent volume.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeSource getPersistentVolumeSource(); /** * * *
     * The actual volume backing the persistent volume.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; */ io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder(); /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ java.util.List getAccessModesList(); /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ int getAccessModesCount(); /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ java.lang.String getAccessModes(int index); /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ com.google.protobuf.ByteString getAccessModesBytes(int index); /** * * *
     * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
     * Expected to be non-nil when bound.
     * claim.VolumeName is the authoritative bind between PV and PVC.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ boolean hasClaimRef(); /** * * *
     * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
     * Expected to be non-nil when bound.
     * claim.VolumeName is the authoritative bind between PV and PVC.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ io.kubernetes.client.proto.V1.ObjectReference getClaimRef(); /** * * *
     * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
     * Expected to be non-nil when bound.
     * claim.VolumeName is the authoritative bind between PV and PVC.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getClaimRefOrBuilder(); /** * * *
     * What happens to a persistent volume when released from its claim.
     * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
     * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
     * Recycle must be supported by the volume plugin underlying this PersistentVolume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
     * +optional
     * 
* * optional string persistentVolumeReclaimPolicy = 5; */ boolean hasPersistentVolumeReclaimPolicy(); /** * * *
     * What happens to a persistent volume when released from its claim.
     * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
     * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
     * Recycle must be supported by the volume plugin underlying this PersistentVolume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
     * +optional
     * 
* * optional string persistentVolumeReclaimPolicy = 5; */ java.lang.String getPersistentVolumeReclaimPolicy(); /** * * *
     * What happens to a persistent volume when released from its claim.
     * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
     * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
     * Recycle must be supported by the volume plugin underlying this PersistentVolume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
     * +optional
     * 
* * optional string persistentVolumeReclaimPolicy = 5; */ com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes(); /** * * *
     * Name of StorageClass to which this persistent volume belongs. Empty value
     * means that this volume does not belong to any StorageClass.
     * +optional
     * 
* * optional string storageClassName = 6; */ boolean hasStorageClassName(); /** * * *
     * Name of StorageClass to which this persistent volume belongs. Empty value
     * means that this volume does not belong to any StorageClass.
     * +optional
     * 
* * optional string storageClassName = 6; */ java.lang.String getStorageClassName(); /** * * *
     * Name of StorageClass to which this persistent volume belongs. Empty value
     * means that this volume does not belong to any StorageClass.
     * +optional
     * 
* * optional string storageClassName = 6; */ com.google.protobuf.ByteString getStorageClassNameBytes(); /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ java.util.List getMountOptionsList(); /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ int getMountOptionsCount(); /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ java.lang.String getMountOptions(int index); /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ com.google.protobuf.ByteString getMountOptionsBytes(int index); /** * * *
     * volumeMode defines if a volume is intended to be used with a formatted filesystem
     * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
     * +optional
     * 
* * optional string volumeMode = 8; */ boolean hasVolumeMode(); /** * * *
     * volumeMode defines if a volume is intended to be used with a formatted filesystem
     * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
     * +optional
     * 
* * optional string volumeMode = 8; */ java.lang.String getVolumeMode(); /** * * *
     * volumeMode defines if a volume is intended to be used with a formatted filesystem
     * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
     * +optional
     * 
* * optional string volumeMode = 8; */ com.google.protobuf.ByteString getVolumeModeBytes(); /** * * *
     * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * This field influences the scheduling of pods that use this volume.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ boolean hasNodeAffinity(); /** * * *
     * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * This field influences the scheduling of pods that use this volume.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ io.kubernetes.client.proto.V1.VolumeNodeAffinity getNodeAffinity(); /** * * *
     * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * This field influences the scheduling of pods that use this volume.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder getNodeAffinityOrBuilder(); } /** * * *
   * PersistentVolumeSpec is the specification of a persistent volume.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeSpec} */ public static final class PersistentVolumeSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeSpec) PersistentVolumeSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeSpec.newBuilder() to construct. private PersistentVolumeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeSpec() { accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; persistentVolumeReclaimPolicy_ = ""; storageClassName_ = ""; mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; volumeMode_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeSpec( 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)) { capacity_ = com.google.protobuf.MapField.newMapField( CapacityDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity__ = input.readMessage( CapacityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); capacity_.getMutableMap().put(capacity__.getKey(), capacity__.getValue()); break; } case 18: { io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = persistentVolumeSource_.toBuilder(); } persistentVolumeSource_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(persistentVolumeSource_); persistentVolumeSource_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { accessModes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } accessModes_.add(bs); break; } case 34: { io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = claimRef_.toBuilder(); } claimRef_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(claimRef_); claimRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; persistentVolumeReclaimPolicy_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; storageClassName_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { mountOptions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } mountOptions_.add(bs); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; volumeMode_ = bs; break; } case 74: { io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = nodeAffinity_.toBuilder(); } nodeAffinity_ = input.readMessage( io.kubernetes.client.proto.V1.VolumeNodeAffinity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nodeAffinity_); nodeAffinity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; 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)) { accessModes_ = accessModes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { mountOptions_ = mountOptions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeSpec.class, io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder.class); } private int bitField0_; public static final int CAPACITY_FIELD_NUMBER = 1; private static final class CapacityDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField(CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * A description of the persistent volume's resources and capacity.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PERSISTENTVOLUMESOURCE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PersistentVolumeSource persistentVolumeSource_; /** * * *
     * The actual volume backing the persistent volume.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; */ public boolean hasPersistentVolumeSource() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The actual volume backing the persistent volume.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSource getPersistentVolumeSource() { return persistentVolumeSource_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance() : persistentVolumeSource_; } /** * * *
     * The actual volume backing the persistent volume.
     * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; */ public io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder() { return persistentVolumeSource_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance() : persistentVolumeSource_; } public static final int ACCESSMODES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList accessModes_; /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ public com.google.protobuf.ProtocolStringList getAccessModesList() { return accessModes_; } /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ public int getAccessModesCount() { return accessModes_.size(); } /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ public java.lang.String getAccessModes(int index) { return accessModes_.get(index); } /** * * *
     * AccessModes contains all ways the volume can be mounted.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
     * +optional
     * 
* * repeated string accessModes = 3; */ public com.google.protobuf.ByteString getAccessModesBytes(int index) { return accessModes_.getByteString(index); } public static final int CLAIMREF_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.ObjectReference claimRef_; /** * * *
     * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
     * Expected to be non-nil when bound.
     * claim.VolumeName is the authoritative bind between PV and PVC.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public boolean hasClaimRef() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
     * Expected to be non-nil when bound.
     * claim.VolumeName is the authoritative bind between PV and PVC.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public io.kubernetes.client.proto.V1.ObjectReference getClaimRef() { return claimRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : claimRef_; } /** * * *
     * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
     * Expected to be non-nil when bound.
     * claim.VolumeName is the authoritative bind between PV and PVC.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getClaimRefOrBuilder() { return claimRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : claimRef_; } public static final int PERSISTENTVOLUMERECLAIMPOLICY_FIELD_NUMBER = 5; private volatile java.lang.Object persistentVolumeReclaimPolicy_; /** * * *
     * What happens to a persistent volume when released from its claim.
     * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
     * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
     * Recycle must be supported by the volume plugin underlying this PersistentVolume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
     * +optional
     * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public boolean hasPersistentVolumeReclaimPolicy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * What happens to a persistent volume when released from its claim.
     * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
     * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
     * Recycle must be supported by the volume plugin underlying this PersistentVolume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
     * +optional
     * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public java.lang.String getPersistentVolumeReclaimPolicy() { java.lang.Object ref = persistentVolumeReclaimPolicy_; 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()) { persistentVolumeReclaimPolicy_ = s; } return s; } } /** * * *
     * What happens to a persistent volume when released from its claim.
     * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
     * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
     * Recycle must be supported by the volume plugin underlying this PersistentVolume.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
     * +optional
     * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes() { java.lang.Object ref = persistentVolumeReclaimPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistentVolumeReclaimPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGECLASSNAME_FIELD_NUMBER = 6; private volatile java.lang.Object storageClassName_; /** * * *
     * Name of StorageClass to which this persistent volume belongs. Empty value
     * means that this volume does not belong to any StorageClass.
     * +optional
     * 
* * optional string storageClassName = 6; */ public boolean hasStorageClassName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Name of StorageClass to which this persistent volume belongs. Empty value
     * means that this volume does not belong to any StorageClass.
     * +optional
     * 
* * optional string storageClassName = 6; */ 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; } } /** * * *
     * Name of StorageClass to which this persistent volume belongs. Empty value
     * means that this volume does not belong to any StorageClass.
     * +optional
     * 
* * optional string storageClassName = 6; */ 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 MOUNTOPTIONS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList mountOptions_; /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ public com.google.protobuf.ProtocolStringList getMountOptionsList() { return mountOptions_; } /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ public int getMountOptionsCount() { return mountOptions_.size(); } /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ public java.lang.String getMountOptions(int index) { return mountOptions_.get(index); } /** * * *
     * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
     * simply fail if one is invalid.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
     * +optional
     * 
* * repeated string mountOptions = 7; */ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { return mountOptions_.getByteString(index); } public static final int VOLUMEMODE_FIELD_NUMBER = 8; private volatile java.lang.Object volumeMode_; /** * * *
     * volumeMode defines if a volume is intended to be used with a formatted filesystem
     * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
     * +optional
     * 
* * optional string volumeMode = 8; */ public boolean hasVolumeMode() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * volumeMode defines if a volume is intended to be used with a formatted filesystem
     * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
     * +optional
     * 
* * optional string volumeMode = 8; */ public java.lang.String getVolumeMode() { java.lang.Object ref = volumeMode_; 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()) { volumeMode_ = s; } return s; } } /** * * *
     * volumeMode defines if a volume is intended to be used with a formatted filesystem
     * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
     * +optional
     * 
* * optional string volumeMode = 8; */ public com.google.protobuf.ByteString getVolumeModeBytes() { java.lang.Object ref = volumeMode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NODEAFFINITY_FIELD_NUMBER = 9; private io.kubernetes.client.proto.V1.VolumeNodeAffinity nodeAffinity_; /** * * *
     * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * This field influences the scheduling of pods that use this volume.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public boolean hasNodeAffinity() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * This field influences the scheduling of pods that use this volume.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public io.kubernetes.client.proto.V1.VolumeNodeAffinity getNodeAffinity() { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance() : nodeAffinity_; } /** * * *
     * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * This field influences the scheduling of pods that use this volume.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder getNodeAffinityOrBuilder() { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance() : nodeAffinity_; } 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 { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCapacity(), CapacityDefaultEntryHolder.defaultEntry, 1); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, getPersistentVolumeSource()); } for (int i = 0; i < accessModes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, accessModes_.getRaw(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, getClaimRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString( output, 5, persistentVolumeReclaimPolicy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, storageClassName_); } for (int i = 0; i < mountOptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, mountOptions_.getRaw(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, volumeMode_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(9, getNodeAffinity()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetCapacity().getMap().entrySet()) { com.google.protobuf.MapEntry capacity__ = CapacityDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, capacity__); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getPersistentVolumeSource()); } { int dataSize = 0; for (int i = 0; i < accessModes_.size(); i++) { dataSize += computeStringSizeNoTag(accessModes_.getRaw(i)); } size += dataSize; size += 1 * getAccessModesList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClaimRef()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( 5, persistentVolumeReclaimPolicy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, storageClassName_); } { int dataSize = 0; for (int i = 0; i < mountOptions_.size(); i++) { dataSize += computeStringSizeNoTag(mountOptions_.getRaw(i)); } size += dataSize; size += 1 * getMountOptionsList().size(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, volumeMode_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getNodeAffinity()); } 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.V1.PersistentVolumeSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeSpec other = (io.kubernetes.client.proto.V1.PersistentVolumeSpec) obj; boolean result = true; result = result && internalGetCapacity().equals(other.internalGetCapacity()); result = result && (hasPersistentVolumeSource() == other.hasPersistentVolumeSource()); if (hasPersistentVolumeSource()) { result = result && getPersistentVolumeSource().equals(other.getPersistentVolumeSource()); } result = result && getAccessModesList().equals(other.getAccessModesList()); result = result && (hasClaimRef() == other.hasClaimRef()); if (hasClaimRef()) { result = result && getClaimRef().equals(other.getClaimRef()); } result = result && (hasPersistentVolumeReclaimPolicy() == other.hasPersistentVolumeReclaimPolicy()); if (hasPersistentVolumeReclaimPolicy()) { result = result && getPersistentVolumeReclaimPolicy() .equals(other.getPersistentVolumeReclaimPolicy()); } result = result && (hasStorageClassName() == other.hasStorageClassName()); if (hasStorageClassName()) { result = result && getStorageClassName().equals(other.getStorageClassName()); } result = result && getMountOptionsList().equals(other.getMountOptionsList()); result = result && (hasVolumeMode() == other.hasVolumeMode()); if (hasVolumeMode()) { result = result && getVolumeMode().equals(other.getVolumeMode()); } result = result && (hasNodeAffinity() == other.hasNodeAffinity()); if (hasNodeAffinity()) { result = result && getNodeAffinity().equals(other.getNodeAffinity()); } 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 (!internalGetCapacity().getMap().isEmpty()) { hash = (37 * hash) + CAPACITY_FIELD_NUMBER; hash = (53 * hash) + internalGetCapacity().hashCode(); } if (hasPersistentVolumeSource()) { hash = (37 * hash) + PERSISTENTVOLUMESOURCE_FIELD_NUMBER; hash = (53 * hash) + getPersistentVolumeSource().hashCode(); } if (getAccessModesCount() > 0) { hash = (37 * hash) + ACCESSMODES_FIELD_NUMBER; hash = (53 * hash) + getAccessModesList().hashCode(); } if (hasClaimRef()) { hash = (37 * hash) + CLAIMREF_FIELD_NUMBER; hash = (53 * hash) + getClaimRef().hashCode(); } if (hasPersistentVolumeReclaimPolicy()) { hash = (37 * hash) + PERSISTENTVOLUMERECLAIMPOLICY_FIELD_NUMBER; hash = (53 * hash) + getPersistentVolumeReclaimPolicy().hashCode(); } if (hasStorageClassName()) { hash = (37 * hash) + STORAGECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getStorageClassName().hashCode(); } if (getMountOptionsCount() > 0) { hash = (37 * hash) + MOUNTOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getMountOptionsList().hashCode(); } if (hasVolumeMode()) { hash = (37 * hash) + VOLUMEMODE_FIELD_NUMBER; hash = (53 * hash) + getVolumeMode().hashCode(); } if (hasNodeAffinity()) { hash = (37 * hash) + NODEAFFINITY_FIELD_NUMBER; hash = (53 * hash) + getNodeAffinity().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec 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.V1.PersistentVolumeSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec 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.V1.PersistentVolumeSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec 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.V1.PersistentVolumeSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec 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.V1.PersistentVolumeSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec 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.V1.PersistentVolumeSpec 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; } /** * * *
     * PersistentVolumeSpec is the specification of a persistent volume.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeSpec) io.kubernetes.client.proto.V1.PersistentVolumeSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableCapacity(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeSpec.class, io.kubernetes.client.proto.V1.PersistentVolumeSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPersistentVolumeSourceFieldBuilder(); getClaimRefFieldBuilder(); getNodeAffinityFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableCapacity().clear(); if (persistentVolumeSourceBuilder_ == null) { persistentVolumeSource_ = null; } else { persistentVolumeSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (claimRefBuilder_ == null) { claimRef_ = null; } else { claimRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); persistentVolumeReclaimPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000010); storageClassName_ = ""; bitField0_ = (bitField0_ & ~0x00000020); mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); volumeMode_ = ""; bitField0_ = (bitField0_ & ~0x00000080); if (nodeAffinityBuilder_ == null) { nodeAffinity_ = null; } else { nodeAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeSpec build() { io.kubernetes.client.proto.V1.PersistentVolumeSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeSpec buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeSpec result = new io.kubernetes.client.proto.V1.PersistentVolumeSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.capacity_ = internalGetCapacity(); result.capacity_.makeImmutable(); if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (persistentVolumeSourceBuilder_ == null) { result.persistentVolumeSource_ = persistentVolumeSource_; } else { result.persistentVolumeSource_ = persistentVolumeSourceBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { accessModes_ = accessModes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.accessModes_ = accessModes_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } if (claimRefBuilder_ == null) { result.claimRef_ = claimRef_; } else { result.claimRef_ = claimRefBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.persistentVolumeReclaimPolicy_ = persistentVolumeReclaimPolicy_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.storageClassName_ = storageClassName_; if (((bitField0_ & 0x00000040) == 0x00000040)) { mountOptions_ = mountOptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.mountOptions_ = mountOptions_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000010; } result.volumeMode_ = volumeMode_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000020; } if (nodeAffinityBuilder_ == null) { result.nodeAffinity_ = nodeAffinity_; } else { result.nodeAffinity_ = nodeAffinityBuilder_.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.V1.PersistentVolumeSpec) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeSpec other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeSpec.getDefaultInstance()) return this; internalGetMutableCapacity().mergeFrom(other.internalGetCapacity()); if (other.hasPersistentVolumeSource()) { mergePersistentVolumeSource(other.getPersistentVolumeSource()); } if (!other.accessModes_.isEmpty()) { if (accessModes_.isEmpty()) { accessModes_ = other.accessModes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAccessModesIsMutable(); accessModes_.addAll(other.accessModes_); } onChanged(); } if (other.hasClaimRef()) { mergeClaimRef(other.getClaimRef()); } if (other.hasPersistentVolumeReclaimPolicy()) { bitField0_ |= 0x00000010; persistentVolumeReclaimPolicy_ = other.persistentVolumeReclaimPolicy_; onChanged(); } if (other.hasStorageClassName()) { bitField0_ |= 0x00000020; storageClassName_ = other.storageClassName_; onChanged(); } if (!other.mountOptions_.isEmpty()) { if (mountOptions_.isEmpty()) { mountOptions_ = other.mountOptions_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMountOptionsIsMutable(); mountOptions_.addAll(other.mountOptions_); } onChanged(); } if (other.hasVolumeMode()) { bitField0_ |= 0x00000080; volumeMode_ = other.volumeMode_; onChanged(); } if (other.hasNodeAffinity()) { mergeNodeAffinity(other.getNodeAffinity()); } 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.V1.PersistentVolumeSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> capacity_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetCapacity() { if (capacity_ == null) { return com.google.protobuf.MapField.emptyMapField( CapacityDefaultEntryHolder.defaultEntry); } return capacity_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableCapacity() { onChanged(); ; if (capacity_ == null) { capacity_ = com.google.protobuf.MapField.newMapField(CapacityDefaultEntryHolder.defaultEntry); } if (!capacity_.isMutable()) { capacity_ = capacity_.copy(); } return capacity_; } public int getCapacityCount() { return internalGetCapacity().getMap().size(); } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public boolean containsCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetCapacity().getMap().containsKey(key); } /** Use {@link #getCapacityMap()} instead. */ @java.lang.Deprecated public java.util.Map getCapacity() { return getCapacityMap(); } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public java.util.Map getCapacityMap() { return internalGetCapacity().getMap(); } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public io.kubernetes.client.proto.Resource.Quantity getCapacityOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetCapacity().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCapacity() { internalGetMutableCapacity().getMutableMap().clear(); return this; } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder removeCapacity(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCapacity() { return internalGetMutableCapacity().getMutableMap(); } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder putCapacity( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableCapacity().getMutableMap().put(key, value); return this; } /** * * *
       * A description of the persistent volume's resources and capacity.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1; * */ public Builder putAllCapacity( java.util.Map values) { internalGetMutableCapacity().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1.PersistentVolumeSource persistentVolumeSource_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSource, io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder> persistentVolumeSourceBuilder_; /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public boolean hasPersistentVolumeSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public io.kubernetes.client.proto.V1.PersistentVolumeSource getPersistentVolumeSource() { if (persistentVolumeSourceBuilder_ == null) { return persistentVolumeSource_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance() : persistentVolumeSource_; } else { return persistentVolumeSourceBuilder_.getMessage(); } } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public Builder setPersistentVolumeSource( io.kubernetes.client.proto.V1.PersistentVolumeSource value) { if (persistentVolumeSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } persistentVolumeSource_ = value; onChanged(); } else { persistentVolumeSourceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public Builder setPersistentVolumeSource( io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder builderForValue) { if (persistentVolumeSourceBuilder_ == null) { persistentVolumeSource_ = builderForValue.build(); onChanged(); } else { persistentVolumeSourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public Builder mergePersistentVolumeSource( io.kubernetes.client.proto.V1.PersistentVolumeSource value) { if (persistentVolumeSourceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && persistentVolumeSource_ != null && persistentVolumeSource_ != io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance()) { persistentVolumeSource_ = io.kubernetes.client.proto.V1.PersistentVolumeSource.newBuilder( persistentVolumeSource_) .mergeFrom(value) .buildPartial(); } else { persistentVolumeSource_ = value; } onChanged(); } else { persistentVolumeSourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public Builder clearPersistentVolumeSource() { if (persistentVolumeSourceBuilder_ == null) { persistentVolumeSource_ = null; onChanged(); } else { persistentVolumeSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder getPersistentVolumeSourceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPersistentVolumeSourceFieldBuilder().getBuilder(); } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ public io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder getPersistentVolumeSourceOrBuilder() { if (persistentVolumeSourceBuilder_ != null) { return persistentVolumeSourceBuilder_.getMessageOrBuilder(); } else { return persistentVolumeSource_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeSource.getDefaultInstance() : persistentVolumeSource_; } } /** * * *
       * The actual volume backing the persistent volume.
       * 
* * optional .k8s.io.api.core.v1.PersistentVolumeSource persistentVolumeSource = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSource, io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder> getPersistentVolumeSourceFieldBuilder() { if (persistentVolumeSourceBuilder_ == null) { persistentVolumeSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeSource, io.kubernetes.client.proto.V1.PersistentVolumeSource.Builder, io.kubernetes.client.proto.V1.PersistentVolumeSourceOrBuilder>( getPersistentVolumeSource(), getParentForChildren(), isClean()); persistentVolumeSource_ = null; } return persistentVolumeSourceBuilder_; } private com.google.protobuf.LazyStringList accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAccessModesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { accessModes_ = new com.google.protobuf.LazyStringArrayList(accessModes_); bitField0_ |= 0x00000004; } } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public com.google.protobuf.ProtocolStringList getAccessModesList() { return accessModes_.getUnmodifiableView(); } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public int getAccessModesCount() { return accessModes_.size(); } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public java.lang.String getAccessModes(int index) { return accessModes_.get(index); } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public com.google.protobuf.ByteString getAccessModesBytes(int index) { return accessModes_.getByteString(index); } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public Builder setAccessModes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.set(index, value); onChanged(); return this; } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public Builder addAccessModes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.add(value); onChanged(); return this; } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public Builder addAllAccessModes(java.lang.Iterable values) { ensureAccessModesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessModes_); onChanged(); return this; } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public Builder clearAccessModes() { accessModes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * AccessModes contains all ways the volume can be mounted.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
       * +optional
       * 
* * repeated string accessModes = 3; */ public Builder addAccessModesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAccessModesIsMutable(); accessModes_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.V1.ObjectReference claimRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> claimRefBuilder_; /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public boolean hasClaimRef() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public io.kubernetes.client.proto.V1.ObjectReference getClaimRef() { if (claimRefBuilder_ == null) { return claimRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : claimRef_; } else { return claimRefBuilder_.getMessage(); } } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public Builder setClaimRef(io.kubernetes.client.proto.V1.ObjectReference value) { if (claimRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } claimRef_ = value; onChanged(); } else { claimRefBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public Builder setClaimRef( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (claimRefBuilder_ == null) { claimRef_ = builderForValue.build(); onChanged(); } else { claimRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public Builder mergeClaimRef(io.kubernetes.client.proto.V1.ObjectReference value) { if (claimRefBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && claimRef_ != null && claimRef_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { claimRef_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(claimRef_) .mergeFrom(value) .buildPartial(); } else { claimRef_ = value; } onChanged(); } else { claimRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public Builder clearClaimRef() { if (claimRefBuilder_ == null) { claimRef_ = null; onChanged(); } else { claimRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getClaimRefBuilder() { bitField0_ |= 0x00000008; onChanged(); return getClaimRefFieldBuilder().getBuilder(); } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getClaimRefOrBuilder() { if (claimRefBuilder_ != null) { return claimRefBuilder_.getMessageOrBuilder(); } else { return claimRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : claimRef_; } } /** * * *
       * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
       * Expected to be non-nil when bound.
       * claim.VolumeName is the authoritative bind between PV and PVC.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference claimRef = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getClaimRefFieldBuilder() { if (claimRefBuilder_ == null) { claimRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getClaimRef(), getParentForChildren(), isClean()); claimRef_ = null; } return claimRefBuilder_; } private java.lang.Object persistentVolumeReclaimPolicy_ = ""; /** * * *
       * What happens to a persistent volume when released from its claim.
       * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       * Recycle must be supported by the volume plugin underlying this PersistentVolume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       * +optional
       * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public boolean hasPersistentVolumeReclaimPolicy() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * What happens to a persistent volume when released from its claim.
       * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       * Recycle must be supported by the volume plugin underlying this PersistentVolume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       * +optional
       * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public java.lang.String getPersistentVolumeReclaimPolicy() { java.lang.Object ref = persistentVolumeReclaimPolicy_; 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()) { persistentVolumeReclaimPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * What happens to a persistent volume when released from its claim.
       * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       * Recycle must be supported by the volume plugin underlying this PersistentVolume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       * +optional
       * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public com.google.protobuf.ByteString getPersistentVolumeReclaimPolicyBytes() { java.lang.Object ref = persistentVolumeReclaimPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); persistentVolumeReclaimPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * What happens to a persistent volume when released from its claim.
       * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       * Recycle must be supported by the volume plugin underlying this PersistentVolume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       * +optional
       * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public Builder setPersistentVolumeReclaimPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; persistentVolumeReclaimPolicy_ = value; onChanged(); return this; } /** * * *
       * What happens to a persistent volume when released from its claim.
       * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       * Recycle must be supported by the volume plugin underlying this PersistentVolume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       * +optional
       * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public Builder clearPersistentVolumeReclaimPolicy() { bitField0_ = (bitField0_ & ~0x00000010); persistentVolumeReclaimPolicy_ = getDefaultInstance().getPersistentVolumeReclaimPolicy(); onChanged(); return this; } /** * * *
       * What happens to a persistent volume when released from its claim.
       * Valid options are Retain (default for manually created PersistentVolumes), Delete (default
       * for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
       * Recycle must be supported by the volume plugin underlying this PersistentVolume.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
       * +optional
       * 
* * optional string persistentVolumeReclaimPolicy = 5; */ public Builder setPersistentVolumeReclaimPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; persistentVolumeReclaimPolicy_ = value; onChanged(); return this; } private java.lang.Object storageClassName_ = ""; /** * * *
       * Name of StorageClass to which this persistent volume belongs. Empty value
       * means that this volume does not belong to any StorageClass.
       * +optional
       * 
* * optional string storageClassName = 6; */ public boolean hasStorageClassName() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Name of StorageClass to which this persistent volume belongs. Empty value
       * means that this volume does not belong to any StorageClass.
       * +optional
       * 
* * optional string storageClassName = 6; */ 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; } } /** * * *
       * Name of StorageClass to which this persistent volume belongs. Empty value
       * means that this volume does not belong to any StorageClass.
       * +optional
       * 
* * optional string storageClassName = 6; */ 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; } } /** * * *
       * Name of StorageClass to which this persistent volume belongs. Empty value
       * means that this volume does not belong to any StorageClass.
       * +optional
       * 
* * optional string storageClassName = 6; */ public Builder setStorageClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; storageClassName_ = value; onChanged(); return this; } /** * * *
       * Name of StorageClass to which this persistent volume belongs. Empty value
       * means that this volume does not belong to any StorageClass.
       * +optional
       * 
* * optional string storageClassName = 6; */ public Builder clearStorageClassName() { bitField0_ = (bitField0_ & ~0x00000020); storageClassName_ = getDefaultInstance().getStorageClassName(); onChanged(); return this; } /** * * *
       * Name of StorageClass to which this persistent volume belongs. Empty value
       * means that this volume does not belong to any StorageClass.
       * +optional
       * 
* * optional string storageClassName = 6; */ public Builder setStorageClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; storageClassName_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMountOptionsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { mountOptions_ = new com.google.protobuf.LazyStringArrayList(mountOptions_); bitField0_ |= 0x00000040; } } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public com.google.protobuf.ProtocolStringList getMountOptionsList() { return mountOptions_.getUnmodifiableView(); } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public int getMountOptionsCount() { return mountOptions_.size(); } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public java.lang.String getMountOptions(int index) { return mountOptions_.get(index); } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { return mountOptions_.getByteString(index); } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public Builder setMountOptions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.set(index, value); onChanged(); return this; } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public Builder addMountOptions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.add(value); onChanged(); return this; } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public Builder addAllMountOptions(java.lang.Iterable values) { ensureMountOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mountOptions_); onChanged(); return this; } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public Builder clearMountOptions() { mountOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
       * simply fail if one is invalid.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
       * +optional
       * 
* * repeated string mountOptions = 7; */ public Builder addMountOptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMountOptionsIsMutable(); mountOptions_.add(value); onChanged(); return this; } private java.lang.Object volumeMode_ = ""; /** * * *
       * volumeMode defines if a volume is intended to be used with a formatted filesystem
       * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       * +optional
       * 
* * optional string volumeMode = 8; */ public boolean hasVolumeMode() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * volumeMode defines if a volume is intended to be used with a formatted filesystem
       * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       * +optional
       * 
* * optional string volumeMode = 8; */ public java.lang.String getVolumeMode() { java.lang.Object ref = volumeMode_; 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()) { volumeMode_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * volumeMode defines if a volume is intended to be used with a formatted filesystem
       * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       * +optional
       * 
* * optional string volumeMode = 8; */ public com.google.protobuf.ByteString getVolumeModeBytes() { java.lang.Object ref = volumeMode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * volumeMode defines if a volume is intended to be used with a formatted filesystem
       * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       * +optional
       * 
* * optional string volumeMode = 8; */ public Builder setVolumeMode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; volumeMode_ = value; onChanged(); return this; } /** * * *
       * volumeMode defines if a volume is intended to be used with a formatted filesystem
       * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       * +optional
       * 
* * optional string volumeMode = 8; */ public Builder clearVolumeMode() { bitField0_ = (bitField0_ & ~0x00000080); volumeMode_ = getDefaultInstance().getVolumeMode(); onChanged(); return this; } /** * * *
       * volumeMode defines if a volume is intended to be used with a formatted filesystem
       * or to remain in raw block state. Value of Filesystem is implied when not included in spec.
       * +optional
       * 
* * optional string volumeMode = 8; */ public Builder setVolumeModeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; volumeMode_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.VolumeNodeAffinity nodeAffinity_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeNodeAffinity, io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder, io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder> nodeAffinityBuilder_; /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public boolean hasNodeAffinity() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public io.kubernetes.client.proto.V1.VolumeNodeAffinity getNodeAffinity() { if (nodeAffinityBuilder_ == null) { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance() : nodeAffinity_; } else { return nodeAffinityBuilder_.getMessage(); } } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public Builder setNodeAffinity(io.kubernetes.client.proto.V1.VolumeNodeAffinity value) { if (nodeAffinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nodeAffinity_ = value; onChanged(); } else { nodeAffinityBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public Builder setNodeAffinity( io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder builderForValue) { if (nodeAffinityBuilder_ == null) { nodeAffinity_ = builderForValue.build(); onChanged(); } else { nodeAffinityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public Builder mergeNodeAffinity(io.kubernetes.client.proto.V1.VolumeNodeAffinity value) { if (nodeAffinityBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && nodeAffinity_ != null && nodeAffinity_ != io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance()) { nodeAffinity_ = io.kubernetes.client.proto.V1.VolumeNodeAffinity.newBuilder(nodeAffinity_) .mergeFrom(value) .buildPartial(); } else { nodeAffinity_ = value; } onChanged(); } else { nodeAffinityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public Builder clearNodeAffinity() { if (nodeAffinityBuilder_ == null) { nodeAffinity_ = null; onChanged(); } else { nodeAffinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder getNodeAffinityBuilder() { bitField0_ |= 0x00000100; onChanged(); return getNodeAffinityFieldBuilder().getBuilder(); } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ public io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder getNodeAffinityOrBuilder() { if (nodeAffinityBuilder_ != null) { return nodeAffinityBuilder_.getMessageOrBuilder(); } else { return nodeAffinity_ == null ? io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance() : nodeAffinity_; } } /** * * *
       * NodeAffinity defines constraints that limit what nodes this volume can be accessed from.
       * This field influences the scheduling of pods that use this volume.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VolumeNodeAffinity nodeAffinity = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeNodeAffinity, io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder, io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder> getNodeAffinityFieldBuilder() { if (nodeAffinityBuilder_ == null) { nodeAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeNodeAffinity, io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder, io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder>( getNodeAffinity(), getParentForChildren(), isClean()); nodeAffinity_ = null; } return nodeAffinityBuilder_; } @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.core.v1.PersistentVolumeSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeSpec) private static final io.kubernetes.client.proto.V1.PersistentVolumeSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeSpec(); } public static io.kubernetes.client.proto.V1.PersistentVolumeSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeSpec(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.V1.PersistentVolumeSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PersistentVolumeStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PersistentVolumeStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Phase indicates if a volume is available, bound to a claim, or released by a claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
     * +optional
     * 
* * optional string phase = 1; */ boolean hasPhase(); /** * * *
     * Phase indicates if a volume is available, bound to a claim, or released by a claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
     * +optional
     * 
* * optional string phase = 1; */ java.lang.String getPhase(); /** * * *
     * Phase indicates if a volume is available, bound to a claim, or released by a claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
     * +optional
     * 
* * optional string phase = 1; */ com.google.protobuf.ByteString getPhaseBytes(); /** * * *
     * A human-readable message indicating details about why the volume is in this state.
     * +optional
     * 
* * optional string message = 2; */ boolean hasMessage(); /** * * *
     * A human-readable message indicating details about why the volume is in this state.
     * +optional
     * 
* * optional string message = 2; */ java.lang.String getMessage(); /** * * *
     * A human-readable message indicating details about why the volume is in this state.
     * +optional
     * 
* * optional string message = 2; */ com.google.protobuf.ByteString getMessageBytes(); /** * * *
     * Reason is a brief CamelCase string that describes any failure and is meant
     * for machine parsing and tidy display in the CLI.
     * +optional
     * 
* * optional string reason = 3; */ boolean hasReason(); /** * * *
     * Reason is a brief CamelCase string that describes any failure and is meant
     * for machine parsing and tidy display in the CLI.
     * +optional
     * 
* * optional string reason = 3; */ java.lang.String getReason(); /** * * *
     * Reason is a brief CamelCase string that describes any failure and is meant
     * for machine parsing and tidy display in the CLI.
     * +optional
     * 
* * optional string reason = 3; */ com.google.protobuf.ByteString getReasonBytes(); } /** * * *
   * PersistentVolumeStatus is the current status of a persistent volume.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeStatus} */ public static final class PersistentVolumeStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PersistentVolumeStatus) PersistentVolumeStatusOrBuilder { private static final long serialVersionUID = 0L; // Use PersistentVolumeStatus.newBuilder() to construct. private PersistentVolumeStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PersistentVolumeStatus() { phase_ = ""; message_ = ""; reason_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistentVolumeStatus( 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; phase_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; message_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; reason_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeStatus.class, io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder.class); } private int bitField0_; public static final int PHASE_FIELD_NUMBER = 1; private volatile java.lang.Object phase_; /** * * *
     * Phase indicates if a volume is available, bound to a claim, or released by a claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
     * +optional
     * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Phase indicates if a volume is available, bound to a claim, or released by a claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
     * +optional
     * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } } /** * * *
     * Phase indicates if a volume is available, bound to a claim, or released by a claim.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
     * +optional
     * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * * *
     * A human-readable message indicating details about why the volume is in this state.
     * +optional
     * 
* * optional string message = 2; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * A human-readable message indicating details about why the volume is in this state.
     * +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; } } /** * * *
     * A human-readable message indicating details about why the volume is in this state.
     * +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; } } public static final int REASON_FIELD_NUMBER = 3; private volatile java.lang.Object reason_; /** * * *
     * Reason is a brief CamelCase string that describes any failure and is meant
     * for machine parsing and tidy display in the CLI.
     * +optional
     * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Reason is a brief CamelCase string that describes any failure and is meant
     * for machine parsing and tidy display in the CLI.
     * +optional
     * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * Reason is a brief CamelCase string that describes any failure and is meant
     * for machine parsing and tidy display in the CLI.
     * +optional
     * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, phase_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_); } 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, phase_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_); } 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.V1.PersistentVolumeStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PersistentVolumeStatus other = (io.kubernetes.client.proto.V1.PersistentVolumeStatus) obj; boolean result = true; result = result && (hasPhase() == other.hasPhase()); if (hasPhase()) { result = result && getPhase().equals(other.getPhase()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } 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 (hasPhase()) { hash = (37 * hash) + PHASE_FIELD_NUMBER; hash = (53 * hash) + getPhase().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus 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.V1.PersistentVolumeStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus 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.V1.PersistentVolumeStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus 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.V1.PersistentVolumeStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus 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.V1.PersistentVolumeStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus 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.V1.PersistentVolumeStatus 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; } /** * * *
     * PersistentVolumeStatus is the current status of a persistent volume.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PersistentVolumeStatus) io.kubernetes.client.proto.V1.PersistentVolumeStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PersistentVolumeStatus.class, io.kubernetes.client.proto.V1.PersistentVolumeStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PersistentVolumeStatus.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(); phase_ = ""; bitField0_ = (bitField0_ & ~0x00000001); message_ = ""; bitField0_ = (bitField0_ & ~0x00000002); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PersistentVolumeStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeStatus build() { io.kubernetes.client.proto.V1.PersistentVolumeStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PersistentVolumeStatus buildPartial() { io.kubernetes.client.proto.V1.PersistentVolumeStatus result = new io.kubernetes.client.proto.V1.PersistentVolumeStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.phase_ = phase_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.message_ = message_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.reason_ = reason_; 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.V1.PersistentVolumeStatus) { return mergeFrom((io.kubernetes.client.proto.V1.PersistentVolumeStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PersistentVolumeStatus other) { if (other == io.kubernetes.client.proto.V1.PersistentVolumeStatus.getDefaultInstance()) return this; if (other.hasPhase()) { bitField0_ |= 0x00000001; phase_ = other.phase_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000002; message_ = other.message_; onChanged(); } if (other.hasReason()) { bitField0_ |= 0x00000004; reason_ = other.reason_; 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.V1.PersistentVolumeStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PersistentVolumeStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object phase_ = ""; /** * * *
       * Phase indicates if a volume is available, bound to a claim, or released by a claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       * +optional
       * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Phase indicates if a volume is available, bound to a claim, or released by a claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       * +optional
       * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Phase indicates if a volume is available, bound to a claim, or released by a claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       * +optional
       * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Phase indicates if a volume is available, bound to a claim, or released by a claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } /** * * *
       * Phase indicates if a volume is available, bound to a claim, or released by a claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       * +optional
       * 
* * optional string phase = 1; */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000001); phase_ = getDefaultInstance().getPhase(); onChanged(); return this; } /** * * *
       * Phase indicates if a volume is available, bound to a claim, or released by a claim.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * A human-readable message indicating details about why the volume is in this state.
       * +optional
       * 
* * optional string message = 2; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * A human-readable message indicating details about why the volume is in this state.
       * +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; } } /** * * *
       * A human-readable message indicating details about why the volume is in this state.
       * +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; } } /** * * *
       * A human-readable message indicating details about why the volume is in this state.
       * +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; } /** * * *
       * A human-readable message indicating details about why the volume is in this state.
       * +optional
       * 
* * optional string message = 2; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * A human-readable message indicating details about why the volume is in this state.
       * +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; } private java.lang.Object reason_ = ""; /** * * *
       * Reason is a brief CamelCase string that describes any failure and is meant
       * for machine parsing and tidy display in the CLI.
       * +optional
       * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Reason is a brief CamelCase string that describes any failure and is meant
       * for machine parsing and tidy display in the CLI.
       * +optional
       * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Reason is a brief CamelCase string that describes any failure and is meant
       * for machine parsing and tidy display in the CLI.
       * +optional
       * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Reason is a brief CamelCase string that describes any failure and is meant
       * for machine parsing and tidy display in the CLI.
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } /** * * *
       * Reason is a brief CamelCase string that describes any failure and is meant
       * for machine parsing and tidy display in the CLI.
       * +optional
       * 
* * optional string reason = 3; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000004); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * Reason is a brief CamelCase string that describes any failure and is meant
       * for machine parsing and tidy display in the CLI.
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = 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.core.v1.PersistentVolumeStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PersistentVolumeStatus) private static final io.kubernetes.client.proto.V1.PersistentVolumeStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PersistentVolumeStatus(); } public static io.kubernetes.client.proto.V1.PersistentVolumeStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PersistentVolumeStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistentVolumeStatus(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.V1.PersistentVolumeStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PhotonPersistentDiskVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * ID that identifies Photon Controller persistent disk
     * 
* * optional string pdID = 1; */ boolean hasPdID(); /** * * *
     * ID that identifies Photon Controller persistent disk
     * 
* * optional string pdID = 1; */ java.lang.String getPdID(); /** * * *
     * ID that identifies Photon Controller persistent disk
     * 
* * optional string pdID = 1; */ com.google.protobuf.ByteString getPdIDBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); } /** * * *
   * Represents a Photon Controller persistent disk resource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource} */ public static final class PhotonPersistentDiskVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource) PhotonPersistentDiskVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use PhotonPersistentDiskVolumeSource.newBuilder() to construct. private PhotonPersistentDiskVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PhotonPersistentDiskVolumeSource() { pdID_ = ""; fsType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PhotonPersistentDiskVolumeSource( 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; pdID_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.class, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder.class); } private int bitField0_; public static final int PDID_FIELD_NUMBER = 1; private volatile java.lang.Object pdID_; /** * * *
     * ID that identifies Photon Controller persistent disk
     * 
* * optional string pdID = 1; */ public boolean hasPdID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * ID that identifies Photon Controller persistent disk
     * 
* * optional string pdID = 1; */ public java.lang.String getPdID() { java.lang.Object ref = pdID_; 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()) { pdID_ = s; } return s; } } /** * * *
     * ID that identifies Photon Controller persistent disk
     * 
* * optional string pdID = 1; */ public com.google.protobuf.ByteString getPdIDBytes() { java.lang.Object ref = pdID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pdID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = 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, pdID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } 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, pdID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } 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.V1.PhotonPersistentDiskVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource other = (io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource) obj; boolean result = true; result = result && (hasPdID() == other.hasPdID()); if (hasPdID()) { result = result && getPdID().equals(other.getPdID()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } 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 (hasPdID()) { hash = (37 * hash) + PDID_FIELD_NUMBER; hash = (53 * hash) + getPdID().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource 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.V1.PhotonPersistentDiskVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource 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.V1.PhotonPersistentDiskVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource 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.V1.PhotonPersistentDiskVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource 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.V1.PhotonPersistentDiskVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource 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.V1.PhotonPersistentDiskVolumeSource 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; } /** * * *
     * Represents a Photon Controller persistent disk resource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource) io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.class, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.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(); pdID_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource build() { io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource buildPartial() { io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource result = new io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.pdID_ = pdID_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; 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.V1.PhotonPersistentDiskVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource other) { if (other == io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance()) return this; if (other.hasPdID()) { bitField0_ |= 0x00000001; pdID_ = other.pdID_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; 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.V1.PhotonPersistentDiskVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object pdID_ = ""; /** * * *
       * ID that identifies Photon Controller persistent disk
       * 
* * optional string pdID = 1; */ public boolean hasPdID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * ID that identifies Photon Controller persistent disk
       * 
* * optional string pdID = 1; */ public java.lang.String getPdID() { java.lang.Object ref = pdID_; 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()) { pdID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ID that identifies Photon Controller persistent disk
       * 
* * optional string pdID = 1; */ public com.google.protobuf.ByteString getPdIDBytes() { java.lang.Object ref = pdID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pdID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ID that identifies Photon Controller persistent disk
       * 
* * optional string pdID = 1; */ public Builder setPdID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pdID_ = value; onChanged(); return this; } /** * * *
       * ID that identifies Photon Controller persistent disk
       * 
* * optional string pdID = 1; */ public Builder clearPdID() { bitField0_ = (bitField0_ & ~0x00000001); pdID_ = getDefaultInstance().getPdID(); onChanged(); return this; } /** * * *
       * ID that identifies Photon Controller persistent disk
       * 
* * optional string pdID = 1; */ public Builder setPdIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pdID_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = 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.core.v1.PhotonPersistentDiskVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource) private static final io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource(); } public static io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PhotonPersistentDiskVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PhotonPersistentDiskVolumeSource(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.V1.PhotonPersistentDiskVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Pod) 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(); /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ io.kubernetes.client.proto.V1.PodSpec getSpec(); /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ boolean hasStatus(); /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ io.kubernetes.client.proto.V1.PodStatus getStatus(); /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * Pod is a collection of containers that can run on a host. This resource is created
   * by clients and scheduled onto hosts.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Pod} */ public static final class Pod extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Pod) PodOrBuilder { private static final long serialVersionUID = 0L; // Use Pod.newBuilder() to construct. private Pod(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Pod() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Pod( 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.V1.PodSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.PodSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.PodStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.PodStatus.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.V1.internal_static_k8s_io_api_core_v1_Pod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Pod_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Pod.class, io.kubernetes.client.proto.V1.Pod.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PodSpec spec_; /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.PodStatus status_; /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public io.kubernetes.client.proto.V1.PodStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; } /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.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.V1.Pod)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Pod other = (io.kubernetes.client.proto.V1.Pod) 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.V1.Pod parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Pod 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.V1.Pod parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Pod 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.V1.Pod parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Pod parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Pod parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Pod 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.V1.Pod parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Pod 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.V1.Pod parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Pod 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.V1.Pod 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; } /** * * *
     * Pod is a collection of containers that can run on a host. This resource is created
     * by clients and scheduled onto hosts.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Pod} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Pod) io.kubernetes.client.proto.V1.PodOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Pod_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Pod_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Pod.class, io.kubernetes.client.proto.V1.Pod.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Pod.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.V1.internal_static_k8s_io_api_core_v1_Pod_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Pod getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Pod.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Pod build() { io.kubernetes.client.proto.V1.Pod result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Pod buildPartial() { io.kubernetes.client.proto.V1.Pod result = new io.kubernetes.client.proto.V1.Pod(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.V1.Pod) { return mergeFrom((io.kubernetes.client.proto.V1.Pod) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Pod other) { if (other == io.kubernetes.client.proto.V1.Pod.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.V1.Pod parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Pod) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.PodSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder> specBuilder_; /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PodSpec 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 behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PodSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.PodSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.PodSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.PodStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder> statusBuilder_; /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public io.kubernetes.client.proto.V1.PodStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.PodStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.PodStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.PodStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.PodStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public io.kubernetes.client.proto.V1.PodStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ public io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; } } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder>( 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.core.v1.Pod) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Pod) private static final io.kubernetes.client.proto.V1.Pod DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Pod(); } public static io.kubernetes.client.proto.V1.Pod getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Pod parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Pod(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.V1.Pod getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodAffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodAffinity) com.google.protobuf.MessageOrBuilder { /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionList(); /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ io.kubernetes.client.proto.V1.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution( int index); /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ int getRequiredDuringSchedulingIgnoredDuringExecutionCount(); /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList(); /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ int getPreferredDuringSchedulingIgnoredDuringExecutionCount(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index); } /** * * *
   * Pod affinity is a group of inter pod affinity scheduling rules.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAffinity} */ public static final class PodAffinity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodAffinity) PodAffinityOrBuilder { private static final long serialVersionUID = 0L; // Use PodAffinity.newBuilder() to construct. private PodAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodAffinity() { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodAffinity( 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)) { requiredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } requiredDuringSchedulingIgnoredDuringExecution_.add( input.readMessage( io.kubernetes.client.proto.V1.PodAffinityTerm.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm>(); mutable_bitField0_ |= 0x00000002; } preferredDuringSchedulingIgnoredDuringExecution_.add( input.readMessage( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.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)) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAffinity.class, io.kubernetes.client.proto.V1.PodAffinity.Builder.class); } public static final int REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER = 1; private java.util.List requiredDuringSchedulingIgnoredDuringExecution_; /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionList() { return requiredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { return requiredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public int getRequiredDuringSchedulingIgnoredDuringExecutionCount() { return requiredDuringSchedulingIgnoredDuringExecution_.size(); } /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution(int index) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } /** * * *
     * If the affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } public static final int PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER = 2; private java.util.List preferredDuringSchedulingIgnoredDuringExecution_; /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList() { return preferredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { return preferredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public int getPreferredDuringSchedulingIgnoredDuringExecutionCount() { return preferredDuringSchedulingIgnoredDuringExecution_.size(); } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { return preferredDuringSchedulingIgnoredDuringExecution_.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 < requiredDuringSchedulingIgnoredDuringExecution_.size(); i++) { output.writeMessage(1, requiredDuringSchedulingIgnoredDuringExecution_.get(i)); } for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution_.size(); i++) { output.writeMessage(2, preferredDuringSchedulingIgnoredDuringExecution_.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 < requiredDuringSchedulingIgnoredDuringExecution_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, requiredDuringSchedulingIgnoredDuringExecution_.get(i)); } for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, preferredDuringSchedulingIgnoredDuringExecution_.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.V1.PodAffinity)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodAffinity other = (io.kubernetes.client.proto.V1.PodAffinity) obj; boolean result = true; result = result && getRequiredDuringSchedulingIgnoredDuringExecutionList() .equals(other.getRequiredDuringSchedulingIgnoredDuringExecutionList()); result = result && getPreferredDuringSchedulingIgnoredDuringExecutionList() .equals(other.getPreferredDuringSchedulingIgnoredDuringExecutionList()); 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 (getRequiredDuringSchedulingIgnoredDuringExecutionCount() > 0) { hash = (37 * hash) + REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER; hash = (53 * hash) + getRequiredDuringSchedulingIgnoredDuringExecutionList().hashCode(); } if (getPreferredDuringSchedulingIgnoredDuringExecutionCount() > 0) { hash = (37 * hash) + PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER; hash = (53 * hash) + getPreferredDuringSchedulingIgnoredDuringExecutionList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodAffinity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAffinity 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.V1.PodAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAffinity 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.V1.PodAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAffinity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodAffinity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAffinity 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.V1.PodAffinity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAffinity 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.V1.PodAffinity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAffinity 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.V1.PodAffinity 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; } /** * * *
     * Pod affinity is a group of inter pod affinity scheduling rules.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAffinity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodAffinity) io.kubernetes.client.proto.V1.PodAffinityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAffinity.class, io.kubernetes.client.proto.V1.PodAffinity.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodAffinity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder(); getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAffinity_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAffinity getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodAffinity build() { io.kubernetes.client.proto.V1.PodAffinity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAffinity buildPartial() { io.kubernetes.client.proto.V1.PodAffinity result = new io.kubernetes.client.proto.V1.PodAffinity(this); int from_bitField0_ = bitField0_; if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); bitField0_ = (bitField0_ & ~0x00000001); } result.requiredDuringSchedulingIgnoredDuringExecution_ = requiredDuringSchedulingIgnoredDuringExecution_; } else { result.requiredDuringSchedulingIgnoredDuringExecution_ = requiredDuringSchedulingIgnoredDuringExecutionBuilder_.build(); } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); bitField0_ = (bitField0_ & ~0x00000002); } result.preferredDuringSchedulingIgnoredDuringExecution_ = preferredDuringSchedulingIgnoredDuringExecution_; } else { result.preferredDuringSchedulingIgnoredDuringExecution_ = preferredDuringSchedulingIgnoredDuringExecutionBuilder_.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.V1.PodAffinity) { return mergeFrom((io.kubernetes.client.proto.V1.PodAffinity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodAffinity other) { if (other == io.kubernetes.client.proto.V1.PodAffinity.getDefaultInstance()) return this; if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (!other.requiredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (requiredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { requiredDuringSchedulingIgnoredDuringExecution_ = other.requiredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.addAll( other.requiredDuringSchedulingIgnoredDuringExecution_); } onChanged(); } } else { if (!other.requiredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_.isEmpty()) { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.dispose(); requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = null; requiredDuringSchedulingIgnoredDuringExecution_ = other.requiredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000001); requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() : null; } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages( other.requiredDuringSchedulingIgnoredDuringExecution_); } } } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (!other.preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { preferredDuringSchedulingIgnoredDuringExecution_ = other.preferredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.addAll( other.preferredDuringSchedulingIgnoredDuringExecution_); } onChanged(); } } else { if (!other.preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_.isEmpty()) { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.dispose(); preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = null; preferredDuringSchedulingIgnoredDuringExecution_ = other.preferredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000002); preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() : null; } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages( other.preferredDuringSchedulingIgnoredDuringExecution_); } } } 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.V1.PodAffinity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); private void ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { requiredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList( requiredDuringSchedulingIgnoredDuringExecution_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> requiredDuringSchedulingIgnoredDuringExecutionBuilder_; /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionList() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageList(); } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public int getRequiredDuringSchedulingIgnoredDuringExecutionCount() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_.size(); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getCount(); } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution(int index) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessage(index); } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder setRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.set(index, value); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage(index, value); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder setRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.set(index, builderForValue.build()); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage( index, builderForValue.build()); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(value); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(value); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(index, value); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(index, value); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(builderForValue.build()); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( builderForValue.build()); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(index, builderForValue.build()); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( index, builderForValue.build()); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addAllRequiredDuringSchedulingIgnoredDuringExecution( java.lang.Iterable values) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requiredDuringSchedulingIgnoredDuringExecution_); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages(values); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder clearRequiredDuringSchedulingIgnoredDuringExecution() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder removeRequiredDuringSchedulingIgnoredDuringExecution(int index) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.remove(index); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.remove(index); } return this; } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder getRequiredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilder(index); } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ != null) { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); } } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder addRequiredDuringSchedulingIgnoredDuringExecutionBuilder() { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()); } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder addRequiredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()); } /** * * *
       * If the affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionBuilderList() { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder>( requiredDuringSchedulingIgnoredDuringExecution_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); requiredDuringSchedulingIgnoredDuringExecution_ = null; } return requiredDuringSchedulingIgnoredDuringExecutionBuilder_; } private java.util.List preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); private void ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList( preferredDuringSchedulingIgnoredDuringExecution_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder, io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder> preferredDuringSchedulingIgnoredDuringExecutionBuilder_; /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageList(); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public int getPreferredDuringSchedulingIgnoredDuringExecutionCount() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.size(); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getCount(); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessage(index); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder setPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.set(index, value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage(index, value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder setPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.set(index, builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage( index, builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(index, value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(index, value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(index, builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( index, builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addAllPreferredDuringSchedulingIgnoredDuringExecution( java.lang.Iterable values) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preferredDuringSchedulingIgnoredDuringExecution_); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages(values); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder clearPreferredDuringSchedulingIgnoredDuringExecution() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder removePreferredDuringSchedulingIgnoredDuringExecution(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.remove(index); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.remove(index); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder getPreferredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilder(index); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ != null) { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder() { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionBuilderList() { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder, io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder, io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder>( preferredDuringSchedulingIgnoredDuringExecution_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); preferredDuringSchedulingIgnoredDuringExecution_ = null; } return preferredDuringSchedulingIgnoredDuringExecutionBuilder_; } @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.core.v1.PodAffinity) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodAffinity) private static final io.kubernetes.client.proto.V1.PodAffinity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodAffinity(); } public static io.kubernetes.client.proto.V1.PodAffinity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodAffinity(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.V1.PodAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodAffinityTermOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodAffinityTerm) com.google.protobuf.MessageOrBuilder { /** * * *
     * A label query over a set of resources, in this case pods.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; */ boolean hasLabelSelector(); /** * * *
     * A label query over a set of resources, in this case pods.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; */ io.kubernetes.client.proto.Meta.LabelSelector getLabelSelector(); /** * * *
     * A label query over a set of resources, in this case pods.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder(); /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ java.util.List getNamespacesList(); /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ int getNamespacesCount(); /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ java.lang.String getNamespaces(int index); /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ com.google.protobuf.ByteString getNamespacesBytes(int index); /** * * *
     * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
     * the labelSelector in the specified namespaces, where co-located is defined as running on a node
     * whose value of the label with key topologyKey matches that of any node on which any of the
     * selected pods is running.
     * Empty topologyKey is not allowed.
     * 
* * optional string topologyKey = 3; */ boolean hasTopologyKey(); /** * * *
     * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
     * the labelSelector in the specified namespaces, where co-located is defined as running on a node
     * whose value of the label with key topologyKey matches that of any node on which any of the
     * selected pods is running.
     * Empty topologyKey is not allowed.
     * 
* * optional string topologyKey = 3; */ java.lang.String getTopologyKey(); /** * * *
     * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
     * the labelSelector in the specified namespaces, where co-located is defined as running on a node
     * whose value of the label with key topologyKey matches that of any node on which any of the
     * selected pods is running.
     * Empty topologyKey is not allowed.
     * 
* * optional string topologyKey = 3; */ com.google.protobuf.ByteString getTopologyKeyBytes(); /** * * *
     * A label query over the set of namespaces that the term applies to.
     * The term is applied to the union of the namespaces selected by this field
     * and the ones listed in the namespaces field.
     * null selector and null or empty namespaces list means "this pod's namespace".
     * An empty selector ({}) matches all namespaces.
     * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ boolean hasNamespaceSelector(); /** * * *
     * A label query over the set of namespaces that the term applies to.
     * The term is applied to the union of the namespaces selected by this field
     * and the ones listed in the namespaces field.
     * null selector and null or empty namespaces list means "this pod's namespace".
     * An empty selector ({}) matches all namespaces.
     * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector(); /** * * *
     * A label query over the set of namespaces that the term applies to.
     * The term is applied to the union of the namespaces selected by this field
     * and the ones listed in the namespaces field.
     * null selector and null or empty namespaces list means "this pod's namespace".
     * An empty selector ({}) matches all namespaces.
     * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder(); } /** * * *
   * Defines a set of pods (namely those matching the labelSelector
   * relative to the given namespace(s)) that this pod should be
   * co-located (affinity) or not co-located (anti-affinity) with,
   * where co-located is defined as running on a node whose value of
   * the label with key <topologyKey> matches that of any node on which
   * a pod of the set of pods is running
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAffinityTerm} */ public static final class PodAffinityTerm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodAffinityTerm) PodAffinityTermOrBuilder { private static final long serialVersionUID = 0L; // Use PodAffinityTerm.newBuilder() to construct. private PodAffinityTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodAffinityTerm() { namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; topologyKey_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodAffinityTerm( 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.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = labelSelector_.toBuilder(); } labelSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labelSelector_); labelSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { namespaces_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } namespaces_.add(bs); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; topologyKey_ = bs; break; } case 34: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = namespaceSelector_.toBuilder(); } namespaceSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(namespaceSelector_); namespaceSelector_ = 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_ & 0x00000002) == 0x00000002)) { namespaces_ = namespaces_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAffinityTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAffinityTerm.class, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder.class); } private int bitField0_; public static final int LABELSELECTOR_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.LabelSelector labelSelector_; /** * * *
     * A label query over a set of resources, in this case pods.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; */ public boolean hasLabelSelector() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * A label query over a set of resources, in this case pods.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; */ public io.kubernetes.client.proto.Meta.LabelSelector getLabelSelector() { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } /** * * *
     * A label query over a set of resources, in this case pods.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder() { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } public static final int NAMESPACES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList namespaces_; /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ public com.google.protobuf.ProtocolStringList getNamespacesList() { return namespaces_; } /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ public int getNamespacesCount() { return namespaces_.size(); } /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ public java.lang.String getNamespaces(int index) { return namespaces_.get(index); } /** * * *
     * namespaces specifies a static list of namespace names that the term applies to.
     * The term is applied to the union of the namespaces listed in this field
     * and the ones selected by namespaceSelector.
     * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
     * +optional
     * 
* * repeated string namespaces = 2; */ public com.google.protobuf.ByteString getNamespacesBytes(int index) { return namespaces_.getByteString(index); } public static final int TOPOLOGYKEY_FIELD_NUMBER = 3; private volatile java.lang.Object topologyKey_; /** * * *
     * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
     * the labelSelector in the specified namespaces, where co-located is defined as running on a node
     * whose value of the label with key topologyKey matches that of any node on which any of the
     * selected pods is running.
     * Empty topologyKey is not allowed.
     * 
* * optional string topologyKey = 3; */ public boolean hasTopologyKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
     * the labelSelector in the specified namespaces, where co-located is defined as running on a node
     * whose value of the label with key topologyKey matches that of any node on which any of the
     * selected pods is running.
     * Empty topologyKey is not allowed.
     * 
* * optional string topologyKey = 3; */ public java.lang.String getTopologyKey() { java.lang.Object ref = topologyKey_; 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()) { topologyKey_ = s; } return s; } } /** * * *
     * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
     * the labelSelector in the specified namespaces, where co-located is defined as running on a node
     * whose value of the label with key topologyKey matches that of any node on which any of the
     * selected pods is running.
     * Empty topologyKey is not allowed.
     * 
* * optional string topologyKey = 3; */ public com.google.protobuf.ByteString getTopologyKeyBytes() { java.lang.Object ref = topologyKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topologyKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACESELECTOR_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; /** * * *
     * A label query over the set of namespaces that the term applies to.
     * The term is applied to the union of the namespaces selected by this field
     * and the ones listed in the namespaces field.
     * null selector and null or empty namespaces list means "this pod's namespace".
     * An empty selector ({}) matches all namespaces.
     * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public boolean hasNamespaceSelector() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * A label query over the set of namespaces that the term applies to.
     * The term is applied to the union of the namespaces selected by this field
     * and the ones listed in the namespaces field.
     * null selector and null or empty namespaces list means "this pod's namespace".
     * An empty selector ({}) matches all namespaces.
     * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } /** * * *
     * A label query over the set of namespaces that the term applies to.
     * The term is applied to the union of the namespaces selected by this field
     * and the ones listed in the namespaces field.
     * null selector and null or empty namespaces list means "this pod's namespace".
     * An empty selector ({}) matches all namespaces.
     * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } 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, getLabelSelector()); } for (int i = 0; i < namespaces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespaces_.getRaw(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topologyKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, getNamespaceSelector()); } 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, getLabelSelector()); } { int dataSize = 0; for (int i = 0; i < namespaces_.size(); i++) { dataSize += computeStringSizeNoTag(namespaces_.getRaw(i)); } size += dataSize; size += 1 * getNamespacesList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topologyKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNamespaceSelector()); } 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.V1.PodAffinityTerm)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodAffinityTerm other = (io.kubernetes.client.proto.V1.PodAffinityTerm) obj; boolean result = true; result = result && (hasLabelSelector() == other.hasLabelSelector()); if (hasLabelSelector()) { result = result && getLabelSelector().equals(other.getLabelSelector()); } result = result && getNamespacesList().equals(other.getNamespacesList()); result = result && (hasTopologyKey() == other.hasTopologyKey()); if (hasTopologyKey()) { result = result && getTopologyKey().equals(other.getTopologyKey()); } result = result && (hasNamespaceSelector() == other.hasNamespaceSelector()); if (hasNamespaceSelector()) { result = result && getNamespaceSelector().equals(other.getNamespaceSelector()); } 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 (hasLabelSelector()) { hash = (37 * hash) + LABELSELECTOR_FIELD_NUMBER; hash = (53 * hash) + getLabelSelector().hashCode(); } if (getNamespacesCount() > 0) { hash = (37 * hash) + NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getNamespacesList().hashCode(); } if (hasTopologyKey()) { hash = (37 * hash) + TOPOLOGYKEY_FIELD_NUMBER; hash = (53 * hash) + getTopologyKey().hashCode(); } if (hasNamespaceSelector()) { hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER; hash = (53 * hash) + getNamespaceSelector().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodAffinityTerm parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAffinityTerm 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.V1.PodAffinityTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAffinityTerm 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.V1.PodAffinityTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAffinityTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodAffinityTerm parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAffinityTerm 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.V1.PodAffinityTerm parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAffinityTerm 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.V1.PodAffinityTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAffinityTerm 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.V1.PodAffinityTerm 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; } /** * * *
     * Defines a set of pods (namely those matching the labelSelector
     * relative to the given namespace(s)) that this pod should be
     * co-located (affinity) or not co-located (anti-affinity) with,
     * where co-located is defined as running on a node whose value of
     * the label with key <topologyKey> matches that of any node on which
     * a pod of the set of pods is running
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAffinityTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodAffinityTerm) io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAffinityTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAffinityTerm.class, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodAffinityTerm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLabelSelectorFieldBuilder(); getNamespaceSelectorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (labelSelectorBuilder_ == null) { labelSelector_ = null; } else { labelSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); topologyKey_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = null; } else { namespaceSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAffinityTerm getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodAffinityTerm build() { io.kubernetes.client.proto.V1.PodAffinityTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAffinityTerm buildPartial() { io.kubernetes.client.proto.V1.PodAffinityTerm result = new io.kubernetes.client.proto.V1.PodAffinityTerm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (labelSelectorBuilder_ == null) { result.labelSelector_ = labelSelector_; } else { result.labelSelector_ = labelSelectorBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { namespaces_ = namespaces_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.namespaces_ = namespaces_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.topologyKey_ = topologyKey_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (namespaceSelectorBuilder_ == null) { result.namespaceSelector_ = namespaceSelector_; } else { result.namespaceSelector_ = namespaceSelectorBuilder_.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.V1.PodAffinityTerm) { return mergeFrom((io.kubernetes.client.proto.V1.PodAffinityTerm) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodAffinityTerm other) { if (other == io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()) return this; if (other.hasLabelSelector()) { mergeLabelSelector(other.getLabelSelector()); } if (!other.namespaces_.isEmpty()) { if (namespaces_.isEmpty()) { namespaces_ = other.namespaces_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNamespacesIsMutable(); namespaces_.addAll(other.namespaces_); } onChanged(); } if (other.hasTopologyKey()) { bitField0_ |= 0x00000004; topologyKey_ = other.topologyKey_; onChanged(); } if (other.hasNamespaceSelector()) { mergeNamespaceSelector(other.getNamespaceSelector()); } 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.V1.PodAffinityTerm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodAffinityTerm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.LabelSelector labelSelector_ = 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> labelSelectorBuilder_; /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public boolean hasLabelSelector() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public io.kubernetes.client.proto.Meta.LabelSelector getLabelSelector() { if (labelSelectorBuilder_ == null) { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } else { return labelSelectorBuilder_.getMessage(); } } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public Builder setLabelSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (labelSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labelSelector_ = value; onChanged(); } else { labelSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public Builder setLabelSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (labelSelectorBuilder_ == null) { labelSelector_ = builderForValue.build(); onChanged(); } else { labelSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public Builder mergeLabelSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (labelSelectorBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && labelSelector_ != null && labelSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { labelSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(labelSelector_) .mergeFrom(value) .buildPartial(); } else { labelSelector_ = value; } onChanged(); } else { labelSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public Builder clearLabelSelector() { if (labelSelectorBuilder_ == null) { labelSelector_ = null; onChanged(); } else { labelSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getLabelSelectorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLabelSelectorFieldBuilder().getBuilder(); } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder() { if (labelSelectorBuilder_ != null) { return labelSelectorBuilder_.getMessageOrBuilder(); } else { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } } /** * * *
       * A label query over a set of resources, in this case pods.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getLabelSelectorFieldBuilder() { if (labelSelectorBuilder_ == null) { labelSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getLabelSelector(), getParentForChildren(), isClean()); labelSelector_ = null; } return labelSelectorBuilder_; } private com.google.protobuf.LazyStringList namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamespacesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { namespaces_ = new com.google.protobuf.LazyStringArrayList(namespaces_); bitField0_ |= 0x00000002; } } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public com.google.protobuf.ProtocolStringList getNamespacesList() { return namespaces_.getUnmodifiableView(); } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public int getNamespacesCount() { return namespaces_.size(); } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public java.lang.String getNamespaces(int index) { return namespaces_.get(index); } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public com.google.protobuf.ByteString getNamespacesBytes(int index) { return namespaces_.getByteString(index); } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public Builder setNamespaces(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamespacesIsMutable(); namespaces_.set(index, value); onChanged(); return this; } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public Builder addNamespaces(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNamespacesIsMutable(); namespaces_.add(value); onChanged(); return this; } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public Builder addAllNamespaces(java.lang.Iterable values) { ensureNamespacesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, namespaces_); onChanged(); return this; } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public Builder clearNamespaces() { namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * namespaces specifies a static list of namespace names that the term applies to.
       * The term is applied to the union of the namespaces listed in this field
       * and the ones selected by namespaceSelector.
       * null or empty namespaces list and null namespaceSelector means "this pod's namespace"
       * +optional
       * 
* * repeated string namespaces = 2; */ public Builder addNamespacesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureNamespacesIsMutable(); namespaces_.add(value); onChanged(); return this; } private java.lang.Object topologyKey_ = ""; /** * * *
       * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
       * the labelSelector in the specified namespaces, where co-located is defined as running on a node
       * whose value of the label with key topologyKey matches that of any node on which any of the
       * selected pods is running.
       * Empty topologyKey is not allowed.
       * 
* * optional string topologyKey = 3; */ public boolean hasTopologyKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
       * the labelSelector in the specified namespaces, where co-located is defined as running on a node
       * whose value of the label with key topologyKey matches that of any node on which any of the
       * selected pods is running.
       * Empty topologyKey is not allowed.
       * 
* * optional string topologyKey = 3; */ public java.lang.String getTopologyKey() { java.lang.Object ref = topologyKey_; 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()) { topologyKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
       * the labelSelector in the specified namespaces, where co-located is defined as running on a node
       * whose value of the label with key topologyKey matches that of any node on which any of the
       * selected pods is running.
       * Empty topologyKey is not allowed.
       * 
* * optional string topologyKey = 3; */ public com.google.protobuf.ByteString getTopologyKeyBytes() { java.lang.Object ref = topologyKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topologyKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
       * the labelSelector in the specified namespaces, where co-located is defined as running on a node
       * whose value of the label with key topologyKey matches that of any node on which any of the
       * selected pods is running.
       * Empty topologyKey is not allowed.
       * 
* * optional string topologyKey = 3; */ public Builder setTopologyKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; topologyKey_ = value; onChanged(); return this; } /** * * *
       * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
       * the labelSelector in the specified namespaces, where co-located is defined as running on a node
       * whose value of the label with key topologyKey matches that of any node on which any of the
       * selected pods is running.
       * Empty topologyKey is not allowed.
       * 
* * optional string topologyKey = 3; */ public Builder clearTopologyKey() { bitField0_ = (bitField0_ & ~0x00000004); topologyKey_ = getDefaultInstance().getTopologyKey(); onChanged(); return this; } /** * * *
       * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
       * the labelSelector in the specified namespaces, where co-located is defined as running on a node
       * whose value of the label with key topologyKey matches that of any node on which any of the
       * selected pods is running.
       * Empty topologyKey is not allowed.
       * 
* * optional string topologyKey = 3; */ public Builder setTopologyKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; topologyKey_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = 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> namespaceSelectorBuilder_; /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public boolean hasNamespaceSelector() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { if (namespaceSelectorBuilder_ == null) { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } else { return namespaceSelectorBuilder_.getMessage(); } } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (namespaceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespaceSelector_ = value; onChanged(); } else { namespaceSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public Builder setNamespaceSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = builderForValue.build(); onChanged(); } else { namespaceSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (namespaceSelectorBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && namespaceSelector_ != null && namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { namespaceSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_) .mergeFrom(value) .buildPartial(); } else { namespaceSelector_ = value; } onChanged(); } else { namespaceSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public Builder clearNamespaceSelector() { if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = null; onChanged(); } else { namespaceSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNamespaceSelectorFieldBuilder().getBuilder(); } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { if (namespaceSelectorBuilder_ != null) { return namespaceSelectorBuilder_.getMessageOrBuilder(); } else { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } } /** * * *
       * A label query over the set of namespaces that the term applies to.
       * The term is applied to the union of the namespaces selected by this field
       * and the ones listed in the namespaces field.
       * null selector and null or empty namespaces list means "this pod's namespace".
       * An empty selector ({}) matches all namespaces.
       * This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getNamespaceSelectorFieldBuilder() { if (namespaceSelectorBuilder_ == null) { namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getNamespaceSelector(), getParentForChildren(), isClean()); namespaceSelector_ = null; } return namespaceSelectorBuilder_; } @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.core.v1.PodAffinityTerm) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodAffinityTerm) private static final io.kubernetes.client.proto.V1.PodAffinityTerm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodAffinityTerm(); } public static io.kubernetes.client.proto.V1.PodAffinityTerm getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodAffinityTerm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodAffinityTerm(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.V1.PodAffinityTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodAntiAffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodAntiAffinity) com.google.protobuf.MessageOrBuilder { /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionList(); /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ io.kubernetes.client.proto.V1.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution( int index); /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ int getRequiredDuringSchedulingIgnoredDuringExecutionCount(); /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList(); /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ int getPreferredDuringSchedulingIgnoredDuringExecutionCount(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList(); /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index); } /** * * *
   * Pod anti affinity is a group of inter pod anti affinity scheduling rules.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAntiAffinity} */ public static final class PodAntiAffinity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodAntiAffinity) PodAntiAffinityOrBuilder { private static final long serialVersionUID = 0L; // Use PodAntiAffinity.newBuilder() to construct. private PodAntiAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodAntiAffinity() { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodAntiAffinity( 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)) { requiredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } requiredDuringSchedulingIgnoredDuringExecution_.add( input.readMessage( io.kubernetes.client.proto.V1.PodAffinityTerm.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm>(); mutable_bitField0_ |= 0x00000002; } preferredDuringSchedulingIgnoredDuringExecution_.add( input.readMessage( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.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)) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAntiAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAntiAffinity.class, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder.class); } public static final int REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER = 1; private java.util.List requiredDuringSchedulingIgnoredDuringExecution_; /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionList() { return requiredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { return requiredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public int getRequiredDuringSchedulingIgnoredDuringExecutionCount() { return requiredDuringSchedulingIgnoredDuringExecution_.size(); } /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution(int index) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } /** * * *
     * If the anti-affinity requirements specified by this field are not met at
     * scheduling time, the pod will not be scheduled onto the node.
     * If the anti-affinity requirements specified by this field cease to be met
     * at some point during pod execution (e.g. due to a pod label update), the
     * system may or may not try to eventually evict the pod from its node.
     * When there are multiple elements, the lists of nodes corresponding to each
     * podAffinityTerm are intersected, i.e. all terms must be satisfied.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } public static final int PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER = 2; private java.util.List preferredDuringSchedulingIgnoredDuringExecution_; /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList() { return preferredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { return preferredDuringSchedulingIgnoredDuringExecution_; } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public int getPreferredDuringSchedulingIgnoredDuringExecutionCount() { return preferredDuringSchedulingIgnoredDuringExecution_.size(); } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } /** * * *
     * The scheduler will prefer to schedule pods to nodes that satisfy
     * the anti-affinity expressions specified by this field, but it may choose
     * a node that violates one or more of the expressions. The node that is
     * most preferred is the one with the greatest sum of weights, i.e.
     * for each node that meets all of the scheduling requirements (resource
     * request, requiredDuringScheduling anti-affinity expressions, etc.),
     * compute a sum by iterating through the elements of this field and adding
     * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
     * node(s) with the highest sum are the most preferred.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { return preferredDuringSchedulingIgnoredDuringExecution_.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 < requiredDuringSchedulingIgnoredDuringExecution_.size(); i++) { output.writeMessage(1, requiredDuringSchedulingIgnoredDuringExecution_.get(i)); } for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution_.size(); i++) { output.writeMessage(2, preferredDuringSchedulingIgnoredDuringExecution_.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 < requiredDuringSchedulingIgnoredDuringExecution_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, requiredDuringSchedulingIgnoredDuringExecution_.get(i)); } for (int i = 0; i < preferredDuringSchedulingIgnoredDuringExecution_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, preferredDuringSchedulingIgnoredDuringExecution_.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.V1.PodAntiAffinity)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodAntiAffinity other = (io.kubernetes.client.proto.V1.PodAntiAffinity) obj; boolean result = true; result = result && getRequiredDuringSchedulingIgnoredDuringExecutionList() .equals(other.getRequiredDuringSchedulingIgnoredDuringExecutionList()); result = result && getPreferredDuringSchedulingIgnoredDuringExecutionList() .equals(other.getPreferredDuringSchedulingIgnoredDuringExecutionList()); 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 (getRequiredDuringSchedulingIgnoredDuringExecutionCount() > 0) { hash = (37 * hash) + REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER; hash = (53 * hash) + getRequiredDuringSchedulingIgnoredDuringExecutionList().hashCode(); } if (getPreferredDuringSchedulingIgnoredDuringExecutionCount() > 0) { hash = (37 * hash) + PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER; hash = (53 * hash) + getPreferredDuringSchedulingIgnoredDuringExecutionList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodAntiAffinity parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAntiAffinity 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.V1.PodAntiAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAntiAffinity 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.V1.PodAntiAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAntiAffinity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodAntiAffinity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAntiAffinity 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.V1.PodAntiAffinity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAntiAffinity 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.V1.PodAntiAffinity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAntiAffinity 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.V1.PodAntiAffinity 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; } /** * * *
     * Pod anti affinity is a group of inter pod anti affinity scheduling rules.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAntiAffinity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodAntiAffinity) io.kubernetes.client.proto.V1.PodAntiAffinityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAntiAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAntiAffinity.class, io.kubernetes.client.proto.V1.PodAntiAffinity.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodAntiAffinity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder(); getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAntiAffinity getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodAntiAffinity build() { io.kubernetes.client.proto.V1.PodAntiAffinity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAntiAffinity buildPartial() { io.kubernetes.client.proto.V1.PodAntiAffinity result = new io.kubernetes.client.proto.V1.PodAntiAffinity(this); int from_bitField0_ = bitField0_; if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); bitField0_ = (bitField0_ & ~0x00000001); } result.requiredDuringSchedulingIgnoredDuringExecution_ = requiredDuringSchedulingIgnoredDuringExecution_; } else { result.requiredDuringSchedulingIgnoredDuringExecution_ = requiredDuringSchedulingIgnoredDuringExecutionBuilder_.build(); } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); bitField0_ = (bitField0_ & ~0x00000002); } result.preferredDuringSchedulingIgnoredDuringExecution_ = preferredDuringSchedulingIgnoredDuringExecution_; } else { result.preferredDuringSchedulingIgnoredDuringExecution_ = preferredDuringSchedulingIgnoredDuringExecutionBuilder_.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.V1.PodAntiAffinity) { return mergeFrom((io.kubernetes.client.proto.V1.PodAntiAffinity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodAntiAffinity other) { if (other == io.kubernetes.client.proto.V1.PodAntiAffinity.getDefaultInstance()) return this; if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (!other.requiredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (requiredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { requiredDuringSchedulingIgnoredDuringExecution_ = other.requiredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.addAll( other.requiredDuringSchedulingIgnoredDuringExecution_); } onChanged(); } } else { if (!other.requiredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_.isEmpty()) { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.dispose(); requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = null; requiredDuringSchedulingIgnoredDuringExecution_ = other.requiredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000001); requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() : null; } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages( other.requiredDuringSchedulingIgnoredDuringExecution_); } } } if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (!other.preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { preferredDuringSchedulingIgnoredDuringExecution_ = other.preferredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.addAll( other.preferredDuringSchedulingIgnoredDuringExecution_); } onChanged(); } } else { if (!other.preferredDuringSchedulingIgnoredDuringExecution_.isEmpty()) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_.isEmpty()) { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.dispose(); preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = null; preferredDuringSchedulingIgnoredDuringExecution_ = other.preferredDuringSchedulingIgnoredDuringExecution_; bitField0_ = (bitField0_ & ~0x00000002); preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() : null; } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages( other.preferredDuringSchedulingIgnoredDuringExecution_); } } } 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.V1.PodAntiAffinity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodAntiAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); private void ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { requiredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList( requiredDuringSchedulingIgnoredDuringExecution_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> requiredDuringSchedulingIgnoredDuringExecutionBuilder_; /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionList() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageList(); } } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public int getRequiredDuringSchedulingIgnoredDuringExecutionCount() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_.size(); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getCount(); } } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution(int index) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessage(index); } } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder setRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.set(index, value); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage(index, value); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder setRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.set(index, builderForValue.build()); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage( index, builderForValue.build()); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(value); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(value); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(index, value); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(index, value); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(builderForValue.build()); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( builderForValue.build()); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addRequiredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.add(index, builderForValue.build()); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( index, builderForValue.build()); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder addAllRequiredDuringSchedulingIgnoredDuringExecution( java.lang.Iterable values) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requiredDuringSchedulingIgnoredDuringExecution_); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages(values); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder clearRequiredDuringSchedulingIgnoredDuringExecution() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public Builder removeRequiredDuringSchedulingIgnoredDuringExecution(int index) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensureRequiredDuringSchedulingIgnoredDuringExecutionIsMutable(); requiredDuringSchedulingIgnoredDuringExecution_.remove(index); onChanged(); } else { requiredDuringSchedulingIgnoredDuringExecutionBuilder_.remove(index); } return this; } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder getRequiredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilder(index); } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return requiredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ != null) { return requiredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList( requiredDuringSchedulingIgnoredDuringExecution_); } } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder addRequiredDuringSchedulingIgnoredDuringExecutionBuilder() { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()); } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder addRequiredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()); } /** * * *
       * If the anti-affinity requirements specified by this field are not met at
       * scheduling time, the pod will not be scheduled onto the node.
       * If the anti-affinity requirements specified by this field cease to be met
       * at some point during pod execution (e.g. due to a pod label update), the
       * system may or may not try to eventually evict the pod from its node.
       * When there are multiple elements, the lists of nodes corresponding to each
       * podAffinityTerm are intersected, i.e. all terms must be satisfied.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1; * */ public java.util.List getRequiredDuringSchedulingIgnoredDuringExecutionBuilderList() { return getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> getRequiredDuringSchedulingIgnoredDuringExecutionFieldBuilder() { if (requiredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { requiredDuringSchedulingIgnoredDuringExecutionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder>( requiredDuringSchedulingIgnoredDuringExecution_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); requiredDuringSchedulingIgnoredDuringExecution_ = null; } return requiredDuringSchedulingIgnoredDuringExecutionBuilder_; } private java.util.List preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); private void ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { preferredDuringSchedulingIgnoredDuringExecution_ = new java.util.ArrayList( preferredDuringSchedulingIgnoredDuringExecution_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder, io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder> preferredDuringSchedulingIgnoredDuringExecutionBuilder_; /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionList() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageList(); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public int getPreferredDuringSchedulingIgnoredDuringExecutionCount() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.size(); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getCount(); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessage(index); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder setPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.set(index, value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage(index, value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder setPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.set(index, builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.setMessage( index, builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm value) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(index, value); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage(index, value); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addPreferredDuringSchedulingIgnoredDuringExecution( int index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder builderForValue) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.add(index, builderForValue.build()); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addMessage( index, builderForValue.build()); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder addAllPreferredDuringSchedulingIgnoredDuringExecution( java.lang.Iterable values) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preferredDuringSchedulingIgnoredDuringExecution_); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.addAllMessages(values); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder clearPreferredDuringSchedulingIgnoredDuringExecution() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecution_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.clear(); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public Builder removePreferredDuringSchedulingIgnoredDuringExecution(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { ensurePreferredDuringSchedulingIgnoredDuringExecutionIsMutable(); preferredDuringSchedulingIgnoredDuringExecution_.remove(index); onChanged(); } else { preferredDuringSchedulingIgnoredDuringExecutionBuilder_.remove(index); } return this; } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder getPreferredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilder(index); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder(int index) { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { return preferredDuringSchedulingIgnoredDuringExecution_.get(index); } else { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ != null) { return preferredDuringSchedulingIgnoredDuringExecutionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList( preferredDuringSchedulingIgnoredDuringExecution_); } } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder() { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder(int index) { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()); } /** * * *
       * The scheduler will prefer to schedule pods to nodes that satisfy
       * the anti-affinity expressions specified by this field, but it may choose
       * a node that violates one or more of the expressions. The node that is
       * most preferred is the one with the greatest sum of weights, i.e.
       * for each node that meets all of the scheduling requirements (resource
       * request, requiredDuringScheduling anti-affinity expressions, etc.),
       * compute a sum by iterating through the elements of this field and adding
       * "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
       * node(s) with the highest sum are the most preferred.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2; * */ public java.util.List getPreferredDuringSchedulingIgnoredDuringExecutionBuilderList() { return getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder, io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionFieldBuilder() { if (preferredDuringSchedulingIgnoredDuringExecutionBuilder_ == null) { preferredDuringSchedulingIgnoredDuringExecutionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.WeightedPodAffinityTerm, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder, io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder>( preferredDuringSchedulingIgnoredDuringExecution_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); preferredDuringSchedulingIgnoredDuringExecution_ = null; } return preferredDuringSchedulingIgnoredDuringExecutionBuilder_; } @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.core.v1.PodAntiAffinity) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodAntiAffinity) private static final io.kubernetes.client.proto.V1.PodAntiAffinity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodAntiAffinity(); } public static io.kubernetes.client.proto.V1.PodAntiAffinity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodAntiAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodAntiAffinity(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.V1.PodAntiAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodAttachOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodAttachOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Stdin if true, redirects the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ boolean hasStdin(); /** * * *
     * Stdin if true, redirects the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ boolean getStdin(); /** * * *
     * Stdout if true indicates that stdout is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stdout = 2; */ boolean hasStdout(); /** * * *
     * Stdout if true indicates that stdout is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stdout = 2; */ boolean getStdout(); /** * * *
     * Stderr if true indicates that stderr is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stderr = 3; */ boolean hasStderr(); /** * * *
     * Stderr if true indicates that stderr is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stderr = 3; */ boolean getStderr(); /** * * *
     * TTY if true indicates that a tty will be allocated for the attach call.
     * This is passed through the container runtime so the tty
     * is allocated on the worker node by the container runtime.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ boolean hasTty(); /** * * *
     * TTY if true indicates that a tty will be allocated for the attach call.
     * This is passed through the container runtime so the tty
     * is allocated on the worker node by the container runtime.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ boolean getTty(); /** * * *
     * The container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ boolean hasContainer(); /** * * *
     * The container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ java.lang.String getContainer(); /** * * *
     * The container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ com.google.protobuf.ByteString getContainerBytes(); } /** * * *
   * PodAttachOptions is the query options to a Pod's remote attach call.
   * ---
   * TODO: merge w/ PodExecOptions below for stdin, stdout, etc
   * and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAttachOptions} */ public static final class PodAttachOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodAttachOptions) PodAttachOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use PodAttachOptions.newBuilder() to construct. private PodAttachOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodAttachOptions() { stdin_ = false; stdout_ = false; stderr_ = false; tty_ = false; container_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodAttachOptions( 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; stdin_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; stdout_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; stderr_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; tty_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; container_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAttachOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAttachOptions.class, io.kubernetes.client.proto.V1.PodAttachOptions.Builder.class); } private int bitField0_; public static final int STDIN_FIELD_NUMBER = 1; private boolean stdin_; /** * * *
     * Stdin if true, redirects the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ public boolean hasStdin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Stdin if true, redirects the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ public boolean getStdin() { return stdin_; } public static final int STDOUT_FIELD_NUMBER = 2; private boolean stdout_; /** * * *
     * Stdout if true indicates that stdout is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stdout = 2; */ public boolean hasStdout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Stdout if true indicates that stdout is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stdout = 2; */ public boolean getStdout() { return stdout_; } public static final int STDERR_FIELD_NUMBER = 3; private boolean stderr_; /** * * *
     * Stderr if true indicates that stderr is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stderr = 3; */ public boolean hasStderr() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Stderr if true indicates that stderr is to be redirected for the attach call.
     * Defaults to true.
     * +optional
     * 
* * optional bool stderr = 3; */ public boolean getStderr() { return stderr_; } public static final int TTY_FIELD_NUMBER = 4; private boolean tty_; /** * * *
     * TTY if true indicates that a tty will be allocated for the attach call.
     * This is passed through the container runtime so the tty
     * is allocated on the worker node by the container runtime.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ public boolean hasTty() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * TTY if true indicates that a tty will be allocated for the attach call.
     * This is passed through the container runtime so the tty
     * is allocated on the worker node by the container runtime.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ public boolean getTty() { return tty_; } public static final int CONTAINER_FIELD_NUMBER = 5; private volatile java.lang.Object container_; /** * * *
     * The container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ public boolean hasContainer() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * The container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ public java.lang.String getContainer() { java.lang.Object ref = container_; 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()) { container_ = s; } return s; } } /** * * *
     * The container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ public com.google.protobuf.ByteString getContainerBytes() { java.lang.Object ref = container_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); container_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, stdin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, stdout_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, stderr_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, tty_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, container_); } 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, stdin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, stdout_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, stderr_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, tty_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, container_); } 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.V1.PodAttachOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodAttachOptions other = (io.kubernetes.client.proto.V1.PodAttachOptions) obj; boolean result = true; result = result && (hasStdin() == other.hasStdin()); if (hasStdin()) { result = result && (getStdin() == other.getStdin()); } result = result && (hasStdout() == other.hasStdout()); if (hasStdout()) { result = result && (getStdout() == other.getStdout()); } result = result && (hasStderr() == other.hasStderr()); if (hasStderr()) { result = result && (getStderr() == other.getStderr()); } result = result && (hasTty() == other.hasTty()); if (hasTty()) { result = result && (getTty() == other.getTty()); } result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer().equals(other.getContainer()); } 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 (hasStdin()) { hash = (37 * hash) + STDIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdin()); } if (hasStdout()) { hash = (37 * hash) + STDOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdout()); } if (hasStderr()) { hash = (37 * hash) + STDERR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStderr()); } if (hasTty()) { hash = (37 * hash) + TTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTty()); } if (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodAttachOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAttachOptions 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.V1.PodAttachOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAttachOptions 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.V1.PodAttachOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodAttachOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodAttachOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAttachOptions 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.V1.PodAttachOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAttachOptions 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.V1.PodAttachOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodAttachOptions 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.V1.PodAttachOptions 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; } /** * * *
     * PodAttachOptions is the query options to a Pod's remote attach call.
     * ---
     * TODO: merge w/ PodExecOptions below for stdin, stdout, etc
     * and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodAttachOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodAttachOptions) io.kubernetes.client.proto.V1.PodAttachOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodAttachOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodAttachOptions.class, io.kubernetes.client.proto.V1.PodAttachOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodAttachOptions.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(); stdin_ = false; bitField0_ = (bitField0_ & ~0x00000001); stdout_ = false; bitField0_ = (bitField0_ & ~0x00000002); stderr_ = false; bitField0_ = (bitField0_ & ~0x00000004); tty_ = false; bitField0_ = (bitField0_ & ~0x00000008); container_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAttachOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodAttachOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodAttachOptions build() { io.kubernetes.client.proto.V1.PodAttachOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodAttachOptions buildPartial() { io.kubernetes.client.proto.V1.PodAttachOptions result = new io.kubernetes.client.proto.V1.PodAttachOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.stdin_ = stdin_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.stdout_ = stdout_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.stderr_ = stderr_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.tty_ = tty_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.container_ = container_; 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.V1.PodAttachOptions) { return mergeFrom((io.kubernetes.client.proto.V1.PodAttachOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodAttachOptions other) { if (other == io.kubernetes.client.proto.V1.PodAttachOptions.getDefaultInstance()) return this; if (other.hasStdin()) { setStdin(other.getStdin()); } if (other.hasStdout()) { setStdout(other.getStdout()); } if (other.hasStderr()) { setStderr(other.getStderr()); } if (other.hasTty()) { setTty(other.getTty()); } if (other.hasContainer()) { bitField0_ |= 0x00000010; container_ = other.container_; 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.V1.PodAttachOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodAttachOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean stdin_; /** * * *
       * Stdin if true, redirects the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public boolean hasStdin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Stdin if true, redirects the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public boolean getStdin() { return stdin_; } /** * * *
       * Stdin if true, redirects the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public Builder setStdin(boolean value) { bitField0_ |= 0x00000001; stdin_ = value; onChanged(); return this; } /** * * *
       * Stdin if true, redirects the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public Builder clearStdin() { bitField0_ = (bitField0_ & ~0x00000001); stdin_ = false; onChanged(); return this; } private boolean stdout_; /** * * *
       * Stdout if true indicates that stdout is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stdout = 2; */ public boolean hasStdout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Stdout if true indicates that stdout is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stdout = 2; */ public boolean getStdout() { return stdout_; } /** * * *
       * Stdout if true indicates that stdout is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stdout = 2; */ public Builder setStdout(boolean value) { bitField0_ |= 0x00000002; stdout_ = value; onChanged(); return this; } /** * * *
       * Stdout if true indicates that stdout is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stdout = 2; */ public Builder clearStdout() { bitField0_ = (bitField0_ & ~0x00000002); stdout_ = false; onChanged(); return this; } private boolean stderr_; /** * * *
       * Stderr if true indicates that stderr is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stderr = 3; */ public boolean hasStderr() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Stderr if true indicates that stderr is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stderr = 3; */ public boolean getStderr() { return stderr_; } /** * * *
       * Stderr if true indicates that stderr is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stderr = 3; */ public Builder setStderr(boolean value) { bitField0_ |= 0x00000004; stderr_ = value; onChanged(); return this; } /** * * *
       * Stderr if true indicates that stderr is to be redirected for the attach call.
       * Defaults to true.
       * +optional
       * 
* * optional bool stderr = 3; */ public Builder clearStderr() { bitField0_ = (bitField0_ & ~0x00000004); stderr_ = false; onChanged(); return this; } private boolean tty_; /** * * *
       * TTY if true indicates that a tty will be allocated for the attach call.
       * This is passed through the container runtime so the tty
       * is allocated on the worker node by the container runtime.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public boolean hasTty() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * TTY if true indicates that a tty will be allocated for the attach call.
       * This is passed through the container runtime so the tty
       * is allocated on the worker node by the container runtime.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public boolean getTty() { return tty_; } /** * * *
       * TTY if true indicates that a tty will be allocated for the attach call.
       * This is passed through the container runtime so the tty
       * is allocated on the worker node by the container runtime.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public Builder setTty(boolean value) { bitField0_ |= 0x00000008; tty_ = value; onChanged(); return this; } /** * * *
       * TTY if true indicates that a tty will be allocated for the attach call.
       * This is passed through the container runtime so the tty
       * is allocated on the worker node by the container runtime.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public Builder clearTty() { bitField0_ = (bitField0_ & ~0x00000008); tty_ = false; onChanged(); return this; } private java.lang.Object container_ = ""; /** * * *
       * The container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public boolean hasContainer() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public java.lang.String getContainer() { java.lang.Object ref = container_; 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()) { container_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public com.google.protobuf.ByteString getContainerBytes() { java.lang.Object ref = container_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); container_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public Builder setContainer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; container_ = value; onChanged(); return this; } /** * * *
       * The container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00000010); container_ = getDefaultInstance().getContainer(); onChanged(); return this; } /** * * *
       * The container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public Builder setContainerBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; container_ = 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.core.v1.PodAttachOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodAttachOptions) private static final io.kubernetes.client.proto.V1.PodAttachOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodAttachOptions(); } public static io.kubernetes.client.proto.V1.PodAttachOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodAttachOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodAttachOptions(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.V1.PodAttachOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodCondition) com.google.protobuf.MessageOrBuilder { /** * * *
     * Type is the type of the condition.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Type is the type of the condition.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Type is the type of the condition.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Status is the status of the condition.
     * Can be True, False, Unknown.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string status = 2; */ boolean hasStatus(); /** * * *
     * Status is the status of the condition.
     * Can be True, False, Unknown.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string status = 2; */ java.lang.String getStatus(); /** * * *
     * Status is the status of the condition.
     * Can be True, False, Unknown.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ boolean hasLastProbeTime(); /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ io.kubernetes.client.proto.Meta.Time getLastProbeTime(); /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastProbeTimeOrBuilder(); /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ boolean hasLastTransitionTime(); /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); /** * * *
     * Unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ boolean hasReason(); /** * * *
     * Unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ java.lang.String getReason(); /** * * *
     * Unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ boolean hasMessage(); /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ java.lang.String getMessage(); /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * PodCondition contains details for the current condition of this pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodCondition} */ public static final class PodCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodCondition) PodConditionOrBuilder { private static final long serialVersionUID = 0L; // Use PodCondition.newBuilder() to construct. private PodCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodCondition() { type_ = ""; status_ = ""; reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 26: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastProbeTime_.toBuilder(); } lastProbeTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastProbeTime_); lastProbeTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = lastTransitionTime_.toBuilder(); } lastTransitionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTransitionTime_); lastTransitionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; reason_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; 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 .V1 .internal_static_k8s_io_api_core_v1_PodCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodCondition.class, io.kubernetes.client.proto.V1.PodCondition.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Type is the type of the condition.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Type is the type of the condition.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type is the type of the condition.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** * * *
     * Status is the status of the condition.
     * Can be True, False, Unknown.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Status is the status of the condition.
     * Can be True, False, Unknown.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** * * *
     * Status is the status of the condition.
     * Can be True, False, Unknown.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LASTPROBETIME_FIELD_NUMBER = 3; private io.kubernetes.client.proto.Meta.Time lastProbeTime_; /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public boolean hasLastProbeTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastProbeTime() { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } /** * * *
     * Last time we probed the condition.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastProbeTimeOrBuilder() { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } /** * * *
     * Last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } public static final int REASON_FIELD_NUMBER = 5; private volatile java.lang.Object reason_; /** * * *
     * Unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * Unique, one-word, CamelCase reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object message_; /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ 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; } } /** * * *
     * Human-readable message indicating details about last transition.
     * +optional
     * 
* * optional string message = 6; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastProbeTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastProbeTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.V1.PodCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodCondition other = (io.kubernetes.client.proto.V1.PodCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasLastProbeTime() == other.hasLastProbeTime()); if (hasLastProbeTime()) { result = result && getLastProbeTime().equals(other.getLastProbeTime()); } result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); if (hasLastTransitionTime()) { result = result && getLastTransitionTime().equals(other.getLastTransitionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasLastProbeTime()) { hash = (37 * hash) + LASTPROBETIME_FIELD_NUMBER; hash = (53 * hash) + getLastProbeTime().hashCode(); } if (hasLastTransitionTime()) { hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransitionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodCondition parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodCondition 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.V1.PodCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodCondition 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.V1.PodCondition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodCondition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodCondition 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.V1.PodCondition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodCondition 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.V1.PodCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodCondition 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.V1.PodCondition 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; } /** * * *
     * PodCondition contains details for the current condition of this pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodCondition) io.kubernetes.client.proto.V1.PodConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodCondition.class, io.kubernetes.client.proto.V1.PodCondition.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastProbeTimeFieldBuilder(); getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (lastProbeTimeBuilder_ == null) { lastProbeTime_ = null; } else { lastProbeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000010); message_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodCondition.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodCondition build() { io.kubernetes.client.proto.V1.PodCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodCondition buildPartial() { io.kubernetes.client.proto.V1.PodCondition result = new io.kubernetes.client.proto.V1.PodCondition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastProbeTimeBuilder_ == null) { result.lastProbeTime_ = lastProbeTime_; } else { result.lastProbeTime_ = lastProbeTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (lastTransitionTimeBuilder_ == null) { result.lastTransitionTime_ = lastTransitionTime_; } else { result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } 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.V1.PodCondition) { return mergeFrom((io.kubernetes.client.proto.V1.PodCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodCondition other) { if (other == io.kubernetes.client.proto.V1.PodCondition.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasLastProbeTime()) { mergeLastProbeTime(other.getLastProbeTime()); } if (other.hasLastTransitionTime()) { mergeLastTransitionTime(other.getLastTransitionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000010; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000020; 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.V1.PodCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Type is the type of the condition.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Type is the type of the condition.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type is the type of the condition.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type is the type of the condition.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Type is the type of the condition.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type is the type of the condition.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
       * Status is the status of the condition.
       * Can be True, False, Unknown.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Status is the status of the condition.
       * Can be True, False, Unknown.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Status is the status of the condition.
       * Can be True, False, Unknown.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Status is the status of the condition.
       * Can be True, False, Unknown.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * * *
       * Status is the status of the condition.
       * Can be True, False, Unknown.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * * *
       * Status is the status of the condition.
       * Can be True, False, Unknown.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * 
* * optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time lastProbeTime_ = 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> lastProbeTimeBuilder_; /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public boolean hasLastProbeTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastProbeTime() { if (lastProbeTimeBuilder_ == null) { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } else { return lastProbeTimeBuilder_.getMessage(); } } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder setLastProbeTime(io.kubernetes.client.proto.Meta.Time value) { if (lastProbeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastProbeTime_ = value; onChanged(); } else { lastProbeTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder setLastProbeTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastProbeTimeBuilder_ == null) { lastProbeTime_ = builderForValue.build(); onChanged(); } else { lastProbeTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder mergeLastProbeTime(io.kubernetes.client.proto.Meta.Time value) { if (lastProbeTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastProbeTime_ != null && lastProbeTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastProbeTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastProbeTime_) .mergeFrom(value) .buildPartial(); } else { lastProbeTime_ = value; } onChanged(); } else { lastProbeTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public Builder clearLastProbeTime() { if (lastProbeTimeBuilder_ == null) { lastProbeTime_ = null; onChanged(); } else { lastProbeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastProbeTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastProbeTimeFieldBuilder().getBuilder(); } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastProbeTimeOrBuilder() { if (lastProbeTimeBuilder_ != null) { return lastProbeTimeBuilder_.getMessageOrBuilder(); } else { return lastProbeTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastProbeTime_; } } /** * * *
       * Last time we probed the condition.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastProbeTime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastProbeTimeFieldBuilder() { if (lastProbeTimeBuilder_ == null) { lastProbeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastProbeTime(), getParentForChildren(), isClean()); lastProbeTime_ = null; } return lastProbeTimeBuilder_; } private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTransitionTime_ = value; onChanged(); } else { lastTransitionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder setLastTransitionTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); } else { lastTransitionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && lastTransitionTime_ != null && lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTransitionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_) .mergeFrom(value) .buildPartial(); } else { lastTransitionTime_ = value; } onChanged(); } else { lastTransitionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public Builder clearLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; onChanged(); } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } } /** * * *
       * Last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * Unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public boolean hasReason() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value; onChanged(); return this; } /** * * *
       * Unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000010); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * Unique, one-word, CamelCase reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 5; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public boolean hasMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ 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; } } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; message_ = value; onChanged(); return this; } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000020); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Human-readable message indicating details about last transition.
       * +optional
       * 
* * optional string message = 6; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; 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.core.v1.PodCondition) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodCondition) private static final io.kubernetes.client.proto.V1.PodCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodCondition(); } public static io.kubernetes.client.proto.V1.PodCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodCondition(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.V1.PodCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodDNSConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodDNSConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ java.util.List getNameserversList(); /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ int getNameserversCount(); /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ java.lang.String getNameservers(int index); /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ com.google.protobuf.ByteString getNameserversBytes(int index); /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ java.util.List getSearchesList(); /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ int getSearchesCount(); /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ java.lang.String getSearches(int index); /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ com.google.protobuf.ByteString getSearchesBytes(int index); /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ java.util.List getOptionsList(); /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ io.kubernetes.client.proto.V1.PodDNSConfigOption getOptions(int index); /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ int getOptionsCount(); /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ java.util.List getOptionsOrBuilderList(); /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder getOptionsOrBuilder(int index); } /** * * *
   * PodDNSConfig defines the DNS parameters of a pod in addition to
   * those generated from DNSPolicy.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodDNSConfig} */ public static final class PodDNSConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodDNSConfig) PodDNSConfigOrBuilder { private static final long serialVersionUID = 0L; // Use PodDNSConfig.newBuilder() to construct. private PodDNSConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodDNSConfig() { nameservers_ = com.google.protobuf.LazyStringArrayList.EMPTY; searches_ = com.google.protobuf.LazyStringArrayList.EMPTY; options_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodDNSConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { nameservers_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } nameservers_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { searches_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } searches_.add(bs); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { options_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } options_.add( input.readMessage( io.kubernetes.client.proto.V1.PodDNSConfigOption.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)) { nameservers_ = nameservers_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { searches_ = searches_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { options_ = java.util.Collections.unmodifiableList(options_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodDNSConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodDNSConfig.class, io.kubernetes.client.proto.V1.PodDNSConfig.Builder.class); } public static final int NAMESERVERS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList nameservers_; /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ public com.google.protobuf.ProtocolStringList getNameserversList() { return nameservers_; } /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ public int getNameserversCount() { return nameservers_.size(); } /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ public java.lang.String getNameservers(int index) { return nameservers_.get(index); } /** * * *
     * A list of DNS name server IP addresses.
     * This will be appended to the base nameservers generated from DNSPolicy.
     * Duplicated nameservers will be removed.
     * +optional
     * 
* * repeated string nameservers = 1; */ public com.google.protobuf.ByteString getNameserversBytes(int index) { return nameservers_.getByteString(index); } public static final int SEARCHES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList searches_; /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ public com.google.protobuf.ProtocolStringList getSearchesList() { return searches_; } /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ public int getSearchesCount() { return searches_.size(); } /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ public java.lang.String getSearches(int index) { return searches_.get(index); } /** * * *
     * A list of DNS search domains for host-name lookup.
     * This will be appended to the base search paths generated from DNSPolicy.
     * Duplicated search paths will be removed.
     * +optional
     * 
* * repeated string searches = 2; */ public com.google.protobuf.ByteString getSearchesBytes(int index) { return searches_.getByteString(index); } public static final int OPTIONS_FIELD_NUMBER = 3; private java.util.List options_; /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public java.util.List getOptionsList() { return options_; } /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public java.util.List getOptionsOrBuilderList() { return options_; } /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public int getOptionsCount() { return options_.size(); } /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOption getOptions(int index) { return options_.get(index); } /** * * *
     * A list of DNS resolver options.
     * This will be merged with the base options generated from DNSPolicy.
     * Duplicated entries will be removed. Resolution options given in Options
     * will override those that appear in the base DNSPolicy.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder getOptionsOrBuilder( int index) { return options_.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 < nameservers_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nameservers_.getRaw(i)); } for (int i = 0; i < searches_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searches_.getRaw(i)); } for (int i = 0; i < options_.size(); i++) { output.writeMessage(3, options_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < nameservers_.size(); i++) { dataSize += computeStringSizeNoTag(nameservers_.getRaw(i)); } size += dataSize; size += 1 * getNameserversList().size(); } { int dataSize = 0; for (int i = 0; i < searches_.size(); i++) { dataSize += computeStringSizeNoTag(searches_.getRaw(i)); } size += dataSize; size += 1 * getSearchesList().size(); } for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, options_.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.V1.PodDNSConfig)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodDNSConfig other = (io.kubernetes.client.proto.V1.PodDNSConfig) obj; boolean result = true; result = result && getNameserversList().equals(other.getNameserversList()); result = result && getSearchesList().equals(other.getSearchesList()); result = result && getOptionsList().equals(other.getOptionsList()); 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 (getNameserversCount() > 0) { hash = (37 * hash) + NAMESERVERS_FIELD_NUMBER; hash = (53 * hash) + getNameserversList().hashCode(); } if (getSearchesCount() > 0) { hash = (37 * hash) + SEARCHES_FIELD_NUMBER; hash = (53 * hash) + getSearchesList().hashCode(); } if (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodDNSConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodDNSConfig 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.V1.PodDNSConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodDNSConfig 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.V1.PodDNSConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodDNSConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodDNSConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodDNSConfig 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.V1.PodDNSConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodDNSConfig 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.V1.PodDNSConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodDNSConfig 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.V1.PodDNSConfig 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; } /** * * *
     * PodDNSConfig defines the DNS parameters of a pod in addition to
     * those generated from DNSPolicy.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodDNSConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodDNSConfig) io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodDNSConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodDNSConfig.class, io.kubernetes.client.proto.V1.PodDNSConfig.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodDNSConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); nameservers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); searches_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { optionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodDNSConfig getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodDNSConfig build() { io.kubernetes.client.proto.V1.PodDNSConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodDNSConfig buildPartial() { io.kubernetes.client.proto.V1.PodDNSConfig result = new io.kubernetes.client.proto.V1.PodDNSConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { nameservers_ = nameservers_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.nameservers_ = nameservers_; if (((bitField0_ & 0x00000002) == 0x00000002)) { searches_ = searches_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.searches_ = searches_; if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000004); } result.options_ = options_; } else { result.options_ = optionsBuilder_.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.V1.PodDNSConfig) { return mergeFrom((io.kubernetes.client.proto.V1.PodDNSConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodDNSConfig other) { if (other == io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance()) return this; if (!other.nameservers_.isEmpty()) { if (nameservers_.isEmpty()) { nameservers_ = other.nameservers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNameserversIsMutable(); nameservers_.addAll(other.nameservers_); } onChanged(); } if (!other.searches_.isEmpty()) { if (searches_.isEmpty()) { searches_ = other.searches_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSearchesIsMutable(); searches_.addAll(other.searches_); } onChanged(); } if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000004); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } 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.V1.PodDNSConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodDNSConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList nameservers_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNameserversIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { nameservers_ = new com.google.protobuf.LazyStringArrayList(nameservers_); bitField0_ |= 0x00000001; } } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public com.google.protobuf.ProtocolStringList getNameserversList() { return nameservers_.getUnmodifiableView(); } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public int getNameserversCount() { return nameservers_.size(); } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public java.lang.String getNameservers(int index) { return nameservers_.get(index); } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public com.google.protobuf.ByteString getNameserversBytes(int index) { return nameservers_.getByteString(index); } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public Builder setNameservers(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameserversIsMutable(); nameservers_.set(index, value); onChanged(); return this; } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public Builder addNameservers(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameserversIsMutable(); nameservers_.add(value); onChanged(); return this; } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public Builder addAllNameservers(java.lang.Iterable values) { ensureNameserversIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nameservers_); onChanged(); return this; } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public Builder clearNameservers() { nameservers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * A list of DNS name server IP addresses.
       * This will be appended to the base nameservers generated from DNSPolicy.
       * Duplicated nameservers will be removed.
       * +optional
       * 
* * repeated string nameservers = 1; */ public Builder addNameserversBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureNameserversIsMutable(); nameservers_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList searches_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSearchesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { searches_ = new com.google.protobuf.LazyStringArrayList(searches_); bitField0_ |= 0x00000002; } } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public com.google.protobuf.ProtocolStringList getSearchesList() { return searches_.getUnmodifiableView(); } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public int getSearchesCount() { return searches_.size(); } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public java.lang.String getSearches(int index) { return searches_.get(index); } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public com.google.protobuf.ByteString getSearchesBytes(int index) { return searches_.getByteString(index); } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public Builder setSearches(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSearchesIsMutable(); searches_.set(index, value); onChanged(); return this; } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public Builder addSearches(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSearchesIsMutable(); searches_.add(value); onChanged(); return this; } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public Builder addAllSearches(java.lang.Iterable values) { ensureSearchesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searches_); onChanged(); return this; } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public Builder clearSearches() { searches_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * A list of DNS search domains for host-name lookup.
       * This will be appended to the base search paths generated from DNSPolicy.
       * Duplicated search paths will be removed.
       * +optional
       * 
* * repeated string searches = 2; */ public Builder addSearchesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSearchesIsMutable(); searches_.add(value); onChanged(); return this; } private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodDNSConfigOption, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder, io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder> optionsBuilder_; /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOption getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder setOptions(int index, io.kubernetes.client.proto.V1.PodDNSConfigOption value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder setOptions( int index, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder addOptions(io.kubernetes.client.proto.V1.PodDNSConfigOption value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder addOptions(int index, io.kubernetes.client.proto.V1.PodDNSConfigOption value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder addOptions( io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder addOptions( int index, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder getOptionsBuilder(int index) { return getOptionsFieldBuilder().getBuilder(index); } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder addOptionsBuilder() { return getOptionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodDNSConfigOption.getDefaultInstance()); } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder addOptionsBuilder(int index) { return getOptionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.PodDNSConfigOption.getDefaultInstance()); } /** * * *
       * A list of DNS resolver options.
       * This will be merged with the base options generated from DNSPolicy.
       * Duplicated entries will be removed. Resolution options given in Options
       * will override those that appear in the base DNSPolicy.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodDNSConfigOption options = 3; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodDNSConfigOption, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder, io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodDNSConfigOption, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder, io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder>( options_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.core.v1.PodDNSConfig) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodDNSConfig) private static final io.kubernetes.client.proto.V1.PodDNSConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodDNSConfig(); } public static io.kubernetes.client.proto.V1.PodDNSConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodDNSConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodDNSConfig(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.V1.PodDNSConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodDNSConfigOptionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodDNSConfigOption) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Required.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Required.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * +optional
     * 
* * optional string value = 2; */ boolean hasValue(); /** * * *
     * +optional
     * 
* * optional string value = 2; */ java.lang.String getValue(); /** * * *
     * +optional
     * 
* * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * * *
   * PodDNSConfigOption defines DNS resolver options of a pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodDNSConfigOption} */ public static final class PodDNSConfigOption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodDNSConfigOption) PodDNSConfigOptionOrBuilder { private static final long serialVersionUID = 0L; // Use PodDNSConfigOption.newBuilder() to construct. private PodDNSConfigOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodDNSConfigOption() { name_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodDNSConfigOption( 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; value_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodDNSConfigOption_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodDNSConfigOption.class, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Required.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Required.
     * 
* * 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; } } /** * * *
     * Required.
     * 
* * 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 VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * * *
     * +optional
     * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * +optional
     * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * * *
     * +optional
     * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } 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, value_); } 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.V1.PodDNSConfigOption)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodDNSConfigOption other = (io.kubernetes.client.proto.V1.PodDNSConfigOption) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodDNSConfigOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption 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.V1.PodDNSConfigOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption 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.V1.PodDNSConfigOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption 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.V1.PodDNSConfigOption parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption 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.V1.PodDNSConfigOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption 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.V1.PodDNSConfigOption 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; } /** * * *
     * PodDNSConfigOption defines DNS resolver options of a pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodDNSConfigOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodDNSConfigOption) io.kubernetes.client.proto.V1.PodDNSConfigOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodDNSConfigOption_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodDNSConfigOption.class, io.kubernetes.client.proto.V1.PodDNSConfigOption.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodDNSConfigOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodDNSConfigOption getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodDNSConfigOption.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodDNSConfigOption build() { io.kubernetes.client.proto.V1.PodDNSConfigOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodDNSConfigOption buildPartial() { io.kubernetes.client.proto.V1.PodDNSConfigOption result = new io.kubernetes.client.proto.V1.PodDNSConfigOption(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.value_ = value_; 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.V1.PodDNSConfigOption) { return mergeFrom((io.kubernetes.client.proto.V1.PodDNSConfigOption) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodDNSConfigOption other) { if (other == io.kubernetes.client.proto.V1.PodDNSConfigOption.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; 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.V1.PodDNSConfigOption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodDNSConfigOption) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Required.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Required.
       * 
* * 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; } } /** * * *
       * Required.
       * 
* * 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; } } /** * * *
       * Required.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Required.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Required.
       * 
* * 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 value_ = ""; /** * * *
       * +optional
       * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * +optional
       * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * +optional
       * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * +optional
       * 
* * optional string value = 2; */ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * * *
       * +optional
       * 
* * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * * *
       * +optional
       * 
* * optional string value = 2; */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = 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.core.v1.PodDNSConfigOption) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodDNSConfigOption) private static final io.kubernetes.client.proto.V1.PodDNSConfigOption DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodDNSConfigOption(); } public static io.kubernetes.client.proto.V1.PodDNSConfigOption getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodDNSConfigOption parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodDNSConfigOption(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.V1.PodDNSConfigOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodExecOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodExecOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Redirect the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ boolean hasStdin(); /** * * *
     * Redirect the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ boolean getStdin(); /** * * *
     * Redirect the standard output stream of the pod for this call.
     * +optional
     * 
* * optional bool stdout = 2; */ boolean hasStdout(); /** * * *
     * Redirect the standard output stream of the pod for this call.
     * +optional
     * 
* * optional bool stdout = 2; */ boolean getStdout(); /** * * *
     * Redirect the standard error stream of the pod for this call.
     * +optional
     * 
* * optional bool stderr = 3; */ boolean hasStderr(); /** * * *
     * Redirect the standard error stream of the pod for this call.
     * +optional
     * 
* * optional bool stderr = 3; */ boolean getStderr(); /** * * *
     * TTY if true indicates that a tty will be allocated for the exec call.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ boolean hasTty(); /** * * *
     * TTY if true indicates that a tty will be allocated for the exec call.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ boolean getTty(); /** * * *
     * Container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ boolean hasContainer(); /** * * *
     * Container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ java.lang.String getContainer(); /** * * *
     * Container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ com.google.protobuf.ByteString getContainerBytes(); /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ java.util.List getCommandList(); /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ int getCommandCount(); /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ java.lang.String getCommand(int index); /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ com.google.protobuf.ByteString getCommandBytes(int index); } /** * * *
   * PodExecOptions is the query options to a Pod's remote exec call.
   * ---
   * TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging
   * and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodExecOptions} */ public static final class PodExecOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodExecOptions) PodExecOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use PodExecOptions.newBuilder() to construct. private PodExecOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodExecOptions() { stdin_ = false; stdout_ = false; stderr_ = false; tty_ = false; container_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodExecOptions( 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; stdin_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; stdout_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; stderr_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; tty_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; container_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { command_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } command_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { command_ = command_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodExecOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodExecOptions.class, io.kubernetes.client.proto.V1.PodExecOptions.Builder.class); } private int bitField0_; public static final int STDIN_FIELD_NUMBER = 1; private boolean stdin_; /** * * *
     * Redirect the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ public boolean hasStdin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Redirect the standard input stream of the pod for this call.
     * Defaults to false.
     * +optional
     * 
* * optional bool stdin = 1; */ public boolean getStdin() { return stdin_; } public static final int STDOUT_FIELD_NUMBER = 2; private boolean stdout_; /** * * *
     * Redirect the standard output stream of the pod for this call.
     * +optional
     * 
* * optional bool stdout = 2; */ public boolean hasStdout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Redirect the standard output stream of the pod for this call.
     * +optional
     * 
* * optional bool stdout = 2; */ public boolean getStdout() { return stdout_; } public static final int STDERR_FIELD_NUMBER = 3; private boolean stderr_; /** * * *
     * Redirect the standard error stream of the pod for this call.
     * +optional
     * 
* * optional bool stderr = 3; */ public boolean hasStderr() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Redirect the standard error stream of the pod for this call.
     * +optional
     * 
* * optional bool stderr = 3; */ public boolean getStderr() { return stderr_; } public static final int TTY_FIELD_NUMBER = 4; private boolean tty_; /** * * *
     * TTY if true indicates that a tty will be allocated for the exec call.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ public boolean hasTty() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * TTY if true indicates that a tty will be allocated for the exec call.
     * Defaults to false.
     * +optional
     * 
* * optional bool tty = 4; */ public boolean getTty() { return tty_; } public static final int CONTAINER_FIELD_NUMBER = 5; private volatile java.lang.Object container_; /** * * *
     * Container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ public boolean hasContainer() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ public java.lang.String getContainer() { java.lang.Object ref = container_; 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()) { container_ = s; } return s; } } /** * * *
     * Container in which to execute the command.
     * Defaults to only container if there is only one container in the pod.
     * +optional
     * 
* * optional string container = 5; */ public com.google.protobuf.ByteString getContainerBytes() { java.lang.Object ref = container_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); container_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMAND_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList command_; /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ public int getCommandCount() { return command_.size(); } /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
     * Command is the remote command to execute. argv array. Not executed within a shell.
     * 
* * repeated string command = 6; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, stdin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, stdout_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, stderr_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, tty_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, container_); } for (int i = 0; i < command_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, command_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, stdin_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, stdout_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, stderr_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, tty_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, container_); } { int dataSize = 0; for (int i = 0; i < command_.size(); i++) { dataSize += computeStringSizeNoTag(command_.getRaw(i)); } size += dataSize; size += 1 * getCommandList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.PodExecOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodExecOptions other = (io.kubernetes.client.proto.V1.PodExecOptions) obj; boolean result = true; result = result && (hasStdin() == other.hasStdin()); if (hasStdin()) { result = result && (getStdin() == other.getStdin()); } result = result && (hasStdout() == other.hasStdout()); if (hasStdout()) { result = result && (getStdout() == other.getStdout()); } result = result && (hasStderr() == other.hasStderr()); if (hasStderr()) { result = result && (getStderr() == other.getStderr()); } result = result && (hasTty() == other.hasTty()); if (hasTty()) { result = result && (getTty() == other.getTty()); } result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer().equals(other.getContainer()); } result = result && getCommandList().equals(other.getCommandList()); 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 (hasStdin()) { hash = (37 * hash) + STDIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdin()); } if (hasStdout()) { hash = (37 * hash) + STDOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStdout()); } if (hasStderr()) { hash = (37 * hash) + STDERR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStderr()); } if (hasTty()) { hash = (37 * hash) + TTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTty()); } if (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } if (getCommandCount() > 0) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommandList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodExecOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodExecOptions 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.V1.PodExecOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodExecOptions 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.V1.PodExecOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodExecOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodExecOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodExecOptions 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.V1.PodExecOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodExecOptions 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.V1.PodExecOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodExecOptions 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.V1.PodExecOptions 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; } /** * * *
     * PodExecOptions is the query options to a Pod's remote exec call.
     * ---
     * TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging
     * and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodExecOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodExecOptions) io.kubernetes.client.proto.V1.PodExecOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodExecOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodExecOptions.class, io.kubernetes.client.proto.V1.PodExecOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodExecOptions.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(); stdin_ = false; bitField0_ = (bitField0_ & ~0x00000001); stdout_ = false; bitField0_ = (bitField0_ & ~0x00000002); stderr_ = false; bitField0_ = (bitField0_ & ~0x00000004); tty_ = false; bitField0_ = (bitField0_ & ~0x00000008); container_ = ""; bitField0_ = (bitField0_ & ~0x00000010); command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodExecOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodExecOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodExecOptions build() { io.kubernetes.client.proto.V1.PodExecOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodExecOptions buildPartial() { io.kubernetes.client.proto.V1.PodExecOptions result = new io.kubernetes.client.proto.V1.PodExecOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.stdin_ = stdin_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.stdout_ = stdout_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.stderr_ = stderr_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.tty_ = tty_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.container_ = container_; if (((bitField0_ & 0x00000020) == 0x00000020)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.command_ = command_; 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.V1.PodExecOptions) { return mergeFrom((io.kubernetes.client.proto.V1.PodExecOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodExecOptions other) { if (other == io.kubernetes.client.proto.V1.PodExecOptions.getDefaultInstance()) return this; if (other.hasStdin()) { setStdin(other.getStdin()); } if (other.hasStdout()) { setStdout(other.getStdout()); } if (other.hasStderr()) { setStderr(other.getStderr()); } if (other.hasTty()) { setTty(other.getTty()); } if (other.hasContainer()) { bitField0_ |= 0x00000010; container_ = other.container_; onChanged(); } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureCommandIsMutable(); command_.addAll(other.command_); } 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.V1.PodExecOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodExecOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean stdin_; /** * * *
       * Redirect the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public boolean hasStdin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Redirect the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public boolean getStdin() { return stdin_; } /** * * *
       * Redirect the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public Builder setStdin(boolean value) { bitField0_ |= 0x00000001; stdin_ = value; onChanged(); return this; } /** * * *
       * Redirect the standard input stream of the pod for this call.
       * Defaults to false.
       * +optional
       * 
* * optional bool stdin = 1; */ public Builder clearStdin() { bitField0_ = (bitField0_ & ~0x00000001); stdin_ = false; onChanged(); return this; } private boolean stdout_; /** * * *
       * Redirect the standard output stream of the pod for this call.
       * +optional
       * 
* * optional bool stdout = 2; */ public boolean hasStdout() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Redirect the standard output stream of the pod for this call.
       * +optional
       * 
* * optional bool stdout = 2; */ public boolean getStdout() { return stdout_; } /** * * *
       * Redirect the standard output stream of the pod for this call.
       * +optional
       * 
* * optional bool stdout = 2; */ public Builder setStdout(boolean value) { bitField0_ |= 0x00000002; stdout_ = value; onChanged(); return this; } /** * * *
       * Redirect the standard output stream of the pod for this call.
       * +optional
       * 
* * optional bool stdout = 2; */ public Builder clearStdout() { bitField0_ = (bitField0_ & ~0x00000002); stdout_ = false; onChanged(); return this; } private boolean stderr_; /** * * *
       * Redirect the standard error stream of the pod for this call.
       * +optional
       * 
* * optional bool stderr = 3; */ public boolean hasStderr() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Redirect the standard error stream of the pod for this call.
       * +optional
       * 
* * optional bool stderr = 3; */ public boolean getStderr() { return stderr_; } /** * * *
       * Redirect the standard error stream of the pod for this call.
       * +optional
       * 
* * optional bool stderr = 3; */ public Builder setStderr(boolean value) { bitField0_ |= 0x00000004; stderr_ = value; onChanged(); return this; } /** * * *
       * Redirect the standard error stream of the pod for this call.
       * +optional
       * 
* * optional bool stderr = 3; */ public Builder clearStderr() { bitField0_ = (bitField0_ & ~0x00000004); stderr_ = false; onChanged(); return this; } private boolean tty_; /** * * *
       * TTY if true indicates that a tty will be allocated for the exec call.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public boolean hasTty() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * TTY if true indicates that a tty will be allocated for the exec call.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public boolean getTty() { return tty_; } /** * * *
       * TTY if true indicates that a tty will be allocated for the exec call.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public Builder setTty(boolean value) { bitField0_ |= 0x00000008; tty_ = value; onChanged(); return this; } /** * * *
       * TTY if true indicates that a tty will be allocated for the exec call.
       * Defaults to false.
       * +optional
       * 
* * optional bool tty = 4; */ public Builder clearTty() { bitField0_ = (bitField0_ & ~0x00000008); tty_ = false; onChanged(); return this; } private java.lang.Object container_ = ""; /** * * *
       * Container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public boolean hasContainer() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public java.lang.String getContainer() { java.lang.Object ref = container_; 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()) { container_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public com.google.protobuf.ByteString getContainerBytes() { java.lang.Object ref = container_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); container_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public Builder setContainer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; container_ = value; onChanged(); return this; } /** * * *
       * Container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00000010); container_ = getDefaultInstance().getContainer(); onChanged(); return this; } /** * * *
       * Container in which to execute the command.
       * Defaults to only container if there is only one container in the pod.
       * +optional
       * 
* * optional string container = 5; */ public Builder setContainerBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; container_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000020; } } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public int getCommandCount() { return command_.size(); } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public java.lang.String getCommand(int index) { return command_.get(index); } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public Builder setCommand(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public Builder addCommand(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
       * Command is the remote command to execute. argv array. Not executed within a shell.
       * 
* * repeated string command = 6; */ public Builder addCommandBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodExecOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodExecOptions) private static final io.kubernetes.client.proto.V1.PodExecOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodExecOptions(); } public static io.kubernetes.client.proto.V1.PodExecOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodExecOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodExecOptions(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.V1.PodExecOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodIPOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodIP) com.google.protobuf.MessageOrBuilder { /** * * *
     * ip is an IP address (IPv4 or IPv6) assigned to the pod
     * 
* * optional string ip = 1; */ boolean hasIp(); /** * * *
     * ip is an IP address (IPv4 or IPv6) assigned to the pod
     * 
* * optional string ip = 1; */ java.lang.String getIp(); /** * * *
     * ip is an IP address (IPv4 or IPv6) assigned to the pod
     * 
* * optional string ip = 1; */ com.google.protobuf.ByteString getIpBytes(); } /** * * *
   * IP address information for entries in the (plural) PodIPs field.
   * Each entry includes:
   *    IP: An IP address allocated to the pod. Routable at least within the cluster.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodIP} */ public static final class PodIP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodIP) PodIPOrBuilder { private static final long serialVersionUID = 0L; // Use PodIP.newBuilder() to construct. private PodIP(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodIP() { ip_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodIP( 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; ip_ = 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.V1.internal_static_k8s_io_api_core_v1_PodIP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodIP_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodIP.class, io.kubernetes.client.proto.V1.PodIP.Builder.class); } private int bitField0_; public static final int IP_FIELD_NUMBER = 1; private volatile java.lang.Object ip_; /** * * *
     * ip is an IP address (IPv4 or IPv6) assigned to the pod
     * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * ip is an IP address (IPv4 or IPv6) assigned to the pod
     * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } } /** * * *
     * ip is an IP address (IPv4 or IPv6) assigned to the pod
     * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = 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, ip_); } 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, ip_); } 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.V1.PodIP)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodIP other = (io.kubernetes.client.proto.V1.PodIP) obj; boolean result = true; result = result && (hasIp() == other.hasIp()); if (hasIp()) { result = result && getIp().equals(other.getIp()); } 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 (hasIp()) { hash = (37 * hash) + IP_FIELD_NUMBER; hash = (53 * hash) + getIp().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodIP parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodIP 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.V1.PodIP parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodIP 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.V1.PodIP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodIP parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodIP parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodIP 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.V1.PodIP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodIP 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.V1.PodIP parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodIP 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.V1.PodIP 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; } /** * * *
     * IP address information for entries in the (plural) PodIPs field.
     * Each entry includes:
     *    IP: An IP address allocated to the pod. Routable at least within the cluster.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodIP} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodIP) io.kubernetes.client.proto.V1.PodIPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodIP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodIP_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodIP.class, io.kubernetes.client.proto.V1.PodIP.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodIP.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(); ip_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodIP_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodIP getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodIP.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodIP build() { io.kubernetes.client.proto.V1.PodIP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodIP buildPartial() { io.kubernetes.client.proto.V1.PodIP result = new io.kubernetes.client.proto.V1.PodIP(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ip_ = ip_; 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.V1.PodIP) { return mergeFrom((io.kubernetes.client.proto.V1.PodIP) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodIP other) { if (other == io.kubernetes.client.proto.V1.PodIP.getDefaultInstance()) return this; if (other.hasIp()) { bitField0_ |= 0x00000001; ip_ = other.ip_; 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.V1.PodIP parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodIP) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object ip_ = ""; /** * * *
       * ip is an IP address (IPv4 or IPv6) assigned to the pod
       * 
* * optional string ip = 1; */ public boolean hasIp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * ip is an IP address (IPv4 or IPv6) assigned to the pod
       * 
* * optional string ip = 1; */ public java.lang.String getIp() { java.lang.Object ref = ip_; 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()) { ip_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ip is an IP address (IPv4 or IPv6) assigned to the pod
       * 
* * optional string ip = 1; */ public com.google.protobuf.ByteString getIpBytes() { java.lang.Object ref = ip_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ip_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ip is an IP address (IPv4 or IPv6) assigned to the pod
       * 
* * optional string ip = 1; */ public Builder setIp(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = value; onChanged(); return this; } /** * * *
       * ip is an IP address (IPv4 or IPv6) assigned to the pod
       * 
* * optional string ip = 1; */ public Builder clearIp() { bitField0_ = (bitField0_ & ~0x00000001); ip_ = getDefaultInstance().getIp(); onChanged(); return this; } /** * * *
       * ip is an IP address (IPv4 or IPv6) assigned to the pod
       * 
* * optional string ip = 1; */ public Builder setIpBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ip_ = 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.core.v1.PodIP) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodIP) private static final io.kubernetes.client.proto.V1.PodIP DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodIP(); } public static io.kubernetes.client.proto.V1.PodIP getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodIP parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodIP(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.V1.PodIP getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ java.util.List getItemsList(); /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ io.kubernetes.client.proto.V1.Pod getItems(int index); /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ int getItemsCount(); /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ io.kubernetes.client.proto.V1.PodOrBuilder getItemsOrBuilder(int index); } /** * * *
   * PodList is a list of Pods.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodList} */ public static final class PodList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodList) PodListOrBuilder { private static final long serialVersionUID = 0L; // Use PodList.newBuilder() to construct. private PodList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodList( 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.V1.Pod.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.V1.internal_static_k8s_io_api_core_v1_PodList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodList.class, io.kubernetes.client.proto.V1.PodList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.Pod getItems(int index) { return items_.get(index); } /** * * *
     * List of pods.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
     * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.PodOrBuilder 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.V1.PodList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodList other = (io.kubernetes.client.proto.V1.PodList) 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.V1.PodList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodList 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.V1.PodList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodList 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.V1.PodList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodList 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.V1.PodList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodList 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.V1.PodList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodList 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.V1.PodList 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; } /** * * *
     * PodList is a list of Pods.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodList) io.kubernetes.client.proto.V1.PodListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodList.class, io.kubernetes.client.proto.V1.PodList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodList.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.V1.internal_static_k8s_io_api_core_v1_PodList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodList build() { io.kubernetes.client.proto.V1.PodList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodList buildPartial() { io.kubernetes.client.proto.V1.PodList result = new io.kubernetes.client.proto.V1.PodList(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.V1.PodList) { return mergeFrom((io.kubernetes.client.proto.V1.PodList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodList other) { if (other == io.kubernetes.client.proto.V1.PodList.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.V1.PodList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Pod, io.kubernetes.client.proto.V1.Pod.Builder, io.kubernetes.client.proto.V1.PodOrBuilder> itemsBuilder_; /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.Pod getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Pod value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Pod.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Pod value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Pod value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Pod.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Pod.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod 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; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.Pod.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.PodOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.Pod.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Pod.getDefaultInstance()); } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public io.kubernetes.client.proto.V1.Pod.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Pod.getDefaultInstance()); } /** * * *
       * List of pods.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
       * 
* * repeated .k8s.io.api.core.v1.Pod items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Pod, io.kubernetes.client.proto.V1.Pod.Builder, io.kubernetes.client.proto.V1.PodOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Pod, io.kubernetes.client.proto.V1.Pod.Builder, io.kubernetes.client.proto.V1.PodOrBuilder>( 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.core.v1.PodList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodList) private static final io.kubernetes.client.proto.V1.PodList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodList(); } public static io.kubernetes.client.proto.V1.PodList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodList(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.V1.PodList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodLogOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodLogOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * +optional
     * 
* * optional string container = 1; */ boolean hasContainer(); /** * * *
     * The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * +optional
     * 
* * optional string container = 1; */ java.lang.String getContainer(); /** * * *
     * The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * +optional
     * 
* * optional string container = 1; */ com.google.protobuf.ByteString getContainerBytes(); /** * * *
     * Follow the log stream of the pod. Defaults to false.
     * +optional
     * 
* * optional bool follow = 2; */ boolean hasFollow(); /** * * *
     * Follow the log stream of the pod. Defaults to false.
     * +optional
     * 
* * optional bool follow = 2; */ boolean getFollow(); /** * * *
     * Return previous terminated container logs. Defaults to false.
     * +optional
     * 
* * optional bool previous = 3; */ boolean hasPrevious(); /** * * *
     * Return previous terminated container logs. Defaults to false.
     * +optional
     * 
* * optional bool previous = 3; */ boolean getPrevious(); /** * * *
     * A relative time in seconds before the current time from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional int64 sinceSeconds = 4; */ boolean hasSinceSeconds(); /** * * *
     * A relative time in seconds before the current time from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional int64 sinceSeconds = 4; */ long getSinceSeconds(); /** * * *
     * An RFC3339 timestamp from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ boolean hasSinceTime(); /** * * *
     * An RFC3339 timestamp from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ io.kubernetes.client.proto.Meta.Time getSinceTime(); /** * * *
     * An RFC3339 timestamp from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getSinceTimeOrBuilder(); /** * * *
     * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
     * of log output. Defaults to false.
     * +optional
     * 
* * optional bool timestamps = 6; */ boolean hasTimestamps(); /** * * *
     * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
     * of log output. Defaults to false.
     * +optional
     * 
* * optional bool timestamps = 6; */ boolean getTimestamps(); /** * * *
     * If set, the number of lines from the end of the logs to show. If not specified,
     * logs are shown from the creation of the container or sinceSeconds or sinceTime
     * +optional
     * 
* * optional int64 tailLines = 7; */ boolean hasTailLines(); /** * * *
     * If set, the number of lines from the end of the logs to show. If not specified,
     * logs are shown from the creation of the container or sinceSeconds or sinceTime
     * +optional
     * 
* * optional int64 tailLines = 7; */ long getTailLines(); /** * * *
     * If set, the number of bytes to read from the server before terminating the
     * log output. This may not display a complete final line of logging, and may return
     * slightly more or slightly less than the specified limit.
     * +optional
     * 
* * optional int64 limitBytes = 8; */ boolean hasLimitBytes(); /** * * *
     * If set, the number of bytes to read from the server before terminating the
     * log output. This may not display a complete final line of logging, and may return
     * slightly more or slightly less than the specified limit.
     * +optional
     * 
* * optional int64 limitBytes = 8; */ long getLimitBytes(); /** * * *
     * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
     * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
     * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
     * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
     * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
     * the actual log data coming from the real kubelet).
     * +optional
     * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ boolean hasInsecureSkipTLSVerifyBackend(); /** * * *
     * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
     * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
     * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
     * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
     * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
     * the actual log data coming from the real kubelet).
     * +optional
     * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ boolean getInsecureSkipTLSVerifyBackend(); } /** * * *
   * PodLogOptions is the query options for a Pod's logs REST call.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodLogOptions} */ public static final class PodLogOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodLogOptions) PodLogOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use PodLogOptions.newBuilder() to construct. private PodLogOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodLogOptions() { container_ = ""; follow_ = false; previous_ = false; sinceSeconds_ = 0L; timestamps_ = false; tailLines_ = 0L; limitBytes_ = 0L; insecureSkipTLSVerifyBackend_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodLogOptions( 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; container_ = bs; break; } case 16: { bitField0_ |= 0x00000002; follow_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; previous_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; sinceSeconds_ = input.readInt64(); break; } case 42: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = sinceTime_.toBuilder(); } sinceTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sinceTime_); sinceTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 48: { bitField0_ |= 0x00000020; timestamps_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000040; tailLines_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000080; limitBytes_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000100; insecureSkipTLSVerifyBackend_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodLogOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodLogOptions.class, io.kubernetes.client.proto.V1.PodLogOptions.Builder.class); } private int bitField0_; public static final int CONTAINER_FIELD_NUMBER = 1; private volatile java.lang.Object container_; /** * * *
     * The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * +optional
     * 
* * optional string container = 1; */ public boolean hasContainer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * +optional
     * 
* * optional string container = 1; */ public java.lang.String getContainer() { java.lang.Object ref = container_; 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()) { container_ = s; } return s; } } /** * * *
     * The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * +optional
     * 
* * optional string container = 1; */ public com.google.protobuf.ByteString getContainerBytes() { java.lang.Object ref = container_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); container_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLLOW_FIELD_NUMBER = 2; private boolean follow_; /** * * *
     * Follow the log stream of the pod. Defaults to false.
     * +optional
     * 
* * optional bool follow = 2; */ public boolean hasFollow() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Follow the log stream of the pod. Defaults to false.
     * +optional
     * 
* * optional bool follow = 2; */ public boolean getFollow() { return follow_; } public static final int PREVIOUS_FIELD_NUMBER = 3; private boolean previous_; /** * * *
     * Return previous terminated container logs. Defaults to false.
     * +optional
     * 
* * optional bool previous = 3; */ public boolean hasPrevious() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Return previous terminated container logs. Defaults to false.
     * +optional
     * 
* * optional bool previous = 3; */ public boolean getPrevious() { return previous_; } public static final int SINCESECONDS_FIELD_NUMBER = 4; private long sinceSeconds_; /** * * *
     * A relative time in seconds before the current time from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional int64 sinceSeconds = 4; */ public boolean hasSinceSeconds() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * A relative time in seconds before the current time from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional int64 sinceSeconds = 4; */ public long getSinceSeconds() { return sinceSeconds_; } public static final int SINCETIME_FIELD_NUMBER = 5; private io.kubernetes.client.proto.Meta.Time sinceTime_; /** * * *
     * An RFC3339 timestamp from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public boolean hasSinceTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * An RFC3339 timestamp from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public io.kubernetes.client.proto.Meta.Time getSinceTime() { return sinceTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : sinceTime_; } /** * * *
     * An RFC3339 timestamp from which to show logs. If this value
     * precedes the time a pod was started, only logs since the pod start will be returned.
     * If this value is in the future, no logs will be returned.
     * Only one of sinceSeconds or sinceTime may be specified.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getSinceTimeOrBuilder() { return sinceTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : sinceTime_; } public static final int TIMESTAMPS_FIELD_NUMBER = 6; private boolean timestamps_; /** * * *
     * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
     * of log output. Defaults to false.
     * +optional
     * 
* * optional bool timestamps = 6; */ public boolean hasTimestamps() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
     * of log output. Defaults to false.
     * +optional
     * 
* * optional bool timestamps = 6; */ public boolean getTimestamps() { return timestamps_; } public static final int TAILLINES_FIELD_NUMBER = 7; private long tailLines_; /** * * *
     * If set, the number of lines from the end of the logs to show. If not specified,
     * logs are shown from the creation of the container or sinceSeconds or sinceTime
     * +optional
     * 
* * optional int64 tailLines = 7; */ public boolean hasTailLines() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * If set, the number of lines from the end of the logs to show. If not specified,
     * logs are shown from the creation of the container or sinceSeconds or sinceTime
     * +optional
     * 
* * optional int64 tailLines = 7; */ public long getTailLines() { return tailLines_; } public static final int LIMITBYTES_FIELD_NUMBER = 8; private long limitBytes_; /** * * *
     * If set, the number of bytes to read from the server before terminating the
     * log output. This may not display a complete final line of logging, and may return
     * slightly more or slightly less than the specified limit.
     * +optional
     * 
* * optional int64 limitBytes = 8; */ public boolean hasLimitBytes() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * If set, the number of bytes to read from the server before terminating the
     * log output. This may not display a complete final line of logging, and may return
     * slightly more or slightly less than the specified limit.
     * +optional
     * 
* * optional int64 limitBytes = 8; */ public long getLimitBytes() { return limitBytes_; } public static final int INSECURESKIPTLSVERIFYBACKEND_FIELD_NUMBER = 9; private boolean insecureSkipTLSVerifyBackend_; /** * * *
     * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
     * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
     * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
     * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
     * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
     * the actual log data coming from the real kubelet).
     * +optional
     * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ public boolean hasInsecureSkipTLSVerifyBackend() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
     * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
     * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
     * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
     * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
     * the actual log data coming from the real kubelet).
     * +optional
     * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ public boolean getInsecureSkipTLSVerifyBackend() { return insecureSkipTLSVerifyBackend_; } 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, container_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, follow_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, previous_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, sinceSeconds_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getSinceTime()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, timestamps_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, tailLines_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, limitBytes_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(9, insecureSkipTLSVerifyBackend_); } 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, container_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, follow_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, previous_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sinceSeconds_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSinceTime()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, timestamps_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, tailLines_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, limitBytes_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, insecureSkipTLSVerifyBackend_); } 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.V1.PodLogOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodLogOptions other = (io.kubernetes.client.proto.V1.PodLogOptions) obj; boolean result = true; result = result && (hasContainer() == other.hasContainer()); if (hasContainer()) { result = result && getContainer().equals(other.getContainer()); } result = result && (hasFollow() == other.hasFollow()); if (hasFollow()) { result = result && (getFollow() == other.getFollow()); } result = result && (hasPrevious() == other.hasPrevious()); if (hasPrevious()) { result = result && (getPrevious() == other.getPrevious()); } result = result && (hasSinceSeconds() == other.hasSinceSeconds()); if (hasSinceSeconds()) { result = result && (getSinceSeconds() == other.getSinceSeconds()); } result = result && (hasSinceTime() == other.hasSinceTime()); if (hasSinceTime()) { result = result && getSinceTime().equals(other.getSinceTime()); } result = result && (hasTimestamps() == other.hasTimestamps()); if (hasTimestamps()) { result = result && (getTimestamps() == other.getTimestamps()); } result = result && (hasTailLines() == other.hasTailLines()); if (hasTailLines()) { result = result && (getTailLines() == other.getTailLines()); } result = result && (hasLimitBytes() == other.hasLimitBytes()); if (hasLimitBytes()) { result = result && (getLimitBytes() == other.getLimitBytes()); } result = result && (hasInsecureSkipTLSVerifyBackend() == other.hasInsecureSkipTLSVerifyBackend()); if (hasInsecureSkipTLSVerifyBackend()) { result = result && (getInsecureSkipTLSVerifyBackend() == other.getInsecureSkipTLSVerifyBackend()); } 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 (hasContainer()) { hash = (37 * hash) + CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getContainer().hashCode(); } if (hasFollow()) { hash = (37 * hash) + FOLLOW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFollow()); } if (hasPrevious()) { hash = (37 * hash) + PREVIOUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrevious()); } if (hasSinceSeconds()) { hash = (37 * hash) + SINCESECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSinceSeconds()); } if (hasSinceTime()) { hash = (37 * hash) + SINCETIME_FIELD_NUMBER; hash = (53 * hash) + getSinceTime().hashCode(); } if (hasTimestamps()) { hash = (37 * hash) + TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTimestamps()); } if (hasTailLines()) { hash = (37 * hash) + TAILLINES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTailLines()); } if (hasLimitBytes()) { hash = (37 * hash) + LIMITBYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimitBytes()); } if (hasInsecureSkipTLSVerifyBackend()) { hash = (37 * hash) + INSECURESKIPTLSVERIFYBACKEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInsecureSkipTLSVerifyBackend()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodLogOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodLogOptions 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.V1.PodLogOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodLogOptions 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.V1.PodLogOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodLogOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodLogOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodLogOptions 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.V1.PodLogOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodLogOptions 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.V1.PodLogOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodLogOptions 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.V1.PodLogOptions 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; } /** * * *
     * PodLogOptions is the query options for a Pod's logs REST call.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodLogOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodLogOptions) io.kubernetes.client.proto.V1.PodLogOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodLogOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodLogOptions.class, io.kubernetes.client.proto.V1.PodLogOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodLogOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSinceTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); container_ = ""; bitField0_ = (bitField0_ & ~0x00000001); follow_ = false; bitField0_ = (bitField0_ & ~0x00000002); previous_ = false; bitField0_ = (bitField0_ & ~0x00000004); sinceSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); if (sinceTimeBuilder_ == null) { sinceTime_ = null; } else { sinceTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); timestamps_ = false; bitField0_ = (bitField0_ & ~0x00000020); tailLines_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); limitBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); insecureSkipTLSVerifyBackend_ = false; bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodLogOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodLogOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodLogOptions build() { io.kubernetes.client.proto.V1.PodLogOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodLogOptions buildPartial() { io.kubernetes.client.proto.V1.PodLogOptions result = new io.kubernetes.client.proto.V1.PodLogOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.container_ = container_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.follow_ = follow_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.previous_ = previous_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.sinceSeconds_ = sinceSeconds_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (sinceTimeBuilder_ == null) { result.sinceTime_ = sinceTime_; } else { result.sinceTime_ = sinceTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.timestamps_ = timestamps_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.tailLines_ = tailLines_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.limitBytes_ = limitBytes_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.insecureSkipTLSVerifyBackend_ = insecureSkipTLSVerifyBackend_; 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.V1.PodLogOptions) { return mergeFrom((io.kubernetes.client.proto.V1.PodLogOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodLogOptions other) { if (other == io.kubernetes.client.proto.V1.PodLogOptions.getDefaultInstance()) return this; if (other.hasContainer()) { bitField0_ |= 0x00000001; container_ = other.container_; onChanged(); } if (other.hasFollow()) { setFollow(other.getFollow()); } if (other.hasPrevious()) { setPrevious(other.getPrevious()); } if (other.hasSinceSeconds()) { setSinceSeconds(other.getSinceSeconds()); } if (other.hasSinceTime()) { mergeSinceTime(other.getSinceTime()); } if (other.hasTimestamps()) { setTimestamps(other.getTimestamps()); } if (other.hasTailLines()) { setTailLines(other.getTailLines()); } if (other.hasLimitBytes()) { setLimitBytes(other.getLimitBytes()); } if (other.hasInsecureSkipTLSVerifyBackend()) { setInsecureSkipTLSVerifyBackend(other.getInsecureSkipTLSVerifyBackend()); } 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.V1.PodLogOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodLogOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object container_ = ""; /** * * *
       * The container for which to stream logs. Defaults to only container if there is one container in the pod.
       * +optional
       * 
* * optional string container = 1; */ public boolean hasContainer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The container for which to stream logs. Defaults to only container if there is one container in the pod.
       * +optional
       * 
* * optional string container = 1; */ public java.lang.String getContainer() { java.lang.Object ref = container_; 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()) { container_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The container for which to stream logs. Defaults to only container if there is one container in the pod.
       * +optional
       * 
* * optional string container = 1; */ public com.google.protobuf.ByteString getContainerBytes() { java.lang.Object ref = container_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); container_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The container for which to stream logs. Defaults to only container if there is one container in the pod.
       * +optional
       * 
* * optional string container = 1; */ public Builder setContainer(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; container_ = value; onChanged(); return this; } /** * * *
       * The container for which to stream logs. Defaults to only container if there is one container in the pod.
       * +optional
       * 
* * optional string container = 1; */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00000001); container_ = getDefaultInstance().getContainer(); onChanged(); return this; } /** * * *
       * The container for which to stream logs. Defaults to only container if there is one container in the pod.
       * +optional
       * 
* * optional string container = 1; */ public Builder setContainerBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; container_ = value; onChanged(); return this; } private boolean follow_; /** * * *
       * Follow the log stream of the pod. Defaults to false.
       * +optional
       * 
* * optional bool follow = 2; */ public boolean hasFollow() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Follow the log stream of the pod. Defaults to false.
       * +optional
       * 
* * optional bool follow = 2; */ public boolean getFollow() { return follow_; } /** * * *
       * Follow the log stream of the pod. Defaults to false.
       * +optional
       * 
* * optional bool follow = 2; */ public Builder setFollow(boolean value) { bitField0_ |= 0x00000002; follow_ = value; onChanged(); return this; } /** * * *
       * Follow the log stream of the pod. Defaults to false.
       * +optional
       * 
* * optional bool follow = 2; */ public Builder clearFollow() { bitField0_ = (bitField0_ & ~0x00000002); follow_ = false; onChanged(); return this; } private boolean previous_; /** * * *
       * Return previous terminated container logs. Defaults to false.
       * +optional
       * 
* * optional bool previous = 3; */ public boolean hasPrevious() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Return previous terminated container logs. Defaults to false.
       * +optional
       * 
* * optional bool previous = 3; */ public boolean getPrevious() { return previous_; } /** * * *
       * Return previous terminated container logs. Defaults to false.
       * +optional
       * 
* * optional bool previous = 3; */ public Builder setPrevious(boolean value) { bitField0_ |= 0x00000004; previous_ = value; onChanged(); return this; } /** * * *
       * Return previous terminated container logs. Defaults to false.
       * +optional
       * 
* * optional bool previous = 3; */ public Builder clearPrevious() { bitField0_ = (bitField0_ & ~0x00000004); previous_ = false; onChanged(); return this; } private long sinceSeconds_; /** * * *
       * A relative time in seconds before the current time from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional int64 sinceSeconds = 4; */ public boolean hasSinceSeconds() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * A relative time in seconds before the current time from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional int64 sinceSeconds = 4; */ public long getSinceSeconds() { return sinceSeconds_; } /** * * *
       * A relative time in seconds before the current time from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional int64 sinceSeconds = 4; */ public Builder setSinceSeconds(long value) { bitField0_ |= 0x00000008; sinceSeconds_ = value; onChanged(); return this; } /** * * *
       * A relative time in seconds before the current time from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional int64 sinceSeconds = 4; */ public Builder clearSinceSeconds() { bitField0_ = (bitField0_ & ~0x00000008); sinceSeconds_ = 0L; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time sinceTime_ = 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> sinceTimeBuilder_; /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public boolean hasSinceTime() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public io.kubernetes.client.proto.Meta.Time getSinceTime() { if (sinceTimeBuilder_ == null) { return sinceTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : sinceTime_; } else { return sinceTimeBuilder_.getMessage(); } } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public Builder setSinceTime(io.kubernetes.client.proto.Meta.Time value) { if (sinceTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sinceTime_ = value; onChanged(); } else { sinceTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public Builder setSinceTime(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (sinceTimeBuilder_ == null) { sinceTime_ = builderForValue.build(); onChanged(); } else { sinceTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public Builder mergeSinceTime(io.kubernetes.client.proto.Meta.Time value) { if (sinceTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && sinceTime_ != null && sinceTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { sinceTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(sinceTime_) .mergeFrom(value) .buildPartial(); } else { sinceTime_ = value; } onChanged(); } else { sinceTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public Builder clearSinceTime() { if (sinceTimeBuilder_ == null) { sinceTime_ = null; onChanged(); } else { sinceTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public io.kubernetes.client.proto.Meta.Time.Builder getSinceTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSinceTimeFieldBuilder().getBuilder(); } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getSinceTimeOrBuilder() { if (sinceTimeBuilder_ != null) { return sinceTimeBuilder_.getMessageOrBuilder(); } else { return sinceTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : sinceTime_; } } /** * * *
       * An RFC3339 timestamp from which to show logs. If this value
       * precedes the time a pod was started, only logs since the pod start will be returned.
       * If this value is in the future, no logs will be returned.
       * Only one of sinceSeconds or sinceTime may be specified.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time sinceTime = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getSinceTimeFieldBuilder() { if (sinceTimeBuilder_ == null) { sinceTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getSinceTime(), getParentForChildren(), isClean()); sinceTime_ = null; } return sinceTimeBuilder_; } private boolean timestamps_; /** * * *
       * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       * of log output. Defaults to false.
       * +optional
       * 
* * optional bool timestamps = 6; */ public boolean hasTimestamps() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       * of log output. Defaults to false.
       * +optional
       * 
* * optional bool timestamps = 6; */ public boolean getTimestamps() { return timestamps_; } /** * * *
       * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       * of log output. Defaults to false.
       * +optional
       * 
* * optional bool timestamps = 6; */ public Builder setTimestamps(boolean value) { bitField0_ |= 0x00000020; timestamps_ = value; onChanged(); return this; } /** * * *
       * If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
       * of log output. Defaults to false.
       * +optional
       * 
* * optional bool timestamps = 6; */ public Builder clearTimestamps() { bitField0_ = (bitField0_ & ~0x00000020); timestamps_ = false; onChanged(); return this; } private long tailLines_; /** * * *
       * If set, the number of lines from the end of the logs to show. If not specified,
       * logs are shown from the creation of the container or sinceSeconds or sinceTime
       * +optional
       * 
* * optional int64 tailLines = 7; */ public boolean hasTailLines() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * If set, the number of lines from the end of the logs to show. If not specified,
       * logs are shown from the creation of the container or sinceSeconds or sinceTime
       * +optional
       * 
* * optional int64 tailLines = 7; */ public long getTailLines() { return tailLines_; } /** * * *
       * If set, the number of lines from the end of the logs to show. If not specified,
       * logs are shown from the creation of the container or sinceSeconds or sinceTime
       * +optional
       * 
* * optional int64 tailLines = 7; */ public Builder setTailLines(long value) { bitField0_ |= 0x00000040; tailLines_ = value; onChanged(); return this; } /** * * *
       * If set, the number of lines from the end of the logs to show. If not specified,
       * logs are shown from the creation of the container or sinceSeconds or sinceTime
       * +optional
       * 
* * optional int64 tailLines = 7; */ public Builder clearTailLines() { bitField0_ = (bitField0_ & ~0x00000040); tailLines_ = 0L; onChanged(); return this; } private long limitBytes_; /** * * *
       * If set, the number of bytes to read from the server before terminating the
       * log output. This may not display a complete final line of logging, and may return
       * slightly more or slightly less than the specified limit.
       * +optional
       * 
* * optional int64 limitBytes = 8; */ public boolean hasLimitBytes() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * If set, the number of bytes to read from the server before terminating the
       * log output. This may not display a complete final line of logging, and may return
       * slightly more or slightly less than the specified limit.
       * +optional
       * 
* * optional int64 limitBytes = 8; */ public long getLimitBytes() { return limitBytes_; } /** * * *
       * If set, the number of bytes to read from the server before terminating the
       * log output. This may not display a complete final line of logging, and may return
       * slightly more or slightly less than the specified limit.
       * +optional
       * 
* * optional int64 limitBytes = 8; */ public Builder setLimitBytes(long value) { bitField0_ |= 0x00000080; limitBytes_ = value; onChanged(); return this; } /** * * *
       * If set, the number of bytes to read from the server before terminating the
       * log output. This may not display a complete final line of logging, and may return
       * slightly more or slightly less than the specified limit.
       * +optional
       * 
* * optional int64 limitBytes = 8; */ public Builder clearLimitBytes() { bitField0_ = (bitField0_ & ~0x00000080); limitBytes_ = 0L; onChanged(); return this; } private boolean insecureSkipTLSVerifyBackend_; /** * * *
       * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       * the actual log data coming from the real kubelet).
       * +optional
       * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ public boolean hasInsecureSkipTLSVerifyBackend() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       * the actual log data coming from the real kubelet).
       * +optional
       * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ public boolean getInsecureSkipTLSVerifyBackend() { return insecureSkipTLSVerifyBackend_; } /** * * *
       * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       * the actual log data coming from the real kubelet).
       * +optional
       * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ public Builder setInsecureSkipTLSVerifyBackend(boolean value) { bitField0_ |= 0x00000100; insecureSkipTLSVerifyBackend_ = value; onChanged(); return this; } /** * * *
       * insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the
       * serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver
       * and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real
       * kubelet.  If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the
       * connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept
       * the actual log data coming from the real kubelet).
       * +optional
       * 
* * optional bool insecureSkipTLSVerifyBackend = 9; */ public Builder clearInsecureSkipTLSVerifyBackend() { bitField0_ = (bitField0_ & ~0x00000100); insecureSkipTLSVerifyBackend_ = 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.core.v1.PodLogOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodLogOptions) private static final io.kubernetes.client.proto.V1.PodLogOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodLogOptions(); } public static io.kubernetes.client.proto.V1.PodLogOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodLogOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodLogOptions(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.V1.PodLogOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodOSOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodOS) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name is the name of the operating system. The currently supported values are linux and windows.
     * Additional value may be defined in future and can be one of:
     * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
     * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name is the name of the operating system. The currently supported values are linux and windows.
     * Additional value may be defined in future and can be one of:
     * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
     * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name is the name of the operating system. The currently supported values are linux and windows.
     * Additional value may be defined in future and can be one of:
     * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
     * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * * *
   * PodOS defines the OS parameters of a pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodOS} */ public static final class PodOS extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodOS) PodOSOrBuilder { private static final long serialVersionUID = 0L; // Use PodOS.newBuilder() to construct. private PodOS(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodOS() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodOS( 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; } 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.V1.internal_static_k8s_io_api_core_v1_PodOS_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodOS_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodOS.class, io.kubernetes.client.proto.V1.PodOS.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name is the name of the operating system. The currently supported values are linux and windows.
     * Additional value may be defined in future and can be one of:
     * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
     * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name is the name of the operating system. The currently supported values are linux and windows.
     * Additional value may be defined in future and can be one of:
     * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
     * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name is the name of the operating system. The currently supported values are linux and windows.
     * Additional value may be defined in future and can be one of:
     * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
     * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
     * 
* * 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; } } 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_); } 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_); } 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.V1.PodOS)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodOS other = (io.kubernetes.client.proto.V1.PodOS) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodOS parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodOS 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.V1.PodOS parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodOS 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.V1.PodOS parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodOS parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodOS parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodOS 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.V1.PodOS parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodOS 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.V1.PodOS parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodOS 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.V1.PodOS 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; } /** * * *
     * PodOS defines the OS parameters of a pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodOS} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodOS) io.kubernetes.client.proto.V1.PodOSOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodOS_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodOS_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodOS.class, io.kubernetes.client.proto.V1.PodOS.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodOS.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodOS_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodOS getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodOS.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodOS build() { io.kubernetes.client.proto.V1.PodOS result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodOS buildPartial() { io.kubernetes.client.proto.V1.PodOS result = new io.kubernetes.client.proto.V1.PodOS(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; 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.V1.PodOS) { return mergeFrom((io.kubernetes.client.proto.V1.PodOS) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodOS other) { if (other == io.kubernetes.client.proto.V1.PodOS.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; 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.V1.PodOS parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodOS) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name is the name of the operating system. The currently supported values are linux and windows.
       * Additional value may be defined in future and can be one of:
       * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
       * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name is the name of the operating system. The currently supported values are linux and windows.
       * Additional value may be defined in future and can be one of:
       * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
       * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name is the name of the operating system. The currently supported values are linux and windows.
       * Additional value may be defined in future and can be one of:
       * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
       * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name is the name of the operating system. The currently supported values are linux and windows.
       * Additional value may be defined in future and can be one of:
       * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
       * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name is the name of the operating system. The currently supported values are linux and windows.
       * Additional value may be defined in future and can be one of:
       * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
       * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name is the name of the operating system. The currently supported values are linux and windows.
       * Additional value may be defined in future and can be one of:
       * https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
       * Clients should expect to handle additional values and treat unrecognized values in this field as os: null
       * 
* * 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; } @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.core.v1.PodOS) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodOS) private static final io.kubernetes.client.proto.V1.PodOS DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodOS(); } public static io.kubernetes.client.proto.V1.PodOS getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodOS parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodOS(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.V1.PodOS getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodPortForwardOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodPortForwardOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * List of ports to forward
     * Required when using WebSockets
     * +optional
     * 
* * repeated int32 ports = 1; */ java.util.List getPortsList(); /** * * *
     * List of ports to forward
     * Required when using WebSockets
     * +optional
     * 
* * repeated int32 ports = 1; */ int getPortsCount(); /** * * *
     * List of ports to forward
     * Required when using WebSockets
     * +optional
     * 
* * repeated int32 ports = 1; */ int getPorts(int index); } /** * * *
   * PodPortForwardOptions is the query options to a Pod's port forward call
   * when using WebSockets.
   * The `port` query parameter must specify the port or
   * ports (comma separated) to forward over.
   * Port forwarding over SPDY does not use these options. It requires the port
   * to be passed in the `port` header as part of request.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodPortForwardOptions} */ public static final class PodPortForwardOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodPortForwardOptions) PodPortForwardOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use PodPortForwardOptions.newBuilder() to construct. private PodPortForwardOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodPortForwardOptions() { ports_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodPortForwardOptions( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ports_.add(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { ports_.add(input.readInt32()); } input.popLimit(limit); 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)) { ports_ = java.util.Collections.unmodifiableList(ports_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodPortForwardOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodPortForwardOptions.class, io.kubernetes.client.proto.V1.PodPortForwardOptions.Builder.class); } public static final int PORTS_FIELD_NUMBER = 1; private java.util.List ports_; /** * * *
     * List of ports to forward
     * Required when using WebSockets
     * +optional
     * 
* * repeated int32 ports = 1; */ public java.util.List getPortsList() { return ports_; } /** * * *
     * List of ports to forward
     * Required when using WebSockets
     * +optional
     * 
* * repeated int32 ports = 1; */ public int getPortsCount() { return ports_.size(); } /** * * *
     * List of ports to forward
     * Required when using WebSockets
     * +optional
     * 
* * repeated int32 ports = 1; */ public int getPorts(int index) { return ports_.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 < ports_.size(); i++) { output.writeInt32(1, ports_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < ports_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(ports_.get(i)); } size += dataSize; size += 1 * getPortsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.PodPortForwardOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodPortForwardOptions other = (io.kubernetes.client.proto.V1.PodPortForwardOptions) obj; boolean result = true; result = result && getPortsList().equals(other.getPortsList()); 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 (getPortsCount() > 0) { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodPortForwardOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions 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.V1.PodPortForwardOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions 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.V1.PodPortForwardOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions 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.V1.PodPortForwardOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions 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.V1.PodPortForwardOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions 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.V1.PodPortForwardOptions 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; } /** * * *
     * PodPortForwardOptions is the query options to a Pod's port forward call
     * when using WebSockets.
     * The `port` query parameter must specify the port or
     * ports (comma separated) to forward over.
     * Port forwarding over SPDY does not use these options. It requires the port
     * to be passed in the `port` header as part of request.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodPortForwardOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodPortForwardOptions) io.kubernetes.client.proto.V1.PodPortForwardOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodPortForwardOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodPortForwardOptions.class, io.kubernetes.client.proto.V1.PodPortForwardOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodPortForwardOptions.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(); ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodPortForwardOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodPortForwardOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodPortForwardOptions build() { io.kubernetes.client.proto.V1.PodPortForwardOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodPortForwardOptions buildPartial() { io.kubernetes.client.proto.V1.PodPortForwardOptions result = new io.kubernetes.client.proto.V1.PodPortForwardOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { ports_ = java.util.Collections.unmodifiableList(ports_); bitField0_ = (bitField0_ & ~0x00000001); } result.ports_ = ports_; 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.V1.PodPortForwardOptions) { return mergeFrom((io.kubernetes.client.proto.V1.PodPortForwardOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodPortForwardOptions other) { if (other == io.kubernetes.client.proto.V1.PodPortForwardOptions.getDefaultInstance()) return this; if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); } 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.V1.PodPortForwardOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodPortForwardOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ports_ = java.util.Collections.emptyList(); private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { ports_ = new java.util.ArrayList(ports_); bitField0_ |= 0x00000001; } } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public java.util.List getPortsList() { return java.util.Collections.unmodifiableList(ports_); } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public int getPortsCount() { return ports_.size(); } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public int getPorts(int index) { return ports_.get(index); } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public Builder setPorts(int index, int value) { ensurePortsIsMutable(); ports_.set(index, value); onChanged(); return this; } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public Builder addPorts(int value) { ensurePortsIsMutable(); ports_.add(value); onChanged(); return this; } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public Builder addAllPorts(java.lang.Iterable values) { ensurePortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); onChanged(); return this; } /** * * *
       * List of ports to forward
       * Required when using WebSockets
       * +optional
       * 
* * repeated int32 ports = 1; */ public Builder clearPorts() { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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.core.v1.PodPortForwardOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodPortForwardOptions) private static final io.kubernetes.client.proto.V1.PodPortForwardOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodPortForwardOptions(); } public static io.kubernetes.client.proto.V1.PodPortForwardOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodPortForwardOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodPortForwardOptions(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.V1.PodPortForwardOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodProxyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodProxyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Path is the URL path to use for the current proxy request to pod.
     * +optional
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * Path is the URL path to use for the current proxy request to pod.
     * +optional
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * Path is the URL path to use for the current proxy request to pod.
     * +optional
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); } /** * * *
   * PodProxyOptions is the query options to a Pod's proxy call.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodProxyOptions} */ public static final class PodProxyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodProxyOptions) PodProxyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use PodProxyOptions.newBuilder() to construct. private PodProxyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodProxyOptions() { path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodProxyOptions( 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; path_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodProxyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodProxyOptions.class, io.kubernetes.client.proto.V1.PodProxyOptions.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * Path is the URL path to use for the current proxy request to pod.
     * +optional
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Path is the URL path to use for the current proxy request to pod.
     * +optional
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path is the URL path to use for the current proxy request to pod.
     * +optional
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, path_); } 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, path_); } 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.V1.PodProxyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodProxyOptions other = (io.kubernetes.client.proto.V1.PodProxyOptions) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodProxyOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodProxyOptions 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.V1.PodProxyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodProxyOptions 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.V1.PodProxyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodProxyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodProxyOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodProxyOptions 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.V1.PodProxyOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodProxyOptions 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.V1.PodProxyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodProxyOptions 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.V1.PodProxyOptions 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; } /** * * *
     * PodProxyOptions is the query options to a Pod's proxy call.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodProxyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodProxyOptions) io.kubernetes.client.proto.V1.PodProxyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodProxyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodProxyOptions.class, io.kubernetes.client.proto.V1.PodProxyOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodProxyOptions.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodProxyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodProxyOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodProxyOptions build() { io.kubernetes.client.proto.V1.PodProxyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodProxyOptions buildPartial() { io.kubernetes.client.proto.V1.PodProxyOptions result = new io.kubernetes.client.proto.V1.PodProxyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; 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.V1.PodProxyOptions) { return mergeFrom((io.kubernetes.client.proto.V1.PodProxyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodProxyOptions other) { if (other == io.kubernetes.client.proto.V1.PodProxyOptions.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; 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.V1.PodProxyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodProxyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * Path is the URL path to use for the current proxy request to pod.
       * +optional
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Path is the URL path to use for the current proxy request to pod.
       * +optional
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path is the URL path to use for the current proxy request to pod.
       * +optional
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path is the URL path to use for the current proxy request to pod.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * Path is the URL path to use for the current proxy request to pod.
       * +optional
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path is the URL path to use for the current proxy request to pod.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = 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.core.v1.PodProxyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodProxyOptions) private static final io.kubernetes.client.proto.V1.PodProxyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodProxyOptions(); } public static io.kubernetes.client.proto.V1.PodProxyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodProxyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodProxyOptions(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.V1.PodProxyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodReadinessGateOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodReadinessGate) com.google.protobuf.MessageOrBuilder { /** * * *
     * ConditionType refers to a condition in the pod's condition list with matching type.
     * 
* * optional string conditionType = 1; */ boolean hasConditionType(); /** * * *
     * ConditionType refers to a condition in the pod's condition list with matching type.
     * 
* * optional string conditionType = 1; */ java.lang.String getConditionType(); /** * * *
     * ConditionType refers to a condition in the pod's condition list with matching type.
     * 
* * optional string conditionType = 1; */ com.google.protobuf.ByteString getConditionTypeBytes(); } /** * * *
   * PodReadinessGate contains the reference to a pod condition
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodReadinessGate} */ public static final class PodReadinessGate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodReadinessGate) PodReadinessGateOrBuilder { private static final long serialVersionUID = 0L; // Use PodReadinessGate.newBuilder() to construct. private PodReadinessGate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodReadinessGate() { conditionType_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodReadinessGate( 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; conditionType_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodReadinessGate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodReadinessGate.class, io.kubernetes.client.proto.V1.PodReadinessGate.Builder.class); } private int bitField0_; public static final int CONDITIONTYPE_FIELD_NUMBER = 1; private volatile java.lang.Object conditionType_; /** * * *
     * ConditionType refers to a condition in the pod's condition list with matching type.
     * 
* * optional string conditionType = 1; */ public boolean hasConditionType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * ConditionType refers to a condition in the pod's condition list with matching type.
     * 
* * optional string conditionType = 1; */ public java.lang.String getConditionType() { java.lang.Object ref = conditionType_; 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()) { conditionType_ = s; } return s; } } /** * * *
     * ConditionType refers to a condition in the pod's condition list with matching type.
     * 
* * optional string conditionType = 1; */ public com.google.protobuf.ByteString getConditionTypeBytes() { java.lang.Object ref = conditionType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); conditionType_ = 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, conditionType_); } 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, conditionType_); } 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.V1.PodReadinessGate)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodReadinessGate other = (io.kubernetes.client.proto.V1.PodReadinessGate) obj; boolean result = true; result = result && (hasConditionType() == other.hasConditionType()); if (hasConditionType()) { result = result && getConditionType().equals(other.getConditionType()); } 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 (hasConditionType()) { hash = (37 * hash) + CONDITIONTYPE_FIELD_NUMBER; hash = (53 * hash) + getConditionType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodReadinessGate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodReadinessGate 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.V1.PodReadinessGate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodReadinessGate 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.V1.PodReadinessGate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodReadinessGate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodReadinessGate parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodReadinessGate 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.V1.PodReadinessGate parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodReadinessGate 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.V1.PodReadinessGate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodReadinessGate 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.V1.PodReadinessGate 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; } /** * * *
     * PodReadinessGate contains the reference to a pod condition
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodReadinessGate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodReadinessGate) io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodReadinessGate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodReadinessGate.class, io.kubernetes.client.proto.V1.PodReadinessGate.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodReadinessGate.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(); conditionType_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodReadinessGate getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodReadinessGate.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodReadinessGate build() { io.kubernetes.client.proto.V1.PodReadinessGate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodReadinessGate buildPartial() { io.kubernetes.client.proto.V1.PodReadinessGate result = new io.kubernetes.client.proto.V1.PodReadinessGate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.conditionType_ = conditionType_; 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.V1.PodReadinessGate) { return mergeFrom((io.kubernetes.client.proto.V1.PodReadinessGate) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodReadinessGate other) { if (other == io.kubernetes.client.proto.V1.PodReadinessGate.getDefaultInstance()) return this; if (other.hasConditionType()) { bitField0_ |= 0x00000001; conditionType_ = other.conditionType_; 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.V1.PodReadinessGate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodReadinessGate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object conditionType_ = ""; /** * * *
       * ConditionType refers to a condition in the pod's condition list with matching type.
       * 
* * optional string conditionType = 1; */ public boolean hasConditionType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * ConditionType refers to a condition in the pod's condition list with matching type.
       * 
* * optional string conditionType = 1; */ public java.lang.String getConditionType() { java.lang.Object ref = conditionType_; 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()) { conditionType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ConditionType refers to a condition in the pod's condition list with matching type.
       * 
* * optional string conditionType = 1; */ public com.google.protobuf.ByteString getConditionTypeBytes() { java.lang.Object ref = conditionType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); conditionType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ConditionType refers to a condition in the pod's condition list with matching type.
       * 
* * optional string conditionType = 1; */ public Builder setConditionType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; conditionType_ = value; onChanged(); return this; } /** * * *
       * ConditionType refers to a condition in the pod's condition list with matching type.
       * 
* * optional string conditionType = 1; */ public Builder clearConditionType() { bitField0_ = (bitField0_ & ~0x00000001); conditionType_ = getDefaultInstance().getConditionType(); onChanged(); return this; } /** * * *
       * ConditionType refers to a condition in the pod's condition list with matching type.
       * 
* * optional string conditionType = 1; */ public Builder setConditionTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; conditionType_ = 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.core.v1.PodReadinessGate) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodReadinessGate) private static final io.kubernetes.client.proto.V1.PodReadinessGate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodReadinessGate(); } public static io.kubernetes.client.proto.V1.PodReadinessGate getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodReadinessGate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodReadinessGate(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.V1.PodReadinessGate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSecurityContextOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodSecurityContext) com.google.protobuf.MessageOrBuilder { /** * * *
     * The SELinux context to be applied to all containers.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in SecurityContext.  If set in
     * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
     * takes precedence for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ boolean hasSeLinuxOptions(); /** * * *
     * The SELinux context to be applied to all containers.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in SecurityContext.  If set in
     * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
     * takes precedence for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions(); /** * * *
     * The SELinux context to be applied to all containers.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in SecurityContext.  If set in
     * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
     * takes precedence for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder(); /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options within a container's SecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ boolean hasWindowsOptions(); /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options within a container's SecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getWindowsOptions(); /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options within a container's SecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder(); /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 2; */ boolean hasRunAsUser(); /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 2; */ long getRunAsUser(); /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 6; */ boolean hasRunAsGroup(); /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 6; */ long getRunAsGroup(); /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 3; */ boolean hasRunAsNonRoot(); /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 3; */ boolean getRunAsNonRoot(); /** * * *
     * A list of groups applied to the first process run in each container, in addition
     * to the container's primary GID.  If unspecified, no groups will be added to
     * any container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated int64 supplementalGroups = 4; */ java.util.List getSupplementalGroupsList(); /** * * *
     * A list of groups applied to the first process run in each container, in addition
     * to the container's primary GID.  If unspecified, no groups will be added to
     * any container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated int64 supplementalGroups = 4; */ int getSupplementalGroupsCount(); /** * * *
     * A list of groups applied to the first process run in each container, in addition
     * to the container's primary GID.  If unspecified, no groups will be added to
     * any container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated int64 supplementalGroups = 4; */ long getSupplementalGroups(int index); /** * * *
     * A special supplemental group that applies to all containers in a pod.
     * Some volume types allow the Kubelet to change the ownership of that volume
     * to be owned by the pod:
     * 1. The owning GID will be the FSGroup
     * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
     * 3. The permission bits are OR'd with rw-rw----
     * If unset, the Kubelet will not modify the ownership and permissions of any volume.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 fsGroup = 5; */ boolean hasFsGroup(); /** * * *
     * A special supplemental group that applies to all containers in a pod.
     * Some volume types allow the Kubelet to change the ownership of that volume
     * to be owned by the pod:
     * 1. The owning GID will be the FSGroup
     * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
     * 3. The permission bits are OR'd with rw-rw----
     * If unset, the Kubelet will not modify the ownership and permissions of any volume.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 fsGroup = 5; */ long getFsGroup(); /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ java.util.List getSysctlsList(); /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ io.kubernetes.client.proto.V1.Sysctl getSysctls(int index); /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ int getSysctlsCount(); /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ java.util.List getSysctlsOrBuilderList(); /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ io.kubernetes.client.proto.V1.SysctlOrBuilder getSysctlsOrBuilder(int index); /** * * *
     * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
     * before being exposed inside Pod. This field will only apply to
     * volume types which support fsGroup based ownership(and permissions).
     * It will have no effect on ephemeral volume types such as: secret, configmaps
     * and emptydir.
     * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string fsGroupChangePolicy = 9; */ boolean hasFsGroupChangePolicy(); /** * * *
     * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
     * before being exposed inside Pod. This field will only apply to
     * volume types which support fsGroup based ownership(and permissions).
     * It will have no effect on ephemeral volume types such as: secret, configmaps
     * and emptydir.
     * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string fsGroupChangePolicy = 9; */ java.lang.String getFsGroupChangePolicy(); /** * * *
     * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
     * before being exposed inside Pod. This field will only apply to
     * volume types which support fsGroup based ownership(and permissions).
     * It will have no effect on ephemeral volume types such as: secret, configmaps
     * and emptydir.
     * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string fsGroupChangePolicy = 9; */ com.google.protobuf.ByteString getFsGroupChangePolicyBytes(); /** * * *
     * The seccomp options to use by the containers in this pod.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ boolean hasSeccompProfile(); /** * * *
     * The seccomp options to use by the containers in this pod.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ io.kubernetes.client.proto.V1.SeccompProfile getSeccompProfile(); /** * * *
     * The seccomp options to use by the containers in this pod.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ io.kubernetes.client.proto.V1.SeccompProfileOrBuilder getSeccompProfileOrBuilder(); } /** * * *
   * PodSecurityContext holds pod-level security attributes and common container settings.
   * Some fields are also present in container.securityContext.  Field values of
   * container.securityContext take precedence over field values of PodSecurityContext.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodSecurityContext} */ public static final class PodSecurityContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodSecurityContext) PodSecurityContextOrBuilder { private static final long serialVersionUID = 0L; // Use PodSecurityContext.newBuilder() to construct. private PodSecurityContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodSecurityContext() { runAsUser_ = 0L; runAsGroup_ = 0L; runAsNonRoot_ = false; supplementalGroups_ = java.util.Collections.emptyList(); fsGroup_ = 0L; sysctls_ = java.util.Collections.emptyList(); fsGroupChangePolicy_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodSecurityContext( 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.V1.SELinuxOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = seLinuxOptions_.toBuilder(); } seLinuxOptions_ = input.readMessage( io.kubernetes.client.proto.V1.SELinuxOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seLinuxOptions_); seLinuxOptions_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000004; runAsUser_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000010; runAsNonRoot_ = input.readBool(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { supplementalGroups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } supplementalGroups_.add(input.readInt64()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { supplementalGroups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { supplementalGroups_.add(input.readInt64()); } input.popLimit(limit); break; } case 40: { bitField0_ |= 0x00000020; fsGroup_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000008; runAsGroup_ = input.readInt64(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { sysctls_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } sysctls_.add( input.readMessage( io.kubernetes.client.proto.V1.Sysctl.PARSER, extensionRegistry)); break; } case 66: { io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = windowsOptions_.toBuilder(); } windowsOptions_ = input.readMessage( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(windowsOptions_); windowsOptions_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; fsGroupChangePolicy_ = bs; break; } case 82: { io.kubernetes.client.proto.V1.SeccompProfile.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = seccompProfile_.toBuilder(); } seccompProfile_ = input.readMessage( io.kubernetes.client.proto.V1.SeccompProfile.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seccompProfile_); seccompProfile_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; 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_ & 0x00000020) == 0x00000020)) { supplementalGroups_ = java.util.Collections.unmodifiableList(supplementalGroups_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { sysctls_ = java.util.Collections.unmodifiableList(sysctls_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodSecurityContext_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodSecurityContext.class, io.kubernetes.client.proto.V1.PodSecurityContext.Builder.class); } private int bitField0_; public static final int SELINUXOPTIONS_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.SELinuxOptions seLinuxOptions_; /** * * *
     * The SELinux context to be applied to all containers.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in SecurityContext.  If set in
     * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
     * takes precedence for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public boolean hasSeLinuxOptions() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The SELinux context to be applied to all containers.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in SecurityContext.  If set in
     * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
     * takes precedence for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions() { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } /** * * *
     * The SELinux context to be applied to all containers.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in SecurityContext.  If set in
     * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
     * takes precedence for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder() { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } public static final int WINDOWSOPTIONS_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.WindowsSecurityContextOptions windowsOptions_; /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options within a container's SecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public boolean hasWindowsOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options within a container's SecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options within a container's SecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder() { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } public static final int RUNASUSER_FIELD_NUMBER = 2; private long runAsUser_; /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 2; */ public boolean hasRunAsUser() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 2; */ public long getRunAsUser() { return runAsUser_; } public static final int RUNASGROUP_FIELD_NUMBER = 6; private long runAsGroup_; /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 6; */ public boolean hasRunAsGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence
     * for that container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 6; */ public long getRunAsGroup() { return runAsGroup_; } public static final int RUNASNONROOT_FIELD_NUMBER = 3; private boolean runAsNonRoot_; /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 3; */ public boolean hasRunAsNonRoot() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in SecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 3; */ public boolean getRunAsNonRoot() { return runAsNonRoot_; } public static final int SUPPLEMENTALGROUPS_FIELD_NUMBER = 4; private java.util.List supplementalGroups_; /** * * *
     * A list of groups applied to the first process run in each container, in addition
     * to the container's primary GID.  If unspecified, no groups will be added to
     * any container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated int64 supplementalGroups = 4; */ public java.util.List getSupplementalGroupsList() { return supplementalGroups_; } /** * * *
     * A list of groups applied to the first process run in each container, in addition
     * to the container's primary GID.  If unspecified, no groups will be added to
     * any container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated int64 supplementalGroups = 4; */ public int getSupplementalGroupsCount() { return supplementalGroups_.size(); } /** * * *
     * A list of groups applied to the first process run in each container, in addition
     * to the container's primary GID.  If unspecified, no groups will be added to
     * any container.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated int64 supplementalGroups = 4; */ public long getSupplementalGroups(int index) { return supplementalGroups_.get(index); } public static final int FSGROUP_FIELD_NUMBER = 5; private long fsGroup_; /** * * *
     * A special supplemental group that applies to all containers in a pod.
     * Some volume types allow the Kubelet to change the ownership of that volume
     * to be owned by the pod:
     * 1. The owning GID will be the FSGroup
     * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
     * 3. The permission bits are OR'd with rw-rw----
     * If unset, the Kubelet will not modify the ownership and permissions of any volume.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 fsGroup = 5; */ public boolean hasFsGroup() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * A special supplemental group that applies to all containers in a pod.
     * Some volume types allow the Kubelet to change the ownership of that volume
     * to be owned by the pod:
     * 1. The owning GID will be the FSGroup
     * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
     * 3. The permission bits are OR'd with rw-rw----
     * If unset, the Kubelet will not modify the ownership and permissions of any volume.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 fsGroup = 5; */ public long getFsGroup() { return fsGroup_; } public static final int SYSCTLS_FIELD_NUMBER = 7; private java.util.List sysctls_; /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public java.util.List getSysctlsList() { return sysctls_; } /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public java.util.List getSysctlsOrBuilderList() { return sysctls_; } /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public int getSysctlsCount() { return sysctls_.size(); } /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.Sysctl getSysctls(int index) { return sysctls_.get(index); } /** * * *
     * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
     * sysctls (by the container runtime) might fail to launch.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.SysctlOrBuilder getSysctlsOrBuilder(int index) { return sysctls_.get(index); } public static final int FSGROUPCHANGEPOLICY_FIELD_NUMBER = 9; private volatile java.lang.Object fsGroupChangePolicy_; /** * * *
     * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
     * before being exposed inside Pod. This field will only apply to
     * volume types which support fsGroup based ownership(and permissions).
     * It will have no effect on ephemeral volume types such as: secret, configmaps
     * and emptydir.
     * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string fsGroupChangePolicy = 9; */ public boolean hasFsGroupChangePolicy() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
     * before being exposed inside Pod. This field will only apply to
     * volume types which support fsGroup based ownership(and permissions).
     * It will have no effect on ephemeral volume types such as: secret, configmaps
     * and emptydir.
     * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string fsGroupChangePolicy = 9; */ public java.lang.String getFsGroupChangePolicy() { java.lang.Object ref = fsGroupChangePolicy_; 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()) { fsGroupChangePolicy_ = s; } return s; } } /** * * *
     * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
     * before being exposed inside Pod. This field will only apply to
     * volume types which support fsGroup based ownership(and permissions).
     * It will have no effect on ephemeral volume types such as: secret, configmaps
     * and emptydir.
     * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string fsGroupChangePolicy = 9; */ public com.google.protobuf.ByteString getFsGroupChangePolicyBytes() { java.lang.Object ref = fsGroupChangePolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsGroupChangePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECCOMPPROFILE_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.SeccompProfile seccompProfile_; /** * * *
     * The seccomp options to use by the containers in this pod.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public boolean hasSeccompProfile() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * The seccomp options to use by the containers in this pod.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public io.kubernetes.client.proto.V1.SeccompProfile getSeccompProfile() { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } /** * * *
     * The seccomp options to use by the containers in this pod.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public io.kubernetes.client.proto.V1.SeccompProfileOrBuilder getSeccompProfileOrBuilder() { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } 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, getSeLinuxOptions()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(2, runAsUser_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(3, runAsNonRoot_); } for (int i = 0; i < supplementalGroups_.size(); i++) { output.writeInt64(4, supplementalGroups_.get(i)); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(5, fsGroup_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(6, runAsGroup_); } for (int i = 0; i < sysctls_.size(); i++) { output.writeMessage(7, sysctls_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(8, getWindowsOptions()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, fsGroupChangePolicy_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(10, getSeccompProfile()); } 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, getSeLinuxOptions()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, runAsUser_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, runAsNonRoot_); } { int dataSize = 0; for (int i = 0; i < supplementalGroups_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( supplementalGroups_.get(i)); } size += dataSize; size += 1 * getSupplementalGroupsList().size(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, fsGroup_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, runAsGroup_); } for (int i = 0; i < sysctls_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, sysctls_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getWindowsOptions()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, fsGroupChangePolicy_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSeccompProfile()); } 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.V1.PodSecurityContext)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodSecurityContext other = (io.kubernetes.client.proto.V1.PodSecurityContext) obj; boolean result = true; result = result && (hasSeLinuxOptions() == other.hasSeLinuxOptions()); if (hasSeLinuxOptions()) { result = result && getSeLinuxOptions().equals(other.getSeLinuxOptions()); } result = result && (hasWindowsOptions() == other.hasWindowsOptions()); if (hasWindowsOptions()) { result = result && getWindowsOptions().equals(other.getWindowsOptions()); } result = result && (hasRunAsUser() == other.hasRunAsUser()); if (hasRunAsUser()) { result = result && (getRunAsUser() == other.getRunAsUser()); } result = result && (hasRunAsGroup() == other.hasRunAsGroup()); if (hasRunAsGroup()) { result = result && (getRunAsGroup() == other.getRunAsGroup()); } result = result && (hasRunAsNonRoot() == other.hasRunAsNonRoot()); if (hasRunAsNonRoot()) { result = result && (getRunAsNonRoot() == other.getRunAsNonRoot()); } result = result && getSupplementalGroupsList().equals(other.getSupplementalGroupsList()); result = result && (hasFsGroup() == other.hasFsGroup()); if (hasFsGroup()) { result = result && (getFsGroup() == other.getFsGroup()); } result = result && getSysctlsList().equals(other.getSysctlsList()); result = result && (hasFsGroupChangePolicy() == other.hasFsGroupChangePolicy()); if (hasFsGroupChangePolicy()) { result = result && getFsGroupChangePolicy().equals(other.getFsGroupChangePolicy()); } result = result && (hasSeccompProfile() == other.hasSeccompProfile()); if (hasSeccompProfile()) { result = result && getSeccompProfile().equals(other.getSeccompProfile()); } 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 (hasSeLinuxOptions()) { hash = (37 * hash) + SELINUXOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getSeLinuxOptions().hashCode(); } if (hasWindowsOptions()) { hash = (37 * hash) + WINDOWSOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getWindowsOptions().hashCode(); } if (hasRunAsUser()) { hash = (37 * hash) + RUNASUSER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRunAsUser()); } if (hasRunAsGroup()) { hash = (37 * hash) + RUNASGROUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRunAsGroup()); } if (hasRunAsNonRoot()) { hash = (37 * hash) + RUNASNONROOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunAsNonRoot()); } if (getSupplementalGroupsCount() > 0) { hash = (37 * hash) + SUPPLEMENTALGROUPS_FIELD_NUMBER; hash = (53 * hash) + getSupplementalGroupsList().hashCode(); } if (hasFsGroup()) { hash = (37 * hash) + FSGROUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFsGroup()); } if (getSysctlsCount() > 0) { hash = (37 * hash) + SYSCTLS_FIELD_NUMBER; hash = (53 * hash) + getSysctlsList().hashCode(); } if (hasFsGroupChangePolicy()) { hash = (37 * hash) + FSGROUPCHANGEPOLICY_FIELD_NUMBER; hash = (53 * hash) + getFsGroupChangePolicy().hashCode(); } if (hasSeccompProfile()) { hash = (37 * hash) + SECCOMPPROFILE_FIELD_NUMBER; hash = (53 * hash) + getSeccompProfile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodSecurityContext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSecurityContext 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.V1.PodSecurityContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSecurityContext 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.V1.PodSecurityContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSecurityContext parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodSecurityContext parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSecurityContext 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.V1.PodSecurityContext parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSecurityContext 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.V1.PodSecurityContext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSecurityContext 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.V1.PodSecurityContext 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; } /** * * *
     * PodSecurityContext holds pod-level security attributes and common container settings.
     * Some fields are also present in container.securityContext.  Field values of
     * container.securityContext take precedence over field values of PodSecurityContext.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodSecurityContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodSecurityContext) io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodSecurityContext_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodSecurityContext.class, io.kubernetes.client.proto.V1.PodSecurityContext.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodSecurityContext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSeLinuxOptionsFieldBuilder(); getWindowsOptionsFieldBuilder(); getSysctlsFieldBuilder(); getSeccompProfileFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = null; } else { seLinuxOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (windowsOptionsBuilder_ == null) { windowsOptions_ = null; } else { windowsOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); runAsUser_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); runAsGroup_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); runAsNonRoot_ = false; bitField0_ = (bitField0_ & ~0x00000010); supplementalGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); fsGroup_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); if (sysctlsBuilder_ == null) { sysctls_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { sysctlsBuilder_.clear(); } fsGroupChangePolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000100); if (seccompProfileBuilder_ == null) { seccompProfile_ = null; } else { seccompProfileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodSecurityContext getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodSecurityContext build() { io.kubernetes.client.proto.V1.PodSecurityContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodSecurityContext buildPartial() { io.kubernetes.client.proto.V1.PodSecurityContext result = new io.kubernetes.client.proto.V1.PodSecurityContext(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (seLinuxOptionsBuilder_ == null) { result.seLinuxOptions_ = seLinuxOptions_; } else { result.seLinuxOptions_ = seLinuxOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (windowsOptionsBuilder_ == null) { result.windowsOptions_ = windowsOptions_; } else { result.windowsOptions_ = windowsOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.runAsUser_ = runAsUser_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.runAsGroup_ = runAsGroup_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.runAsNonRoot_ = runAsNonRoot_; if (((bitField0_ & 0x00000020) == 0x00000020)) { supplementalGroups_ = java.util.Collections.unmodifiableList(supplementalGroups_); bitField0_ = (bitField0_ & ~0x00000020); } result.supplementalGroups_ = supplementalGroups_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.fsGroup_ = fsGroup_; if (sysctlsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { sysctls_ = java.util.Collections.unmodifiableList(sysctls_); bitField0_ = (bitField0_ & ~0x00000080); } result.sysctls_ = sysctls_; } else { result.sysctls_ = sysctlsBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.fsGroupChangePolicy_ = fsGroupChangePolicy_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000080; } if (seccompProfileBuilder_ == null) { result.seccompProfile_ = seccompProfile_; } else { result.seccompProfile_ = seccompProfileBuilder_.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.V1.PodSecurityContext) { return mergeFrom((io.kubernetes.client.proto.V1.PodSecurityContext) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSecurityContext other) { if (other == io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance()) return this; if (other.hasSeLinuxOptions()) { mergeSeLinuxOptions(other.getSeLinuxOptions()); } if (other.hasWindowsOptions()) { mergeWindowsOptions(other.getWindowsOptions()); } if (other.hasRunAsUser()) { setRunAsUser(other.getRunAsUser()); } if (other.hasRunAsGroup()) { setRunAsGroup(other.getRunAsGroup()); } if (other.hasRunAsNonRoot()) { setRunAsNonRoot(other.getRunAsNonRoot()); } if (!other.supplementalGroups_.isEmpty()) { if (supplementalGroups_.isEmpty()) { supplementalGroups_ = other.supplementalGroups_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSupplementalGroupsIsMutable(); supplementalGroups_.addAll(other.supplementalGroups_); } onChanged(); } if (other.hasFsGroup()) { setFsGroup(other.getFsGroup()); } if (sysctlsBuilder_ == null) { if (!other.sysctls_.isEmpty()) { if (sysctls_.isEmpty()) { sysctls_ = other.sysctls_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureSysctlsIsMutable(); sysctls_.addAll(other.sysctls_); } onChanged(); } } else { if (!other.sysctls_.isEmpty()) { if (sysctlsBuilder_.isEmpty()) { sysctlsBuilder_.dispose(); sysctlsBuilder_ = null; sysctls_ = other.sysctls_; bitField0_ = (bitField0_ & ~0x00000080); sysctlsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSysctlsFieldBuilder() : null; } else { sysctlsBuilder_.addAllMessages(other.sysctls_); } } } if (other.hasFsGroupChangePolicy()) { bitField0_ |= 0x00000100; fsGroupChangePolicy_ = other.fsGroupChangePolicy_; onChanged(); } if (other.hasSeccompProfile()) { mergeSeccompProfile(other.getSeccompProfile()); } 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.V1.PodSecurityContext parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodSecurityContext) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.SELinuxOptions seLinuxOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder> seLinuxOptionsBuilder_; /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public boolean hasSeLinuxOptions() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions() { if (seLinuxOptionsBuilder_ == null) { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } else { return seLinuxOptionsBuilder_.getMessage(); } } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public Builder setSeLinuxOptions(io.kubernetes.client.proto.V1.SELinuxOptions value) { if (seLinuxOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seLinuxOptions_ = value; onChanged(); } else { seLinuxOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public Builder setSeLinuxOptions( io.kubernetes.client.proto.V1.SELinuxOptions.Builder builderForValue) { if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = builderForValue.build(); onChanged(); } else { seLinuxOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public Builder mergeSeLinuxOptions(io.kubernetes.client.proto.V1.SELinuxOptions value) { if (seLinuxOptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && seLinuxOptions_ != null && seLinuxOptions_ != io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance()) { seLinuxOptions_ = io.kubernetes.client.proto.V1.SELinuxOptions.newBuilder(seLinuxOptions_) .mergeFrom(value) .buildPartial(); } else { seLinuxOptions_ = value; } onChanged(); } else { seLinuxOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public Builder clearSeLinuxOptions() { if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = null; onChanged(); } else { seLinuxOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public io.kubernetes.client.proto.V1.SELinuxOptions.Builder getSeLinuxOptionsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSeLinuxOptionsFieldBuilder().getBuilder(); } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ public io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder() { if (seLinuxOptionsBuilder_ != null) { return seLinuxOptionsBuilder_.getMessageOrBuilder(); } else { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } } /** * * *
       * The SELinux context to be applied to all containers.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in SecurityContext.  If set in
       * both SecurityContext and PodSecurityContext, the value specified in SecurityContext
       * takes precedence for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder> getSeLinuxOptionsFieldBuilder() { if (seLinuxOptionsBuilder_ == null) { seLinuxOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder>( getSeLinuxOptions(), getParentForChildren(), isClean()); seLinuxOptions_ = null; } return seLinuxOptionsBuilder_; } private io.kubernetes.client.proto.V1.WindowsSecurityContextOptions windowsOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.WindowsSecurityContextOptions, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder, io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder> windowsOptionsBuilder_; /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public boolean hasWindowsOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getWindowsOptions() { if (windowsOptionsBuilder_ == null) { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } else { return windowsOptionsBuilder_.getMessage(); } } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public Builder setWindowsOptions( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions value) { if (windowsOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } windowsOptions_ = value; onChanged(); } else { windowsOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public Builder setWindowsOptions( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder builderForValue) { if (windowsOptionsBuilder_ == null) { windowsOptions_ = builderForValue.build(); onChanged(); } else { windowsOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public Builder mergeWindowsOptions( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions value) { if (windowsOptionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && windowsOptions_ != null && windowsOptions_ != io.kubernetes.client.proto.V1.WindowsSecurityContextOptions .getDefaultInstance()) { windowsOptions_ = io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.newBuilder( windowsOptions_) .mergeFrom(value) .buildPartial(); } else { windowsOptions_ = value; } onChanged(); } else { windowsOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public Builder clearWindowsOptions() { if (windowsOptionsBuilder_ == null) { windowsOptions_ = null; onChanged(); } else { windowsOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder getWindowsOptionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getWindowsOptionsFieldBuilder().getBuilder(); } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder() { if (windowsOptionsBuilder_ != null) { return windowsOptionsBuilder_.getMessageOrBuilder(); } else { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options within a container's SecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.WindowsSecurityContextOptions, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder, io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder> getWindowsOptionsFieldBuilder() { if (windowsOptionsBuilder_ == null) { windowsOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.WindowsSecurityContextOptions, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder, io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder>( getWindowsOptions(), getParentForChildren(), isClean()); windowsOptions_ = null; } return windowsOptionsBuilder_; } private long runAsUser_; /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 2; */ public boolean hasRunAsUser() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 2; */ public long getRunAsUser() { return runAsUser_; } /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 2; */ public Builder setRunAsUser(long value) { bitField0_ |= 0x00000004; runAsUser_ = value; onChanged(); return this; } /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 2; */ public Builder clearRunAsUser() { bitField0_ = (bitField0_ & ~0x00000004); runAsUser_ = 0L; onChanged(); return this; } private long runAsGroup_; /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 6; */ public boolean hasRunAsGroup() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 6; */ public long getRunAsGroup() { return runAsGroup_; } /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 6; */ public Builder setRunAsGroup(long value) { bitField0_ |= 0x00000008; runAsGroup_ = value; onChanged(); return this; } /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence
       * for that container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 6; */ public Builder clearRunAsGroup() { bitField0_ = (bitField0_ & ~0x00000008); runAsGroup_ = 0L; onChanged(); return this; } private boolean runAsNonRoot_; /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 3; */ public boolean hasRunAsNonRoot() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 3; */ public boolean getRunAsNonRoot() { return runAsNonRoot_; } /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 3; */ public Builder setRunAsNonRoot(boolean value) { bitField0_ |= 0x00000010; runAsNonRoot_ = value; onChanged(); return this; } /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in SecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 3; */ public Builder clearRunAsNonRoot() { bitField0_ = (bitField0_ & ~0x00000010); runAsNonRoot_ = false; onChanged(); return this; } private java.util.List supplementalGroups_ = java.util.Collections.emptyList(); private void ensureSupplementalGroupsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { supplementalGroups_ = new java.util.ArrayList(supplementalGroups_); bitField0_ |= 0x00000020; } } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public java.util.List getSupplementalGroupsList() { return java.util.Collections.unmodifiableList(supplementalGroups_); } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public int getSupplementalGroupsCount() { return supplementalGroups_.size(); } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public long getSupplementalGroups(int index) { return supplementalGroups_.get(index); } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public Builder setSupplementalGroups(int index, long value) { ensureSupplementalGroupsIsMutable(); supplementalGroups_.set(index, value); onChanged(); return this; } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public Builder addSupplementalGroups(long value) { ensureSupplementalGroupsIsMutable(); supplementalGroups_.add(value); onChanged(); return this; } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public Builder addAllSupplementalGroups(java.lang.Iterable values) { ensureSupplementalGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supplementalGroups_); onChanged(); return this; } /** * * *
       * A list of groups applied to the first process run in each container, in addition
       * to the container's primary GID.  If unspecified, no groups will be added to
       * any container.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated int64 supplementalGroups = 4; */ public Builder clearSupplementalGroups() { supplementalGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private long fsGroup_; /** * * *
       * A special supplemental group that applies to all containers in a pod.
       * Some volume types allow the Kubelet to change the ownership of that volume
       * to be owned by the pod:
       * 1. The owning GID will be the FSGroup
       * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
       * 3. The permission bits are OR'd with rw-rw----
       * If unset, the Kubelet will not modify the ownership and permissions of any volume.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 fsGroup = 5; */ public boolean hasFsGroup() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * A special supplemental group that applies to all containers in a pod.
       * Some volume types allow the Kubelet to change the ownership of that volume
       * to be owned by the pod:
       * 1. The owning GID will be the FSGroup
       * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
       * 3. The permission bits are OR'd with rw-rw----
       * If unset, the Kubelet will not modify the ownership and permissions of any volume.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 fsGroup = 5; */ public long getFsGroup() { return fsGroup_; } /** * * *
       * A special supplemental group that applies to all containers in a pod.
       * Some volume types allow the Kubelet to change the ownership of that volume
       * to be owned by the pod:
       * 1. The owning GID will be the FSGroup
       * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
       * 3. The permission bits are OR'd with rw-rw----
       * If unset, the Kubelet will not modify the ownership and permissions of any volume.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 fsGroup = 5; */ public Builder setFsGroup(long value) { bitField0_ |= 0x00000040; fsGroup_ = value; onChanged(); return this; } /** * * *
       * A special supplemental group that applies to all containers in a pod.
       * Some volume types allow the Kubelet to change the ownership of that volume
       * to be owned by the pod:
       * 1. The owning GID will be the FSGroup
       * 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
       * 3. The permission bits are OR'd with rw-rw----
       * If unset, the Kubelet will not modify the ownership and permissions of any volume.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 fsGroup = 5; */ public Builder clearFsGroup() { bitField0_ = (bitField0_ & ~0x00000040); fsGroup_ = 0L; onChanged(); return this; } private java.util.List sysctls_ = java.util.Collections.emptyList(); private void ensureSysctlsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { sysctls_ = new java.util.ArrayList(sysctls_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Sysctl, io.kubernetes.client.proto.V1.Sysctl.Builder, io.kubernetes.client.proto.V1.SysctlOrBuilder> sysctlsBuilder_; /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public java.util.List getSysctlsList() { if (sysctlsBuilder_ == null) { return java.util.Collections.unmodifiableList(sysctls_); } else { return sysctlsBuilder_.getMessageList(); } } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public int getSysctlsCount() { if (sysctlsBuilder_ == null) { return sysctls_.size(); } else { return sysctlsBuilder_.getCount(); } } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.Sysctl getSysctls(int index) { if (sysctlsBuilder_ == null) { return sysctls_.get(index); } else { return sysctlsBuilder_.getMessage(index); } } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder setSysctls(int index, io.kubernetes.client.proto.V1.Sysctl value) { if (sysctlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSysctlsIsMutable(); sysctls_.set(index, value); onChanged(); } else { sysctlsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder setSysctls( int index, io.kubernetes.client.proto.V1.Sysctl.Builder builderForValue) { if (sysctlsBuilder_ == null) { ensureSysctlsIsMutable(); sysctls_.set(index, builderForValue.build()); onChanged(); } else { sysctlsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder addSysctls(io.kubernetes.client.proto.V1.Sysctl value) { if (sysctlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSysctlsIsMutable(); sysctls_.add(value); onChanged(); } else { sysctlsBuilder_.addMessage(value); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder addSysctls(int index, io.kubernetes.client.proto.V1.Sysctl value) { if (sysctlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSysctlsIsMutable(); sysctls_.add(index, value); onChanged(); } else { sysctlsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder addSysctls(io.kubernetes.client.proto.V1.Sysctl.Builder builderForValue) { if (sysctlsBuilder_ == null) { ensureSysctlsIsMutable(); sysctls_.add(builderForValue.build()); onChanged(); } else { sysctlsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder addSysctls( int index, io.kubernetes.client.proto.V1.Sysctl.Builder builderForValue) { if (sysctlsBuilder_ == null) { ensureSysctlsIsMutable(); sysctls_.add(index, builderForValue.build()); onChanged(); } else { sysctlsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder addAllSysctls( java.lang.Iterable values) { if (sysctlsBuilder_ == null) { ensureSysctlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sysctls_); onChanged(); } else { sysctlsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder clearSysctls() { if (sysctlsBuilder_ == null) { sysctls_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { sysctlsBuilder_.clear(); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public Builder removeSysctls(int index) { if (sysctlsBuilder_ == null) { ensureSysctlsIsMutable(); sysctls_.remove(index); onChanged(); } else { sysctlsBuilder_.remove(index); } return this; } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.Sysctl.Builder getSysctlsBuilder(int index) { return getSysctlsFieldBuilder().getBuilder(index); } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.SysctlOrBuilder getSysctlsOrBuilder(int index) { if (sysctlsBuilder_ == null) { return sysctls_.get(index); } else { return sysctlsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public java.util.List getSysctlsOrBuilderList() { if (sysctlsBuilder_ != null) { return sysctlsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sysctls_); } } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.Sysctl.Builder addSysctlsBuilder() { return getSysctlsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Sysctl.getDefaultInstance()); } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public io.kubernetes.client.proto.V1.Sysctl.Builder addSysctlsBuilder(int index) { return getSysctlsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Sysctl.getDefaultInstance()); } /** * * *
       * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
       * sysctls (by the container runtime) might fail to launch.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Sysctl sysctls = 7; */ public java.util.List getSysctlsBuilderList() { return getSysctlsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Sysctl, io.kubernetes.client.proto.V1.Sysctl.Builder, io.kubernetes.client.proto.V1.SysctlOrBuilder> getSysctlsFieldBuilder() { if (sysctlsBuilder_ == null) { sysctlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Sysctl, io.kubernetes.client.proto.V1.Sysctl.Builder, io.kubernetes.client.proto.V1.SysctlOrBuilder>( sysctls_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); sysctls_ = null; } return sysctlsBuilder_; } private java.lang.Object fsGroupChangePolicy_ = ""; /** * * *
       * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
       * before being exposed inside Pod. This field will only apply to
       * volume types which support fsGroup based ownership(and permissions).
       * It will have no effect on ephemeral volume types such as: secret, configmaps
       * and emptydir.
       * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string fsGroupChangePolicy = 9; */ public boolean hasFsGroupChangePolicy() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
       * before being exposed inside Pod. This field will only apply to
       * volume types which support fsGroup based ownership(and permissions).
       * It will have no effect on ephemeral volume types such as: secret, configmaps
       * and emptydir.
       * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string fsGroupChangePolicy = 9; */ public java.lang.String getFsGroupChangePolicy() { java.lang.Object ref = fsGroupChangePolicy_; 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()) { fsGroupChangePolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
       * before being exposed inside Pod. This field will only apply to
       * volume types which support fsGroup based ownership(and permissions).
       * It will have no effect on ephemeral volume types such as: secret, configmaps
       * and emptydir.
       * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string fsGroupChangePolicy = 9; */ public com.google.protobuf.ByteString getFsGroupChangePolicyBytes() { java.lang.Object ref = fsGroupChangePolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsGroupChangePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
       * before being exposed inside Pod. This field will only apply to
       * volume types which support fsGroup based ownership(and permissions).
       * It will have no effect on ephemeral volume types such as: secret, configmaps
       * and emptydir.
       * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string fsGroupChangePolicy = 9; */ public Builder setFsGroupChangePolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; fsGroupChangePolicy_ = value; onChanged(); return this; } /** * * *
       * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
       * before being exposed inside Pod. This field will only apply to
       * volume types which support fsGroup based ownership(and permissions).
       * It will have no effect on ephemeral volume types such as: secret, configmaps
       * and emptydir.
       * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string fsGroupChangePolicy = 9; */ public Builder clearFsGroupChangePolicy() { bitField0_ = (bitField0_ & ~0x00000100); fsGroupChangePolicy_ = getDefaultInstance().getFsGroupChangePolicy(); onChanged(); return this; } /** * * *
       * fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
       * before being exposed inside Pod. This field will only apply to
       * volume types which support fsGroup based ownership(and permissions).
       * It will have no effect on ephemeral volume types such as: secret, configmaps
       * and emptydir.
       * Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string fsGroupChangePolicy = 9; */ public Builder setFsGroupChangePolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; fsGroupChangePolicy_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SeccompProfile seccompProfile_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SeccompProfile, io.kubernetes.client.proto.V1.SeccompProfile.Builder, io.kubernetes.client.proto.V1.SeccompProfileOrBuilder> seccompProfileBuilder_; /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public boolean hasSeccompProfile() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public io.kubernetes.client.proto.V1.SeccompProfile getSeccompProfile() { if (seccompProfileBuilder_ == null) { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } else { return seccompProfileBuilder_.getMessage(); } } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public Builder setSeccompProfile(io.kubernetes.client.proto.V1.SeccompProfile value) { if (seccompProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seccompProfile_ = value; onChanged(); } else { seccompProfileBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public Builder setSeccompProfile( io.kubernetes.client.proto.V1.SeccompProfile.Builder builderForValue) { if (seccompProfileBuilder_ == null) { seccompProfile_ = builderForValue.build(); onChanged(); } else { seccompProfileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public Builder mergeSeccompProfile(io.kubernetes.client.proto.V1.SeccompProfile value) { if (seccompProfileBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && seccompProfile_ != null && seccompProfile_ != io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance()) { seccompProfile_ = io.kubernetes.client.proto.V1.SeccompProfile.newBuilder(seccompProfile_) .mergeFrom(value) .buildPartial(); } else { seccompProfile_ = value; } onChanged(); } else { seccompProfileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public Builder clearSeccompProfile() { if (seccompProfileBuilder_ == null) { seccompProfile_ = null; onChanged(); } else { seccompProfileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public io.kubernetes.client.proto.V1.SeccompProfile.Builder getSeccompProfileBuilder() { bitField0_ |= 0x00000200; onChanged(); return getSeccompProfileFieldBuilder().getBuilder(); } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ public io.kubernetes.client.proto.V1.SeccompProfileOrBuilder getSeccompProfileOrBuilder() { if (seccompProfileBuilder_ != null) { return seccompProfileBuilder_.getMessageOrBuilder(); } else { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } } /** * * *
       * The seccomp options to use by the containers in this pod.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SeccompProfile, io.kubernetes.client.proto.V1.SeccompProfile.Builder, io.kubernetes.client.proto.V1.SeccompProfileOrBuilder> getSeccompProfileFieldBuilder() { if (seccompProfileBuilder_ == null) { seccompProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SeccompProfile, io.kubernetes.client.proto.V1.SeccompProfile.Builder, io.kubernetes.client.proto.V1.SeccompProfileOrBuilder>( getSeccompProfile(), getParentForChildren(), isClean()); seccompProfile_ = null; } return seccompProfileBuilder_; } @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.core.v1.PodSecurityContext) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodSecurityContext) private static final io.kubernetes.client.proto.V1.PodSecurityContext DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodSecurityContext(); } public static io.kubernetes.client.proto.V1.PodSecurityContext getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodSecurityContext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodSecurityContext(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.V1.PodSecurityContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodSignature) com.google.protobuf.MessageOrBuilder { /** * * *
     * Reference to controller whose pods should avoid this node.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; */ boolean hasPodController(); /** * * *
     * Reference to controller whose pods should avoid this node.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; */ io.kubernetes.client.proto.Meta.OwnerReference getPodController(); /** * * *
     * Reference to controller whose pods should avoid this node.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; */ io.kubernetes.client.proto.Meta.OwnerReferenceOrBuilder getPodControllerOrBuilder(); } /** * * *
   * Describes the class of pods that should avoid this node.
   * Exactly one field should be set.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodSignature} */ public static final class PodSignature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodSignature) PodSignatureOrBuilder { private static final long serialVersionUID = 0L; // Use PodSignature.newBuilder() to construct. private PodSignature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodSignature() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodSignature( 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.OwnerReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = podController_.toBuilder(); } podController_ = input.readMessage( io.kubernetes.client.proto.Meta.OwnerReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(podController_); podController_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSignature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodSignature.class, io.kubernetes.client.proto.V1.PodSignature.Builder.class); } private int bitField0_; public static final int PODCONTROLLER_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.OwnerReference podController_; /** * * *
     * Reference to controller whose pods should avoid this node.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; */ public boolean hasPodController() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Reference to controller whose pods should avoid this node.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; */ public io.kubernetes.client.proto.Meta.OwnerReference getPodController() { return podController_ == null ? io.kubernetes.client.proto.Meta.OwnerReference.getDefaultInstance() : podController_; } /** * * *
     * Reference to controller whose pods should avoid this node.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; */ public io.kubernetes.client.proto.Meta.OwnerReferenceOrBuilder getPodControllerOrBuilder() { return podController_ == null ? io.kubernetes.client.proto.Meta.OwnerReference.getDefaultInstance() : podController_; } 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, getPodController()); } 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, getPodController()); } 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.V1.PodSignature)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodSignature other = (io.kubernetes.client.proto.V1.PodSignature) obj; boolean result = true; result = result && (hasPodController() == other.hasPodController()); if (hasPodController()) { result = result && getPodController().equals(other.getPodController()); } 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 (hasPodController()) { hash = (37 * hash) + PODCONTROLLER_FIELD_NUMBER; hash = (53 * hash) + getPodController().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodSignature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSignature 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.V1.PodSignature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSignature 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.V1.PodSignature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSignature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodSignature parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSignature 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.V1.PodSignature parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSignature 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.V1.PodSignature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSignature 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.V1.PodSignature 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; } /** * * *
     * Describes the class of pods that should avoid this node.
     * Exactly one field should be set.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodSignature} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodSignature) io.kubernetes.client.proto.V1.PodSignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSignature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodSignature_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodSignature.class, io.kubernetes.client.proto.V1.PodSignature.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodSignature.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPodControllerFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (podControllerBuilder_ == null) { podController_ = null; } else { podControllerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSignature_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodSignature getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodSignature build() { io.kubernetes.client.proto.V1.PodSignature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodSignature buildPartial() { io.kubernetes.client.proto.V1.PodSignature result = new io.kubernetes.client.proto.V1.PodSignature(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (podControllerBuilder_ == null) { result.podController_ = podController_; } else { result.podController_ = podControllerBuilder_.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.V1.PodSignature) { return mergeFrom((io.kubernetes.client.proto.V1.PodSignature) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSignature other) { if (other == io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance()) return this; if (other.hasPodController()) { mergePodController(other.getPodController()); } 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.V1.PodSignature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodSignature) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.OwnerReference podController_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.OwnerReference, io.kubernetes.client.proto.Meta.OwnerReference.Builder, io.kubernetes.client.proto.Meta.OwnerReferenceOrBuilder> podControllerBuilder_; /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public boolean hasPodController() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public io.kubernetes.client.proto.Meta.OwnerReference getPodController() { if (podControllerBuilder_ == null) { return podController_ == null ? io.kubernetes.client.proto.Meta.OwnerReference.getDefaultInstance() : podController_; } else { return podControllerBuilder_.getMessage(); } } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public Builder setPodController(io.kubernetes.client.proto.Meta.OwnerReference value) { if (podControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } podController_ = value; onChanged(); } else { podControllerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public Builder setPodController( io.kubernetes.client.proto.Meta.OwnerReference.Builder builderForValue) { if (podControllerBuilder_ == null) { podController_ = builderForValue.build(); onChanged(); } else { podControllerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public Builder mergePodController(io.kubernetes.client.proto.Meta.OwnerReference value) { if (podControllerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && podController_ != null && podController_ != io.kubernetes.client.proto.Meta.OwnerReference.getDefaultInstance()) { podController_ = io.kubernetes.client.proto.Meta.OwnerReference.newBuilder(podController_) .mergeFrom(value) .buildPartial(); } else { podController_ = value; } onChanged(); } else { podControllerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public Builder clearPodController() { if (podControllerBuilder_ == null) { podController_ = null; onChanged(); } else { podControllerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public io.kubernetes.client.proto.Meta.OwnerReference.Builder getPodControllerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPodControllerFieldBuilder().getBuilder(); } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ public io.kubernetes.client.proto.Meta.OwnerReferenceOrBuilder getPodControllerOrBuilder() { if (podControllerBuilder_ != null) { return podControllerBuilder_.getMessageOrBuilder(); } else { return podController_ == null ? io.kubernetes.client.proto.Meta.OwnerReference.getDefaultInstance() : podController_; } } /** * * *
       * Reference to controller whose pods should avoid this node.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference podController = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.OwnerReference, io.kubernetes.client.proto.Meta.OwnerReference.Builder, io.kubernetes.client.proto.Meta.OwnerReferenceOrBuilder> getPodControllerFieldBuilder() { if (podControllerBuilder_ == null) { podControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.OwnerReference, io.kubernetes.client.proto.Meta.OwnerReference.Builder, io.kubernetes.client.proto.Meta.OwnerReferenceOrBuilder>( getPodController(), getParentForChildren(), isClean()); podController_ = null; } return podControllerBuilder_; } @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.core.v1.PodSignature) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodSignature) private static final io.kubernetes.client.proto.V1.PodSignature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodSignature(); } public static io.kubernetes.client.proto.V1.PodSignature getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodSignature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodSignature(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.V1.PodSignature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ java.util.List getVolumesList(); /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ io.kubernetes.client.proto.V1.Volume getVolumes(int index); /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ int getVolumesCount(); /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ java.util.List getVolumesOrBuilderList(); /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ io.kubernetes.client.proto.V1.VolumeOrBuilder getVolumesOrBuilder(int index); /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ java.util.List getInitContainersList(); /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ io.kubernetes.client.proto.V1.Container getInitContainers(int index); /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ int getInitContainersCount(); /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ java.util.List getInitContainersOrBuilderList(); /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ io.kubernetes.client.proto.V1.ContainerOrBuilder getInitContainersOrBuilder(int index); /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ java.util.List getContainersList(); /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ io.kubernetes.client.proto.V1.Container getContainers(int index); /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ int getContainersCount(); /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ java.util.List getContainersOrBuilderList(); /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ io.kubernetes.client.proto.V1.ContainerOrBuilder getContainersOrBuilder(int index); /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ java.util.List getEphemeralContainersList(); /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ io.kubernetes.client.proto.V1.EphemeralContainer getEphemeralContainers(int index); /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ int getEphemeralContainersCount(); /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ java.util.List getEphemeralContainersOrBuilderList(); /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder getEphemeralContainersOrBuilder( int index); /** * * *
     * Restart policy for all containers within the pod.
     * One of Always, OnFailure, Never.
     * Default to Always.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
     * +optional
     * 
* * optional string restartPolicy = 3; */ boolean hasRestartPolicy(); /** * * *
     * Restart policy for all containers within the pod.
     * One of Always, OnFailure, Never.
     * Default to Always.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
     * +optional
     * 
* * optional string restartPolicy = 3; */ java.lang.String getRestartPolicy(); /** * * *
     * Restart policy for all containers within the pod.
     * One of Always, OnFailure, Never.
     * Default to Always.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
     * +optional
     * 
* * optional string restartPolicy = 3; */ com.google.protobuf.ByteString getRestartPolicyBytes(); /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * If this value is nil, the default grace period will be used instead.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * Defaults to 30 seconds.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 4; */ boolean hasTerminationGracePeriodSeconds(); /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * If this value is nil, the default grace period will be used instead.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * Defaults to 30 seconds.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 4; */ long getTerminationGracePeriodSeconds(); /** * * *
     * Optional duration in seconds the pod may be active on the node relative to
     * StartTime before the system will actively try to mark it failed and kill associated containers.
     * Value must be a positive integer.
     * +optional
     * 
* * optional int64 activeDeadlineSeconds = 5; */ boolean hasActiveDeadlineSeconds(); /** * * *
     * Optional duration in seconds the pod may be active on the node relative to
     * StartTime before the system will actively try to mark it failed and kill associated containers.
     * Value must be a positive integer.
     * +optional
     * 
* * optional int64 activeDeadlineSeconds = 5; */ long getActiveDeadlineSeconds(); /** * * *
     * Set DNS policy for the pod.
     * Defaults to "ClusterFirst".
     * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
     * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
     * To have DNS options set along with hostNetwork, you have to specify DNS policy
     * explicitly to 'ClusterFirstWithHostNet'.
     * +optional
     * 
* * optional string dnsPolicy = 6; */ boolean hasDnsPolicy(); /** * * *
     * Set DNS policy for the pod.
     * Defaults to "ClusterFirst".
     * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
     * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
     * To have DNS options set along with hostNetwork, you have to specify DNS policy
     * explicitly to 'ClusterFirstWithHostNet'.
     * +optional
     * 
* * optional string dnsPolicy = 6; */ java.lang.String getDnsPolicy(); /** * * *
     * Set DNS policy for the pod.
     * Defaults to "ClusterFirst".
     * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
     * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
     * To have DNS options set along with hostNetwork, you have to specify DNS policy
     * explicitly to 'ClusterFirstWithHostNet'.
     * +optional
     * 
* * optional string dnsPolicy = 6; */ com.google.protobuf.ByteString getDnsPolicyBytes(); /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ int getNodeSelectorCount(); /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ boolean containsNodeSelector(java.lang.String key); /** Use {@link #getNodeSelectorMap()} instead. */ @java.lang.Deprecated java.util.Map getNodeSelector(); /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ java.util.Map getNodeSelectorMap(); /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ java.lang.String getNodeSelectorOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ java.lang.String getNodeSelectorOrThrow(java.lang.String key); /** * * *
     * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * +optional
     * 
* * optional string serviceAccountName = 8; */ boolean hasServiceAccountName(); /** * * *
     * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * +optional
     * 
* * optional string serviceAccountName = 8; */ java.lang.String getServiceAccountName(); /** * * *
     * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * +optional
     * 
* * optional string serviceAccountName = 8; */ com.google.protobuf.ByteString getServiceAccountNameBytes(); /** * * *
     * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
     * Deprecated: Use serviceAccountName instead.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional string serviceAccount = 9; */ boolean hasServiceAccount(); /** * * *
     * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
     * Deprecated: Use serviceAccountName instead.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional string serviceAccount = 9; */ java.lang.String getServiceAccount(); /** * * *
     * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
     * Deprecated: Use serviceAccountName instead.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional string serviceAccount = 9; */ com.google.protobuf.ByteString getServiceAccountBytes(); /** * * *
     * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 21; */ boolean hasAutomountServiceAccountToken(); /** * * *
     * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 21; */ boolean getAutomountServiceAccountToken(); /** * * *
     * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
     * the scheduler simply schedules this pod onto that node, assuming that it fits resource
     * requirements.
     * +optional
     * 
* * optional string nodeName = 10; */ boolean hasNodeName(); /** * * *
     * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
     * the scheduler simply schedules this pod onto that node, assuming that it fits resource
     * requirements.
     * +optional
     * 
* * optional string nodeName = 10; */ java.lang.String getNodeName(); /** * * *
     * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
     * the scheduler simply schedules this pod onto that node, assuming that it fits resource
     * requirements.
     * +optional
     * 
* * optional string nodeName = 10; */ com.google.protobuf.ByteString getNodeNameBytes(); /** * * *
     * Host networking requested for this pod. Use the host's network namespace.
     * If this option is set, the ports that will be used must be specified.
     * Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostNetwork = 11; */ boolean hasHostNetwork(); /** * * *
     * Host networking requested for this pod. Use the host's network namespace.
     * If this option is set, the ports that will be used must be specified.
     * Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostNetwork = 11; */ boolean getHostNetwork(); /** * * *
     * Use the host's pid namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostPID = 12; */ boolean hasHostPID(); /** * * *
     * Use the host's pid namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostPID = 12; */ boolean getHostPID(); /** * * *
     * Use the host's ipc namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostIPC = 13; */ boolean hasHostIPC(); /** * * *
     * Use the host's ipc namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostIPC = 13; */ boolean getHostIPC(); /** * * *
     * Share a single process namespace between all of the containers in a pod.
     * When this is set containers will be able to view and signal processes from other containers
     * in the same pod, and the first process in each container will not be assigned PID 1.
     * HostPID and ShareProcessNamespace cannot both be set.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool shareProcessNamespace = 27; */ boolean hasShareProcessNamespace(); /** * * *
     * Share a single process namespace between all of the containers in a pod.
     * When this is set containers will be able to view and signal processes from other containers
     * in the same pod, and the first process in each container will not be assigned PID 1.
     * HostPID and ShareProcessNamespace cannot both be set.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool shareProcessNamespace = 27; */ boolean getShareProcessNamespace(); /** * * *
     * SecurityContext holds pod-level security attributes and common container settings.
     * Optional: Defaults to empty.  See type description for default values of each field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ boolean hasSecurityContext(); /** * * *
     * SecurityContext holds pod-level security attributes and common container settings.
     * Optional: Defaults to empty.  See type description for default values of each field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ io.kubernetes.client.proto.V1.PodSecurityContext getSecurityContext(); /** * * *
     * SecurityContext holds pod-level security attributes and common container settings.
     * Optional: Defaults to empty.  See type description for default values of each field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder getSecurityContextOrBuilder(); /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ java.util.List getImagePullSecretsList(); /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ io.kubernetes.client.proto.V1.LocalObjectReference getImagePullSecrets(int index); /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ int getImagePullSecretsCount(); /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ java.util.List getImagePullSecretsOrBuilderList(); /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder( int index); /** * * *
     * Specifies the hostname of the Pod
     * If not specified, the pod's hostname will be set to a system-defined value.
     * +optional
     * 
* * optional string hostname = 16; */ boolean hasHostname(); /** * * *
     * Specifies the hostname of the Pod
     * If not specified, the pod's hostname will be set to a system-defined value.
     * +optional
     * 
* * optional string hostname = 16; */ java.lang.String getHostname(); /** * * *
     * Specifies the hostname of the Pod
     * If not specified, the pod's hostname will be set to a system-defined value.
     * +optional
     * 
* * optional string hostname = 16; */ com.google.protobuf.ByteString getHostnameBytes(); /** * * *
     * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
     * If not specified, the pod will not have a domainname at all.
     * +optional
     * 
* * optional string subdomain = 17; */ boolean hasSubdomain(); /** * * *
     * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
     * If not specified, the pod will not have a domainname at all.
     * +optional
     * 
* * optional string subdomain = 17; */ java.lang.String getSubdomain(); /** * * *
     * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
     * If not specified, the pod will not have a domainname at all.
     * +optional
     * 
* * optional string subdomain = 17; */ com.google.protobuf.ByteString getSubdomainBytes(); /** * * *
     * If specified, the pod's scheduling constraints
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ boolean hasAffinity(); /** * * *
     * If specified, the pod's scheduling constraints
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ io.kubernetes.client.proto.V1.Affinity getAffinity(); /** * * *
     * If specified, the pod's scheduling constraints
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ io.kubernetes.client.proto.V1.AffinityOrBuilder getAffinityOrBuilder(); /** * * *
     * If specified, the pod will be dispatched by specified scheduler.
     * If not specified, the pod will be dispatched by default scheduler.
     * +optional
     * 
* * optional string schedulerName = 19; */ boolean hasSchedulerName(); /** * * *
     * If specified, the pod will be dispatched by specified scheduler.
     * If not specified, the pod will be dispatched by default scheduler.
     * +optional
     * 
* * optional string schedulerName = 19; */ java.lang.String getSchedulerName(); /** * * *
     * If specified, the pod will be dispatched by specified scheduler.
     * If not specified, the pod will be dispatched by default scheduler.
     * +optional
     * 
* * optional string schedulerName = 19; */ com.google.protobuf.ByteString getSchedulerNameBytes(); /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ java.util.List getTolerationsList(); /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ io.kubernetes.client.proto.V1.Toleration getTolerations(int index); /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ int getTolerationsCount(); /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ java.util.List getTolerationsOrBuilderList(); /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder(int index); /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ java.util.List getHostAliasesList(); /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ io.kubernetes.client.proto.V1.HostAlias getHostAliases(int index); /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ int getHostAliasesCount(); /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ java.util.List getHostAliasesOrBuilderList(); /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ io.kubernetes.client.proto.V1.HostAliasOrBuilder getHostAliasesOrBuilder(int index); /** * * *
     * If specified, indicates the pod's priority. "system-node-critical" and
     * "system-cluster-critical" are two special keywords which indicate the
     * highest priorities with the former being the highest priority. Any other
     * name must be defined by creating a PriorityClass object with that name.
     * If not specified, the pod priority will be default or zero if there is no
     * default.
     * +optional
     * 
* * optional string priorityClassName = 24; */ boolean hasPriorityClassName(); /** * * *
     * If specified, indicates the pod's priority. "system-node-critical" and
     * "system-cluster-critical" are two special keywords which indicate the
     * highest priorities with the former being the highest priority. Any other
     * name must be defined by creating a PriorityClass object with that name.
     * If not specified, the pod priority will be default or zero if there is no
     * default.
     * +optional
     * 
* * optional string priorityClassName = 24; */ java.lang.String getPriorityClassName(); /** * * *
     * If specified, indicates the pod's priority. "system-node-critical" and
     * "system-cluster-critical" are two special keywords which indicate the
     * highest priorities with the former being the highest priority. Any other
     * name must be defined by creating a PriorityClass object with that name.
     * If not specified, the pod priority will be default or zero if there is no
     * default.
     * +optional
     * 
* * optional string priorityClassName = 24; */ com.google.protobuf.ByteString getPriorityClassNameBytes(); /** * * *
     * The priority value. Various system components use this field to find the
     * priority of the pod. When Priority Admission Controller is enabled, it
     * prevents users from setting this field. The admission controller populates
     * this field from PriorityClassName.
     * The higher the value, the higher the priority.
     * +optional
     * 
* * optional int32 priority = 25; */ boolean hasPriority(); /** * * *
     * The priority value. Various system components use this field to find the
     * priority of the pod. When Priority Admission Controller is enabled, it
     * prevents users from setting this field. The admission controller populates
     * this field from PriorityClassName.
     * The higher the value, the higher the priority.
     * +optional
     * 
* * optional int32 priority = 25; */ int getPriority(); /** * * *
     * Specifies the DNS parameters of a pod.
     * Parameters specified here will be merged to the generated DNS
     * configuration based on DNSPolicy.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ boolean hasDnsConfig(); /** * * *
     * Specifies the DNS parameters of a pod.
     * Parameters specified here will be merged to the generated DNS
     * configuration based on DNSPolicy.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ io.kubernetes.client.proto.V1.PodDNSConfig getDnsConfig(); /** * * *
     * Specifies the DNS parameters of a pod.
     * Parameters specified here will be merged to the generated DNS
     * configuration based on DNSPolicy.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder getDnsConfigOrBuilder(); /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ java.util.List getReadinessGatesList(); /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ io.kubernetes.client.proto.V1.PodReadinessGate getReadinessGates(int index); /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ int getReadinessGatesCount(); /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ java.util.List getReadinessGatesOrBuilderList(); /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder getReadinessGatesOrBuilder(int index); /** * * *
     * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
     * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
     * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
     * empty definition that uses the default runtime handler.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
     * This is a beta feature as of Kubernetes v1.14.
     * +optional
     * 
* * optional string runtimeClassName = 29; */ boolean hasRuntimeClassName(); /** * * *
     * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
     * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
     * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
     * empty definition that uses the default runtime handler.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
     * This is a beta feature as of Kubernetes v1.14.
     * +optional
     * 
* * optional string runtimeClassName = 29; */ java.lang.String getRuntimeClassName(); /** * * *
     * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
     * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
     * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
     * empty definition that uses the default runtime handler.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
     * This is a beta feature as of Kubernetes v1.14.
     * +optional
     * 
* * optional string runtimeClassName = 29; */ com.google.protobuf.ByteString getRuntimeClassNameBytes(); /** * * *
     * EnableServiceLinks indicates whether information about services should be injected into pod's
     * environment variables, matching the syntax of Docker links.
     * Optional: Defaults to true.
     * +optional
     * 
* * optional bool enableServiceLinks = 30; */ boolean hasEnableServiceLinks(); /** * * *
     * EnableServiceLinks indicates whether information about services should be injected into pod's
     * environment variables, matching the syntax of Docker links.
     * Optional: Defaults to true.
     * +optional
     * 
* * optional bool enableServiceLinks = 30; */ boolean getEnableServiceLinks(); /** * * *
     * PreemptionPolicy is the Policy for preempting pods with lower priority.
     * One of Never, PreemptLowerPriority.
     * Defaults to PreemptLowerPriority if unset.
     * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
     * +optional
     * 
* * optional string preemptionPolicy = 31; */ boolean hasPreemptionPolicy(); /** * * *
     * PreemptionPolicy is the Policy for preempting pods with lower priority.
     * One of Never, PreemptLowerPriority.
     * Defaults to PreemptLowerPriority if unset.
     * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
     * +optional
     * 
* * optional string preemptionPolicy = 31; */ java.lang.String getPreemptionPolicy(); /** * * *
     * PreemptionPolicy is the Policy for preempting pods with lower priority.
     * One of Never, PreemptLowerPriority.
     * Defaults to PreemptLowerPriority if unset.
     * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
     * +optional
     * 
* * optional string preemptionPolicy = 31; */ com.google.protobuf.ByteString getPreemptionPolicyBytes(); /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ int getOverheadCount(); /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ boolean containsOverhead(java.lang.String key); /** Use {@link #getOverheadMap()} instead. */ @java.lang.Deprecated java.util.Map getOverhead(); /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ java.util.Map getOverheadMap(); /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ io.kubernetes.client.proto.Resource.Quantity getOverheadOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ io.kubernetes.client.proto.Resource.Quantity getOverheadOrThrow(java.lang.String key); /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ java.util.List getTopologySpreadConstraintsList(); /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ io.kubernetes.client.proto.V1.TopologySpreadConstraint getTopologySpreadConstraints(int index); /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ int getTopologySpreadConstraintsCount(); /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ java.util.List getTopologySpreadConstraintsOrBuilderList(); /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder getTopologySpreadConstraintsOrBuilder(int index); /** * * *
     * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
     * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
     * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
     * If a pod does not have FQDN, this has no effect.
     * Default to false.
     * +optional
     * 
* * optional bool setHostnameAsFQDN = 35; */ boolean hasSetHostnameAsFQDN(); /** * * *
     * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
     * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
     * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
     * If a pod does not have FQDN, this has no effect.
     * Default to false.
     * +optional
     * 
* * optional bool setHostnameAsFQDN = 35; */ boolean getSetHostnameAsFQDN(); /** * * *
     * Specifies the OS of the containers in the pod.
     * Some pod and container fields are restricted if this is set.
     * If the OS field is set to linux, the following fields must be unset:
     * -securityContext.windowsOptions
     * If the OS field is set to windows, following fields must be unset:
     * - spec.hostPID
     * - spec.hostIPC
     * - spec.securityContext.seLinuxOptions
     * - spec.securityContext.seccompProfile
     * - spec.securityContext.fsGroup
     * - spec.securityContext.fsGroupChangePolicy
     * - spec.securityContext.sysctls
     * - spec.shareProcessNamespace
     * - spec.securityContext.runAsUser
     * - spec.securityContext.runAsGroup
     * - spec.securityContext.supplementalGroups
     * - spec.containers[*].securityContext.seLinuxOptions
     * - spec.containers[*].securityContext.seccompProfile
     * - spec.containers[*].securityContext.capabilities
     * - spec.containers[*].securityContext.readOnlyRootFilesystem
     * - spec.containers[*].securityContext.privileged
     * - spec.containers[*].securityContext.allowPrivilegeEscalation
     * - spec.containers[*].securityContext.procMount
     * - spec.containers[*].securityContext.runAsUser
     * - spec.containers[*].securityContext.runAsGroup
     * +optional
     * This is an alpha field and requires the IdentifyPodOS feature
     * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ boolean hasOs(); /** * * *
     * Specifies the OS of the containers in the pod.
     * Some pod and container fields are restricted if this is set.
     * If the OS field is set to linux, the following fields must be unset:
     * -securityContext.windowsOptions
     * If the OS field is set to windows, following fields must be unset:
     * - spec.hostPID
     * - spec.hostIPC
     * - spec.securityContext.seLinuxOptions
     * - spec.securityContext.seccompProfile
     * - spec.securityContext.fsGroup
     * - spec.securityContext.fsGroupChangePolicy
     * - spec.securityContext.sysctls
     * - spec.shareProcessNamespace
     * - spec.securityContext.runAsUser
     * - spec.securityContext.runAsGroup
     * - spec.securityContext.supplementalGroups
     * - spec.containers[*].securityContext.seLinuxOptions
     * - spec.containers[*].securityContext.seccompProfile
     * - spec.containers[*].securityContext.capabilities
     * - spec.containers[*].securityContext.readOnlyRootFilesystem
     * - spec.containers[*].securityContext.privileged
     * - spec.containers[*].securityContext.allowPrivilegeEscalation
     * - spec.containers[*].securityContext.procMount
     * - spec.containers[*].securityContext.runAsUser
     * - spec.containers[*].securityContext.runAsGroup
     * +optional
     * This is an alpha field and requires the IdentifyPodOS feature
     * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ io.kubernetes.client.proto.V1.PodOS getOs(); /** * * *
     * Specifies the OS of the containers in the pod.
     * Some pod and container fields are restricted if this is set.
     * If the OS field is set to linux, the following fields must be unset:
     * -securityContext.windowsOptions
     * If the OS field is set to windows, following fields must be unset:
     * - spec.hostPID
     * - spec.hostIPC
     * - spec.securityContext.seLinuxOptions
     * - spec.securityContext.seccompProfile
     * - spec.securityContext.fsGroup
     * - spec.securityContext.fsGroupChangePolicy
     * - spec.securityContext.sysctls
     * - spec.shareProcessNamespace
     * - spec.securityContext.runAsUser
     * - spec.securityContext.runAsGroup
     * - spec.securityContext.supplementalGroups
     * - spec.containers[*].securityContext.seLinuxOptions
     * - spec.containers[*].securityContext.seccompProfile
     * - spec.containers[*].securityContext.capabilities
     * - spec.containers[*].securityContext.readOnlyRootFilesystem
     * - spec.containers[*].securityContext.privileged
     * - spec.containers[*].securityContext.allowPrivilegeEscalation
     * - spec.containers[*].securityContext.procMount
     * - spec.containers[*].securityContext.runAsUser
     * - spec.containers[*].securityContext.runAsGroup
     * +optional
     * This is an alpha field and requires the IdentifyPodOS feature
     * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ io.kubernetes.client.proto.V1.PodOSOrBuilder getOsOrBuilder(); } /** * * *
   * PodSpec is a description of a pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodSpec} */ public static final class PodSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodSpec) PodSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PodSpec.newBuilder() to construct. private PodSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodSpec() { volumes_ = java.util.Collections.emptyList(); initContainers_ = java.util.Collections.emptyList(); containers_ = java.util.Collections.emptyList(); ephemeralContainers_ = java.util.Collections.emptyList(); restartPolicy_ = ""; terminationGracePeriodSeconds_ = 0L; activeDeadlineSeconds_ = 0L; dnsPolicy_ = ""; serviceAccountName_ = ""; serviceAccount_ = ""; automountServiceAccountToken_ = false; nodeName_ = ""; hostNetwork_ = false; hostPID_ = false; hostIPC_ = false; shareProcessNamespace_ = false; imagePullSecrets_ = java.util.Collections.emptyList(); hostname_ = ""; subdomain_ = ""; schedulerName_ = ""; tolerations_ = java.util.Collections.emptyList(); hostAliases_ = java.util.Collections.emptyList(); priorityClassName_ = ""; priority_ = 0; readinessGates_ = java.util.Collections.emptyList(); runtimeClassName_ = ""; enableServiceLinks_ = false; preemptionPolicy_ = ""; topologySpreadConstraints_ = java.util.Collections.emptyList(); setHostnameAsFQDN_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } volumes_.add( input.readMessage( io.kubernetes.client.proto.V1.Volume.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { containers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } containers_.add( input.readMessage( io.kubernetes.client.proto.V1.Container.PARSER, extensionRegistry)); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; restartPolicy_ = bs; break; } case 32: { bitField0_ |= 0x00000002; terminationGracePeriodSeconds_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000004; activeDeadlineSeconds_ = input.readInt64(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; dnsPolicy_ = bs; break; } case 58: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { nodeSelector_ = com.google.protobuf.MapField.newMapField( NodeSelectorDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000100; } com.google.protobuf.MapEntry nodeSelector__ = input.readMessage( NodeSelectorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); nodeSelector_ .getMutableMap() .put(nodeSelector__.getKey(), nodeSelector__.getValue()); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; serviceAccountName_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; serviceAccount_ = bs; break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; nodeName_ = bs; break; } case 88: { bitField0_ |= 0x00000100; hostNetwork_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000200; hostPID_ = input.readBool(); break; } case 104: { bitField0_ |= 0x00000400; hostIPC_ = input.readBool(); break; } case 114: { io.kubernetes.client.proto.V1.PodSecurityContext.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = securityContext_.toBuilder(); } securityContext_ = input.readMessage( io.kubernetes.client.proto.V1.PodSecurityContext.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(securityContext_); securityContext_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 122: { if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { imagePullSecrets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00040000; } imagePullSecrets_.add( input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry)); break; } case 130: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00002000; hostname_ = bs; break; } case 138: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00004000; subdomain_ = bs; break; } case 146: { io.kubernetes.client.proto.V1.Affinity.Builder subBuilder = null; if (((bitField0_ & 0x00008000) == 0x00008000)) { subBuilder = affinity_.toBuilder(); } affinity_ = input.readMessage( io.kubernetes.client.proto.V1.Affinity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(affinity_); affinity_ = subBuilder.buildPartial(); } bitField0_ |= 0x00008000; break; } case 154: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; schedulerName_ = bs; break; } case 162: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { initContainers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } initContainers_.add( input.readMessage( io.kubernetes.client.proto.V1.Container.PARSER, extensionRegistry)); break; } case 168: { bitField0_ |= 0x00000040; automountServiceAccountToken_ = input.readBool(); break; } case 178: { if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { tolerations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00800000; } tolerations_.add( input.readMessage( io.kubernetes.client.proto.V1.Toleration.PARSER, extensionRegistry)); break; } case 186: { if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { hostAliases_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x01000000; } hostAliases_.add( input.readMessage( io.kubernetes.client.proto.V1.HostAlias.PARSER, extensionRegistry)); break; } case 194: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00020000; priorityClassName_ = bs; break; } case 200: { bitField0_ |= 0x00040000; priority_ = input.readInt32(); break; } case 210: { io.kubernetes.client.proto.V1.PodDNSConfig.Builder subBuilder = null; if (((bitField0_ & 0x00080000) == 0x00080000)) { subBuilder = dnsConfig_.toBuilder(); } dnsConfig_ = input.readMessage( io.kubernetes.client.proto.V1.PodDNSConfig.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dnsConfig_); dnsConfig_ = subBuilder.buildPartial(); } bitField0_ |= 0x00080000; break; } case 216: { bitField0_ |= 0x00000800; shareProcessNamespace_ = input.readBool(); break; } case 226: { if (!((mutable_bitField0_ & 0x10000000) == 0x10000000)) { readinessGates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x10000000; } readinessGates_.add( input.readMessage( io.kubernetes.client.proto.V1.PodReadinessGate.PARSER, extensionRegistry)); break; } case 234: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00100000; runtimeClassName_ = bs; break; } case 240: { bitField0_ |= 0x00200000; enableServiceLinks_ = input.readBool(); break; } case 250: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00400000; preemptionPolicy_ = bs; break; } case 258: { if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) { overhead_ = com.google.protobuf.MapField.newMapField( OverheadDefaultEntryHolder.defaultEntry); mutable_bitField1_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> overhead__ = input.readMessage( OverheadDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); overhead_.getMutableMap().put(overhead__.getKey(), overhead__.getValue()); break; } case 266: { if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) { topologySpreadConstraints_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.TopologySpreadConstraint>(); mutable_bitField1_ |= 0x00000002; } topologySpreadConstraints_.add( input.readMessage( io.kubernetes.client.proto.V1.TopologySpreadConstraint.PARSER, extensionRegistry)); break; } case 274: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { ephemeralContainers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } ephemeralContainers_.add( input.readMessage( io.kubernetes.client.proto.V1.EphemeralContainer.PARSER, extensionRegistry)); break; } case 280: { bitField0_ |= 0x00800000; setHostnameAsFQDN_ = input.readBool(); break; } case 290: { io.kubernetes.client.proto.V1.PodOS.Builder subBuilder = null; if (((bitField0_ & 0x01000000) == 0x01000000)) { subBuilder = os_.toBuilder(); } os_ = input.readMessage( io.kubernetes.client.proto.V1.PodOS.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(os_); os_ = subBuilder.buildPartial(); } bitField0_ |= 0x01000000; 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)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { containers_ = java.util.Collections.unmodifiableList(containers_); } if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { imagePullSecrets_ = java.util.Collections.unmodifiableList(imagePullSecrets_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { initContainers_ = java.util.Collections.unmodifiableList(initContainers_); } if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { tolerations_ = java.util.Collections.unmodifiableList(tolerations_); } if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) { hostAliases_ = java.util.Collections.unmodifiableList(hostAliases_); } if (((mutable_bitField0_ & 0x10000000) == 0x10000000)) { readinessGates_ = java.util.Collections.unmodifiableList(readinessGates_); } if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) { topologySpreadConstraints_ = java.util.Collections.unmodifiableList(topologySpreadConstraints_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { ephemeralContainers_ = java.util.Collections.unmodifiableList(ephemeralContainers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetNodeSelector(); case 32: return internalGetOverhead(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodSpec.class, io.kubernetes.client.proto.V1.PodSpec.Builder.class); } private int bitField0_; public static final int VOLUMES_FIELD_NUMBER = 1; private java.util.List volumes_; /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public java.util.List getVolumesList() { return volumes_; } /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public java.util.List getVolumesOrBuilderList() { return volumes_; } /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public int getVolumesCount() { return volumes_.size(); } /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.Volume getVolumes(int index) { return volumes_.get(index); } /** * * *
     * List of volumes that can be mounted by containers belonging to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge,retainKeys
     * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.VolumeOrBuilder getVolumesOrBuilder(int index) { return volumes_.get(index); } public static final int INITCONTAINERS_FIELD_NUMBER = 20; private java.util.List initContainers_; /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public java.util.List getInitContainersList() { return initContainers_; } /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public java.util.List getInitContainersOrBuilderList() { return initContainers_; } /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public int getInitContainersCount() { return initContainers_.size(); } /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.Container getInitContainers(int index) { return initContainers_.get(index); } /** * * *
     * List of initialization containers belonging to the pod.
     * Init containers are executed in order prior to containers being started. If any
     * init container fails, the pod is considered to have failed and is handled according
     * to its restartPolicy. The name for an init container or normal container must be
     * unique among all containers.
     * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
     * The resourceRequirements of an init container are taken into account during scheduling
     * by finding the highest request/limit for each resource type, and then using the max of
     * of that value or the sum of the normal containers. Limits are applied to init containers
     * in a similar fashion.
     * Init containers cannot currently be added or removed.
     * Cannot be updated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.ContainerOrBuilder getInitContainersOrBuilder(int index) { return initContainers_.get(index); } public static final int CONTAINERS_FIELD_NUMBER = 2; private java.util.List containers_; /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public java.util.List getContainersList() { return containers_; } /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public java.util.List getContainersOrBuilderList() { return containers_; } /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public int getContainersCount() { return containers_.size(); } /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.Container getContainers(int index) { return containers_.get(index); } /** * * *
     * List of containers belonging to the pod.
     * Containers cannot currently be added or removed.
     * There must be at least one container in a Pod.
     * Cannot be updated.
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.ContainerOrBuilder getContainersOrBuilder(int index) { return containers_.get(index); } public static final int EPHEMERALCONTAINERS_FIELD_NUMBER = 34; private java.util.List ephemeralContainers_; /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public java.util.List getEphemeralContainersList() { return ephemeralContainers_; } /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public java.util.List getEphemeralContainersOrBuilderList() { return ephemeralContainers_; } /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public int getEphemeralContainersCount() { return ephemeralContainers_.size(); } /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainer getEphemeralContainers(int index) { return ephemeralContainers_.get(index); } /** * * *
     * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
     * pod to perform user-initiated actions such as debugging. This list cannot be specified when
     * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
     * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder getEphemeralContainersOrBuilder(int index) { return ephemeralContainers_.get(index); } public static final int RESTARTPOLICY_FIELD_NUMBER = 3; private volatile java.lang.Object restartPolicy_; /** * * *
     * Restart policy for all containers within the pod.
     * One of Always, OnFailure, Never.
     * Default to Always.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
     * +optional
     * 
* * optional string restartPolicy = 3; */ public boolean hasRestartPolicy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Restart policy for all containers within the pod.
     * One of Always, OnFailure, Never.
     * Default to Always.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
     * +optional
     * 
* * optional string restartPolicy = 3; */ public java.lang.String getRestartPolicy() { java.lang.Object ref = restartPolicy_; 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()) { restartPolicy_ = s; } return s; } } /** * * *
     * Restart policy for all containers within the pod.
     * One of Always, OnFailure, Never.
     * Default to Always.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
     * +optional
     * 
* * optional string restartPolicy = 3; */ public com.google.protobuf.ByteString getRestartPolicyBytes() { java.lang.Object ref = restartPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); restartPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER = 4; private long terminationGracePeriodSeconds_; /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * If this value is nil, the default grace period will be used instead.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * Defaults to 30 seconds.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 4; */ public boolean hasTerminationGracePeriodSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * If this value is nil, the default grace period will be used instead.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * Defaults to 30 seconds.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 4; */ public long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds_; } public static final int ACTIVEDEADLINESECONDS_FIELD_NUMBER = 5; private long activeDeadlineSeconds_; /** * * *
     * Optional duration in seconds the pod may be active on the node relative to
     * StartTime before the system will actively try to mark it failed and kill associated containers.
     * Value must be a positive integer.
     * +optional
     * 
* * optional int64 activeDeadlineSeconds = 5; */ public boolean hasActiveDeadlineSeconds() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Optional duration in seconds the pod may be active on the node relative to
     * StartTime before the system will actively try to mark it failed and kill associated containers.
     * Value must be a positive integer.
     * +optional
     * 
* * optional int64 activeDeadlineSeconds = 5; */ public long getActiveDeadlineSeconds() { return activeDeadlineSeconds_; } public static final int DNSPOLICY_FIELD_NUMBER = 6; private volatile java.lang.Object dnsPolicy_; /** * * *
     * Set DNS policy for the pod.
     * Defaults to "ClusterFirst".
     * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
     * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
     * To have DNS options set along with hostNetwork, you have to specify DNS policy
     * explicitly to 'ClusterFirstWithHostNet'.
     * +optional
     * 
* * optional string dnsPolicy = 6; */ public boolean hasDnsPolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Set DNS policy for the pod.
     * Defaults to "ClusterFirst".
     * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
     * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
     * To have DNS options set along with hostNetwork, you have to specify DNS policy
     * explicitly to 'ClusterFirstWithHostNet'.
     * +optional
     * 
* * optional string dnsPolicy = 6; */ public java.lang.String getDnsPolicy() { java.lang.Object ref = dnsPolicy_; 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()) { dnsPolicy_ = s; } return s; } } /** * * *
     * Set DNS policy for the pod.
     * Defaults to "ClusterFirst".
     * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
     * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
     * To have DNS options set along with hostNetwork, you have to specify DNS policy
     * explicitly to 'ClusterFirstWithHostNet'.
     * +optional
     * 
* * optional string dnsPolicy = 6; */ public com.google.protobuf.ByteString getDnsPolicyBytes() { java.lang.Object ref = dnsPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dnsPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NODESELECTOR_FIELD_NUMBER = 7; private static final class NodeSelectorDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField nodeSelector_; private com.google.protobuf.MapField internalGetNodeSelector() { if (nodeSelector_ == null) { return com.google.protobuf.MapField.emptyMapField( NodeSelectorDefaultEntryHolder.defaultEntry); } return nodeSelector_; } public int getNodeSelectorCount() { return internalGetNodeSelector().getMap().size(); } /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ public boolean containsNodeSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNodeSelector().getMap().containsKey(key); } /** Use {@link #getNodeSelectorMap()} instead. */ @java.lang.Deprecated public java.util.Map getNodeSelector() { return getNodeSelectorMap(); } /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ public java.util.Map getNodeSelectorMap() { return internalGetNodeSelector().getMap(); } /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ public java.lang.String getNodeSelectorOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNodeSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * NodeSelector is a selector which must be true for the pod to fit on a node.
     * Selector which must match a node's labels for the pod to be scheduled on that node.
     * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> nodeSelector = 7; */ public java.lang.String getNodeSelectorOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNodeSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SERVICEACCOUNTNAME_FIELD_NUMBER = 8; private volatile java.lang.Object serviceAccountName_; /** * * *
     * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * +optional
     * 
* * optional string serviceAccountName = 8; */ public boolean hasServiceAccountName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * +optional
     * 
* * optional string serviceAccountName = 8; */ public java.lang.String getServiceAccountName() { java.lang.Object ref = serviceAccountName_; 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()) { serviceAccountName_ = s; } return s; } } /** * * *
     * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * +optional
     * 
* * optional string serviceAccountName = 8; */ public com.google.protobuf.ByteString getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICEACCOUNT_FIELD_NUMBER = 9; private volatile java.lang.Object serviceAccount_; /** * * *
     * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
     * Deprecated: Use serviceAccountName instead.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional string serviceAccount = 9; */ public boolean hasServiceAccount() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
     * Deprecated: Use serviceAccountName instead.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional string serviceAccount = 9; */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; 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()) { serviceAccount_ = s; } return s; } } /** * * *
     * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
     * Deprecated: Use serviceAccountName instead.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional string serviceAccount = 9; */ public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTOMOUNTSERVICEACCOUNTTOKEN_FIELD_NUMBER = 21; private boolean automountServiceAccountToken_; /** * * *
     * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 21; */ public boolean hasAutomountServiceAccountToken() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 21; */ public boolean getAutomountServiceAccountToken() { return automountServiceAccountToken_; } public static final int NODENAME_FIELD_NUMBER = 10; private volatile java.lang.Object nodeName_; /** * * *
     * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
     * the scheduler simply schedules this pod onto that node, assuming that it fits resource
     * requirements.
     * +optional
     * 
* * optional string nodeName = 10; */ public boolean hasNodeName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
     * the scheduler simply schedules this pod onto that node, assuming that it fits resource
     * requirements.
     * +optional
     * 
* * optional string nodeName = 10; */ 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; } } /** * * *
     * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
     * the scheduler simply schedules this pod onto that node, assuming that it fits resource
     * requirements.
     * +optional
     * 
* * optional string nodeName = 10; */ 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; } } public static final int HOSTNETWORK_FIELD_NUMBER = 11; private boolean hostNetwork_; /** * * *
     * Host networking requested for this pod. Use the host's network namespace.
     * If this option is set, the ports that will be used must be specified.
     * Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostNetwork = 11; */ public boolean hasHostNetwork() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Host networking requested for this pod. Use the host's network namespace.
     * If this option is set, the ports that will be used must be specified.
     * Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostNetwork = 11; */ public boolean getHostNetwork() { return hostNetwork_; } public static final int HOSTPID_FIELD_NUMBER = 12; private boolean hostPID_; /** * * *
     * Use the host's pid namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostPID = 12; */ public boolean hasHostPID() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Use the host's pid namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostPID = 12; */ public boolean getHostPID() { return hostPID_; } public static final int HOSTIPC_FIELD_NUMBER = 13; private boolean hostIPC_; /** * * *
     * Use the host's ipc namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostIPC = 13; */ public boolean hasHostIPC() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * Use the host's ipc namespace.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool hostIPC = 13; */ public boolean getHostIPC() { return hostIPC_; } public static final int SHAREPROCESSNAMESPACE_FIELD_NUMBER = 27; private boolean shareProcessNamespace_; /** * * *
     * Share a single process namespace between all of the containers in a pod.
     * When this is set containers will be able to view and signal processes from other containers
     * in the same pod, and the first process in each container will not be assigned PID 1.
     * HostPID and ShareProcessNamespace cannot both be set.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool shareProcessNamespace = 27; */ public boolean hasShareProcessNamespace() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * Share a single process namespace between all of the containers in a pod.
     * When this is set containers will be able to view and signal processes from other containers
     * in the same pod, and the first process in each container will not be assigned PID 1.
     * HostPID and ShareProcessNamespace cannot both be set.
     * Optional: Default to false.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * optional bool shareProcessNamespace = 27; */ public boolean getShareProcessNamespace() { return shareProcessNamespace_; } public static final int SECURITYCONTEXT_FIELD_NUMBER = 14; private io.kubernetes.client.proto.V1.PodSecurityContext securityContext_; /** * * *
     * SecurityContext holds pod-level security attributes and common container settings.
     * Optional: Defaults to empty.  See type description for default values of each field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public boolean hasSecurityContext() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * SecurityContext holds pod-level security attributes and common container settings.
     * Optional: Defaults to empty.  See type description for default values of each field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public io.kubernetes.client.proto.V1.PodSecurityContext getSecurityContext() { return securityContext_ == null ? io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance() : securityContext_; } /** * * *
     * SecurityContext holds pod-level security attributes and common container settings.
     * Optional: Defaults to empty.  See type description for default values of each field.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder getSecurityContextOrBuilder() { return securityContext_ == null ? io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance() : securityContext_; } public static final int IMAGEPULLSECRETS_FIELD_NUMBER = 15; private java.util.List imagePullSecrets_; /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public java.util.List getImagePullSecretsList() { return imagePullSecrets_; } /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public java.util.List getImagePullSecretsOrBuilderList() { return imagePullSecrets_; } /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public int getImagePullSecretsCount() { return imagePullSecrets_.size(); } /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReference getImagePullSecrets(int index) { return imagePullSecrets_.get(index); } /** * * *
     * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
     * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
     * in the case of docker, only DockerConfig type secrets are honored.
     * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder( int index) { return imagePullSecrets_.get(index); } public static final int HOSTNAME_FIELD_NUMBER = 16; private volatile java.lang.Object hostname_; /** * * *
     * Specifies the hostname of the Pod
     * If not specified, the pod's hostname will be set to a system-defined value.
     * +optional
     * 
* * optional string hostname = 16; */ public boolean hasHostname() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
     * Specifies the hostname of the Pod
     * If not specified, the pod's hostname will be set to a system-defined value.
     * +optional
     * 
* * optional string hostname = 16; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } } /** * * *
     * Specifies the hostname of the Pod
     * If not specified, the pod's hostname will be set to a system-defined value.
     * +optional
     * 
* * optional string hostname = 16; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBDOMAIN_FIELD_NUMBER = 17; private volatile java.lang.Object subdomain_; /** * * *
     * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
     * If not specified, the pod will not have a domainname at all.
     * +optional
     * 
* * optional string subdomain = 17; */ public boolean hasSubdomain() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
     * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
     * If not specified, the pod will not have a domainname at all.
     * +optional
     * 
* * optional string subdomain = 17; */ public java.lang.String getSubdomain() { java.lang.Object ref = subdomain_; 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()) { subdomain_ = s; } return s; } } /** * * *
     * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
     * If not specified, the pod will not have a domainname at all.
     * +optional
     * 
* * optional string subdomain = 17; */ public com.google.protobuf.ByteString getSubdomainBytes() { java.lang.Object ref = subdomain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subdomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AFFINITY_FIELD_NUMBER = 18; private io.kubernetes.client.proto.V1.Affinity affinity_; /** * * *
     * If specified, the pod's scheduling constraints
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public boolean hasAffinity() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
     * If specified, the pod's scheduling constraints
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public io.kubernetes.client.proto.V1.Affinity getAffinity() { return affinity_ == null ? io.kubernetes.client.proto.V1.Affinity.getDefaultInstance() : affinity_; } /** * * *
     * If specified, the pod's scheduling constraints
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public io.kubernetes.client.proto.V1.AffinityOrBuilder getAffinityOrBuilder() { return affinity_ == null ? io.kubernetes.client.proto.V1.Affinity.getDefaultInstance() : affinity_; } public static final int SCHEDULERNAME_FIELD_NUMBER = 19; private volatile java.lang.Object schedulerName_; /** * * *
     * If specified, the pod will be dispatched by specified scheduler.
     * If not specified, the pod will be dispatched by default scheduler.
     * +optional
     * 
* * optional string schedulerName = 19; */ public boolean hasSchedulerName() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
     * If specified, the pod will be dispatched by specified scheduler.
     * If not specified, the pod will be dispatched by default scheduler.
     * +optional
     * 
* * optional string schedulerName = 19; */ public java.lang.String getSchedulerName() { java.lang.Object ref = schedulerName_; 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()) { schedulerName_ = s; } return s; } } /** * * *
     * If specified, the pod will be dispatched by specified scheduler.
     * If not specified, the pod will be dispatched by default scheduler.
     * +optional
     * 
* * optional string schedulerName = 19; */ public com.google.protobuf.ByteString getSchedulerNameBytes() { java.lang.Object ref = schedulerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedulerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOLERATIONS_FIELD_NUMBER = 22; private java.util.List tolerations_; /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public java.util.List getTolerationsList() { return tolerations_; } /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public java.util.List getTolerationsOrBuilderList() { return tolerations_; } /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public int getTolerationsCount() { return tolerations_.size(); } /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.Toleration getTolerations(int index) { return tolerations_.get(index); } /** * * *
     * If specified, the pod's tolerations.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder(int index) { return tolerations_.get(index); } public static final int HOSTALIASES_FIELD_NUMBER = 23; private java.util.List hostAliases_; /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public java.util.List getHostAliasesList() { return hostAliases_; } /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public java.util.List getHostAliasesOrBuilderList() { return hostAliases_; } /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public int getHostAliasesCount() { return hostAliases_.size(); } /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAlias getHostAliases(int index) { return hostAliases_.get(index); } /** * * *
     * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
     * file if specified. This is only valid for non-hostNetwork pods.
     * +optional
     * +patchMergeKey=ip
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAliasOrBuilder getHostAliasesOrBuilder(int index) { return hostAliases_.get(index); } public static final int PRIORITYCLASSNAME_FIELD_NUMBER = 24; private volatile java.lang.Object priorityClassName_; /** * * *
     * If specified, indicates the pod's priority. "system-node-critical" and
     * "system-cluster-critical" are two special keywords which indicate the
     * highest priorities with the former being the highest priority. Any other
     * name must be defined by creating a PriorityClass object with that name.
     * If not specified, the pod priority will be default or zero if there is no
     * default.
     * +optional
     * 
* * optional string priorityClassName = 24; */ public boolean hasPriorityClassName() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
     * If specified, indicates the pod's priority. "system-node-critical" and
     * "system-cluster-critical" are two special keywords which indicate the
     * highest priorities with the former being the highest priority. Any other
     * name must be defined by creating a PriorityClass object with that name.
     * If not specified, the pod priority will be default or zero if there is no
     * default.
     * +optional
     * 
* * optional string priorityClassName = 24; */ public java.lang.String getPriorityClassName() { java.lang.Object ref = priorityClassName_; 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()) { priorityClassName_ = s; } return s; } } /** * * *
     * If specified, indicates the pod's priority. "system-node-critical" and
     * "system-cluster-critical" are two special keywords which indicate the
     * highest priorities with the former being the highest priority. Any other
     * name must be defined by creating a PriorityClass object with that name.
     * If not specified, the pod priority will be default or zero if there is no
     * default.
     * +optional
     * 
* * optional string priorityClassName = 24; */ public com.google.protobuf.ByteString getPriorityClassNameBytes() { java.lang.Object ref = priorityClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); priorityClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIORITY_FIELD_NUMBER = 25; private int priority_; /** * * *
     * The priority value. Various system components use this field to find the
     * priority of the pod. When Priority Admission Controller is enabled, it
     * prevents users from setting this field. The admission controller populates
     * this field from PriorityClassName.
     * The higher the value, the higher the priority.
     * +optional
     * 
* * optional int32 priority = 25; */ public boolean hasPriority() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
     * The priority value. Various system components use this field to find the
     * priority of the pod. When Priority Admission Controller is enabled, it
     * prevents users from setting this field. The admission controller populates
     * this field from PriorityClassName.
     * The higher the value, the higher the priority.
     * +optional
     * 
* * optional int32 priority = 25; */ public int getPriority() { return priority_; } public static final int DNSCONFIG_FIELD_NUMBER = 26; private io.kubernetes.client.proto.V1.PodDNSConfig dnsConfig_; /** * * *
     * Specifies the DNS parameters of a pod.
     * Parameters specified here will be merged to the generated DNS
     * configuration based on DNSPolicy.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public boolean hasDnsConfig() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
     * Specifies the DNS parameters of a pod.
     * Parameters specified here will be merged to the generated DNS
     * configuration based on DNSPolicy.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public io.kubernetes.client.proto.V1.PodDNSConfig getDnsConfig() { return dnsConfig_ == null ? io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance() : dnsConfig_; } /** * * *
     * Specifies the DNS parameters of a pod.
     * Parameters specified here will be merged to the generated DNS
     * configuration based on DNSPolicy.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder getDnsConfigOrBuilder() { return dnsConfig_ == null ? io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance() : dnsConfig_; } public static final int READINESSGATES_FIELD_NUMBER = 28; private java.util.List readinessGates_; /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public java.util.List getReadinessGatesList() { return readinessGates_; } /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public java.util.List getReadinessGatesOrBuilderList() { return readinessGates_; } /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public int getReadinessGatesCount() { return readinessGates_.size(); } /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGate getReadinessGates(int index) { return readinessGates_.get(index); } /** * * *
     * If specified, all readiness gates will be evaluated for pod readiness.
     * A pod is ready when all its containers are ready AND
     * all conditions specified in the readiness gates have status equal to "True"
     * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder getReadinessGatesOrBuilder( int index) { return readinessGates_.get(index); } public static final int RUNTIMECLASSNAME_FIELD_NUMBER = 29; private volatile java.lang.Object runtimeClassName_; /** * * *
     * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
     * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
     * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
     * empty definition that uses the default runtime handler.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
     * This is a beta feature as of Kubernetes v1.14.
     * +optional
     * 
* * optional string runtimeClassName = 29; */ public boolean hasRuntimeClassName() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
     * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
     * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
     * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
     * empty definition that uses the default runtime handler.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
     * This is a beta feature as of Kubernetes v1.14.
     * +optional
     * 
* * optional string runtimeClassName = 29; */ public java.lang.String getRuntimeClassName() { java.lang.Object ref = runtimeClassName_; 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()) { runtimeClassName_ = s; } return s; } } /** * * *
     * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
     * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
     * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
     * empty definition that uses the default runtime handler.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
     * This is a beta feature as of Kubernetes v1.14.
     * +optional
     * 
* * optional string runtimeClassName = 29; */ public com.google.protobuf.ByteString getRuntimeClassNameBytes() { java.lang.Object ref = runtimeClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtimeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLESERVICELINKS_FIELD_NUMBER = 30; private boolean enableServiceLinks_; /** * * *
     * EnableServiceLinks indicates whether information about services should be injected into pod's
     * environment variables, matching the syntax of Docker links.
     * Optional: Defaults to true.
     * +optional
     * 
* * optional bool enableServiceLinks = 30; */ public boolean hasEnableServiceLinks() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
     * EnableServiceLinks indicates whether information about services should be injected into pod's
     * environment variables, matching the syntax of Docker links.
     * Optional: Defaults to true.
     * +optional
     * 
* * optional bool enableServiceLinks = 30; */ public boolean getEnableServiceLinks() { return enableServiceLinks_; } public static final int PREEMPTIONPOLICY_FIELD_NUMBER = 31; private volatile java.lang.Object preemptionPolicy_; /** * * *
     * PreemptionPolicy is the Policy for preempting pods with lower priority.
     * One of Never, PreemptLowerPriority.
     * Defaults to PreemptLowerPriority if unset.
     * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
     * +optional
     * 
* * optional string preemptionPolicy = 31; */ public boolean hasPreemptionPolicy() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * * *
     * PreemptionPolicy is the Policy for preempting pods with lower priority.
     * One of Never, PreemptLowerPriority.
     * Defaults to PreemptLowerPriority if unset.
     * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
     * +optional
     * 
* * optional string preemptionPolicy = 31; */ public java.lang.String getPreemptionPolicy() { java.lang.Object ref = preemptionPolicy_; 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()) { preemptionPolicy_ = s; } return s; } } /** * * *
     * PreemptionPolicy is the Policy for preempting pods with lower priority.
     * One of Never, PreemptLowerPriority.
     * Defaults to PreemptLowerPriority if unset.
     * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
     * +optional
     * 
* * optional string preemptionPolicy = 31; */ public com.google.protobuf.ByteString getPreemptionPolicyBytes() { java.lang.Object ref = preemptionPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); preemptionPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OVERHEAD_FIELD_NUMBER = 32; private static final class OverheadDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> overhead_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetOverhead() { if (overhead_ == null) { return com.google.protobuf.MapField.emptyMapField(OverheadDefaultEntryHolder.defaultEntry); } return overhead_; } public int getOverheadCount() { return internalGetOverhead().getMap().size(); } /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ public boolean containsOverhead(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOverhead().getMap().containsKey(key); } /** Use {@link #getOverheadMap()} instead. */ @java.lang.Deprecated public java.util.Map getOverhead() { return getOverheadMap(); } /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ public java.util.Map getOverheadMap() { return internalGetOverhead().getMap(); } /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ public io.kubernetes.client.proto.Resource.Quantity getOverheadOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOverhead().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
     * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
     * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
     * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
     * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
     * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
     * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
     * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; */ public io.kubernetes.client.proto.Resource.Quantity getOverheadOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOverhead().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TOPOLOGYSPREADCONSTRAINTS_FIELD_NUMBER = 33; private java.util.List topologySpreadConstraints_; /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public java.util.List getTopologySpreadConstraintsList() { return topologySpreadConstraints_; } /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public java.util.List getTopologySpreadConstraintsOrBuilderList() { return topologySpreadConstraints_; } /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public int getTopologySpreadConstraintsCount() { return topologySpreadConstraints_.size(); } /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraint getTopologySpreadConstraints( int index) { return topologySpreadConstraints_.get(index); } /** * * *
     * TopologySpreadConstraints describes how a group of pods ought to spread across topology
     * domains. Scheduler will schedule pods in a way which abides by the constraints.
     * All topologySpreadConstraints are ANDed.
     * +optional
     * +patchMergeKey=topologyKey
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=topologyKey
     * +listMapKey=whenUnsatisfiable
     * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder getTopologySpreadConstraintsOrBuilder(int index) { return topologySpreadConstraints_.get(index); } public static final int SETHOSTNAMEASFQDN_FIELD_NUMBER = 35; private boolean setHostnameAsFQDN_; /** * * *
     * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
     * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
     * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
     * If a pod does not have FQDN, this has no effect.
     * Default to false.
     * +optional
     * 
* * optional bool setHostnameAsFQDN = 35; */ public boolean hasSetHostnameAsFQDN() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * * *
     * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
     * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
     * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
     * If a pod does not have FQDN, this has no effect.
     * Default to false.
     * +optional
     * 
* * optional bool setHostnameAsFQDN = 35; */ public boolean getSetHostnameAsFQDN() { return setHostnameAsFQDN_; } public static final int OS_FIELD_NUMBER = 36; private io.kubernetes.client.proto.V1.PodOS os_; /** * * *
     * Specifies the OS of the containers in the pod.
     * Some pod and container fields are restricted if this is set.
     * If the OS field is set to linux, the following fields must be unset:
     * -securityContext.windowsOptions
     * If the OS field is set to windows, following fields must be unset:
     * - spec.hostPID
     * - spec.hostIPC
     * - spec.securityContext.seLinuxOptions
     * - spec.securityContext.seccompProfile
     * - spec.securityContext.fsGroup
     * - spec.securityContext.fsGroupChangePolicy
     * - spec.securityContext.sysctls
     * - spec.shareProcessNamespace
     * - spec.securityContext.runAsUser
     * - spec.securityContext.runAsGroup
     * - spec.securityContext.supplementalGroups
     * - spec.containers[*].securityContext.seLinuxOptions
     * - spec.containers[*].securityContext.seccompProfile
     * - spec.containers[*].securityContext.capabilities
     * - spec.containers[*].securityContext.readOnlyRootFilesystem
     * - spec.containers[*].securityContext.privileged
     * - spec.containers[*].securityContext.allowPrivilegeEscalation
     * - spec.containers[*].securityContext.procMount
     * - spec.containers[*].securityContext.runAsUser
     * - spec.containers[*].securityContext.runAsGroup
     * +optional
     * This is an alpha field and requires the IdentifyPodOS feature
     * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public boolean hasOs() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * * *
     * Specifies the OS of the containers in the pod.
     * Some pod and container fields are restricted if this is set.
     * If the OS field is set to linux, the following fields must be unset:
     * -securityContext.windowsOptions
     * If the OS field is set to windows, following fields must be unset:
     * - spec.hostPID
     * - spec.hostIPC
     * - spec.securityContext.seLinuxOptions
     * - spec.securityContext.seccompProfile
     * - spec.securityContext.fsGroup
     * - spec.securityContext.fsGroupChangePolicy
     * - spec.securityContext.sysctls
     * - spec.shareProcessNamespace
     * - spec.securityContext.runAsUser
     * - spec.securityContext.runAsGroup
     * - spec.securityContext.supplementalGroups
     * - spec.containers[*].securityContext.seLinuxOptions
     * - spec.containers[*].securityContext.seccompProfile
     * - spec.containers[*].securityContext.capabilities
     * - spec.containers[*].securityContext.readOnlyRootFilesystem
     * - spec.containers[*].securityContext.privileged
     * - spec.containers[*].securityContext.allowPrivilegeEscalation
     * - spec.containers[*].securityContext.procMount
     * - spec.containers[*].securityContext.runAsUser
     * - spec.containers[*].securityContext.runAsGroup
     * +optional
     * This is an alpha field and requires the IdentifyPodOS feature
     * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public io.kubernetes.client.proto.V1.PodOS getOs() { return os_ == null ? io.kubernetes.client.proto.V1.PodOS.getDefaultInstance() : os_; } /** * * *
     * Specifies the OS of the containers in the pod.
     * Some pod and container fields are restricted if this is set.
     * If the OS field is set to linux, the following fields must be unset:
     * -securityContext.windowsOptions
     * If the OS field is set to windows, following fields must be unset:
     * - spec.hostPID
     * - spec.hostIPC
     * - spec.securityContext.seLinuxOptions
     * - spec.securityContext.seccompProfile
     * - spec.securityContext.fsGroup
     * - spec.securityContext.fsGroupChangePolicy
     * - spec.securityContext.sysctls
     * - spec.shareProcessNamespace
     * - spec.securityContext.runAsUser
     * - spec.securityContext.runAsGroup
     * - spec.securityContext.supplementalGroups
     * - spec.containers[*].securityContext.seLinuxOptions
     * - spec.containers[*].securityContext.seccompProfile
     * - spec.containers[*].securityContext.capabilities
     * - spec.containers[*].securityContext.readOnlyRootFilesystem
     * - spec.containers[*].securityContext.privileged
     * - spec.containers[*].securityContext.allowPrivilegeEscalation
     * - spec.containers[*].securityContext.procMount
     * - spec.containers[*].securityContext.runAsUser
     * - spec.containers[*].securityContext.runAsGroup
     * +optional
     * This is an alpha field and requires the IdentifyPodOS feature
     * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public io.kubernetes.client.proto.V1.PodOSOrBuilder getOsOrBuilder() { return os_ == null ? io.kubernetes.client.proto.V1.PodOS.getDefaultInstance() : os_; } 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 < volumes_.size(); i++) { output.writeMessage(1, volumes_.get(i)); } for (int i = 0; i < containers_.size(); i++) { output.writeMessage(2, containers_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, restartPolicy_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(4, terminationGracePeriodSeconds_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(5, activeDeadlineSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dnsPolicy_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetNodeSelector(), NodeSelectorDefaultEntryHolder.defaultEntry, 7); if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceAccountName_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeName_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(11, hostNetwork_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(12, hostPID_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(13, hostIPC_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(14, getSecurityContext()); } for (int i = 0; i < imagePullSecrets_.size(); i++) { output.writeMessage(15, imagePullSecrets_.get(i)); } if (((bitField0_ & 0x00002000) == 0x00002000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, hostname_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, subdomain_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeMessage(18, getAffinity()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, schedulerName_); } for (int i = 0; i < initContainers_.size(); i++) { output.writeMessage(20, initContainers_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(21, automountServiceAccountToken_); } for (int i = 0; i < tolerations_.size(); i++) { output.writeMessage(22, tolerations_.get(i)); } for (int i = 0; i < hostAliases_.size(); i++) { output.writeMessage(23, hostAliases_.get(i)); } if (((bitField0_ & 0x00020000) == 0x00020000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, priorityClassName_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeInt32(25, priority_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeMessage(26, getDnsConfig()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(27, shareProcessNamespace_); } for (int i = 0; i < readinessGates_.size(); i++) { output.writeMessage(28, readinessGates_.get(i)); } if (((bitField0_ & 0x00100000) == 0x00100000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, runtimeClassName_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeBool(30, enableServiceLinks_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 31, preemptionPolicy_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetOverhead(), OverheadDefaultEntryHolder.defaultEntry, 32); for (int i = 0; i < topologySpreadConstraints_.size(); i++) { output.writeMessage(33, topologySpreadConstraints_.get(i)); } for (int i = 0; i < ephemeralContainers_.size(); i++) { output.writeMessage(34, ephemeralContainers_.get(i)); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeBool(35, setHostnameAsFQDN_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeMessage(36, getOs()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < volumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, volumes_.get(i)); } for (int i = 0; i < containers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, containers_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, restartPolicy_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size( 4, terminationGracePeriodSeconds_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, activeDeadlineSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dnsPolicy_); } for (java.util.Map.Entry entry : internalGetNodeSelector().getMap().entrySet()) { com.google.protobuf.MapEntry nodeSelector__ = NodeSelectorDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nodeSelector__); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceAccountName_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeName_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, hostNetwork_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, hostPID_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, hostIPC_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSecurityContext()); } for (int i = 0; i < imagePullSecrets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, imagePullSecrets_.get(i)); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, hostname_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, subdomain_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAffinity()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, schedulerName_); } for (int i = 0; i < initContainers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, initContainers_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 21, automountServiceAccountToken_); } for (int i = 0; i < tolerations_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, tolerations_.get(i)); } for (int i = 0; i < hostAliases_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, hostAliases_.get(i)); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, priorityClassName_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(25, priority_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getDnsConfig()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, shareProcessNamespace_); } for (int i = 0; i < readinessGates_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, readinessGates_.get(i)); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, runtimeClassName_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, enableServiceLinks_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, preemptionPolicy_); } for (java.util.Map.Entry entry : internalGetOverhead().getMap().entrySet()) { com.google.protobuf.MapEntry overhead__ = OverheadDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, overhead__); } for (int i = 0; i < topologySpreadConstraints_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 33, topologySpreadConstraints_.get(i)); } for (int i = 0; i < ephemeralContainers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 34, ephemeralContainers_.get(i)); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(35, setHostnameAsFQDN_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getOs()); } 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.V1.PodSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodSpec other = (io.kubernetes.client.proto.V1.PodSpec) obj; boolean result = true; result = result && getVolumesList().equals(other.getVolumesList()); result = result && getInitContainersList().equals(other.getInitContainersList()); result = result && getContainersList().equals(other.getContainersList()); result = result && getEphemeralContainersList().equals(other.getEphemeralContainersList()); result = result && (hasRestartPolicy() == other.hasRestartPolicy()); if (hasRestartPolicy()) { result = result && getRestartPolicy().equals(other.getRestartPolicy()); } result = result && (hasTerminationGracePeriodSeconds() == other.hasTerminationGracePeriodSeconds()); if (hasTerminationGracePeriodSeconds()) { result = result && (getTerminationGracePeriodSeconds() == other.getTerminationGracePeriodSeconds()); } result = result && (hasActiveDeadlineSeconds() == other.hasActiveDeadlineSeconds()); if (hasActiveDeadlineSeconds()) { result = result && (getActiveDeadlineSeconds() == other.getActiveDeadlineSeconds()); } result = result && (hasDnsPolicy() == other.hasDnsPolicy()); if (hasDnsPolicy()) { result = result && getDnsPolicy().equals(other.getDnsPolicy()); } result = result && internalGetNodeSelector().equals(other.internalGetNodeSelector()); result = result && (hasServiceAccountName() == other.hasServiceAccountName()); if (hasServiceAccountName()) { result = result && getServiceAccountName().equals(other.getServiceAccountName()); } result = result && (hasServiceAccount() == other.hasServiceAccount()); if (hasServiceAccount()) { result = result && getServiceAccount().equals(other.getServiceAccount()); } result = result && (hasAutomountServiceAccountToken() == other.hasAutomountServiceAccountToken()); if (hasAutomountServiceAccountToken()) { result = result && (getAutomountServiceAccountToken() == other.getAutomountServiceAccountToken()); } result = result && (hasNodeName() == other.hasNodeName()); if (hasNodeName()) { result = result && getNodeName().equals(other.getNodeName()); } result = result && (hasHostNetwork() == other.hasHostNetwork()); if (hasHostNetwork()) { result = result && (getHostNetwork() == other.getHostNetwork()); } result = result && (hasHostPID() == other.hasHostPID()); if (hasHostPID()) { result = result && (getHostPID() == other.getHostPID()); } result = result && (hasHostIPC() == other.hasHostIPC()); if (hasHostIPC()) { result = result && (getHostIPC() == other.getHostIPC()); } result = result && (hasShareProcessNamespace() == other.hasShareProcessNamespace()); if (hasShareProcessNamespace()) { result = result && (getShareProcessNamespace() == other.getShareProcessNamespace()); } result = result && (hasSecurityContext() == other.hasSecurityContext()); if (hasSecurityContext()) { result = result && getSecurityContext().equals(other.getSecurityContext()); } result = result && getImagePullSecretsList().equals(other.getImagePullSecretsList()); result = result && (hasHostname() == other.hasHostname()); if (hasHostname()) { result = result && getHostname().equals(other.getHostname()); } result = result && (hasSubdomain() == other.hasSubdomain()); if (hasSubdomain()) { result = result && getSubdomain().equals(other.getSubdomain()); } result = result && (hasAffinity() == other.hasAffinity()); if (hasAffinity()) { result = result && getAffinity().equals(other.getAffinity()); } result = result && (hasSchedulerName() == other.hasSchedulerName()); if (hasSchedulerName()) { result = result && getSchedulerName().equals(other.getSchedulerName()); } result = result && getTolerationsList().equals(other.getTolerationsList()); result = result && getHostAliasesList().equals(other.getHostAliasesList()); result = result && (hasPriorityClassName() == other.hasPriorityClassName()); if (hasPriorityClassName()) { result = result && getPriorityClassName().equals(other.getPriorityClassName()); } result = result && (hasPriority() == other.hasPriority()); if (hasPriority()) { result = result && (getPriority() == other.getPriority()); } result = result && (hasDnsConfig() == other.hasDnsConfig()); if (hasDnsConfig()) { result = result && getDnsConfig().equals(other.getDnsConfig()); } result = result && getReadinessGatesList().equals(other.getReadinessGatesList()); result = result && (hasRuntimeClassName() == other.hasRuntimeClassName()); if (hasRuntimeClassName()) { result = result && getRuntimeClassName().equals(other.getRuntimeClassName()); } result = result && (hasEnableServiceLinks() == other.hasEnableServiceLinks()); if (hasEnableServiceLinks()) { result = result && (getEnableServiceLinks() == other.getEnableServiceLinks()); } result = result && (hasPreemptionPolicy() == other.hasPreemptionPolicy()); if (hasPreemptionPolicy()) { result = result && getPreemptionPolicy().equals(other.getPreemptionPolicy()); } result = result && internalGetOverhead().equals(other.internalGetOverhead()); result = result && getTopologySpreadConstraintsList() .equals(other.getTopologySpreadConstraintsList()); result = result && (hasSetHostnameAsFQDN() == other.hasSetHostnameAsFQDN()); if (hasSetHostnameAsFQDN()) { result = result && (getSetHostnameAsFQDN() == other.getSetHostnameAsFQDN()); } result = result && (hasOs() == other.hasOs()); if (hasOs()) { result = result && getOs().equals(other.getOs()); } 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 (getVolumesCount() > 0) { hash = (37 * hash) + VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getVolumesList().hashCode(); } if (getInitContainersCount() > 0) { hash = (37 * hash) + INITCONTAINERS_FIELD_NUMBER; hash = (53 * hash) + getInitContainersList().hashCode(); } if (getContainersCount() > 0) { hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; hash = (53 * hash) + getContainersList().hashCode(); } if (getEphemeralContainersCount() > 0) { hash = (37 * hash) + EPHEMERALCONTAINERS_FIELD_NUMBER; hash = (53 * hash) + getEphemeralContainersList().hashCode(); } if (hasRestartPolicy()) { hash = (37 * hash) + RESTARTPOLICY_FIELD_NUMBER; hash = (53 * hash) + getRestartPolicy().hashCode(); } if (hasTerminationGracePeriodSeconds()) { hash = (37 * hash) + TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTerminationGracePeriodSeconds()); } if (hasActiveDeadlineSeconds()) { hash = (37 * hash) + ACTIVEDEADLINESECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getActiveDeadlineSeconds()); } if (hasDnsPolicy()) { hash = (37 * hash) + DNSPOLICY_FIELD_NUMBER; hash = (53 * hash) + getDnsPolicy().hashCode(); } if (!internalGetNodeSelector().getMap().isEmpty()) { hash = (37 * hash) + NODESELECTOR_FIELD_NUMBER; hash = (53 * hash) + internalGetNodeSelector().hashCode(); } if (hasServiceAccountName()) { hash = (37 * hash) + SERVICEACCOUNTNAME_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountName().hashCode(); } if (hasServiceAccount()) { hash = (37 * hash) + SERVICEACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); } if (hasAutomountServiceAccountToken()) { hash = (37 * hash) + AUTOMOUNTSERVICEACCOUNTTOKEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutomountServiceAccountToken()); } if (hasNodeName()) { hash = (37 * hash) + NODENAME_FIELD_NUMBER; hash = (53 * hash) + getNodeName().hashCode(); } if (hasHostNetwork()) { hash = (37 * hash) + HOSTNETWORK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostNetwork()); } if (hasHostPID()) { hash = (37 * hash) + HOSTPID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostPID()); } if (hasHostIPC()) { hash = (37 * hash) + HOSTIPC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostIPC()); } if (hasShareProcessNamespace()) { hash = (37 * hash) + SHAREPROCESSNAMESPACE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShareProcessNamespace()); } if (hasSecurityContext()) { hash = (37 * hash) + SECURITYCONTEXT_FIELD_NUMBER; hash = (53 * hash) + getSecurityContext().hashCode(); } if (getImagePullSecretsCount() > 0) { hash = (37 * hash) + IMAGEPULLSECRETS_FIELD_NUMBER; hash = (53 * hash) + getImagePullSecretsList().hashCode(); } if (hasHostname()) { hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); } if (hasSubdomain()) { hash = (37 * hash) + SUBDOMAIN_FIELD_NUMBER; hash = (53 * hash) + getSubdomain().hashCode(); } if (hasAffinity()) { hash = (37 * hash) + AFFINITY_FIELD_NUMBER; hash = (53 * hash) + getAffinity().hashCode(); } if (hasSchedulerName()) { hash = (37 * hash) + SCHEDULERNAME_FIELD_NUMBER; hash = (53 * hash) + getSchedulerName().hashCode(); } if (getTolerationsCount() > 0) { hash = (37 * hash) + TOLERATIONS_FIELD_NUMBER; hash = (53 * hash) + getTolerationsList().hashCode(); } if (getHostAliasesCount() > 0) { hash = (37 * hash) + HOSTALIASES_FIELD_NUMBER; hash = (53 * hash) + getHostAliasesList().hashCode(); } if (hasPriorityClassName()) { hash = (37 * hash) + PRIORITYCLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getPriorityClassName().hashCode(); } if (hasPriority()) { hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); } if (hasDnsConfig()) { hash = (37 * hash) + DNSCONFIG_FIELD_NUMBER; hash = (53 * hash) + getDnsConfig().hashCode(); } if (getReadinessGatesCount() > 0) { hash = (37 * hash) + READINESSGATES_FIELD_NUMBER; hash = (53 * hash) + getReadinessGatesList().hashCode(); } if (hasRuntimeClassName()) { hash = (37 * hash) + RUNTIMECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getRuntimeClassName().hashCode(); } if (hasEnableServiceLinks()) { hash = (37 * hash) + ENABLESERVICELINKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableServiceLinks()); } if (hasPreemptionPolicy()) { hash = (37 * hash) + PREEMPTIONPOLICY_FIELD_NUMBER; hash = (53 * hash) + getPreemptionPolicy().hashCode(); } if (!internalGetOverhead().getMap().isEmpty()) { hash = (37 * hash) + OVERHEAD_FIELD_NUMBER; hash = (53 * hash) + internalGetOverhead().hashCode(); } if (getTopologySpreadConstraintsCount() > 0) { hash = (37 * hash) + TOPOLOGYSPREADCONSTRAINTS_FIELD_NUMBER; hash = (53 * hash) + getTopologySpreadConstraintsList().hashCode(); } if (hasSetHostnameAsFQDN()) { hash = (37 * hash) + SETHOSTNAMEASFQDN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSetHostnameAsFQDN()); } if (hasOs()) { hash = (37 * hash) + OS_FIELD_NUMBER; hash = (53 * hash) + getOs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSpec 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.V1.PodSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSpec 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.V1.PodSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSpec 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.V1.PodSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSpec 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.V1.PodSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodSpec 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.V1.PodSpec 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; } /** * * *
     * PodSpec is a description of a pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodSpec) io.kubernetes.client.proto.V1.PodSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetNodeSelector(); case 32: return internalGetOverhead(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableNodeSelector(); case 32: return internalGetMutableOverhead(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodSpec.class, io.kubernetes.client.proto.V1.PodSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVolumesFieldBuilder(); getInitContainersFieldBuilder(); getContainersFieldBuilder(); getEphemeralContainersFieldBuilder(); getSecurityContextFieldBuilder(); getImagePullSecretsFieldBuilder(); getAffinityFieldBuilder(); getTolerationsFieldBuilder(); getHostAliasesFieldBuilder(); getDnsConfigFieldBuilder(); getReadinessGatesFieldBuilder(); getTopologySpreadConstraintsFieldBuilder(); getOsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { volumesBuilder_.clear(); } if (initContainersBuilder_ == null) { initContainers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { initContainersBuilder_.clear(); } if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { containersBuilder_.clear(); } if (ephemeralContainersBuilder_ == null) { ephemeralContainers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { ephemeralContainersBuilder_.clear(); } restartPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000010); terminationGracePeriodSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); activeDeadlineSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); dnsPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableNodeSelector().clear(); serviceAccountName_ = ""; bitField0_ = (bitField0_ & ~0x00000200); serviceAccount_ = ""; bitField0_ = (bitField0_ & ~0x00000400); automountServiceAccountToken_ = false; bitField0_ = (bitField0_ & ~0x00000800); nodeName_ = ""; bitField0_ = (bitField0_ & ~0x00001000); hostNetwork_ = false; bitField0_ = (bitField0_ & ~0x00002000); hostPID_ = false; bitField0_ = (bitField0_ & ~0x00004000); hostIPC_ = false; bitField0_ = (bitField0_ & ~0x00008000); shareProcessNamespace_ = false; bitField0_ = (bitField0_ & ~0x00010000); if (securityContextBuilder_ == null) { securityContext_ = null; } else { securityContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); if (imagePullSecretsBuilder_ == null) { imagePullSecrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); } else { imagePullSecretsBuilder_.clear(); } hostname_ = ""; bitField0_ = (bitField0_ & ~0x00080000); subdomain_ = ""; bitField0_ = (bitField0_ & ~0x00100000); if (affinityBuilder_ == null) { affinity_ = null; } else { affinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); schedulerName_ = ""; bitField0_ = (bitField0_ & ~0x00400000); if (tolerationsBuilder_ == null) { tolerations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00800000); } else { tolerationsBuilder_.clear(); } if (hostAliasesBuilder_ == null) { hostAliases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x01000000); } else { hostAliasesBuilder_.clear(); } priorityClassName_ = ""; bitField0_ = (bitField0_ & ~0x02000000); priority_ = 0; bitField0_ = (bitField0_ & ~0x04000000); if (dnsConfigBuilder_ == null) { dnsConfig_ = null; } else { dnsConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); if (readinessGatesBuilder_ == null) { readinessGates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x10000000); } else { readinessGatesBuilder_.clear(); } runtimeClassName_ = ""; bitField0_ = (bitField0_ & ~0x20000000); enableServiceLinks_ = false; bitField0_ = (bitField0_ & ~0x40000000); preemptionPolicy_ = ""; bitField0_ = (bitField0_ & ~0x80000000); internalGetMutableOverhead().clear(); if (topologySpreadConstraintsBuilder_ == null) { topologySpreadConstraints_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000002); } else { topologySpreadConstraintsBuilder_.clear(); } setHostnameAsFQDN_ = false; bitField1_ = (bitField1_ & ~0x00000004); if (osBuilder_ == null) { os_ = null; } else { osBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodSpec build() { io.kubernetes.client.proto.V1.PodSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodSpec buildPartial() { io.kubernetes.client.proto.V1.PodSpec result = new io.kubernetes.client.proto.V1.PodSpec(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; if (volumesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = java.util.Collections.unmodifiableList(volumes_); bitField0_ = (bitField0_ & ~0x00000001); } result.volumes_ = volumes_; } else { result.volumes_ = volumesBuilder_.build(); } if (initContainersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { initContainers_ = java.util.Collections.unmodifiableList(initContainers_); bitField0_ = (bitField0_ & ~0x00000002); } result.initContainers_ = initContainers_; } else { result.initContainers_ = initContainersBuilder_.build(); } if (containersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { containers_ = java.util.Collections.unmodifiableList(containers_); bitField0_ = (bitField0_ & ~0x00000004); } result.containers_ = containers_; } else { result.containers_ = containersBuilder_.build(); } if (ephemeralContainersBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { ephemeralContainers_ = java.util.Collections.unmodifiableList(ephemeralContainers_); bitField0_ = (bitField0_ & ~0x00000008); } result.ephemeralContainers_ = ephemeralContainers_; } else { result.ephemeralContainers_ = ephemeralContainersBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000001; } result.restartPolicy_ = restartPolicy_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000002; } result.terminationGracePeriodSeconds_ = terminationGracePeriodSeconds_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000004; } result.activeDeadlineSeconds_ = activeDeadlineSeconds_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000008; } result.dnsPolicy_ = dnsPolicy_; result.nodeSelector_ = internalGetNodeSelector(); result.nodeSelector_.makeImmutable(); if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000010; } result.serviceAccountName_ = serviceAccountName_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000020; } result.serviceAccount_ = serviceAccount_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000040; } result.automountServiceAccountToken_ = automountServiceAccountToken_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000080; } result.nodeName_ = nodeName_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000100; } result.hostNetwork_ = hostNetwork_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000200; } result.hostPID_ = hostPID_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00000400; } result.hostIPC_ = hostIPC_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00000800; } result.shareProcessNamespace_ = shareProcessNamespace_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00001000; } if (securityContextBuilder_ == null) { result.securityContext_ = securityContext_; } else { result.securityContext_ = securityContextBuilder_.build(); } if (imagePullSecretsBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000)) { imagePullSecrets_ = java.util.Collections.unmodifiableList(imagePullSecrets_); bitField0_ = (bitField0_ & ~0x00040000); } result.imagePullSecrets_ = imagePullSecrets_; } else { result.imagePullSecrets_ = imagePullSecretsBuilder_.build(); } if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00002000; } result.hostname_ = hostname_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00004000; } result.subdomain_ = subdomain_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00008000; } if (affinityBuilder_ == null) { result.affinity_ = affinity_; } else { result.affinity_ = affinityBuilder_.build(); } if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00010000; } result.schedulerName_ = schedulerName_; if (tolerationsBuilder_ == null) { if (((bitField0_ & 0x00800000) == 0x00800000)) { tolerations_ = java.util.Collections.unmodifiableList(tolerations_); bitField0_ = (bitField0_ & ~0x00800000); } result.tolerations_ = tolerations_; } else { result.tolerations_ = tolerationsBuilder_.build(); } if (hostAliasesBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000)) { hostAliases_ = java.util.Collections.unmodifiableList(hostAliases_); bitField0_ = (bitField0_ & ~0x01000000); } result.hostAliases_ = hostAliases_; } else { result.hostAliases_ = hostAliasesBuilder_.build(); } if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x00020000; } result.priorityClassName_ = priorityClassName_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x00040000; } result.priority_ = priority_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x00080000; } if (dnsConfigBuilder_ == null) { result.dnsConfig_ = dnsConfig_; } else { result.dnsConfig_ = dnsConfigBuilder_.build(); } if (readinessGatesBuilder_ == null) { if (((bitField0_ & 0x10000000) == 0x10000000)) { readinessGates_ = java.util.Collections.unmodifiableList(readinessGates_); bitField0_ = (bitField0_ & ~0x10000000); } result.readinessGates_ = readinessGates_; } else { result.readinessGates_ = readinessGatesBuilder_.build(); } if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x00100000; } result.runtimeClassName_ = runtimeClassName_; if (((from_bitField0_ & 0x40000000) == 0x40000000)) { to_bitField0_ |= 0x00200000; } result.enableServiceLinks_ = enableServiceLinks_; if (((from_bitField0_ & 0x80000000) == 0x80000000)) { to_bitField0_ |= 0x00400000; } result.preemptionPolicy_ = preemptionPolicy_; result.overhead_ = internalGetOverhead(); result.overhead_.makeImmutable(); if (topologySpreadConstraintsBuilder_ == null) { if (((bitField1_ & 0x00000002) == 0x00000002)) { topologySpreadConstraints_ = java.util.Collections.unmodifiableList(topologySpreadConstraints_); bitField1_ = (bitField1_ & ~0x00000002); } result.topologySpreadConstraints_ = topologySpreadConstraints_; } else { result.topologySpreadConstraints_ = topologySpreadConstraintsBuilder_.build(); } if (((from_bitField1_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00800000; } result.setHostnameAsFQDN_ = setHostnameAsFQDN_; if (((from_bitField1_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x01000000; } if (osBuilder_ == null) { result.os_ = os_; } else { result.os_ = osBuilder_.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.V1.PodSpec) { return mergeFrom((io.kubernetes.client.proto.V1.PodSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSpec other) { if (other == io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance()) return this; if (volumesBuilder_ == null) { if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVolumesIsMutable(); volumes_.addAll(other.volumes_); } onChanged(); } } else { if (!other.volumes_.isEmpty()) { if (volumesBuilder_.isEmpty()) { volumesBuilder_.dispose(); volumesBuilder_ = null; volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000001); volumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumesFieldBuilder() : null; } else { volumesBuilder_.addAllMessages(other.volumes_); } } } if (initContainersBuilder_ == null) { if (!other.initContainers_.isEmpty()) { if (initContainers_.isEmpty()) { initContainers_ = other.initContainers_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureInitContainersIsMutable(); initContainers_.addAll(other.initContainers_); } onChanged(); } } else { if (!other.initContainers_.isEmpty()) { if (initContainersBuilder_.isEmpty()) { initContainersBuilder_.dispose(); initContainersBuilder_ = null; initContainers_ = other.initContainers_; bitField0_ = (bitField0_ & ~0x00000002); initContainersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInitContainersFieldBuilder() : null; } else { initContainersBuilder_.addAllMessages(other.initContainers_); } } } if (containersBuilder_ == null) { if (!other.containers_.isEmpty()) { if (containers_.isEmpty()) { containers_ = other.containers_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureContainersIsMutable(); containers_.addAll(other.containers_); } onChanged(); } } else { if (!other.containers_.isEmpty()) { if (containersBuilder_.isEmpty()) { containersBuilder_.dispose(); containersBuilder_ = null; containers_ = other.containers_; bitField0_ = (bitField0_ & ~0x00000004); containersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContainersFieldBuilder() : null; } else { containersBuilder_.addAllMessages(other.containers_); } } } if (ephemeralContainersBuilder_ == null) { if (!other.ephemeralContainers_.isEmpty()) { if (ephemeralContainers_.isEmpty()) { ephemeralContainers_ = other.ephemeralContainers_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEphemeralContainersIsMutable(); ephemeralContainers_.addAll(other.ephemeralContainers_); } onChanged(); } } else { if (!other.ephemeralContainers_.isEmpty()) { if (ephemeralContainersBuilder_.isEmpty()) { ephemeralContainersBuilder_.dispose(); ephemeralContainersBuilder_ = null; ephemeralContainers_ = other.ephemeralContainers_; bitField0_ = (bitField0_ & ~0x00000008); ephemeralContainersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEphemeralContainersFieldBuilder() : null; } else { ephemeralContainersBuilder_.addAllMessages(other.ephemeralContainers_); } } } if (other.hasRestartPolicy()) { bitField0_ |= 0x00000010; restartPolicy_ = other.restartPolicy_; onChanged(); } if (other.hasTerminationGracePeriodSeconds()) { setTerminationGracePeriodSeconds(other.getTerminationGracePeriodSeconds()); } if (other.hasActiveDeadlineSeconds()) { setActiveDeadlineSeconds(other.getActiveDeadlineSeconds()); } if (other.hasDnsPolicy()) { bitField0_ |= 0x00000080; dnsPolicy_ = other.dnsPolicy_; onChanged(); } internalGetMutableNodeSelector().mergeFrom(other.internalGetNodeSelector()); if (other.hasServiceAccountName()) { bitField0_ |= 0x00000200; serviceAccountName_ = other.serviceAccountName_; onChanged(); } if (other.hasServiceAccount()) { bitField0_ |= 0x00000400; serviceAccount_ = other.serviceAccount_; onChanged(); } if (other.hasAutomountServiceAccountToken()) { setAutomountServiceAccountToken(other.getAutomountServiceAccountToken()); } if (other.hasNodeName()) { bitField0_ |= 0x00001000; nodeName_ = other.nodeName_; onChanged(); } if (other.hasHostNetwork()) { setHostNetwork(other.getHostNetwork()); } if (other.hasHostPID()) { setHostPID(other.getHostPID()); } if (other.hasHostIPC()) { setHostIPC(other.getHostIPC()); } if (other.hasShareProcessNamespace()) { setShareProcessNamespace(other.getShareProcessNamespace()); } if (other.hasSecurityContext()) { mergeSecurityContext(other.getSecurityContext()); } if (imagePullSecretsBuilder_ == null) { if (!other.imagePullSecrets_.isEmpty()) { if (imagePullSecrets_.isEmpty()) { imagePullSecrets_ = other.imagePullSecrets_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureImagePullSecretsIsMutable(); imagePullSecrets_.addAll(other.imagePullSecrets_); } onChanged(); } } else { if (!other.imagePullSecrets_.isEmpty()) { if (imagePullSecretsBuilder_.isEmpty()) { imagePullSecretsBuilder_.dispose(); imagePullSecretsBuilder_ = null; imagePullSecrets_ = other.imagePullSecrets_; bitField0_ = (bitField0_ & ~0x00040000); imagePullSecretsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImagePullSecretsFieldBuilder() : null; } else { imagePullSecretsBuilder_.addAllMessages(other.imagePullSecrets_); } } } if (other.hasHostname()) { bitField0_ |= 0x00080000; hostname_ = other.hostname_; onChanged(); } if (other.hasSubdomain()) { bitField0_ |= 0x00100000; subdomain_ = other.subdomain_; onChanged(); } if (other.hasAffinity()) { mergeAffinity(other.getAffinity()); } if (other.hasSchedulerName()) { bitField0_ |= 0x00400000; schedulerName_ = other.schedulerName_; onChanged(); } if (tolerationsBuilder_ == null) { if (!other.tolerations_.isEmpty()) { if (tolerations_.isEmpty()) { tolerations_ = other.tolerations_; bitField0_ = (bitField0_ & ~0x00800000); } else { ensureTolerationsIsMutable(); tolerations_.addAll(other.tolerations_); } onChanged(); } } else { if (!other.tolerations_.isEmpty()) { if (tolerationsBuilder_.isEmpty()) { tolerationsBuilder_.dispose(); tolerationsBuilder_ = null; tolerations_ = other.tolerations_; bitField0_ = (bitField0_ & ~0x00800000); tolerationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTolerationsFieldBuilder() : null; } else { tolerationsBuilder_.addAllMessages(other.tolerations_); } } } if (hostAliasesBuilder_ == null) { if (!other.hostAliases_.isEmpty()) { if (hostAliases_.isEmpty()) { hostAliases_ = other.hostAliases_; bitField0_ = (bitField0_ & ~0x01000000); } else { ensureHostAliasesIsMutable(); hostAliases_.addAll(other.hostAliases_); } onChanged(); } } else { if (!other.hostAliases_.isEmpty()) { if (hostAliasesBuilder_.isEmpty()) { hostAliasesBuilder_.dispose(); hostAliasesBuilder_ = null; hostAliases_ = other.hostAliases_; bitField0_ = (bitField0_ & ~0x01000000); hostAliasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHostAliasesFieldBuilder() : null; } else { hostAliasesBuilder_.addAllMessages(other.hostAliases_); } } } if (other.hasPriorityClassName()) { bitField0_ |= 0x02000000; priorityClassName_ = other.priorityClassName_; onChanged(); } if (other.hasPriority()) { setPriority(other.getPriority()); } if (other.hasDnsConfig()) { mergeDnsConfig(other.getDnsConfig()); } if (readinessGatesBuilder_ == null) { if (!other.readinessGates_.isEmpty()) { if (readinessGates_.isEmpty()) { readinessGates_ = other.readinessGates_; bitField0_ = (bitField0_ & ~0x10000000); } else { ensureReadinessGatesIsMutable(); readinessGates_.addAll(other.readinessGates_); } onChanged(); } } else { if (!other.readinessGates_.isEmpty()) { if (readinessGatesBuilder_.isEmpty()) { readinessGatesBuilder_.dispose(); readinessGatesBuilder_ = null; readinessGates_ = other.readinessGates_; bitField0_ = (bitField0_ & ~0x10000000); readinessGatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getReadinessGatesFieldBuilder() : null; } else { readinessGatesBuilder_.addAllMessages(other.readinessGates_); } } } if (other.hasRuntimeClassName()) { bitField0_ |= 0x20000000; runtimeClassName_ = other.runtimeClassName_; onChanged(); } if (other.hasEnableServiceLinks()) { setEnableServiceLinks(other.getEnableServiceLinks()); } if (other.hasPreemptionPolicy()) { bitField0_ |= 0x80000000; preemptionPolicy_ = other.preemptionPolicy_; onChanged(); } internalGetMutableOverhead().mergeFrom(other.internalGetOverhead()); if (topologySpreadConstraintsBuilder_ == null) { if (!other.topologySpreadConstraints_.isEmpty()) { if (topologySpreadConstraints_.isEmpty()) { topologySpreadConstraints_ = other.topologySpreadConstraints_; bitField1_ = (bitField1_ & ~0x00000002); } else { ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.addAll(other.topologySpreadConstraints_); } onChanged(); } } else { if (!other.topologySpreadConstraints_.isEmpty()) { if (topologySpreadConstraintsBuilder_.isEmpty()) { topologySpreadConstraintsBuilder_.dispose(); topologySpreadConstraintsBuilder_ = null; topologySpreadConstraints_ = other.topologySpreadConstraints_; bitField1_ = (bitField1_ & ~0x00000002); topologySpreadConstraintsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopologySpreadConstraintsFieldBuilder() : null; } else { topologySpreadConstraintsBuilder_.addAllMessages(other.topologySpreadConstraints_); } } } if (other.hasSetHostnameAsFQDN()) { setSetHostnameAsFQDN(other.getSetHostnameAsFQDN()); } if (other.hasOs()) { mergeOs(other.getOs()); } 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.V1.PodSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; private java.util.List volumes_ = java.util.Collections.emptyList(); private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { volumes_ = new java.util.ArrayList(volumes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Volume, io.kubernetes.client.proto.V1.Volume.Builder, io.kubernetes.client.proto.V1.VolumeOrBuilder> volumesBuilder_; /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public java.util.List getVolumesList() { if (volumesBuilder_ == null) { return java.util.Collections.unmodifiableList(volumes_); } else { return volumesBuilder_.getMessageList(); } } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public int getVolumesCount() { if (volumesBuilder_ == null) { return volumes_.size(); } else { return volumesBuilder_.getCount(); } } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.Volume getVolumes(int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessage(index); } } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder setVolumes(int index, io.kubernetes.client.proto.V1.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); onChanged(); } else { volumesBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder setVolumes( int index, io.kubernetes.client.proto.V1.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.set(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder addVolumes(io.kubernetes.client.proto.V1.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); } else { volumesBuilder_.addMessage(value); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder addVolumes(int index, io.kubernetes.client.proto.V1.Volume value) { if (volumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(index, value); onChanged(); } else { volumesBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder addVolumes(io.kubernetes.client.proto.V1.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder addVolumes( int index, io.kubernetes.client.proto.V1.Volume.Builder builderForValue) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.add(index, builderForValue.build()); onChanged(); } else { volumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder addAllVolumes( java.lang.Iterable values) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); } else { volumesBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder clearVolumes() { if (volumesBuilder_ == null) { volumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { volumesBuilder_.clear(); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public Builder removeVolumes(int index) { if (volumesBuilder_ == null) { ensureVolumesIsMutable(); volumes_.remove(index); onChanged(); } else { volumesBuilder_.remove(index); } return this; } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.Volume.Builder getVolumesBuilder(int index) { return getVolumesFieldBuilder().getBuilder(index); } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.VolumeOrBuilder getVolumesOrBuilder(int index) { if (volumesBuilder_ == null) { return volumes_.get(index); } else { return volumesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public java.util.List getVolumesOrBuilderList() { if (volumesBuilder_ != null) { return volumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(volumes_); } } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.Volume.Builder addVolumesBuilder() { return getVolumesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Volume.getDefaultInstance()); } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public io.kubernetes.client.proto.V1.Volume.Builder addVolumesBuilder(int index) { return getVolumesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Volume.getDefaultInstance()); } /** * * *
       * List of volumes that can be mounted by containers belonging to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge,retainKeys
       * 
* * repeated .k8s.io.api.core.v1.Volume volumes = 1; */ public java.util.List getVolumesBuilderList() { return getVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Volume, io.kubernetes.client.proto.V1.Volume.Builder, io.kubernetes.client.proto.V1.VolumeOrBuilder> getVolumesFieldBuilder() { if (volumesBuilder_ == null) { volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Volume, io.kubernetes.client.proto.V1.Volume.Builder, io.kubernetes.client.proto.V1.VolumeOrBuilder>( volumes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); volumes_ = null; } return volumesBuilder_; } private java.util.List initContainers_ = java.util.Collections.emptyList(); private void ensureInitContainersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { initContainers_ = new java.util.ArrayList(initContainers_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder> initContainersBuilder_; /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public java.util.List getInitContainersList() { if (initContainersBuilder_ == null) { return java.util.Collections.unmodifiableList(initContainers_); } else { return initContainersBuilder_.getMessageList(); } } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public int getInitContainersCount() { if (initContainersBuilder_ == null) { return initContainers_.size(); } else { return initContainersBuilder_.getCount(); } } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.Container getInitContainers(int index) { if (initContainersBuilder_ == null) { return initContainers_.get(index); } else { return initContainersBuilder_.getMessage(index); } } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder setInitContainers(int index, io.kubernetes.client.proto.V1.Container value) { if (initContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitContainersIsMutable(); initContainers_.set(index, value); onChanged(); } else { initContainersBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder setInitContainers( int index, io.kubernetes.client.proto.V1.Container.Builder builderForValue) { if (initContainersBuilder_ == null) { ensureInitContainersIsMutable(); initContainers_.set(index, builderForValue.build()); onChanged(); } else { initContainersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder addInitContainers(io.kubernetes.client.proto.V1.Container value) { if (initContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitContainersIsMutable(); initContainers_.add(value); onChanged(); } else { initContainersBuilder_.addMessage(value); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder addInitContainers(int index, io.kubernetes.client.proto.V1.Container value) { if (initContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitContainersIsMutable(); initContainers_.add(index, value); onChanged(); } else { initContainersBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder addInitContainers( io.kubernetes.client.proto.V1.Container.Builder builderForValue) { if (initContainersBuilder_ == null) { ensureInitContainersIsMutable(); initContainers_.add(builderForValue.build()); onChanged(); } else { initContainersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder addInitContainers( int index, io.kubernetes.client.proto.V1.Container.Builder builderForValue) { if (initContainersBuilder_ == null) { ensureInitContainersIsMutable(); initContainers_.add(index, builderForValue.build()); onChanged(); } else { initContainersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder addAllInitContainers( java.lang.Iterable values) { if (initContainersBuilder_ == null) { ensureInitContainersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initContainers_); onChanged(); } else { initContainersBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder clearInitContainers() { if (initContainersBuilder_ == null) { initContainers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { initContainersBuilder_.clear(); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public Builder removeInitContainers(int index) { if (initContainersBuilder_ == null) { ensureInitContainersIsMutable(); initContainers_.remove(index); onChanged(); } else { initContainersBuilder_.remove(index); } return this; } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.Container.Builder getInitContainersBuilder(int index) { return getInitContainersFieldBuilder().getBuilder(index); } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.ContainerOrBuilder getInitContainersOrBuilder( int index) { if (initContainersBuilder_ == null) { return initContainers_.get(index); } else { return initContainersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public java.util.List getInitContainersOrBuilderList() { if (initContainersBuilder_ != null) { return initContainersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(initContainers_); } } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.Container.Builder addInitContainersBuilder() { return getInitContainersFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Container.getDefaultInstance()); } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public io.kubernetes.client.proto.V1.Container.Builder addInitContainersBuilder(int index) { return getInitContainersFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Container.getDefaultInstance()); } /** * * *
       * List of initialization containers belonging to the pod.
       * Init containers are executed in order prior to containers being started. If any
       * init container fails, the pod is considered to have failed and is handled according
       * to its restartPolicy. The name for an init container or normal container must be
       * unique among all containers.
       * Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
       * The resourceRequirements of an init container are taken into account during scheduling
       * by finding the highest request/limit for each resource type, and then using the max of
       * of that value or the sum of the normal containers. Limits are applied to init containers
       * in a similar fashion.
       * Init containers cannot currently be added or removed.
       * Cannot be updated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container initContainers = 20; */ public java.util.List getInitContainersBuilderList() { return getInitContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder> getInitContainersFieldBuilder() { if (initContainersBuilder_ == null) { initContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder>( initContainers_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); initContainers_ = null; } return initContainersBuilder_; } private java.util.List containers_ = java.util.Collections.emptyList(); private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder> containersBuilder_; /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public java.util.List getContainersList() { if (containersBuilder_ == null) { return java.util.Collections.unmodifiableList(containers_); } else { return containersBuilder_.getMessageList(); } } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public int getContainersCount() { if (containersBuilder_ == null) { return containers_.size(); } else { return containersBuilder_.getCount(); } } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.Container getContainers(int index) { if (containersBuilder_ == null) { return containers_.get(index); } else { return containersBuilder_.getMessage(index); } } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder setContainers(int index, io.kubernetes.client.proto.V1.Container value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.set(index, value); onChanged(); } else { containersBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder setContainers( int index, io.kubernetes.client.proto.V1.Container.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.set(index, builderForValue.build()); onChanged(); } else { containersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder addContainers(io.kubernetes.client.proto.V1.Container value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.add(value); onChanged(); } else { containersBuilder_.addMessage(value); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder addContainers(int index, io.kubernetes.client.proto.V1.Container value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.add(index, value); onChanged(); } else { containersBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder addContainers( io.kubernetes.client.proto.V1.Container.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.add(builderForValue.build()); onChanged(); } else { containersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder addContainers( int index, io.kubernetes.client.proto.V1.Container.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.add(index, builderForValue.build()); onChanged(); } else { containersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder addAllContainers( java.lang.Iterable values) { if (containersBuilder_ == null) { ensureContainersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containers_); onChanged(); } else { containersBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder clearContainers() { if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { containersBuilder_.clear(); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public Builder removeContainers(int index) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.remove(index); onChanged(); } else { containersBuilder_.remove(index); } return this; } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.Container.Builder getContainersBuilder(int index) { return getContainersFieldBuilder().getBuilder(index); } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.ContainerOrBuilder getContainersOrBuilder(int index) { if (containersBuilder_ == null) { return containers_.get(index); } else { return containersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public java.util.List getContainersOrBuilderList() { if (containersBuilder_ != null) { return containersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containers_); } } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.Container.Builder addContainersBuilder() { return getContainersFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Container.getDefaultInstance()); } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public io.kubernetes.client.proto.V1.Container.Builder addContainersBuilder(int index) { return getContainersFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Container.getDefaultInstance()); } /** * * *
       * List of containers belonging to the pod.
       * Containers cannot currently be added or removed.
       * There must be at least one container in a Pod.
       * Cannot be updated.
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.Container containers = 2; */ public java.util.List getContainersBuilderList() { return getContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder> getContainersFieldBuilder() { if (containersBuilder_ == null) { containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Container, io.kubernetes.client.proto.V1.Container.Builder, io.kubernetes.client.proto.V1.ContainerOrBuilder>( containers_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); containers_ = null; } return containersBuilder_; } private java.util.List ephemeralContainers_ = java.util.Collections.emptyList(); private void ensureEphemeralContainersIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { ephemeralContainers_ = new java.util.ArrayList( ephemeralContainers_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralContainer, io.kubernetes.client.proto.V1.EphemeralContainer.Builder, io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder> ephemeralContainersBuilder_; /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public java.util.List getEphemeralContainersList() { if (ephemeralContainersBuilder_ == null) { return java.util.Collections.unmodifiableList(ephemeralContainers_); } else { return ephemeralContainersBuilder_.getMessageList(); } } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public int getEphemeralContainersCount() { if (ephemeralContainersBuilder_ == null) { return ephemeralContainers_.size(); } else { return ephemeralContainersBuilder_.getCount(); } } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainer getEphemeralContainers(int index) { if (ephemeralContainersBuilder_ == null) { return ephemeralContainers_.get(index); } else { return ephemeralContainersBuilder_.getMessage(index); } } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder setEphemeralContainers( int index, io.kubernetes.client.proto.V1.EphemeralContainer value) { if (ephemeralContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEphemeralContainersIsMutable(); ephemeralContainers_.set(index, value); onChanged(); } else { ephemeralContainersBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder setEphemeralContainers( int index, io.kubernetes.client.proto.V1.EphemeralContainer.Builder builderForValue) { if (ephemeralContainersBuilder_ == null) { ensureEphemeralContainersIsMutable(); ephemeralContainers_.set(index, builderForValue.build()); onChanged(); } else { ephemeralContainersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder addEphemeralContainers( io.kubernetes.client.proto.V1.EphemeralContainer value) { if (ephemeralContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEphemeralContainersIsMutable(); ephemeralContainers_.add(value); onChanged(); } else { ephemeralContainersBuilder_.addMessage(value); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder addEphemeralContainers( int index, io.kubernetes.client.proto.V1.EphemeralContainer value) { if (ephemeralContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEphemeralContainersIsMutable(); ephemeralContainers_.add(index, value); onChanged(); } else { ephemeralContainersBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder addEphemeralContainers( io.kubernetes.client.proto.V1.EphemeralContainer.Builder builderForValue) { if (ephemeralContainersBuilder_ == null) { ensureEphemeralContainersIsMutable(); ephemeralContainers_.add(builderForValue.build()); onChanged(); } else { ephemeralContainersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder addEphemeralContainers( int index, io.kubernetes.client.proto.V1.EphemeralContainer.Builder builderForValue) { if (ephemeralContainersBuilder_ == null) { ensureEphemeralContainersIsMutable(); ephemeralContainers_.add(index, builderForValue.build()); onChanged(); } else { ephemeralContainersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder addAllEphemeralContainers( java.lang.Iterable values) { if (ephemeralContainersBuilder_ == null) { ensureEphemeralContainersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ephemeralContainers_); onChanged(); } else { ephemeralContainersBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder clearEphemeralContainers() { if (ephemeralContainersBuilder_ == null) { ephemeralContainers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { ephemeralContainersBuilder_.clear(); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public Builder removeEphemeralContainers(int index) { if (ephemeralContainersBuilder_ == null) { ensureEphemeralContainersIsMutable(); ephemeralContainers_.remove(index); onChanged(); } else { ephemeralContainersBuilder_.remove(index); } return this; } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainer.Builder getEphemeralContainersBuilder( int index) { return getEphemeralContainersFieldBuilder().getBuilder(index); } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder getEphemeralContainersOrBuilder(int index) { if (ephemeralContainersBuilder_ == null) { return ephemeralContainers_.get(index); } else { return ephemeralContainersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public java.util.List getEphemeralContainersOrBuilderList() { if (ephemeralContainersBuilder_ != null) { return ephemeralContainersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ephemeralContainers_); } } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainer.Builder addEphemeralContainersBuilder() { return getEphemeralContainersFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.EphemeralContainer.getDefaultInstance()); } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public io.kubernetes.client.proto.V1.EphemeralContainer.Builder addEphemeralContainersBuilder( int index) { return getEphemeralContainersFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.EphemeralContainer.getDefaultInstance()); } /** * * *
       * List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
       * pod to perform user-initiated actions such as debugging. This list cannot be specified when
       * creating a pod, and it cannot be modified by updating the pod spec. In order to add an
       * ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.EphemeralContainer ephemeralContainers = 34; */ public java.util.List getEphemeralContainersBuilderList() { return getEphemeralContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralContainer, io.kubernetes.client.proto.V1.EphemeralContainer.Builder, io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder> getEphemeralContainersFieldBuilder() { if (ephemeralContainersBuilder_ == null) { ephemeralContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralContainer, io.kubernetes.client.proto.V1.EphemeralContainer.Builder, io.kubernetes.client.proto.V1.EphemeralContainerOrBuilder>( ephemeralContainers_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); ephemeralContainers_ = null; } return ephemeralContainersBuilder_; } private java.lang.Object restartPolicy_ = ""; /** * * *
       * Restart policy for all containers within the pod.
       * One of Always, OnFailure, Never.
       * Default to Always.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
       * +optional
       * 
* * optional string restartPolicy = 3; */ public boolean hasRestartPolicy() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Restart policy for all containers within the pod.
       * One of Always, OnFailure, Never.
       * Default to Always.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
       * +optional
       * 
* * optional string restartPolicy = 3; */ public java.lang.String getRestartPolicy() { java.lang.Object ref = restartPolicy_; 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()) { restartPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Restart policy for all containers within the pod.
       * One of Always, OnFailure, Never.
       * Default to Always.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
       * +optional
       * 
* * optional string restartPolicy = 3; */ public com.google.protobuf.ByteString getRestartPolicyBytes() { java.lang.Object ref = restartPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); restartPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Restart policy for all containers within the pod.
       * One of Always, OnFailure, Never.
       * Default to Always.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
       * +optional
       * 
* * optional string restartPolicy = 3; */ public Builder setRestartPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; restartPolicy_ = value; onChanged(); return this; } /** * * *
       * Restart policy for all containers within the pod.
       * One of Always, OnFailure, Never.
       * Default to Always.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
       * +optional
       * 
* * optional string restartPolicy = 3; */ public Builder clearRestartPolicy() { bitField0_ = (bitField0_ & ~0x00000010); restartPolicy_ = getDefaultInstance().getRestartPolicy(); onChanged(); return this; } /** * * *
       * Restart policy for all containers within the pod.
       * One of Always, OnFailure, Never.
       * Default to Always.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
       * +optional
       * 
* * optional string restartPolicy = 3; */ public Builder setRestartPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; restartPolicy_ = value; onChanged(); return this; } private long terminationGracePeriodSeconds_; /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * If this value is nil, the default grace period will be used instead.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * Defaults to 30 seconds.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 4; */ public boolean hasTerminationGracePeriodSeconds() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * If this value is nil, the default grace period will be used instead.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * Defaults to 30 seconds.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 4; */ public long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds_; } /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * If this value is nil, the default grace period will be used instead.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * Defaults to 30 seconds.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 4; */ public Builder setTerminationGracePeriodSeconds(long value) { bitField0_ |= 0x00000020; terminationGracePeriodSeconds_ = value; onChanged(); return this; } /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * If this value is nil, the default grace period will be used instead.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * Defaults to 30 seconds.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 4; */ public Builder clearTerminationGracePeriodSeconds() { bitField0_ = (bitField0_ & ~0x00000020); terminationGracePeriodSeconds_ = 0L; onChanged(); return this; } private long activeDeadlineSeconds_; /** * * *
       * Optional duration in seconds the pod may be active on the node relative to
       * StartTime before the system will actively try to mark it failed and kill associated containers.
       * Value must be a positive integer.
       * +optional
       * 
* * optional int64 activeDeadlineSeconds = 5; */ public boolean hasActiveDeadlineSeconds() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Optional duration in seconds the pod may be active on the node relative to
       * StartTime before the system will actively try to mark it failed and kill associated containers.
       * Value must be a positive integer.
       * +optional
       * 
* * optional int64 activeDeadlineSeconds = 5; */ public long getActiveDeadlineSeconds() { return activeDeadlineSeconds_; } /** * * *
       * Optional duration in seconds the pod may be active on the node relative to
       * StartTime before the system will actively try to mark it failed and kill associated containers.
       * Value must be a positive integer.
       * +optional
       * 
* * optional int64 activeDeadlineSeconds = 5; */ public Builder setActiveDeadlineSeconds(long value) { bitField0_ |= 0x00000040; activeDeadlineSeconds_ = value; onChanged(); return this; } /** * * *
       * Optional duration in seconds the pod may be active on the node relative to
       * StartTime before the system will actively try to mark it failed and kill associated containers.
       * Value must be a positive integer.
       * +optional
       * 
* * optional int64 activeDeadlineSeconds = 5; */ public Builder clearActiveDeadlineSeconds() { bitField0_ = (bitField0_ & ~0x00000040); activeDeadlineSeconds_ = 0L; onChanged(); return this; } private java.lang.Object dnsPolicy_ = ""; /** * * *
       * Set DNS policy for the pod.
       * Defaults to "ClusterFirst".
       * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
       * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
       * To have DNS options set along with hostNetwork, you have to specify DNS policy
       * explicitly to 'ClusterFirstWithHostNet'.
       * +optional
       * 
* * optional string dnsPolicy = 6; */ public boolean hasDnsPolicy() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * Set DNS policy for the pod.
       * Defaults to "ClusterFirst".
       * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
       * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
       * To have DNS options set along with hostNetwork, you have to specify DNS policy
       * explicitly to 'ClusterFirstWithHostNet'.
       * +optional
       * 
* * optional string dnsPolicy = 6; */ public java.lang.String getDnsPolicy() { java.lang.Object ref = dnsPolicy_; 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()) { dnsPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Set DNS policy for the pod.
       * Defaults to "ClusterFirst".
       * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
       * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
       * To have DNS options set along with hostNetwork, you have to specify DNS policy
       * explicitly to 'ClusterFirstWithHostNet'.
       * +optional
       * 
* * optional string dnsPolicy = 6; */ public com.google.protobuf.ByteString getDnsPolicyBytes() { java.lang.Object ref = dnsPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dnsPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Set DNS policy for the pod.
       * Defaults to "ClusterFirst".
       * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
       * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
       * To have DNS options set along with hostNetwork, you have to specify DNS policy
       * explicitly to 'ClusterFirstWithHostNet'.
       * +optional
       * 
* * optional string dnsPolicy = 6; */ public Builder setDnsPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; dnsPolicy_ = value; onChanged(); return this; } /** * * *
       * Set DNS policy for the pod.
       * Defaults to "ClusterFirst".
       * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
       * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
       * To have DNS options set along with hostNetwork, you have to specify DNS policy
       * explicitly to 'ClusterFirstWithHostNet'.
       * +optional
       * 
* * optional string dnsPolicy = 6; */ public Builder clearDnsPolicy() { bitField0_ = (bitField0_ & ~0x00000080); dnsPolicy_ = getDefaultInstance().getDnsPolicy(); onChanged(); return this; } /** * * *
       * Set DNS policy for the pod.
       * Defaults to "ClusterFirst".
       * Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
       * DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
       * To have DNS options set along with hostNetwork, you have to specify DNS policy
       * explicitly to 'ClusterFirstWithHostNet'.
       * +optional
       * 
* * optional string dnsPolicy = 6; */ public Builder setDnsPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; dnsPolicy_ = value; onChanged(); return this; } private com.google.protobuf.MapField nodeSelector_; private com.google.protobuf.MapField internalGetNodeSelector() { if (nodeSelector_ == null) { return com.google.protobuf.MapField.emptyMapField( NodeSelectorDefaultEntryHolder.defaultEntry); } return nodeSelector_; } private com.google.protobuf.MapField internalGetMutableNodeSelector() { onChanged(); ; if (nodeSelector_ == null) { nodeSelector_ = com.google.protobuf.MapField.newMapField(NodeSelectorDefaultEntryHolder.defaultEntry); } if (!nodeSelector_.isMutable()) { nodeSelector_ = nodeSelector_.copy(); } return nodeSelector_; } public int getNodeSelectorCount() { return internalGetNodeSelector().getMap().size(); } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public boolean containsNodeSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetNodeSelector().getMap().containsKey(key); } /** Use {@link #getNodeSelectorMap()} instead. */ @java.lang.Deprecated public java.util.Map getNodeSelector() { return getNodeSelectorMap(); } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public java.util.Map getNodeSelectorMap() { return internalGetNodeSelector().getMap(); } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public java.lang.String getNodeSelectorOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNodeSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public java.lang.String getNodeSelectorOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetNodeSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNodeSelector() { internalGetMutableNodeSelector().getMutableMap().clear(); return this; } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public Builder removeNodeSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableNodeSelector().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNodeSelector() { return internalGetMutableNodeSelector().getMutableMap(); } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public Builder putNodeSelector(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableNodeSelector().getMutableMap().put(key, value); return this; } /** * * *
       * NodeSelector is a selector which must be true for the pod to fit on a node.
       * Selector which must match a node's labels for the pod to be scheduled on that node.
       * More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> nodeSelector = 7; */ public Builder putAllNodeSelector(java.util.Map values) { internalGetMutableNodeSelector().getMutableMap().putAll(values); return this; } private java.lang.Object serviceAccountName_ = ""; /** * * *
       * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * +optional
       * 
* * optional string serviceAccountName = 8; */ public boolean hasServiceAccountName() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * +optional
       * 
* * optional string serviceAccountName = 8; */ public java.lang.String getServiceAccountName() { java.lang.Object ref = serviceAccountName_; 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()) { serviceAccountName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * +optional
       * 
* * optional string serviceAccountName = 8; */ public com.google.protobuf.ByteString getServiceAccountNameBytes() { java.lang.Object ref = serviceAccountName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * +optional
       * 
* * optional string serviceAccountName = 8; */ public Builder setServiceAccountName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; serviceAccountName_ = value; onChanged(); return this; } /** * * *
       * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * +optional
       * 
* * optional string serviceAccountName = 8; */ public Builder clearServiceAccountName() { bitField0_ = (bitField0_ & ~0x00000200); serviceAccountName_ = getDefaultInstance().getServiceAccountName(); onChanged(); return this; } /** * * *
       * ServiceAccountName is the name of the ServiceAccount to use to run this pod.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * +optional
       * 
* * optional string serviceAccountName = 8; */ public Builder setServiceAccountNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; serviceAccountName_ = value; onChanged(); return this; } private java.lang.Object serviceAccount_ = ""; /** * * *
       * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
       * Deprecated: Use serviceAccountName instead.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional string serviceAccount = 9; */ public boolean hasServiceAccount() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
       * Deprecated: Use serviceAccountName instead.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional string serviceAccount = 9; */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; 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()) { serviceAccount_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
       * Deprecated: Use serviceAccountName instead.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional string serviceAccount = 9; */ public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
       * Deprecated: Use serviceAccountName instead.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional string serviceAccount = 9; */ public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; serviceAccount_ = value; onChanged(); return this; } /** * * *
       * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
       * Deprecated: Use serviceAccountName instead.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional string serviceAccount = 9; */ public Builder clearServiceAccount() { bitField0_ = (bitField0_ & ~0x00000400); serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** * * *
       * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
       * Deprecated: Use serviceAccountName instead.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional string serviceAccount = 9; */ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; serviceAccount_ = value; onChanged(); return this; } private boolean automountServiceAccountToken_; /** * * *
       * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 21; */ public boolean hasAutomountServiceAccountToken() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 21; */ public boolean getAutomountServiceAccountToken() { return automountServiceAccountToken_; } /** * * *
       * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 21; */ public Builder setAutomountServiceAccountToken(boolean value) { bitField0_ |= 0x00000800; automountServiceAccountToken_ = value; onChanged(); return this; } /** * * *
       * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 21; */ public Builder clearAutomountServiceAccountToken() { bitField0_ = (bitField0_ & ~0x00000800); automountServiceAccountToken_ = false; onChanged(); return this; } private java.lang.Object nodeName_ = ""; /** * * *
       * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
       * the scheduler simply schedules this pod onto that node, assuming that it fits resource
       * requirements.
       * +optional
       * 
* * optional string nodeName = 10; */ public boolean hasNodeName() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
       * the scheduler simply schedules this pod onto that node, assuming that it fits resource
       * requirements.
       * +optional
       * 
* * optional string nodeName = 10; */ 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; } } /** * * *
       * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
       * the scheduler simply schedules this pod onto that node, assuming that it fits resource
       * requirements.
       * +optional
       * 
* * optional string nodeName = 10; */ 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; } } /** * * *
       * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
       * the scheduler simply schedules this pod onto that node, assuming that it fits resource
       * requirements.
       * +optional
       * 
* * optional string nodeName = 10; */ public Builder setNodeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; nodeName_ = value; onChanged(); return this; } /** * * *
       * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
       * the scheduler simply schedules this pod onto that node, assuming that it fits resource
       * requirements.
       * +optional
       * 
* * optional string nodeName = 10; */ public Builder clearNodeName() { bitField0_ = (bitField0_ & ~0x00001000); nodeName_ = getDefaultInstance().getNodeName(); onChanged(); return this; } /** * * *
       * NodeName is a request to schedule this pod onto a specific node. If it is non-empty,
       * the scheduler simply schedules this pod onto that node, assuming that it fits resource
       * requirements.
       * +optional
       * 
* * optional string nodeName = 10; */ public Builder setNodeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; nodeName_ = value; onChanged(); return this; } private boolean hostNetwork_; /** * * *
       * Host networking requested for this pod. Use the host's network namespace.
       * If this option is set, the ports that will be used must be specified.
       * Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostNetwork = 11; */ public boolean hasHostNetwork() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * Host networking requested for this pod. Use the host's network namespace.
       * If this option is set, the ports that will be used must be specified.
       * Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostNetwork = 11; */ public boolean getHostNetwork() { return hostNetwork_; } /** * * *
       * Host networking requested for this pod. Use the host's network namespace.
       * If this option is set, the ports that will be used must be specified.
       * Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostNetwork = 11; */ public Builder setHostNetwork(boolean value) { bitField0_ |= 0x00002000; hostNetwork_ = value; onChanged(); return this; } /** * * *
       * Host networking requested for this pod. Use the host's network namespace.
       * If this option is set, the ports that will be used must be specified.
       * Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostNetwork = 11; */ public Builder clearHostNetwork() { bitField0_ = (bitField0_ & ~0x00002000); hostNetwork_ = false; onChanged(); return this; } private boolean hostPID_; /** * * *
       * Use the host's pid namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostPID = 12; */ public boolean hasHostPID() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * Use the host's pid namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostPID = 12; */ public boolean getHostPID() { return hostPID_; } /** * * *
       * Use the host's pid namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostPID = 12; */ public Builder setHostPID(boolean value) { bitField0_ |= 0x00004000; hostPID_ = value; onChanged(); return this; } /** * * *
       * Use the host's pid namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostPID = 12; */ public Builder clearHostPID() { bitField0_ = (bitField0_ & ~0x00004000); hostPID_ = false; onChanged(); return this; } private boolean hostIPC_; /** * * *
       * Use the host's ipc namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostIPC = 13; */ public boolean hasHostIPC() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * Use the host's ipc namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostIPC = 13; */ public boolean getHostIPC() { return hostIPC_; } /** * * *
       * Use the host's ipc namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostIPC = 13; */ public Builder setHostIPC(boolean value) { bitField0_ |= 0x00008000; hostIPC_ = value; onChanged(); return this; } /** * * *
       * Use the host's ipc namespace.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool hostIPC = 13; */ public Builder clearHostIPC() { bitField0_ = (bitField0_ & ~0x00008000); hostIPC_ = false; onChanged(); return this; } private boolean shareProcessNamespace_; /** * * *
       * Share a single process namespace between all of the containers in a pod.
       * When this is set containers will be able to view and signal processes from other containers
       * in the same pod, and the first process in each container will not be assigned PID 1.
       * HostPID and ShareProcessNamespace cannot both be set.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool shareProcessNamespace = 27; */ public boolean hasShareProcessNamespace() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * Share a single process namespace between all of the containers in a pod.
       * When this is set containers will be able to view and signal processes from other containers
       * in the same pod, and the first process in each container will not be assigned PID 1.
       * HostPID and ShareProcessNamespace cannot both be set.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool shareProcessNamespace = 27; */ public boolean getShareProcessNamespace() { return shareProcessNamespace_; } /** * * *
       * Share a single process namespace between all of the containers in a pod.
       * When this is set containers will be able to view and signal processes from other containers
       * in the same pod, and the first process in each container will not be assigned PID 1.
       * HostPID and ShareProcessNamespace cannot both be set.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool shareProcessNamespace = 27; */ public Builder setShareProcessNamespace(boolean value) { bitField0_ |= 0x00010000; shareProcessNamespace_ = value; onChanged(); return this; } /** * * *
       * Share a single process namespace between all of the containers in a pod.
       * When this is set containers will be able to view and signal processes from other containers
       * in the same pod, and the first process in each container will not be assigned PID 1.
       * HostPID and ShareProcessNamespace cannot both be set.
       * Optional: Default to false.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * optional bool shareProcessNamespace = 27; */ public Builder clearShareProcessNamespace() { bitField0_ = (bitField0_ & ~0x00010000); shareProcessNamespace_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.PodSecurityContext securityContext_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSecurityContext, io.kubernetes.client.proto.V1.PodSecurityContext.Builder, io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder> securityContextBuilder_; /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public boolean hasSecurityContext() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public io.kubernetes.client.proto.V1.PodSecurityContext getSecurityContext() { if (securityContextBuilder_ == null) { return securityContext_ == null ? io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance() : securityContext_; } else { return securityContextBuilder_.getMessage(); } } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public Builder setSecurityContext(io.kubernetes.client.proto.V1.PodSecurityContext value) { if (securityContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityContext_ = value; onChanged(); } else { securityContextBuilder_.setMessage(value); } bitField0_ |= 0x00020000; return this; } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public Builder setSecurityContext( io.kubernetes.client.proto.V1.PodSecurityContext.Builder builderForValue) { if (securityContextBuilder_ == null) { securityContext_ = builderForValue.build(); onChanged(); } else { securityContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; return this; } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public Builder mergeSecurityContext(io.kubernetes.client.proto.V1.PodSecurityContext value) { if (securityContextBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000) && securityContext_ != null && securityContext_ != io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance()) { securityContext_ = io.kubernetes.client.proto.V1.PodSecurityContext.newBuilder(securityContext_) .mergeFrom(value) .buildPartial(); } else { securityContext_ = value; } onChanged(); } else { securityContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; return this; } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public Builder clearSecurityContext() { if (securityContextBuilder_ == null) { securityContext_ = null; onChanged(); } else { securityContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); return this; } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public io.kubernetes.client.proto.V1.PodSecurityContext.Builder getSecurityContextBuilder() { bitField0_ |= 0x00020000; onChanged(); return getSecurityContextFieldBuilder().getBuilder(); } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ public io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder getSecurityContextOrBuilder() { if (securityContextBuilder_ != null) { return securityContextBuilder_.getMessageOrBuilder(); } else { return securityContext_ == null ? io.kubernetes.client.proto.V1.PodSecurityContext.getDefaultInstance() : securityContext_; } } /** * * *
       * SecurityContext holds pod-level security attributes and common container settings.
       * Optional: Defaults to empty.  See type description for default values of each field.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSecurityContext securityContext = 14; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSecurityContext, io.kubernetes.client.proto.V1.PodSecurityContext.Builder, io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder> getSecurityContextFieldBuilder() { if (securityContextBuilder_ == null) { securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSecurityContext, io.kubernetes.client.proto.V1.PodSecurityContext.Builder, io.kubernetes.client.proto.V1.PodSecurityContextOrBuilder>( getSecurityContext(), getParentForChildren(), isClean()); securityContext_ = null; } return securityContextBuilder_; } private java.util.List imagePullSecrets_ = java.util.Collections.emptyList(); private void ensureImagePullSecretsIsMutable() { if (!((bitField0_ & 0x00040000) == 0x00040000)) { imagePullSecrets_ = new java.util.ArrayList( imagePullSecrets_); bitField0_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> imagePullSecretsBuilder_; /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public java.util.List getImagePullSecretsList() { if (imagePullSecretsBuilder_ == null) { return java.util.Collections.unmodifiableList(imagePullSecrets_); } else { return imagePullSecretsBuilder_.getMessageList(); } } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public int getImagePullSecretsCount() { if (imagePullSecretsBuilder_ == null) { return imagePullSecrets_.size(); } else { return imagePullSecretsBuilder_.getCount(); } } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReference getImagePullSecrets(int index) { if (imagePullSecretsBuilder_ == null) { return imagePullSecrets_.get(index); } else { return imagePullSecretsBuilder_.getMessage(index); } } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder setImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference value) { if (imagePullSecretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagePullSecretsIsMutable(); imagePullSecrets_.set(index, value); onChanged(); } else { imagePullSecretsBuilder_.setMessage(index, value); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder setImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.set(index, builderForValue.build()); onChanged(); } else { imagePullSecretsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder addImagePullSecrets(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (imagePullSecretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(value); onChanged(); } else { imagePullSecretsBuilder_.addMessage(value); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder addImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference value) { if (imagePullSecretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(index, value); onChanged(); } else { imagePullSecretsBuilder_.addMessage(index, value); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder addImagePullSecrets( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(builderForValue.build()); onChanged(); } else { imagePullSecretsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder addImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(index, builderForValue.build()); onChanged(); } else { imagePullSecretsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder addAllImagePullSecrets( java.lang.Iterable values) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, imagePullSecrets_); onChanged(); } else { imagePullSecretsBuilder_.addAllMessages(values); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder clearImagePullSecrets() { if (imagePullSecretsBuilder_ == null) { imagePullSecrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { imagePullSecretsBuilder_.clear(); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public Builder removeImagePullSecrets(int index) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.remove(index); onChanged(); } else { imagePullSecretsBuilder_.remove(index); } return this; } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getImagePullSecretsBuilder( int index) { return getImagePullSecretsFieldBuilder().getBuilder(index); } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder(int index) { if (imagePullSecretsBuilder_ == null) { return imagePullSecrets_.get(index); } else { return imagePullSecretsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public java.util.List getImagePullSecretsOrBuilderList() { if (imagePullSecretsBuilder_ != null) { return imagePullSecretsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(imagePullSecrets_); } } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder addImagePullSecretsBuilder() { return getImagePullSecretsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()); } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder addImagePullSecretsBuilder( int index) { return getImagePullSecretsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()); } /** * * *
       * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
       * If specified, these secrets will be passed to individual puller implementations for them to use. For example,
       * in the case of docker, only DockerConfig type secrets are honored.
       * More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 15; */ public java.util.List getImagePullSecretsBuilderList() { return getImagePullSecretsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getImagePullSecretsFieldBuilder() { if (imagePullSecretsBuilder_ == null) { imagePullSecretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( imagePullSecrets_, ((bitField0_ & 0x00040000) == 0x00040000), getParentForChildren(), isClean()); imagePullSecrets_ = null; } return imagePullSecretsBuilder_; } private java.lang.Object hostname_ = ""; /** * * *
       * Specifies the hostname of the Pod
       * If not specified, the pod's hostname will be set to a system-defined value.
       * +optional
       * 
* * optional string hostname = 16; */ public boolean hasHostname() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
       * Specifies the hostname of the Pod
       * If not specified, the pod's hostname will be set to a system-defined value.
       * +optional
       * 
* * optional string hostname = 16; */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; 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()) { hostname_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Specifies the hostname of the Pod
       * If not specified, the pod's hostname will be set to a system-defined value.
       * +optional
       * 
* * optional string hostname = 16; */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Specifies the hostname of the Pod
       * If not specified, the pod's hostname will be set to a system-defined value.
       * +optional
       * 
* * optional string hostname = 16; */ public Builder setHostname(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; hostname_ = value; onChanged(); return this; } /** * * *
       * Specifies the hostname of the Pod
       * If not specified, the pod's hostname will be set to a system-defined value.
       * +optional
       * 
* * optional string hostname = 16; */ public Builder clearHostname() { bitField0_ = (bitField0_ & ~0x00080000); hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** * * *
       * Specifies the hostname of the Pod
       * If not specified, the pod's hostname will be set to a system-defined value.
       * +optional
       * 
* * optional string hostname = 16; */ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; hostname_ = value; onChanged(); return this; } private java.lang.Object subdomain_ = ""; /** * * *
       * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
       * If not specified, the pod will not have a domainname at all.
       * +optional
       * 
* * optional string subdomain = 17; */ public boolean hasSubdomain() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
       * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
       * If not specified, the pod will not have a domainname at all.
       * +optional
       * 
* * optional string subdomain = 17; */ public java.lang.String getSubdomain() { java.lang.Object ref = subdomain_; 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()) { subdomain_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
       * If not specified, the pod will not have a domainname at all.
       * +optional
       * 
* * optional string subdomain = 17; */ public com.google.protobuf.ByteString getSubdomainBytes() { java.lang.Object ref = subdomain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subdomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
       * If not specified, the pod will not have a domainname at all.
       * +optional
       * 
* * optional string subdomain = 17; */ public Builder setSubdomain(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; subdomain_ = value; onChanged(); return this; } /** * * *
       * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
       * If not specified, the pod will not have a domainname at all.
       * +optional
       * 
* * optional string subdomain = 17; */ public Builder clearSubdomain() { bitField0_ = (bitField0_ & ~0x00100000); subdomain_ = getDefaultInstance().getSubdomain(); onChanged(); return this; } /** * * *
       * If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
       * If not specified, the pod will not have a domainname at all.
       * +optional
       * 
* * optional string subdomain = 17; */ public Builder setSubdomainBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; subdomain_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.Affinity affinity_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Affinity, io.kubernetes.client.proto.V1.Affinity.Builder, io.kubernetes.client.proto.V1.AffinityOrBuilder> affinityBuilder_; /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public boolean hasAffinity() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public io.kubernetes.client.proto.V1.Affinity getAffinity() { if (affinityBuilder_ == null) { return affinity_ == null ? io.kubernetes.client.proto.V1.Affinity.getDefaultInstance() : affinity_; } else { return affinityBuilder_.getMessage(); } } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public Builder setAffinity(io.kubernetes.client.proto.V1.Affinity value) { if (affinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } affinity_ = value; onChanged(); } else { affinityBuilder_.setMessage(value); } bitField0_ |= 0x00200000; return this; } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public Builder setAffinity(io.kubernetes.client.proto.V1.Affinity.Builder builderForValue) { if (affinityBuilder_ == null) { affinity_ = builderForValue.build(); onChanged(); } else { affinityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00200000; return this; } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public Builder mergeAffinity(io.kubernetes.client.proto.V1.Affinity value) { if (affinityBuilder_ == null) { if (((bitField0_ & 0x00200000) == 0x00200000) && affinity_ != null && affinity_ != io.kubernetes.client.proto.V1.Affinity.getDefaultInstance()) { affinity_ = io.kubernetes.client.proto.V1.Affinity.newBuilder(affinity_) .mergeFrom(value) .buildPartial(); } else { affinity_ = value; } onChanged(); } else { affinityBuilder_.mergeFrom(value); } bitField0_ |= 0x00200000; return this; } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public Builder clearAffinity() { if (affinityBuilder_ == null) { affinity_ = null; onChanged(); } else { affinityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); return this; } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public io.kubernetes.client.proto.V1.Affinity.Builder getAffinityBuilder() { bitField0_ |= 0x00200000; onChanged(); return getAffinityFieldBuilder().getBuilder(); } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ public io.kubernetes.client.proto.V1.AffinityOrBuilder getAffinityOrBuilder() { if (affinityBuilder_ != null) { return affinityBuilder_.getMessageOrBuilder(); } else { return affinity_ == null ? io.kubernetes.client.proto.V1.Affinity.getDefaultInstance() : affinity_; } } /** * * *
       * If specified, the pod's scheduling constraints
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Affinity affinity = 18; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Affinity, io.kubernetes.client.proto.V1.Affinity.Builder, io.kubernetes.client.proto.V1.AffinityOrBuilder> getAffinityFieldBuilder() { if (affinityBuilder_ == null) { affinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Affinity, io.kubernetes.client.proto.V1.Affinity.Builder, io.kubernetes.client.proto.V1.AffinityOrBuilder>( getAffinity(), getParentForChildren(), isClean()); affinity_ = null; } return affinityBuilder_; } private java.lang.Object schedulerName_ = ""; /** * * *
       * If specified, the pod will be dispatched by specified scheduler.
       * If not specified, the pod will be dispatched by default scheduler.
       * +optional
       * 
* * optional string schedulerName = 19; */ public boolean hasSchedulerName() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * * *
       * If specified, the pod will be dispatched by specified scheduler.
       * If not specified, the pod will be dispatched by default scheduler.
       * +optional
       * 
* * optional string schedulerName = 19; */ public java.lang.String getSchedulerName() { java.lang.Object ref = schedulerName_; 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()) { schedulerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * If specified, the pod will be dispatched by specified scheduler.
       * If not specified, the pod will be dispatched by default scheduler.
       * +optional
       * 
* * optional string schedulerName = 19; */ public com.google.protobuf.ByteString getSchedulerNameBytes() { java.lang.Object ref = schedulerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedulerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * If specified, the pod will be dispatched by specified scheduler.
       * If not specified, the pod will be dispatched by default scheduler.
       * +optional
       * 
* * optional string schedulerName = 19; */ public Builder setSchedulerName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; schedulerName_ = value; onChanged(); return this; } /** * * *
       * If specified, the pod will be dispatched by specified scheduler.
       * If not specified, the pod will be dispatched by default scheduler.
       * +optional
       * 
* * optional string schedulerName = 19; */ public Builder clearSchedulerName() { bitField0_ = (bitField0_ & ~0x00400000); schedulerName_ = getDefaultInstance().getSchedulerName(); onChanged(); return this; } /** * * *
       * If specified, the pod will be dispatched by specified scheduler.
       * If not specified, the pod will be dispatched by default scheduler.
       * +optional
       * 
* * optional string schedulerName = 19; */ public Builder setSchedulerNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; schedulerName_ = value; onChanged(); return this; } private java.util.List tolerations_ = java.util.Collections.emptyList(); private void ensureTolerationsIsMutable() { if (!((bitField0_ & 0x00800000) == 0x00800000)) { tolerations_ = new java.util.ArrayList(tolerations_); bitField0_ |= 0x00800000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Toleration, io.kubernetes.client.proto.V1.Toleration.Builder, io.kubernetes.client.proto.V1.TolerationOrBuilder> tolerationsBuilder_; /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public java.util.List getTolerationsList() { if (tolerationsBuilder_ == null) { return java.util.Collections.unmodifiableList(tolerations_); } else { return tolerationsBuilder_.getMessageList(); } } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public int getTolerationsCount() { if (tolerationsBuilder_ == null) { return tolerations_.size(); } else { return tolerationsBuilder_.getCount(); } } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.Toleration getTolerations(int index) { if (tolerationsBuilder_ == null) { return tolerations_.get(index); } else { return tolerationsBuilder_.getMessage(index); } } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder setTolerations(int index, io.kubernetes.client.proto.V1.Toleration value) { if (tolerationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTolerationsIsMutable(); tolerations_.set(index, value); onChanged(); } else { tolerationsBuilder_.setMessage(index, value); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder setTolerations( int index, io.kubernetes.client.proto.V1.Toleration.Builder builderForValue) { if (tolerationsBuilder_ == null) { ensureTolerationsIsMutable(); tolerations_.set(index, builderForValue.build()); onChanged(); } else { tolerationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder addTolerations(io.kubernetes.client.proto.V1.Toleration value) { if (tolerationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTolerationsIsMutable(); tolerations_.add(value); onChanged(); } else { tolerationsBuilder_.addMessage(value); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder addTolerations(int index, io.kubernetes.client.proto.V1.Toleration value) { if (tolerationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTolerationsIsMutable(); tolerations_.add(index, value); onChanged(); } else { tolerationsBuilder_.addMessage(index, value); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder addTolerations( io.kubernetes.client.proto.V1.Toleration.Builder builderForValue) { if (tolerationsBuilder_ == null) { ensureTolerationsIsMutable(); tolerations_.add(builderForValue.build()); onChanged(); } else { tolerationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder addTolerations( int index, io.kubernetes.client.proto.V1.Toleration.Builder builderForValue) { if (tolerationsBuilder_ == null) { ensureTolerationsIsMutable(); tolerations_.add(index, builderForValue.build()); onChanged(); } else { tolerationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder addAllTolerations( java.lang.Iterable values) { if (tolerationsBuilder_ == null) { ensureTolerationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tolerations_); onChanged(); } else { tolerationsBuilder_.addAllMessages(values); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder clearTolerations() { if (tolerationsBuilder_ == null) { tolerations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00800000); onChanged(); } else { tolerationsBuilder_.clear(); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public Builder removeTolerations(int index) { if (tolerationsBuilder_ == null) { ensureTolerationsIsMutable(); tolerations_.remove(index); onChanged(); } else { tolerationsBuilder_.remove(index); } return this; } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.Toleration.Builder getTolerationsBuilder(int index) { return getTolerationsFieldBuilder().getBuilder(index); } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder(int index) { if (tolerationsBuilder_ == null) { return tolerations_.get(index); } else { return tolerationsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public java.util.List getTolerationsOrBuilderList() { if (tolerationsBuilder_ != null) { return tolerationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tolerations_); } } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.Toleration.Builder addTolerationsBuilder() { return getTolerationsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Toleration.getDefaultInstance()); } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public io.kubernetes.client.proto.V1.Toleration.Builder addTolerationsBuilder(int index) { return getTolerationsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Toleration.getDefaultInstance()); } /** * * *
       * If specified, the pod's tolerations.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; */ public java.util.List getTolerationsBuilderList() { return getTolerationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Toleration, io.kubernetes.client.proto.V1.Toleration.Builder, io.kubernetes.client.proto.V1.TolerationOrBuilder> getTolerationsFieldBuilder() { if (tolerationsBuilder_ == null) { tolerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Toleration, io.kubernetes.client.proto.V1.Toleration.Builder, io.kubernetes.client.proto.V1.TolerationOrBuilder>( tolerations_, ((bitField0_ & 0x00800000) == 0x00800000), getParentForChildren(), isClean()); tolerations_ = null; } return tolerationsBuilder_; } private java.util.List hostAliases_ = java.util.Collections.emptyList(); private void ensureHostAliasesIsMutable() { if (!((bitField0_ & 0x01000000) == 0x01000000)) { hostAliases_ = new java.util.ArrayList(hostAliases_); bitField0_ |= 0x01000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.HostAlias, io.kubernetes.client.proto.V1.HostAlias.Builder, io.kubernetes.client.proto.V1.HostAliasOrBuilder> hostAliasesBuilder_; /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public java.util.List getHostAliasesList() { if (hostAliasesBuilder_ == null) { return java.util.Collections.unmodifiableList(hostAliases_); } else { return hostAliasesBuilder_.getMessageList(); } } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public int getHostAliasesCount() { if (hostAliasesBuilder_ == null) { return hostAliases_.size(); } else { return hostAliasesBuilder_.getCount(); } } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAlias getHostAliases(int index) { if (hostAliasesBuilder_ == null) { return hostAliases_.get(index); } else { return hostAliasesBuilder_.getMessage(index); } } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder setHostAliases(int index, io.kubernetes.client.proto.V1.HostAlias value) { if (hostAliasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostAliasesIsMutable(); hostAliases_.set(index, value); onChanged(); } else { hostAliasesBuilder_.setMessage(index, value); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder setHostAliases( int index, io.kubernetes.client.proto.V1.HostAlias.Builder builderForValue) { if (hostAliasesBuilder_ == null) { ensureHostAliasesIsMutable(); hostAliases_.set(index, builderForValue.build()); onChanged(); } else { hostAliasesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder addHostAliases(io.kubernetes.client.proto.V1.HostAlias value) { if (hostAliasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostAliasesIsMutable(); hostAliases_.add(value); onChanged(); } else { hostAliasesBuilder_.addMessage(value); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder addHostAliases(int index, io.kubernetes.client.proto.V1.HostAlias value) { if (hostAliasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostAliasesIsMutable(); hostAliases_.add(index, value); onChanged(); } else { hostAliasesBuilder_.addMessage(index, value); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder addHostAliases( io.kubernetes.client.proto.V1.HostAlias.Builder builderForValue) { if (hostAliasesBuilder_ == null) { ensureHostAliasesIsMutable(); hostAliases_.add(builderForValue.build()); onChanged(); } else { hostAliasesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder addHostAliases( int index, io.kubernetes.client.proto.V1.HostAlias.Builder builderForValue) { if (hostAliasesBuilder_ == null) { ensureHostAliasesIsMutable(); hostAliases_.add(index, builderForValue.build()); onChanged(); } else { hostAliasesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder addAllHostAliases( java.lang.Iterable values) { if (hostAliasesBuilder_ == null) { ensureHostAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hostAliases_); onChanged(); } else { hostAliasesBuilder_.addAllMessages(values); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder clearHostAliases() { if (hostAliasesBuilder_ == null) { hostAliases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x01000000); onChanged(); } else { hostAliasesBuilder_.clear(); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public Builder removeHostAliases(int index) { if (hostAliasesBuilder_ == null) { ensureHostAliasesIsMutable(); hostAliases_.remove(index); onChanged(); } else { hostAliasesBuilder_.remove(index); } return this; } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAlias.Builder getHostAliasesBuilder(int index) { return getHostAliasesFieldBuilder().getBuilder(index); } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAliasOrBuilder getHostAliasesOrBuilder(int index) { if (hostAliasesBuilder_ == null) { return hostAliases_.get(index); } else { return hostAliasesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public java.util.List getHostAliasesOrBuilderList() { if (hostAliasesBuilder_ != null) { return hostAliasesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hostAliases_); } } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAlias.Builder addHostAliasesBuilder() { return getHostAliasesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.HostAlias.getDefaultInstance()); } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public io.kubernetes.client.proto.V1.HostAlias.Builder addHostAliasesBuilder(int index) { return getHostAliasesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.HostAlias.getDefaultInstance()); } /** * * *
       * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
       * file if specified. This is only valid for non-hostNetwork pods.
       * +optional
       * +patchMergeKey=ip
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.HostAlias hostAliases = 23; */ public java.util.List getHostAliasesBuilderList() { return getHostAliasesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.HostAlias, io.kubernetes.client.proto.V1.HostAlias.Builder, io.kubernetes.client.proto.V1.HostAliasOrBuilder> getHostAliasesFieldBuilder() { if (hostAliasesBuilder_ == null) { hostAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.HostAlias, io.kubernetes.client.proto.V1.HostAlias.Builder, io.kubernetes.client.proto.V1.HostAliasOrBuilder>( hostAliases_, ((bitField0_ & 0x01000000) == 0x01000000), getParentForChildren(), isClean()); hostAliases_ = null; } return hostAliasesBuilder_; } private java.lang.Object priorityClassName_ = ""; /** * * *
       * If specified, indicates the pod's priority. "system-node-critical" and
       * "system-cluster-critical" are two special keywords which indicate the
       * highest priorities with the former being the highest priority. Any other
       * name must be defined by creating a PriorityClass object with that name.
       * If not specified, the pod priority will be default or zero if there is no
       * default.
       * +optional
       * 
* * optional string priorityClassName = 24; */ public boolean hasPriorityClassName() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * * *
       * If specified, indicates the pod's priority. "system-node-critical" and
       * "system-cluster-critical" are two special keywords which indicate the
       * highest priorities with the former being the highest priority. Any other
       * name must be defined by creating a PriorityClass object with that name.
       * If not specified, the pod priority will be default or zero if there is no
       * default.
       * +optional
       * 
* * optional string priorityClassName = 24; */ public java.lang.String getPriorityClassName() { java.lang.Object ref = priorityClassName_; 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()) { priorityClassName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * If specified, indicates the pod's priority. "system-node-critical" and
       * "system-cluster-critical" are two special keywords which indicate the
       * highest priorities with the former being the highest priority. Any other
       * name must be defined by creating a PriorityClass object with that name.
       * If not specified, the pod priority will be default or zero if there is no
       * default.
       * +optional
       * 
* * optional string priorityClassName = 24; */ public com.google.protobuf.ByteString getPriorityClassNameBytes() { java.lang.Object ref = priorityClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); priorityClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * If specified, indicates the pod's priority. "system-node-critical" and
       * "system-cluster-critical" are two special keywords which indicate the
       * highest priorities with the former being the highest priority. Any other
       * name must be defined by creating a PriorityClass object with that name.
       * If not specified, the pod priority will be default or zero if there is no
       * default.
       * +optional
       * 
* * optional string priorityClassName = 24; */ public Builder setPriorityClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x02000000; priorityClassName_ = value; onChanged(); return this; } /** * * *
       * If specified, indicates the pod's priority. "system-node-critical" and
       * "system-cluster-critical" are two special keywords which indicate the
       * highest priorities with the former being the highest priority. Any other
       * name must be defined by creating a PriorityClass object with that name.
       * If not specified, the pod priority will be default or zero if there is no
       * default.
       * +optional
       * 
* * optional string priorityClassName = 24; */ public Builder clearPriorityClassName() { bitField0_ = (bitField0_ & ~0x02000000); priorityClassName_ = getDefaultInstance().getPriorityClassName(); onChanged(); return this; } /** * * *
       * If specified, indicates the pod's priority. "system-node-critical" and
       * "system-cluster-critical" are two special keywords which indicate the
       * highest priorities with the former being the highest priority. Any other
       * name must be defined by creating a PriorityClass object with that name.
       * If not specified, the pod priority will be default or zero if there is no
       * default.
       * +optional
       * 
* * optional string priorityClassName = 24; */ public Builder setPriorityClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x02000000; priorityClassName_ = value; onChanged(); return this; } private int priority_; /** * * *
       * The priority value. Various system components use this field to find the
       * priority of the pod. When Priority Admission Controller is enabled, it
       * prevents users from setting this field. The admission controller populates
       * this field from PriorityClassName.
       * The higher the value, the higher the priority.
       * +optional
       * 
* * optional int32 priority = 25; */ public boolean hasPriority() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * * *
       * The priority value. Various system components use this field to find the
       * priority of the pod. When Priority Admission Controller is enabled, it
       * prevents users from setting this field. The admission controller populates
       * this field from PriorityClassName.
       * The higher the value, the higher the priority.
       * +optional
       * 
* * optional int32 priority = 25; */ public int getPriority() { return priority_; } /** * * *
       * The priority value. Various system components use this field to find the
       * priority of the pod. When Priority Admission Controller is enabled, it
       * prevents users from setting this field. The admission controller populates
       * this field from PriorityClassName.
       * The higher the value, the higher the priority.
       * +optional
       * 
* * optional int32 priority = 25; */ public Builder setPriority(int value) { bitField0_ |= 0x04000000; priority_ = value; onChanged(); return this; } /** * * *
       * The priority value. Various system components use this field to find the
       * priority of the pod. When Priority Admission Controller is enabled, it
       * prevents users from setting this field. The admission controller populates
       * this field from PriorityClassName.
       * The higher the value, the higher the priority.
       * +optional
       * 
* * optional int32 priority = 25; */ public Builder clearPriority() { bitField0_ = (bitField0_ & ~0x04000000); priority_ = 0; onChanged(); return this; } private io.kubernetes.client.proto.V1.PodDNSConfig dnsConfig_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodDNSConfig, io.kubernetes.client.proto.V1.PodDNSConfig.Builder, io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder> dnsConfigBuilder_; /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public boolean hasDnsConfig() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public io.kubernetes.client.proto.V1.PodDNSConfig getDnsConfig() { if (dnsConfigBuilder_ == null) { return dnsConfig_ == null ? io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance() : dnsConfig_; } else { return dnsConfigBuilder_.getMessage(); } } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public Builder setDnsConfig(io.kubernetes.client.proto.V1.PodDNSConfig value) { if (dnsConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dnsConfig_ = value; onChanged(); } else { dnsConfigBuilder_.setMessage(value); } bitField0_ |= 0x08000000; return this; } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public Builder setDnsConfig( io.kubernetes.client.proto.V1.PodDNSConfig.Builder builderForValue) { if (dnsConfigBuilder_ == null) { dnsConfig_ = builderForValue.build(); onChanged(); } else { dnsConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x08000000; return this; } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public Builder mergeDnsConfig(io.kubernetes.client.proto.V1.PodDNSConfig value) { if (dnsConfigBuilder_ == null) { if (((bitField0_ & 0x08000000) == 0x08000000) && dnsConfig_ != null && dnsConfig_ != io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance()) { dnsConfig_ = io.kubernetes.client.proto.V1.PodDNSConfig.newBuilder(dnsConfig_) .mergeFrom(value) .buildPartial(); } else { dnsConfig_ = value; } onChanged(); } else { dnsConfigBuilder_.mergeFrom(value); } bitField0_ |= 0x08000000; return this; } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public Builder clearDnsConfig() { if (dnsConfigBuilder_ == null) { dnsConfig_ = null; onChanged(); } else { dnsConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); return this; } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public io.kubernetes.client.proto.V1.PodDNSConfig.Builder getDnsConfigBuilder() { bitField0_ |= 0x08000000; onChanged(); return getDnsConfigFieldBuilder().getBuilder(); } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ public io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder getDnsConfigOrBuilder() { if (dnsConfigBuilder_ != null) { return dnsConfigBuilder_.getMessageOrBuilder(); } else { return dnsConfig_ == null ? io.kubernetes.client.proto.V1.PodDNSConfig.getDefaultInstance() : dnsConfig_; } } /** * * *
       * Specifies the DNS parameters of a pod.
       * Parameters specified here will be merged to the generated DNS
       * configuration based on DNSPolicy.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodDNSConfig dnsConfig = 26; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodDNSConfig, io.kubernetes.client.proto.V1.PodDNSConfig.Builder, io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder> getDnsConfigFieldBuilder() { if (dnsConfigBuilder_ == null) { dnsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodDNSConfig, io.kubernetes.client.proto.V1.PodDNSConfig.Builder, io.kubernetes.client.proto.V1.PodDNSConfigOrBuilder>( getDnsConfig(), getParentForChildren(), isClean()); dnsConfig_ = null; } return dnsConfigBuilder_; } private java.util.List readinessGates_ = java.util.Collections.emptyList(); private void ensureReadinessGatesIsMutable() { if (!((bitField0_ & 0x10000000) == 0x10000000)) { readinessGates_ = new java.util.ArrayList( readinessGates_); bitField0_ |= 0x10000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodReadinessGate, io.kubernetes.client.proto.V1.PodReadinessGate.Builder, io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder> readinessGatesBuilder_; /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public java.util.List getReadinessGatesList() { if (readinessGatesBuilder_ == null) { return java.util.Collections.unmodifiableList(readinessGates_); } else { return readinessGatesBuilder_.getMessageList(); } } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public int getReadinessGatesCount() { if (readinessGatesBuilder_ == null) { return readinessGates_.size(); } else { return readinessGatesBuilder_.getCount(); } } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGate getReadinessGates(int index) { if (readinessGatesBuilder_ == null) { return readinessGates_.get(index); } else { return readinessGatesBuilder_.getMessage(index); } } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder setReadinessGates( int index, io.kubernetes.client.proto.V1.PodReadinessGate value) { if (readinessGatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadinessGatesIsMutable(); readinessGates_.set(index, value); onChanged(); } else { readinessGatesBuilder_.setMessage(index, value); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder setReadinessGates( int index, io.kubernetes.client.proto.V1.PodReadinessGate.Builder builderForValue) { if (readinessGatesBuilder_ == null) { ensureReadinessGatesIsMutable(); readinessGates_.set(index, builderForValue.build()); onChanged(); } else { readinessGatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder addReadinessGates(io.kubernetes.client.proto.V1.PodReadinessGate value) { if (readinessGatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadinessGatesIsMutable(); readinessGates_.add(value); onChanged(); } else { readinessGatesBuilder_.addMessage(value); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder addReadinessGates( int index, io.kubernetes.client.proto.V1.PodReadinessGate value) { if (readinessGatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureReadinessGatesIsMutable(); readinessGates_.add(index, value); onChanged(); } else { readinessGatesBuilder_.addMessage(index, value); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder addReadinessGates( io.kubernetes.client.proto.V1.PodReadinessGate.Builder builderForValue) { if (readinessGatesBuilder_ == null) { ensureReadinessGatesIsMutable(); readinessGates_.add(builderForValue.build()); onChanged(); } else { readinessGatesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder addReadinessGates( int index, io.kubernetes.client.proto.V1.PodReadinessGate.Builder builderForValue) { if (readinessGatesBuilder_ == null) { ensureReadinessGatesIsMutable(); readinessGates_.add(index, builderForValue.build()); onChanged(); } else { readinessGatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder addAllReadinessGates( java.lang.Iterable values) { if (readinessGatesBuilder_ == null) { ensureReadinessGatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readinessGates_); onChanged(); } else { readinessGatesBuilder_.addAllMessages(values); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder clearReadinessGates() { if (readinessGatesBuilder_ == null) { readinessGates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x10000000); onChanged(); } else { readinessGatesBuilder_.clear(); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public Builder removeReadinessGates(int index) { if (readinessGatesBuilder_ == null) { ensureReadinessGatesIsMutable(); readinessGates_.remove(index); onChanged(); } else { readinessGatesBuilder_.remove(index); } return this; } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGate.Builder getReadinessGatesBuilder( int index) { return getReadinessGatesFieldBuilder().getBuilder(index); } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder getReadinessGatesOrBuilder( int index) { if (readinessGatesBuilder_ == null) { return readinessGates_.get(index); } else { return readinessGatesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public java.util.List getReadinessGatesOrBuilderList() { if (readinessGatesBuilder_ != null) { return readinessGatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(readinessGates_); } } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGate.Builder addReadinessGatesBuilder() { return getReadinessGatesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodReadinessGate.getDefaultInstance()); } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public io.kubernetes.client.proto.V1.PodReadinessGate.Builder addReadinessGatesBuilder( int index) { return getReadinessGatesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PodReadinessGate.getDefaultInstance()); } /** * * *
       * If specified, all readiness gates will be evaluated for pod readiness.
       * A pod is ready when all its containers are ready AND
       * all conditions specified in the readiness gates have status equal to "True"
       * More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.PodReadinessGate readinessGates = 28; */ public java.util.List getReadinessGatesBuilderList() { return getReadinessGatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodReadinessGate, io.kubernetes.client.proto.V1.PodReadinessGate.Builder, io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder> getReadinessGatesFieldBuilder() { if (readinessGatesBuilder_ == null) { readinessGatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodReadinessGate, io.kubernetes.client.proto.V1.PodReadinessGate.Builder, io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder>( readinessGates_, ((bitField0_ & 0x10000000) == 0x10000000), getParentForChildren(), isClean()); readinessGates_ = null; } return readinessGatesBuilder_; } private java.lang.Object runtimeClassName_ = ""; /** * * *
       * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
       * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
       * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
       * empty definition that uses the default runtime handler.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
       * This is a beta feature as of Kubernetes v1.14.
       * +optional
       * 
* * optional string runtimeClassName = 29; */ public boolean hasRuntimeClassName() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * * *
       * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
       * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
       * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
       * empty definition that uses the default runtime handler.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
       * This is a beta feature as of Kubernetes v1.14.
       * +optional
       * 
* * optional string runtimeClassName = 29; */ public java.lang.String getRuntimeClassName() { java.lang.Object ref = runtimeClassName_; 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()) { runtimeClassName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
       * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
       * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
       * empty definition that uses the default runtime handler.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
       * This is a beta feature as of Kubernetes v1.14.
       * +optional
       * 
* * optional string runtimeClassName = 29; */ public com.google.protobuf.ByteString getRuntimeClassNameBytes() { java.lang.Object ref = runtimeClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runtimeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
       * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
       * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
       * empty definition that uses the default runtime handler.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
       * This is a beta feature as of Kubernetes v1.14.
       * +optional
       * 
* * optional string runtimeClassName = 29; */ public Builder setRuntimeClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x20000000; runtimeClassName_ = value; onChanged(); return this; } /** * * *
       * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
       * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
       * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
       * empty definition that uses the default runtime handler.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
       * This is a beta feature as of Kubernetes v1.14.
       * +optional
       * 
* * optional string runtimeClassName = 29; */ public Builder clearRuntimeClassName() { bitField0_ = (bitField0_ & ~0x20000000); runtimeClassName_ = getDefaultInstance().getRuntimeClassName(); onChanged(); return this; } /** * * *
       * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
       * to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
       * If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
       * empty definition that uses the default runtime handler.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
       * This is a beta feature as of Kubernetes v1.14.
       * +optional
       * 
* * optional string runtimeClassName = 29; */ public Builder setRuntimeClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x20000000; runtimeClassName_ = value; onChanged(); return this; } private boolean enableServiceLinks_; /** * * *
       * EnableServiceLinks indicates whether information about services should be injected into pod's
       * environment variables, matching the syntax of Docker links.
       * Optional: Defaults to true.
       * +optional
       * 
* * optional bool enableServiceLinks = 30; */ public boolean hasEnableServiceLinks() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * * *
       * EnableServiceLinks indicates whether information about services should be injected into pod's
       * environment variables, matching the syntax of Docker links.
       * Optional: Defaults to true.
       * +optional
       * 
* * optional bool enableServiceLinks = 30; */ public boolean getEnableServiceLinks() { return enableServiceLinks_; } /** * * *
       * EnableServiceLinks indicates whether information about services should be injected into pod's
       * environment variables, matching the syntax of Docker links.
       * Optional: Defaults to true.
       * +optional
       * 
* * optional bool enableServiceLinks = 30; */ public Builder setEnableServiceLinks(boolean value) { bitField0_ |= 0x40000000; enableServiceLinks_ = value; onChanged(); return this; } /** * * *
       * EnableServiceLinks indicates whether information about services should be injected into pod's
       * environment variables, matching the syntax of Docker links.
       * Optional: Defaults to true.
       * +optional
       * 
* * optional bool enableServiceLinks = 30; */ public Builder clearEnableServiceLinks() { bitField0_ = (bitField0_ & ~0x40000000); enableServiceLinks_ = false; onChanged(); return this; } private java.lang.Object preemptionPolicy_ = ""; /** * * *
       * PreemptionPolicy is the Policy for preempting pods with lower priority.
       * One of Never, PreemptLowerPriority.
       * Defaults to PreemptLowerPriority if unset.
       * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       * +optional
       * 
* * optional string preemptionPolicy = 31; */ public boolean hasPreemptionPolicy() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * * *
       * PreemptionPolicy is the Policy for preempting pods with lower priority.
       * One of Never, PreemptLowerPriority.
       * Defaults to PreemptLowerPriority if unset.
       * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       * +optional
       * 
* * optional string preemptionPolicy = 31; */ public java.lang.String getPreemptionPolicy() { java.lang.Object ref = preemptionPolicy_; 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()) { preemptionPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * PreemptionPolicy is the Policy for preempting pods with lower priority.
       * One of Never, PreemptLowerPriority.
       * Defaults to PreemptLowerPriority if unset.
       * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       * +optional
       * 
* * optional string preemptionPolicy = 31; */ public com.google.protobuf.ByteString getPreemptionPolicyBytes() { java.lang.Object ref = preemptionPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); preemptionPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * PreemptionPolicy is the Policy for preempting pods with lower priority.
       * One of Never, PreemptLowerPriority.
       * Defaults to PreemptLowerPriority if unset.
       * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       * +optional
       * 
* * optional string preemptionPolicy = 31; */ public Builder setPreemptionPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x80000000; preemptionPolicy_ = value; onChanged(); return this; } /** * * *
       * PreemptionPolicy is the Policy for preempting pods with lower priority.
       * One of Never, PreemptLowerPriority.
       * Defaults to PreemptLowerPriority if unset.
       * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       * +optional
       * 
* * optional string preemptionPolicy = 31; */ public Builder clearPreemptionPolicy() { bitField0_ = (bitField0_ & ~0x80000000); preemptionPolicy_ = getDefaultInstance().getPreemptionPolicy(); onChanged(); return this; } /** * * *
       * PreemptionPolicy is the Policy for preempting pods with lower priority.
       * One of Never, PreemptLowerPriority.
       * Defaults to PreemptLowerPriority if unset.
       * This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       * +optional
       * 
* * optional string preemptionPolicy = 31; */ public Builder setPreemptionPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x80000000; preemptionPolicy_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> overhead_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetOverhead() { if (overhead_ == null) { return com.google.protobuf.MapField.emptyMapField( OverheadDefaultEntryHolder.defaultEntry); } return overhead_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableOverhead() { onChanged(); ; if (overhead_ == null) { overhead_ = com.google.protobuf.MapField.newMapField(OverheadDefaultEntryHolder.defaultEntry); } if (!overhead_.isMutable()) { overhead_ = overhead_.copy(); } return overhead_; } public int getOverheadCount() { return internalGetOverhead().getMap().size(); } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public boolean containsOverhead(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOverhead().getMap().containsKey(key); } /** Use {@link #getOverheadMap()} instead. */ @java.lang.Deprecated public java.util.Map getOverhead() { return getOverheadMap(); } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public java.util.Map getOverheadMap() { return internalGetOverhead().getMap(); } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public io.kubernetes.client.proto.Resource.Quantity getOverheadOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOverhead().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public io.kubernetes.client.proto.Resource.Quantity getOverheadOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOverhead().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOverhead() { internalGetMutableOverhead().getMutableMap().clear(); return this; } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public Builder removeOverhead(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableOverhead().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableOverhead() { return internalGetMutableOverhead().getMutableMap(); } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public Builder putOverhead( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableOverhead().getMutableMap().put(key, value); return this; } /** * * *
       * Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
       * This field will be autopopulated at admission time by the RuntimeClass admission controller. If
       * the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
       * The RuntimeClass admission controller will reject Pod create requests which have the overhead already
       * set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
       * defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
       * More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
       * This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> overhead = 32; * */ public Builder putAllOverhead( java.util.Map values) { internalGetMutableOverhead().getMutableMap().putAll(values); return this; } private java.util.List topologySpreadConstraints_ = java.util.Collections.emptyList(); private void ensureTopologySpreadConstraintsIsMutable() { if (!((bitField1_ & 0x00000002) == 0x00000002)) { topologySpreadConstraints_ = new java.util.ArrayList( topologySpreadConstraints_); bitField1_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySpreadConstraint, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder, io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder> topologySpreadConstraintsBuilder_; /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public java.util.List getTopologySpreadConstraintsList() { if (topologySpreadConstraintsBuilder_ == null) { return java.util.Collections.unmodifiableList(topologySpreadConstraints_); } else { return topologySpreadConstraintsBuilder_.getMessageList(); } } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public int getTopologySpreadConstraintsCount() { if (topologySpreadConstraintsBuilder_ == null) { return topologySpreadConstraints_.size(); } else { return topologySpreadConstraintsBuilder_.getCount(); } } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraint getTopologySpreadConstraints( int index) { if (topologySpreadConstraintsBuilder_ == null) { return topologySpreadConstraints_.get(index); } else { return topologySpreadConstraintsBuilder_.getMessage(index); } } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder setTopologySpreadConstraints( int index, io.kubernetes.client.proto.V1.TopologySpreadConstraint value) { if (topologySpreadConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.set(index, value); onChanged(); } else { topologySpreadConstraintsBuilder_.setMessage(index, value); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder setTopologySpreadConstraints( int index, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder builderForValue) { if (topologySpreadConstraintsBuilder_ == null) { ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.set(index, builderForValue.build()); onChanged(); } else { topologySpreadConstraintsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder addTopologySpreadConstraints( io.kubernetes.client.proto.V1.TopologySpreadConstraint value) { if (topologySpreadConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.add(value); onChanged(); } else { topologySpreadConstraintsBuilder_.addMessage(value); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder addTopologySpreadConstraints( int index, io.kubernetes.client.proto.V1.TopologySpreadConstraint value) { if (topologySpreadConstraintsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.add(index, value); onChanged(); } else { topologySpreadConstraintsBuilder_.addMessage(index, value); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder addTopologySpreadConstraints( io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder builderForValue) { if (topologySpreadConstraintsBuilder_ == null) { ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.add(builderForValue.build()); onChanged(); } else { topologySpreadConstraintsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder addTopologySpreadConstraints( int index, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder builderForValue) { if (topologySpreadConstraintsBuilder_ == null) { ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.add(index, builderForValue.build()); onChanged(); } else { topologySpreadConstraintsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder addAllTopologySpreadConstraints( java.lang.Iterable values) { if (topologySpreadConstraintsBuilder_ == null) { ensureTopologySpreadConstraintsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topologySpreadConstraints_); onChanged(); } else { topologySpreadConstraintsBuilder_.addAllMessages(values); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder clearTopologySpreadConstraints() { if (topologySpreadConstraintsBuilder_ == null) { topologySpreadConstraints_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000002); onChanged(); } else { topologySpreadConstraintsBuilder_.clear(); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public Builder removeTopologySpreadConstraints(int index) { if (topologySpreadConstraintsBuilder_ == null) { ensureTopologySpreadConstraintsIsMutable(); topologySpreadConstraints_.remove(index); onChanged(); } else { topologySpreadConstraintsBuilder_.remove(index); } return this; } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder getTopologySpreadConstraintsBuilder(int index) { return getTopologySpreadConstraintsFieldBuilder().getBuilder(index); } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder getTopologySpreadConstraintsOrBuilder(int index) { if (topologySpreadConstraintsBuilder_ == null) { return topologySpreadConstraints_.get(index); } else { return topologySpreadConstraintsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder> getTopologySpreadConstraintsOrBuilderList() { if (topologySpreadConstraintsBuilder_ != null) { return topologySpreadConstraintsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topologySpreadConstraints_); } } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder addTopologySpreadConstraintsBuilder() { return getTopologySpreadConstraintsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1.TopologySpreadConstraint.getDefaultInstance()); } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder addTopologySpreadConstraintsBuilder(int index) { return getTopologySpreadConstraintsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.TopologySpreadConstraint.getDefaultInstance()); } /** * * *
       * TopologySpreadConstraints describes how a group of pods ought to spread across topology
       * domains. Scheduler will schedule pods in a way which abides by the constraints.
       * All topologySpreadConstraints are ANDed.
       * +optional
       * +patchMergeKey=topologyKey
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=topologyKey
       * +listMapKey=whenUnsatisfiable
       * 
* * repeated .k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 33; * */ public java.util.List getTopologySpreadConstraintsBuilderList() { return getTopologySpreadConstraintsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySpreadConstraint, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder, io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder> getTopologySpreadConstraintsFieldBuilder() { if (topologySpreadConstraintsBuilder_ == null) { topologySpreadConstraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySpreadConstraint, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder, io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder>( topologySpreadConstraints_, ((bitField1_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); topologySpreadConstraints_ = null; } return topologySpreadConstraintsBuilder_; } private boolean setHostnameAsFQDN_; /** * * *
       * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
       * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
       * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
       * If a pod does not have FQDN, this has no effect.
       * Default to false.
       * +optional
       * 
* * optional bool setHostnameAsFQDN = 35; */ public boolean hasSetHostnameAsFQDN() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * * *
       * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
       * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
       * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
       * If a pod does not have FQDN, this has no effect.
       * Default to false.
       * +optional
       * 
* * optional bool setHostnameAsFQDN = 35; */ public boolean getSetHostnameAsFQDN() { return setHostnameAsFQDN_; } /** * * *
       * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
       * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
       * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
       * If a pod does not have FQDN, this has no effect.
       * Default to false.
       * +optional
       * 
* * optional bool setHostnameAsFQDN = 35; */ public Builder setSetHostnameAsFQDN(boolean value) { bitField1_ |= 0x00000004; setHostnameAsFQDN_ = value; onChanged(); return this; } /** * * *
       * If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
       * In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
       * In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
       * If a pod does not have FQDN, this has no effect.
       * Default to false.
       * +optional
       * 
* * optional bool setHostnameAsFQDN = 35; */ public Builder clearSetHostnameAsFQDN() { bitField1_ = (bitField1_ & ~0x00000004); setHostnameAsFQDN_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.PodOS os_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodOS, io.kubernetes.client.proto.V1.PodOS.Builder, io.kubernetes.client.proto.V1.PodOSOrBuilder> osBuilder_; /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public boolean hasOs() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public io.kubernetes.client.proto.V1.PodOS getOs() { if (osBuilder_ == null) { return os_ == null ? io.kubernetes.client.proto.V1.PodOS.getDefaultInstance() : os_; } else { return osBuilder_.getMessage(); } } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public Builder setOs(io.kubernetes.client.proto.V1.PodOS value) { if (osBuilder_ == null) { if (value == null) { throw new NullPointerException(); } os_ = value; onChanged(); } else { osBuilder_.setMessage(value); } bitField1_ |= 0x00000008; return this; } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public Builder setOs(io.kubernetes.client.proto.V1.PodOS.Builder builderForValue) { if (osBuilder_ == null) { os_ = builderForValue.build(); onChanged(); } else { osBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000008; return this; } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public Builder mergeOs(io.kubernetes.client.proto.V1.PodOS value) { if (osBuilder_ == null) { if (((bitField1_ & 0x00000008) == 0x00000008) && os_ != null && os_ != io.kubernetes.client.proto.V1.PodOS.getDefaultInstance()) { os_ = io.kubernetes.client.proto.V1.PodOS.newBuilder(os_).mergeFrom(value).buildPartial(); } else { os_ = value; } onChanged(); } else { osBuilder_.mergeFrom(value); } bitField1_ |= 0x00000008; return this; } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public Builder clearOs() { if (osBuilder_ == null) { os_ = null; onChanged(); } else { osBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000008); return this; } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public io.kubernetes.client.proto.V1.PodOS.Builder getOsBuilder() { bitField1_ |= 0x00000008; onChanged(); return getOsFieldBuilder().getBuilder(); } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ public io.kubernetes.client.proto.V1.PodOSOrBuilder getOsOrBuilder() { if (osBuilder_ != null) { return osBuilder_.getMessageOrBuilder(); } else { return os_ == null ? io.kubernetes.client.proto.V1.PodOS.getDefaultInstance() : os_; } } /** * * *
       * Specifies the OS of the containers in the pod.
       * Some pod and container fields are restricted if this is set.
       * If the OS field is set to linux, the following fields must be unset:
       * -securityContext.windowsOptions
       * If the OS field is set to windows, following fields must be unset:
       * - spec.hostPID
       * - spec.hostIPC
       * - spec.securityContext.seLinuxOptions
       * - spec.securityContext.seccompProfile
       * - spec.securityContext.fsGroup
       * - spec.securityContext.fsGroupChangePolicy
       * - spec.securityContext.sysctls
       * - spec.shareProcessNamespace
       * - spec.securityContext.runAsUser
       * - spec.securityContext.runAsGroup
       * - spec.securityContext.supplementalGroups
       * - spec.containers[*].securityContext.seLinuxOptions
       * - spec.containers[*].securityContext.seccompProfile
       * - spec.containers[*].securityContext.capabilities
       * - spec.containers[*].securityContext.readOnlyRootFilesystem
       * - spec.containers[*].securityContext.privileged
       * - spec.containers[*].securityContext.allowPrivilegeEscalation
       * - spec.containers[*].securityContext.procMount
       * - spec.containers[*].securityContext.runAsUser
       * - spec.containers[*].securityContext.runAsGroup
       * +optional
       * This is an alpha field and requires the IdentifyPodOS feature
       * 
* * optional .k8s.io.api.core.v1.PodOS os = 36; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodOS, io.kubernetes.client.proto.V1.PodOS.Builder, io.kubernetes.client.proto.V1.PodOSOrBuilder> getOsFieldBuilder() { if (osBuilder_ == null) { osBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodOS, io.kubernetes.client.proto.V1.PodOS.Builder, io.kubernetes.client.proto.V1.PodOSOrBuilder>( getOs(), getParentForChildren(), isClean()); os_ = null; } return osBuilder_; } @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.core.v1.PodSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodSpec) private static final io.kubernetes.client.proto.V1.PodSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodSpec(); } public static io.kubernetes.client.proto.V1.PodSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodSpec(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.V1.PodSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
     * The conditions array, the reason and message fields, and the individual container status
     * arrays contain more detail about the pod's status.
     * There are five possible phase values:
     * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
     * container images has not been created. This includes time before being scheduled as
     * well as time spent downloading images over the network, which could take a while.
     * Running: The pod has been bound to a node, and all of the containers have been created.
     * At least one container is still running, or is in the process of starting or restarting.
     * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
     * Failed: All containers in the pod have terminated, and at least one container has
     * terminated in failure. The container either exited with non-zero status or was terminated
     * by the system.
     * Unknown: For some reason the state of the pod could not be obtained, typically due to an
     * error in communicating with the host of the pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
     * +optional
     * 
* * optional string phase = 1; */ boolean hasPhase(); /** * * *
     * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
     * The conditions array, the reason and message fields, and the individual container status
     * arrays contain more detail about the pod's status.
     * There are five possible phase values:
     * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
     * container images has not been created. This includes time before being scheduled as
     * well as time spent downloading images over the network, which could take a while.
     * Running: The pod has been bound to a node, and all of the containers have been created.
     * At least one container is still running, or is in the process of starting or restarting.
     * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
     * Failed: All containers in the pod have terminated, and at least one container has
     * terminated in failure. The container either exited with non-zero status or was terminated
     * by the system.
     * Unknown: For some reason the state of the pod could not be obtained, typically due to an
     * error in communicating with the host of the pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
     * +optional
     * 
* * optional string phase = 1; */ java.lang.String getPhase(); /** * * *
     * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
     * The conditions array, the reason and message fields, and the individual container status
     * arrays contain more detail about the pod's status.
     * There are five possible phase values:
     * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
     * container images has not been created. This includes time before being scheduled as
     * well as time spent downloading images over the network, which could take a while.
     * Running: The pod has been bound to a node, and all of the containers have been created.
     * At least one container is still running, or is in the process of starting or restarting.
     * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
     * Failed: All containers in the pod have terminated, and at least one container has
     * terminated in failure. The container either exited with non-zero status or was terminated
     * by the system.
     * Unknown: For some reason the state of the pod could not be obtained, typically due to an
     * error in communicating with the host of the pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
     * +optional
     * 
* * optional string phase = 1; */ com.google.protobuf.ByteString getPhaseBytes(); /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ java.util.List getConditionsList(); /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ io.kubernetes.client.proto.V1.PodCondition getConditions(int index); /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ int getConditionsCount(); /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ io.kubernetes.client.proto.V1.PodConditionOrBuilder getConditionsOrBuilder(int index); /** * * *
     * A human readable message indicating details about why the pod is in this condition.
     * +optional
     * 
* * optional string message = 3; */ boolean hasMessage(); /** * * *
     * A human readable message indicating details about why the pod is in this condition.
     * +optional
     * 
* * optional string message = 3; */ java.lang.String getMessage(); /** * * *
     * A human readable message indicating details about why the pod is in this condition.
     * +optional
     * 
* * optional string message = 3; */ com.google.protobuf.ByteString getMessageBytes(); /** * * *
     * A brief CamelCase message indicating details about why the pod is in this state.
     * e.g. 'Evicted'
     * +optional
     * 
* * optional string reason = 4; */ boolean hasReason(); /** * * *
     * A brief CamelCase message indicating details about why the pod is in this state.
     * e.g. 'Evicted'
     * +optional
     * 
* * optional string reason = 4; */ java.lang.String getReason(); /** * * *
     * A brief CamelCase message indicating details about why the pod is in this state.
     * e.g. 'Evicted'
     * +optional
     * 
* * optional string reason = 4; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
     * scheduled right away as preemption victims receive their graceful termination periods.
     * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
     * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
     * give the resources on this node to a higher priority pod that is created after preemption.
     * As a result, this field may be different than PodSpec.nodeName when the pod is
     * scheduled.
     * +optional
     * 
* * optional string nominatedNodeName = 11; */ boolean hasNominatedNodeName(); /** * * *
     * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
     * scheduled right away as preemption victims receive their graceful termination periods.
     * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
     * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
     * give the resources on this node to a higher priority pod that is created after preemption.
     * As a result, this field may be different than PodSpec.nodeName when the pod is
     * scheduled.
     * +optional
     * 
* * optional string nominatedNodeName = 11; */ java.lang.String getNominatedNodeName(); /** * * *
     * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
     * scheduled right away as preemption victims receive their graceful termination periods.
     * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
     * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
     * give the resources on this node to a higher priority pod that is created after preemption.
     * As a result, this field may be different than PodSpec.nodeName when the pod is
     * scheduled.
     * +optional
     * 
* * optional string nominatedNodeName = 11; */ com.google.protobuf.ByteString getNominatedNodeNameBytes(); /** * * *
     * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
     * +optional
     * 
* * optional string hostIP = 5; */ boolean hasHostIP(); /** * * *
     * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
     * +optional
     * 
* * optional string hostIP = 5; */ java.lang.String getHostIP(); /** * * *
     * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
     * +optional
     * 
* * optional string hostIP = 5; */ com.google.protobuf.ByteString getHostIPBytes(); /** * * *
     * IP address allocated to the pod. Routable at least within the cluster.
     * Empty if not yet allocated.
     * +optional
     * 
* * optional string podIP = 6; */ boolean hasPodIP(); /** * * *
     * IP address allocated to the pod. Routable at least within the cluster.
     * Empty if not yet allocated.
     * +optional
     * 
* * optional string podIP = 6; */ java.lang.String getPodIP(); /** * * *
     * IP address allocated to the pod. Routable at least within the cluster.
     * Empty if not yet allocated.
     * +optional
     * 
* * optional string podIP = 6; */ com.google.protobuf.ByteString getPodIPBytes(); /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ java.util.List getPodIPsList(); /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ io.kubernetes.client.proto.V1.PodIP getPodIPs(int index); /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ int getPodIPsCount(); /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ java.util.List getPodIPsOrBuilderList(); /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ io.kubernetes.client.proto.V1.PodIPOrBuilder getPodIPsOrBuilder(int index); /** * * *
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
     * This is before the Kubelet pulled the container image(s) for the pod.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ boolean hasStartTime(); /** * * *
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
     * This is before the Kubelet pulled the container image(s) for the pod.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ io.kubernetes.client.proto.Meta.Time getStartTime(); /** * * *
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
     * This is before the Kubelet pulled the container image(s) for the pod.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getStartTimeOrBuilder(); /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ java.util.List getInitContainerStatusesList(); /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ io.kubernetes.client.proto.V1.ContainerStatus getInitContainerStatuses(int index); /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ int getInitContainerStatusesCount(); /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ java.util.List getInitContainerStatusesOrBuilderList(); /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getInitContainerStatusesOrBuilder( int index); /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ java.util.List getContainerStatusesList(); /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ io.kubernetes.client.proto.V1.ContainerStatus getContainerStatuses(int index); /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ int getContainerStatusesCount(); /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ java.util.List getContainerStatusesOrBuilderList(); /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getContainerStatusesOrBuilder(int index); /** * * *
     * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
     * See PodQOSClass type for available QOS classes
     * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
     * +optional
     * 
* * optional string qosClass = 9; */ boolean hasQosClass(); /** * * *
     * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
     * See PodQOSClass type for available QOS classes
     * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
     * +optional
     * 
* * optional string qosClass = 9; */ java.lang.String getQosClass(); /** * * *
     * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
     * See PodQOSClass type for available QOS classes
     * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
     * +optional
     * 
* * optional string qosClass = 9; */ com.google.protobuf.ByteString getQosClassBytes(); /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ java.util.List getEphemeralContainerStatusesList(); /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ io.kubernetes.client.proto.V1.ContainerStatus getEphemeralContainerStatuses(int index); /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ int getEphemeralContainerStatusesCount(); /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ java.util.List getEphemeralContainerStatusesOrBuilderList(); /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getEphemeralContainerStatusesOrBuilder( int index); } /** * * *
   * PodStatus represents information about the status of a pod. Status may trail the actual
   * state of a system, especially if the node that hosts the pod cannot contact the control
   * plane.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodStatus} */ public static final class PodStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodStatus) PodStatusOrBuilder { private static final long serialVersionUID = 0L; // Use PodStatus.newBuilder() to construct. private PodStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodStatus() { phase_ = ""; conditions_ = java.util.Collections.emptyList(); message_ = ""; reason_ = ""; nominatedNodeName_ = ""; hostIP_ = ""; podIP_ = ""; podIPs_ = java.util.Collections.emptyList(); initContainerStatuses_ = java.util.Collections.emptyList(); containerStatuses_ = java.util.Collections.emptyList(); qosClass_ = ""; ephemeralContainerStatuses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodStatus( 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; phase_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1.PodCondition.PARSER, extensionRegistry)); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; message_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; reason_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; hostIP_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; podIP_ = bs; break; } case 58: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = startTime_.toBuilder(); } startTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startTime_); startTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { containerStatuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } containerStatuses_.add( input.readMessage( io.kubernetes.client.proto.V1.ContainerStatus.PARSER, extensionRegistry)); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; qosClass_ = bs; break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { initContainerStatuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } initContainerStatuses_.add( input.readMessage( io.kubernetes.client.proto.V1.ContainerStatus.PARSER, extensionRegistry)); break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; nominatedNodeName_ = bs; break; } case 98: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { podIPs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000080; } podIPs_.add( input.readMessage( io.kubernetes.client.proto.V1.PodIP.PARSER, extensionRegistry)); break; } case 106: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { ephemeralContainerStatuses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } ephemeralContainerStatuses_.add( input.readMessage( io.kubernetes.client.proto.V1.ContainerStatus.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)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { containerStatuses_ = java.util.Collections.unmodifiableList(containerStatuses_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { initContainerStatuses_ = java.util.Collections.unmodifiableList(initContainerStatuses_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { podIPs_ = java.util.Collections.unmodifiableList(podIPs_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { ephemeralContainerStatuses_ = java.util.Collections.unmodifiableList(ephemeralContainerStatuses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodStatus.class, io.kubernetes.client.proto.V1.PodStatus.Builder.class); } private int bitField0_; public static final int PHASE_FIELD_NUMBER = 1; private volatile java.lang.Object phase_; /** * * *
     * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
     * The conditions array, the reason and message fields, and the individual container status
     * arrays contain more detail about the pod's status.
     * There are five possible phase values:
     * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
     * container images has not been created. This includes time before being scheduled as
     * well as time spent downloading images over the network, which could take a while.
     * Running: The pod has been bound to a node, and all of the containers have been created.
     * At least one container is still running, or is in the process of starting or restarting.
     * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
     * Failed: All containers in the pod have terminated, and at least one container has
     * terminated in failure. The container either exited with non-zero status or was terminated
     * by the system.
     * Unknown: For some reason the state of the pod could not be obtained, typically due to an
     * error in communicating with the host of the pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
     * +optional
     * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
     * The conditions array, the reason and message fields, and the individual container status
     * arrays contain more detail about the pod's status.
     * There are five possible phase values:
     * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
     * container images has not been created. This includes time before being scheduled as
     * well as time spent downloading images over the network, which could take a while.
     * Running: The pod has been bound to a node, and all of the containers have been created.
     * At least one container is still running, or is in the process of starting or restarting.
     * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
     * Failed: All containers in the pod have terminated, and at least one container has
     * terminated in failure. The container either exited with non-zero status or was terminated
     * by the system.
     * Unknown: For some reason the state of the pod could not be obtained, typically due to an
     * error in communicating with the host of the pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
     * +optional
     * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } } /** * * *
     * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
     * The conditions array, the reason and message fields, and the individual container status
     * arrays contain more detail about the pod's status.
     * There are five possible phase values:
     * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
     * container images has not been created. This includes time before being scheduled as
     * well as time spent downloading images over the network, which could take a while.
     * Running: The pod has been bound to a node, and all of the containers have been created.
     * At least one container is still running, or is in the process of starting or restarting.
     * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
     * Failed: All containers in the pod have terminated, and at least one container has
     * terminated in failure. The container either exited with non-zero status or was terminated
     * by the system.
     * Unknown: For some reason the state of the pod could not be obtained, typically due to an
     * error in communicating with the host of the pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
     * +optional
     * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONDITIONS_FIELD_NUMBER = 2; private java.util.List conditions_; /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Current service state of pod.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** * * *
     * A human readable message indicating details about why the pod is in this condition.
     * +optional
     * 
* * optional string message = 3; */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * A human readable message indicating details about why the pod is in this condition.
     * +optional
     * 
* * optional string message = 3; */ 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; } } /** * * *
     * A human readable message indicating details about why the pod is in this condition.
     * +optional
     * 
* * optional string message = 3; */ 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; } } public static final int REASON_FIELD_NUMBER = 4; private volatile java.lang.Object reason_; /** * * *
     * A brief CamelCase message indicating details about why the pod is in this state.
     * e.g. 'Evicted'
     * +optional
     * 
* * optional string reason = 4; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * A brief CamelCase message indicating details about why the pod is in this state.
     * e.g. 'Evicted'
     * +optional
     * 
* * optional string reason = 4; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * A brief CamelCase message indicating details about why the pod is in this state.
     * e.g. 'Evicted'
     * +optional
     * 
* * optional string reason = 4; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NOMINATEDNODENAME_FIELD_NUMBER = 11; private volatile java.lang.Object nominatedNodeName_; /** * * *
     * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
     * scheduled right away as preemption victims receive their graceful termination periods.
     * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
     * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
     * give the resources on this node to a higher priority pod that is created after preemption.
     * As a result, this field may be different than PodSpec.nodeName when the pod is
     * scheduled.
     * +optional
     * 
* * optional string nominatedNodeName = 11; */ public boolean hasNominatedNodeName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
     * scheduled right away as preemption victims receive their graceful termination periods.
     * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
     * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
     * give the resources on this node to a higher priority pod that is created after preemption.
     * As a result, this field may be different than PodSpec.nodeName when the pod is
     * scheduled.
     * +optional
     * 
* * optional string nominatedNodeName = 11; */ public java.lang.String getNominatedNodeName() { java.lang.Object ref = nominatedNodeName_; 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()) { nominatedNodeName_ = s; } return s; } } /** * * *
     * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
     * scheduled right away as preemption victims receive their graceful termination periods.
     * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
     * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
     * give the resources on this node to a higher priority pod that is created after preemption.
     * As a result, this field may be different than PodSpec.nodeName when the pod is
     * scheduled.
     * +optional
     * 
* * optional string nominatedNodeName = 11; */ public com.google.protobuf.ByteString getNominatedNodeNameBytes() { java.lang.Object ref = nominatedNodeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nominatedNodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTIP_FIELD_NUMBER = 5; private volatile java.lang.Object hostIP_; /** * * *
     * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
     * +optional
     * 
* * optional string hostIP = 5; */ public boolean hasHostIP() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
     * +optional
     * 
* * optional string hostIP = 5; */ public java.lang.String getHostIP() { java.lang.Object ref = hostIP_; 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()) { hostIP_ = s; } return s; } } /** * * *
     * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
     * +optional
     * 
* * optional string hostIP = 5; */ public com.google.protobuf.ByteString getHostIPBytes() { java.lang.Object ref = hostIP_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PODIP_FIELD_NUMBER = 6; private volatile java.lang.Object podIP_; /** * * *
     * IP address allocated to the pod. Routable at least within the cluster.
     * Empty if not yet allocated.
     * +optional
     * 
* * optional string podIP = 6; */ public boolean hasPodIP() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * IP address allocated to the pod. Routable at least within the cluster.
     * Empty if not yet allocated.
     * +optional
     * 
* * optional string podIP = 6; */ public java.lang.String getPodIP() { java.lang.Object ref = podIP_; 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()) { podIP_ = s; } return s; } } /** * * *
     * IP address allocated to the pod. Routable at least within the cluster.
     * Empty if not yet allocated.
     * +optional
     * 
* * optional string podIP = 6; */ public com.google.protobuf.ByteString getPodIPBytes() { java.lang.Object ref = podIP_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); podIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PODIPS_FIELD_NUMBER = 12; private java.util.List podIPs_; /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public java.util.List getPodIPsList() { return podIPs_; } /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public java.util.List getPodIPsOrBuilderList() { return podIPs_; } /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public int getPodIPsCount() { return podIPs_.size(); } /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIP getPodIPs(int index) { return podIPs_.get(index); } /** * * *
     * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
     * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
     * is empty if no IPs have been allocated yet.
     * +optional
     * +patchStrategy=merge
     * +patchMergeKey=ip
     * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIPOrBuilder getPodIPsOrBuilder(int index) { return podIPs_.get(index); } public static final int STARTTIME_FIELD_NUMBER = 7; private io.kubernetes.client.proto.Meta.Time startTime_; /** * * *
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
     * This is before the Kubelet pulled the container image(s) for the pod.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public boolean hasStartTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
     * This is before the Kubelet pulled the container image(s) for the pod.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public io.kubernetes.client.proto.Meta.Time getStartTime() { return startTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startTime_; } /** * * *
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
     * This is before the Kubelet pulled the container image(s) for the pod.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startTime_; } public static final int INITCONTAINERSTATUSES_FIELD_NUMBER = 10; private java.util.List initContainerStatuses_; /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public java.util.List getInitContainerStatusesList() { return initContainerStatuses_; } /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public java.util.List getInitContainerStatusesOrBuilderList() { return initContainerStatuses_; } /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public int getInitContainerStatusesCount() { return initContainerStatuses_.size(); } /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatus getInitContainerStatuses(int index) { return initContainerStatuses_.get(index); } /** * * *
     * The list has one entry per init container in the manifest. The most recent successful
     * init container will have ready = true, the most recently started container will have
     * startTime set.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getInitContainerStatusesOrBuilder( int index) { return initContainerStatuses_.get(index); } public static final int CONTAINERSTATUSES_FIELD_NUMBER = 8; private java.util.List containerStatuses_; /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public java.util.List getContainerStatusesList() { return containerStatuses_; } /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public java.util.List getContainerStatusesOrBuilderList() { return containerStatuses_; } /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public int getContainerStatusesCount() { return containerStatuses_.size(); } /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatus getContainerStatuses(int index) { return containerStatuses_.get(index); } /** * * *
     * The list has one entry per container in the manifest. Each entry is currently the output
     * of `docker inspect`.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getContainerStatusesOrBuilder( int index) { return containerStatuses_.get(index); } public static final int QOSCLASS_FIELD_NUMBER = 9; private volatile java.lang.Object qosClass_; /** * * *
     * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
     * See PodQOSClass type for available QOS classes
     * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
     * +optional
     * 
* * optional string qosClass = 9; */ public boolean hasQosClass() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
     * See PodQOSClass type for available QOS classes
     * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
     * +optional
     * 
* * optional string qosClass = 9; */ public java.lang.String getQosClass() { java.lang.Object ref = qosClass_; 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()) { qosClass_ = s; } return s; } } /** * * *
     * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
     * See PodQOSClass type for available QOS classes
     * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
     * +optional
     * 
* * optional string qosClass = 9; */ public com.google.protobuf.ByteString getQosClassBytes() { java.lang.Object ref = qosClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); qosClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EPHEMERALCONTAINERSTATUSES_FIELD_NUMBER = 13; private java.util.List ephemeralContainerStatuses_; /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public java.util.List getEphemeralContainerStatusesList() { return ephemeralContainerStatuses_; } /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public java.util.List getEphemeralContainerStatusesOrBuilderList() { return ephemeralContainerStatuses_; } /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public int getEphemeralContainerStatusesCount() { return ephemeralContainerStatuses_.size(); } /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatus getEphemeralContainerStatuses(int index) { return ephemeralContainerStatuses_.get(index); } /** * * *
     * Status for any ephemeral containers that have run in this pod.
     * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getEphemeralContainerStatusesOrBuilder(int index) { return ephemeralContainerStatuses_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phase_); } for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(2, conditions_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostIP_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, podIP_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getStartTime()); } for (int i = 0; i < containerStatuses_.size(); i++) { output.writeMessage(8, containerStatuses_.get(i)); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, qosClass_); } for (int i = 0; i < initContainerStatuses_.size(); i++) { output.writeMessage(10, initContainerStatuses_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, nominatedNodeName_); } for (int i = 0; i < podIPs_.size(); i++) { output.writeMessage(12, podIPs_.get(i)); } for (int i = 0; i < ephemeralContainerStatuses_.size(); i++) { output.writeMessage(13, ephemeralContainerStatuses_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, phase_); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, conditions_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostIP_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, podIP_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); } for (int i = 0; i < containerStatuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, containerStatuses_.get(i)); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, qosClass_); } for (int i = 0; i < initContainerStatuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, initContainerStatuses_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, nominatedNodeName_); } for (int i = 0; i < podIPs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, podIPs_.get(i)); } for (int i = 0; i < ephemeralContainerStatuses_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 13, ephemeralContainerStatuses_.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.V1.PodStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodStatus other = (io.kubernetes.client.proto.V1.PodStatus) obj; boolean result = true; result = result && (hasPhase() == other.hasPhase()); if (hasPhase()) { result = result && getPhase().equals(other.getPhase()); } result = result && getConditionsList().equals(other.getConditionsList()); result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasNominatedNodeName() == other.hasNominatedNodeName()); if (hasNominatedNodeName()) { result = result && getNominatedNodeName().equals(other.getNominatedNodeName()); } result = result && (hasHostIP() == other.hasHostIP()); if (hasHostIP()) { result = result && getHostIP().equals(other.getHostIP()); } result = result && (hasPodIP() == other.hasPodIP()); if (hasPodIP()) { result = result && getPodIP().equals(other.getPodIP()); } result = result && getPodIPsList().equals(other.getPodIPsList()); result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime().equals(other.getStartTime()); } result = result && getInitContainerStatusesList().equals(other.getInitContainerStatusesList()); result = result && getContainerStatusesList().equals(other.getContainerStatusesList()); result = result && (hasQosClass() == other.hasQosClass()); if (hasQosClass()) { result = result && getQosClass().equals(other.getQosClass()); } result = result && getEphemeralContainerStatusesList() .equals(other.getEphemeralContainerStatusesList()); 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 (hasPhase()) { hash = (37 * hash) + PHASE_FIELD_NUMBER; hash = (53 * hash) + getPhase().hashCode(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasNominatedNodeName()) { hash = (37 * hash) + NOMINATEDNODENAME_FIELD_NUMBER; hash = (53 * hash) + getNominatedNodeName().hashCode(); } if (hasHostIP()) { hash = (37 * hash) + HOSTIP_FIELD_NUMBER; hash = (53 * hash) + getHostIP().hashCode(); } if (hasPodIP()) { hash = (37 * hash) + PODIP_FIELD_NUMBER; hash = (53 * hash) + getPodIP().hashCode(); } if (getPodIPsCount() > 0) { hash = (37 * hash) + PODIPS_FIELD_NUMBER; hash = (53 * hash) + getPodIPsList().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + STARTTIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (getInitContainerStatusesCount() > 0) { hash = (37 * hash) + INITCONTAINERSTATUSES_FIELD_NUMBER; hash = (53 * hash) + getInitContainerStatusesList().hashCode(); } if (getContainerStatusesCount() > 0) { hash = (37 * hash) + CONTAINERSTATUSES_FIELD_NUMBER; hash = (53 * hash) + getContainerStatusesList().hashCode(); } if (hasQosClass()) { hash = (37 * hash) + QOSCLASS_FIELD_NUMBER; hash = (53 * hash) + getQosClass().hashCode(); } if (getEphemeralContainerStatusesCount() > 0) { hash = (37 * hash) + EPHEMERALCONTAINERSTATUSES_FIELD_NUMBER; hash = (53 * hash) + getEphemeralContainerStatusesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodStatus 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.V1.PodStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodStatus 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.V1.PodStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodStatus 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.V1.PodStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodStatus 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.V1.PodStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodStatus 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.V1.PodStatus 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; } /** * * *
     * PodStatus represents information about the status of a pod. Status may trail the actual
     * state of a system, especially if the node that hosts the pod cannot contact the control
     * plane.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodStatus) io.kubernetes.client.proto.V1.PodStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodStatus.class, io.kubernetes.client.proto.V1.PodStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); getPodIPsFieldBuilder(); getStartTimeFieldBuilder(); getInitContainerStatusesFieldBuilder(); getContainerStatusesFieldBuilder(); getEphemeralContainerStatusesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); phase_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { conditionsBuilder_.clear(); } message_ = ""; bitField0_ = (bitField0_ & ~0x00000004); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000008); nominatedNodeName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); hostIP_ = ""; bitField0_ = (bitField0_ & ~0x00000020); podIP_ = ""; bitField0_ = (bitField0_ & ~0x00000040); if (podIPsBuilder_ == null) { podIPs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { podIPsBuilder_.clear(); } if (startTimeBuilder_ == null) { startTime_ = null; } else { startTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (initContainerStatusesBuilder_ == null) { initContainerStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { initContainerStatusesBuilder_.clear(); } if (containerStatusesBuilder_ == null) { containerStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { containerStatusesBuilder_.clear(); } qosClass_ = ""; bitField0_ = (bitField0_ & ~0x00000800); if (ephemeralContainerStatusesBuilder_ == null) { ephemeralContainerStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); } else { ephemeralContainerStatusesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodStatus build() { io.kubernetes.client.proto.V1.PodStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodStatus buildPartial() { io.kubernetes.client.proto.V1.PodStatus result = new io.kubernetes.client.proto.V1.PodStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.phase_ = phase_; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000002); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.message_ = message_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.nominatedNodeName_ = nominatedNodeName_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.hostIP_ = hostIP_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.podIP_ = podIP_; if (podIPsBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { podIPs_ = java.util.Collections.unmodifiableList(podIPs_); bitField0_ = (bitField0_ & ~0x00000080); } result.podIPs_ = podIPs_; } else { result.podIPs_ = podIPsBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } if (initContainerStatusesBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { initContainerStatuses_ = java.util.Collections.unmodifiableList(initContainerStatuses_); bitField0_ = (bitField0_ & ~0x00000200); } result.initContainerStatuses_ = initContainerStatuses_; } else { result.initContainerStatuses_ = initContainerStatusesBuilder_.build(); } if (containerStatusesBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { containerStatuses_ = java.util.Collections.unmodifiableList(containerStatuses_); bitField0_ = (bitField0_ & ~0x00000400); } result.containerStatuses_ = containerStatuses_; } else { result.containerStatuses_ = containerStatusesBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000080; } result.qosClass_ = qosClass_; if (ephemeralContainerStatusesBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000)) { ephemeralContainerStatuses_ = java.util.Collections.unmodifiableList(ephemeralContainerStatuses_); bitField0_ = (bitField0_ & ~0x00001000); } result.ephemeralContainerStatuses_ = ephemeralContainerStatuses_; } else { result.ephemeralContainerStatuses_ = ephemeralContainerStatusesBuilder_.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.V1.PodStatus) { return mergeFrom((io.kubernetes.client.proto.V1.PodStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodStatus other) { if (other == io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance()) return this; if (other.hasPhase()) { bitField0_ |= 0x00000001; phase_ = other.phase_; onChanged(); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } if (other.hasMessage()) { bitField0_ |= 0x00000004; message_ = other.message_; onChanged(); } if (other.hasReason()) { bitField0_ |= 0x00000008; reason_ = other.reason_; onChanged(); } if (other.hasNominatedNodeName()) { bitField0_ |= 0x00000010; nominatedNodeName_ = other.nominatedNodeName_; onChanged(); } if (other.hasHostIP()) { bitField0_ |= 0x00000020; hostIP_ = other.hostIP_; onChanged(); } if (other.hasPodIP()) { bitField0_ |= 0x00000040; podIP_ = other.podIP_; onChanged(); } if (podIPsBuilder_ == null) { if (!other.podIPs_.isEmpty()) { if (podIPs_.isEmpty()) { podIPs_ = other.podIPs_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensurePodIPsIsMutable(); podIPs_.addAll(other.podIPs_); } onChanged(); } } else { if (!other.podIPs_.isEmpty()) { if (podIPsBuilder_.isEmpty()) { podIPsBuilder_.dispose(); podIPsBuilder_ = null; podIPs_ = other.podIPs_; bitField0_ = (bitField0_ & ~0x00000080); podIPsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPodIPsFieldBuilder() : null; } else { podIPsBuilder_.addAllMessages(other.podIPs_); } } } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (initContainerStatusesBuilder_ == null) { if (!other.initContainerStatuses_.isEmpty()) { if (initContainerStatuses_.isEmpty()) { initContainerStatuses_ = other.initContainerStatuses_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureInitContainerStatusesIsMutable(); initContainerStatuses_.addAll(other.initContainerStatuses_); } onChanged(); } } else { if (!other.initContainerStatuses_.isEmpty()) { if (initContainerStatusesBuilder_.isEmpty()) { initContainerStatusesBuilder_.dispose(); initContainerStatusesBuilder_ = null; initContainerStatuses_ = other.initContainerStatuses_; bitField0_ = (bitField0_ & ~0x00000200); initContainerStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInitContainerStatusesFieldBuilder() : null; } else { initContainerStatusesBuilder_.addAllMessages(other.initContainerStatuses_); } } } if (containerStatusesBuilder_ == null) { if (!other.containerStatuses_.isEmpty()) { if (containerStatuses_.isEmpty()) { containerStatuses_ = other.containerStatuses_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureContainerStatusesIsMutable(); containerStatuses_.addAll(other.containerStatuses_); } onChanged(); } } else { if (!other.containerStatuses_.isEmpty()) { if (containerStatusesBuilder_.isEmpty()) { containerStatusesBuilder_.dispose(); containerStatusesBuilder_ = null; containerStatuses_ = other.containerStatuses_; bitField0_ = (bitField0_ & ~0x00000400); containerStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContainerStatusesFieldBuilder() : null; } else { containerStatusesBuilder_.addAllMessages(other.containerStatuses_); } } } if (other.hasQosClass()) { bitField0_ |= 0x00000800; qosClass_ = other.qosClass_; onChanged(); } if (ephemeralContainerStatusesBuilder_ == null) { if (!other.ephemeralContainerStatuses_.isEmpty()) { if (ephemeralContainerStatuses_.isEmpty()) { ephemeralContainerStatuses_ = other.ephemeralContainerStatuses_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.addAll(other.ephemeralContainerStatuses_); } onChanged(); } } else { if (!other.ephemeralContainerStatuses_.isEmpty()) { if (ephemeralContainerStatusesBuilder_.isEmpty()) { ephemeralContainerStatusesBuilder_.dispose(); ephemeralContainerStatusesBuilder_ = null; ephemeralContainerStatuses_ = other.ephemeralContainerStatuses_; bitField0_ = (bitField0_ & ~0x00001000); ephemeralContainerStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEphemeralContainerStatusesFieldBuilder() : null; } else { ephemeralContainerStatusesBuilder_.addAllMessages(other.ephemeralContainerStatuses_); } } } 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.V1.PodStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object phase_ = ""; /** * * *
       * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
       * The conditions array, the reason and message fields, and the individual container status
       * arrays contain more detail about the pod's status.
       * There are five possible phase values:
       * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
       * container images has not been created. This includes time before being scheduled as
       * well as time spent downloading images over the network, which could take a while.
       * Running: The pod has been bound to a node, and all of the containers have been created.
       * At least one container is still running, or is in the process of starting or restarting.
       * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
       * Failed: All containers in the pod have terminated, and at least one container has
       * terminated in failure. The container either exited with non-zero status or was terminated
       * by the system.
       * Unknown: For some reason the state of the pod could not be obtained, typically due to an
       * error in communicating with the host of the pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
       * +optional
       * 
* * optional string phase = 1; */ public boolean hasPhase() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
       * The conditions array, the reason and message fields, and the individual container status
       * arrays contain more detail about the pod's status.
       * There are five possible phase values:
       * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
       * container images has not been created. This includes time before being scheduled as
       * well as time spent downloading images over the network, which could take a while.
       * Running: The pod has been bound to a node, and all of the containers have been created.
       * At least one container is still running, or is in the process of starting or restarting.
       * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
       * Failed: All containers in the pod have terminated, and at least one container has
       * terminated in failure. The container either exited with non-zero status or was terminated
       * by the system.
       * Unknown: For some reason the state of the pod could not be obtained, typically due to an
       * error in communicating with the host of the pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
       * +optional
       * 
* * optional string phase = 1; */ public java.lang.String getPhase() { java.lang.Object ref = phase_; 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()) { phase_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
       * The conditions array, the reason and message fields, and the individual container status
       * arrays contain more detail about the pod's status.
       * There are five possible phase values:
       * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
       * container images has not been created. This includes time before being scheduled as
       * well as time spent downloading images over the network, which could take a while.
       * Running: The pod has been bound to a node, and all of the containers have been created.
       * At least one container is still running, or is in the process of starting or restarting.
       * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
       * Failed: All containers in the pod have terminated, and at least one container has
       * terminated in failure. The container either exited with non-zero status or was terminated
       * by the system.
       * Unknown: For some reason the state of the pod could not be obtained, typically due to an
       * error in communicating with the host of the pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
       * +optional
       * 
* * optional string phase = 1; */ public com.google.protobuf.ByteString getPhaseBytes() { java.lang.Object ref = phase_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phase_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
       * The conditions array, the reason and message fields, and the individual container status
       * arrays contain more detail about the pod's status.
       * There are five possible phase values:
       * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
       * container images has not been created. This includes time before being scheduled as
       * well as time spent downloading images over the network, which could take a while.
       * Running: The pod has been bound to a node, and all of the containers have been created.
       * At least one container is still running, or is in the process of starting or restarting.
       * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
       * Failed: All containers in the pod have terminated, and at least one container has
       * terminated in failure. The container either exited with non-zero status or was terminated
       * by the system.
       * Unknown: For some reason the state of the pod could not be obtained, typically due to an
       * error in communicating with the host of the pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } /** * * *
       * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
       * The conditions array, the reason and message fields, and the individual container status
       * arrays contain more detail about the pod's status.
       * There are five possible phase values:
       * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
       * container images has not been created. This includes time before being scheduled as
       * well as time spent downloading images over the network, which could take a while.
       * Running: The pod has been bound to a node, and all of the containers have been created.
       * At least one container is still running, or is in the process of starting or restarting.
       * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
       * Failed: All containers in the pod have terminated, and at least one container has
       * terminated in failure. The container either exited with non-zero status or was terminated
       * by the system.
       * Unknown: For some reason the state of the pod could not be obtained, typically due to an
       * error in communicating with the host of the pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
       * +optional
       * 
* * optional string phase = 1; */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000001); phase_ = getDefaultInstance().getPhase(); onChanged(); return this; } /** * * *
       * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
       * The conditions array, the reason and message fields, and the individual container status
       * arrays contain more detail about the pod's status.
       * There are five possible phase values:
       * Pending: The pod has been accepted by the Kubernetes system, but one or more of the
       * container images has not been created. This includes time before being scheduled as
       * well as time spent downloading images over the network, which could take a while.
       * Running: The pod has been bound to a node, and all of the containers have been created.
       * At least one container is still running, or is in the process of starting or restarting.
       * Succeeded: All containers in the pod have terminated in success, and will not be restarted.
       * Failed: All containers in the pod have terminated, and at least one container has
       * terminated in failure. The container either exited with non-zero status or was terminated
       * by the system.
       * Unknown: For some reason the state of the pod could not be obtained, typically due to an
       * error in communicating with the host of the pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
       * +optional
       * 
* * optional string phase = 1; */ public Builder setPhaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; phase_ = value; onChanged(); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodCondition, io.kubernetes.client.proto.V1.PodCondition.Builder, io.kubernetes.client.proto.V1.PodConditionOrBuilder> conditionsBuilder_; /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder setConditions(int index, io.kubernetes.client.proto.V1.PodCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.PodCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder addConditions(io.kubernetes.client.proto.V1.PodCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder addConditions(int index, io.kubernetes.client.proto.V1.PodCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder addConditions( io.kubernetes.client.proto.V1.PodCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.PodCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodCondition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodCondition.getDefaultInstance()); } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public io.kubernetes.client.proto.V1.PodCondition.Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PodCondition.getDefaultInstance()); } /** * * *
       * Current service state of pod.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.PodCondition conditions = 2; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodCondition, io.kubernetes.client.proto.V1.PodCondition.Builder, io.kubernetes.client.proto.V1.PodConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodCondition, io.kubernetes.client.proto.V1.PodCondition.Builder, io.kubernetes.client.proto.V1.PodConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } private java.lang.Object message_ = ""; /** * * *
       * A human readable message indicating details about why the pod is in this condition.
       * +optional
       * 
* * optional string message = 3; */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * A human readable message indicating details about why the pod is in this condition.
       * +optional
       * 
* * optional string message = 3; */ 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; } } /** * * *
       * A human readable message indicating details about why the pod is in this condition.
       * +optional
       * 
* * optional string message = 3; */ 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; } } /** * * *
       * A human readable message indicating details about why the pod is in this condition.
       * +optional
       * 
* * optional string message = 3; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } /** * * *
       * A human readable message indicating details about why the pod is in this condition.
       * +optional
       * 
* * optional string message = 3; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * A human readable message indicating details about why the pod is in this condition.
       * +optional
       * 
* * optional string message = 3; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } private java.lang.Object reason_ = ""; /** * * *
       * A brief CamelCase message indicating details about why the pod is in this state.
       * e.g. 'Evicted'
       * +optional
       * 
* * optional string reason = 4; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * A brief CamelCase message indicating details about why the pod is in this state.
       * e.g. 'Evicted'
       * +optional
       * 
* * optional string reason = 4; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * A brief CamelCase message indicating details about why the pod is in this state.
       * e.g. 'Evicted'
       * +optional
       * 
* * optional string reason = 4; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * A brief CamelCase message indicating details about why the pod is in this state.
       * e.g. 'Evicted'
       * +optional
       * 
* * optional string reason = 4; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } /** * * *
       * A brief CamelCase message indicating details about why the pod is in this state.
       * e.g. 'Evicted'
       * +optional
       * 
* * optional string reason = 4; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000008); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * A brief CamelCase message indicating details about why the pod is in this state.
       * e.g. 'Evicted'
       * +optional
       * 
* * optional string reason = 4; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } private java.lang.Object nominatedNodeName_ = ""; /** * * *
       * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
       * scheduled right away as preemption victims receive their graceful termination periods.
       * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
       * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
       * give the resources on this node to a higher priority pod that is created after preemption.
       * As a result, this field may be different than PodSpec.nodeName when the pod is
       * scheduled.
       * +optional
       * 
* * optional string nominatedNodeName = 11; */ public boolean hasNominatedNodeName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
       * scheduled right away as preemption victims receive their graceful termination periods.
       * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
       * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
       * give the resources on this node to a higher priority pod that is created after preemption.
       * As a result, this field may be different than PodSpec.nodeName when the pod is
       * scheduled.
       * +optional
       * 
* * optional string nominatedNodeName = 11; */ public java.lang.String getNominatedNodeName() { java.lang.Object ref = nominatedNodeName_; 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()) { nominatedNodeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
       * scheduled right away as preemption victims receive their graceful termination periods.
       * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
       * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
       * give the resources on this node to a higher priority pod that is created after preemption.
       * As a result, this field may be different than PodSpec.nodeName when the pod is
       * scheduled.
       * +optional
       * 
* * optional string nominatedNodeName = 11; */ public com.google.protobuf.ByteString getNominatedNodeNameBytes() { java.lang.Object ref = nominatedNodeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nominatedNodeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
       * scheduled right away as preemption victims receive their graceful termination periods.
       * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
       * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
       * give the resources on this node to a higher priority pod that is created after preemption.
       * As a result, this field may be different than PodSpec.nodeName when the pod is
       * scheduled.
       * +optional
       * 
* * optional string nominatedNodeName = 11; */ public Builder setNominatedNodeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nominatedNodeName_ = value; onChanged(); return this; } /** * * *
       * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
       * scheduled right away as preemption victims receive their graceful termination periods.
       * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
       * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
       * give the resources on this node to a higher priority pod that is created after preemption.
       * As a result, this field may be different than PodSpec.nodeName when the pod is
       * scheduled.
       * +optional
       * 
* * optional string nominatedNodeName = 11; */ public Builder clearNominatedNodeName() { bitField0_ = (bitField0_ & ~0x00000010); nominatedNodeName_ = getDefaultInstance().getNominatedNodeName(); onChanged(); return this; } /** * * *
       * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
       * scheduled right away as preemption victims receive their graceful termination periods.
       * This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
       * to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
       * give the resources on this node to a higher priority pod that is created after preemption.
       * As a result, this field may be different than PodSpec.nodeName when the pod is
       * scheduled.
       * +optional
       * 
* * optional string nominatedNodeName = 11; */ public Builder setNominatedNodeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nominatedNodeName_ = value; onChanged(); return this; } private java.lang.Object hostIP_ = ""; /** * * *
       * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
       * +optional
       * 
* * optional string hostIP = 5; */ public boolean hasHostIP() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
       * +optional
       * 
* * optional string hostIP = 5; */ public java.lang.String getHostIP() { java.lang.Object ref = hostIP_; 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()) { hostIP_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
       * +optional
       * 
* * optional string hostIP = 5; */ public com.google.protobuf.ByteString getHostIPBytes() { java.lang.Object ref = hostIP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
       * +optional
       * 
* * optional string hostIP = 5; */ public Builder setHostIP(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; hostIP_ = value; onChanged(); return this; } /** * * *
       * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
       * +optional
       * 
* * optional string hostIP = 5; */ public Builder clearHostIP() { bitField0_ = (bitField0_ & ~0x00000020); hostIP_ = getDefaultInstance().getHostIP(); onChanged(); return this; } /** * * *
       * IP address of the host to which the pod is assigned. Empty if not yet scheduled.
       * +optional
       * 
* * optional string hostIP = 5; */ public Builder setHostIPBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; hostIP_ = value; onChanged(); return this; } private java.lang.Object podIP_ = ""; /** * * *
       * IP address allocated to the pod. Routable at least within the cluster.
       * Empty if not yet allocated.
       * +optional
       * 
* * optional string podIP = 6; */ public boolean hasPodIP() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * IP address allocated to the pod. Routable at least within the cluster.
       * Empty if not yet allocated.
       * +optional
       * 
* * optional string podIP = 6; */ public java.lang.String getPodIP() { java.lang.Object ref = podIP_; 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()) { podIP_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * IP address allocated to the pod. Routable at least within the cluster.
       * Empty if not yet allocated.
       * +optional
       * 
* * optional string podIP = 6; */ public com.google.protobuf.ByteString getPodIPBytes() { java.lang.Object ref = podIP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); podIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * IP address allocated to the pod. Routable at least within the cluster.
       * Empty if not yet allocated.
       * +optional
       * 
* * optional string podIP = 6; */ public Builder setPodIP(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; podIP_ = value; onChanged(); return this; } /** * * *
       * IP address allocated to the pod. Routable at least within the cluster.
       * Empty if not yet allocated.
       * +optional
       * 
* * optional string podIP = 6; */ public Builder clearPodIP() { bitField0_ = (bitField0_ & ~0x00000040); podIP_ = getDefaultInstance().getPodIP(); onChanged(); return this; } /** * * *
       * IP address allocated to the pod. Routable at least within the cluster.
       * Empty if not yet allocated.
       * +optional
       * 
* * optional string podIP = 6; */ public Builder setPodIPBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; podIP_ = value; onChanged(); return this; } private java.util.List podIPs_ = java.util.Collections.emptyList(); private void ensurePodIPsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { podIPs_ = new java.util.ArrayList(podIPs_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodIP, io.kubernetes.client.proto.V1.PodIP.Builder, io.kubernetes.client.proto.V1.PodIPOrBuilder> podIPsBuilder_; /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public java.util.List getPodIPsList() { if (podIPsBuilder_ == null) { return java.util.Collections.unmodifiableList(podIPs_); } else { return podIPsBuilder_.getMessageList(); } } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public int getPodIPsCount() { if (podIPsBuilder_ == null) { return podIPs_.size(); } else { return podIPsBuilder_.getCount(); } } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIP getPodIPs(int index) { if (podIPsBuilder_ == null) { return podIPs_.get(index); } else { return podIPsBuilder_.getMessage(index); } } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder setPodIPs(int index, io.kubernetes.client.proto.V1.PodIP value) { if (podIPsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePodIPsIsMutable(); podIPs_.set(index, value); onChanged(); } else { podIPsBuilder_.setMessage(index, value); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder setPodIPs( int index, io.kubernetes.client.proto.V1.PodIP.Builder builderForValue) { if (podIPsBuilder_ == null) { ensurePodIPsIsMutable(); podIPs_.set(index, builderForValue.build()); onChanged(); } else { podIPsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder addPodIPs(io.kubernetes.client.proto.V1.PodIP value) { if (podIPsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePodIPsIsMutable(); podIPs_.add(value); onChanged(); } else { podIPsBuilder_.addMessage(value); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder addPodIPs(int index, io.kubernetes.client.proto.V1.PodIP value) { if (podIPsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePodIPsIsMutable(); podIPs_.add(index, value); onChanged(); } else { podIPsBuilder_.addMessage(index, value); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder addPodIPs(io.kubernetes.client.proto.V1.PodIP.Builder builderForValue) { if (podIPsBuilder_ == null) { ensurePodIPsIsMutable(); podIPs_.add(builderForValue.build()); onChanged(); } else { podIPsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder addPodIPs( int index, io.kubernetes.client.proto.V1.PodIP.Builder builderForValue) { if (podIPsBuilder_ == null) { ensurePodIPsIsMutable(); podIPs_.add(index, builderForValue.build()); onChanged(); } else { podIPsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder addAllPodIPs( java.lang.Iterable values) { if (podIPsBuilder_ == null) { ensurePodIPsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podIPs_); onChanged(); } else { podIPsBuilder_.addAllMessages(values); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder clearPodIPs() { if (podIPsBuilder_ == null) { podIPs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { podIPsBuilder_.clear(); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public Builder removePodIPs(int index) { if (podIPsBuilder_ == null) { ensurePodIPsIsMutable(); podIPs_.remove(index); onChanged(); } else { podIPsBuilder_.remove(index); } return this; } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIP.Builder getPodIPsBuilder(int index) { return getPodIPsFieldBuilder().getBuilder(index); } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIPOrBuilder getPodIPsOrBuilder(int index) { if (podIPsBuilder_ == null) { return podIPs_.get(index); } else { return podIPsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public java.util.List getPodIPsOrBuilderList() { if (podIPsBuilder_ != null) { return podIPsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(podIPs_); } } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIP.Builder addPodIPsBuilder() { return getPodIPsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodIP.getDefaultInstance()); } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public io.kubernetes.client.proto.V1.PodIP.Builder addPodIPsBuilder(int index) { return getPodIPsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PodIP.getDefaultInstance()); } /** * * *
       * podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
       * match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
       * is empty if no IPs have been allocated yet.
       * +optional
       * +patchStrategy=merge
       * +patchMergeKey=ip
       * 
* * repeated .k8s.io.api.core.v1.PodIP podIPs = 12; */ public java.util.List getPodIPsBuilderList() { return getPodIPsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodIP, io.kubernetes.client.proto.V1.PodIP.Builder, io.kubernetes.client.proto.V1.PodIPOrBuilder> getPodIPsFieldBuilder() { if (podIPsBuilder_ == null) { podIPsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodIP, io.kubernetes.client.proto.V1.PodIP.Builder, io.kubernetes.client.proto.V1.PodIPOrBuilder>( podIPs_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); podIPs_ = null; } return podIPsBuilder_; } private io.kubernetes.client.proto.Meta.Time startTime_ = 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> startTimeBuilder_; /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public boolean hasStartTime() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public io.kubernetes.client.proto.Meta.Time getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public Builder setStartTime(io.kubernetes.client.proto.Meta.Time value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public Builder setStartTime(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public Builder mergeStartTime(io.kubernetes.client.proto.Meta.Time value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && startTime_ != null && startTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { startTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(startTime_) .mergeFrom(value) .buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public io.kubernetes.client.proto.Meta.Time.Builder getStartTimeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : startTime_; } } /** * * *
       * RFC 3339 date and time at which the object was acknowledged by the Kubelet.
       * This is before the Kubelet pulled the container image(s) for the pod.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private java.util.List initContainerStatuses_ = java.util.Collections.emptyList(); private void ensureInitContainerStatusesIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { initContainerStatuses_ = new java.util.ArrayList( initContainerStatuses_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder> initContainerStatusesBuilder_; /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public java.util.List getInitContainerStatusesList() { if (initContainerStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(initContainerStatuses_); } else { return initContainerStatusesBuilder_.getMessageList(); } } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public int getInitContainerStatusesCount() { if (initContainerStatusesBuilder_ == null) { return initContainerStatuses_.size(); } else { return initContainerStatusesBuilder_.getCount(); } } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatus getInitContainerStatuses(int index) { if (initContainerStatusesBuilder_ == null) { return initContainerStatuses_.get(index); } else { return initContainerStatusesBuilder_.getMessage(index); } } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder setInitContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus value) { if (initContainerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitContainerStatusesIsMutable(); initContainerStatuses_.set(index, value); onChanged(); } else { initContainerStatusesBuilder_.setMessage(index, value); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder setInitContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (initContainerStatusesBuilder_ == null) { ensureInitContainerStatusesIsMutable(); initContainerStatuses_.set(index, builderForValue.build()); onChanged(); } else { initContainerStatusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder addInitContainerStatuses(io.kubernetes.client.proto.V1.ContainerStatus value) { if (initContainerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitContainerStatusesIsMutable(); initContainerStatuses_.add(value); onChanged(); } else { initContainerStatusesBuilder_.addMessage(value); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder addInitContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus value) { if (initContainerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInitContainerStatusesIsMutable(); initContainerStatuses_.add(index, value); onChanged(); } else { initContainerStatusesBuilder_.addMessage(index, value); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder addInitContainerStatuses( io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (initContainerStatusesBuilder_ == null) { ensureInitContainerStatusesIsMutable(); initContainerStatuses_.add(builderForValue.build()); onChanged(); } else { initContainerStatusesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder addInitContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (initContainerStatusesBuilder_ == null) { ensureInitContainerStatusesIsMutable(); initContainerStatuses_.add(index, builderForValue.build()); onChanged(); } else { initContainerStatusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder addAllInitContainerStatuses( java.lang.Iterable values) { if (initContainerStatusesBuilder_ == null) { ensureInitContainerStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initContainerStatuses_); onChanged(); } else { initContainerStatusesBuilder_.addAllMessages(values); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder clearInitContainerStatuses() { if (initContainerStatusesBuilder_ == null) { initContainerStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { initContainerStatusesBuilder_.clear(); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public Builder removeInitContainerStatuses(int index) { if (initContainerStatusesBuilder_ == null) { ensureInitContainerStatusesIsMutable(); initContainerStatuses_.remove(index); onChanged(); } else { initContainerStatusesBuilder_.remove(index); } return this; } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder getInitContainerStatusesBuilder( int index) { return getInitContainerStatusesFieldBuilder().getBuilder(index); } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getInitContainerStatusesOrBuilder(int index) { if (initContainerStatusesBuilder_ == null) { return initContainerStatuses_.get(index); } else { return initContainerStatusesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public java.util.List getInitContainerStatusesOrBuilderList() { if (initContainerStatusesBuilder_ != null) { return initContainerStatusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(initContainerStatuses_); } } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder addInitContainerStatusesBuilder() { return getInitContainerStatusesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()); } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder addInitContainerStatusesBuilder( int index) { return getInitContainerStatusesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()); } /** * * *
       * The list has one entry per init container in the manifest. The most recent successful
       * init container will have ready = true, the most recently started container will have
       * startTime set.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus initContainerStatuses = 10; */ public java.util.List getInitContainerStatusesBuilderList() { return getInitContainerStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder> getInitContainerStatusesFieldBuilder() { if (initContainerStatusesBuilder_ == null) { initContainerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder>( initContainerStatuses_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); initContainerStatuses_ = null; } return initContainerStatusesBuilder_; } private java.util.List containerStatuses_ = java.util.Collections.emptyList(); private void ensureContainerStatusesIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { containerStatuses_ = new java.util.ArrayList( containerStatuses_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder> containerStatusesBuilder_; /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public java.util.List getContainerStatusesList() { if (containerStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(containerStatuses_); } else { return containerStatusesBuilder_.getMessageList(); } } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public int getContainerStatusesCount() { if (containerStatusesBuilder_ == null) { return containerStatuses_.size(); } else { return containerStatusesBuilder_.getCount(); } } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatus getContainerStatuses(int index) { if (containerStatusesBuilder_ == null) { return containerStatuses_.get(index); } else { return containerStatusesBuilder_.getMessage(index); } } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder setContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus value) { if (containerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainerStatusesIsMutable(); containerStatuses_.set(index, value); onChanged(); } else { containerStatusesBuilder_.setMessage(index, value); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder setContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (containerStatusesBuilder_ == null) { ensureContainerStatusesIsMutable(); containerStatuses_.set(index, builderForValue.build()); onChanged(); } else { containerStatusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder addContainerStatuses(io.kubernetes.client.proto.V1.ContainerStatus value) { if (containerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainerStatusesIsMutable(); containerStatuses_.add(value); onChanged(); } else { containerStatusesBuilder_.addMessage(value); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder addContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus value) { if (containerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainerStatusesIsMutable(); containerStatuses_.add(index, value); onChanged(); } else { containerStatusesBuilder_.addMessage(index, value); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder addContainerStatuses( io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (containerStatusesBuilder_ == null) { ensureContainerStatusesIsMutable(); containerStatuses_.add(builderForValue.build()); onChanged(); } else { containerStatusesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder addContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (containerStatusesBuilder_ == null) { ensureContainerStatusesIsMutable(); containerStatuses_.add(index, builderForValue.build()); onChanged(); } else { containerStatusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder addAllContainerStatuses( java.lang.Iterable values) { if (containerStatusesBuilder_ == null) { ensureContainerStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containerStatuses_); onChanged(); } else { containerStatusesBuilder_.addAllMessages(values); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder clearContainerStatuses() { if (containerStatusesBuilder_ == null) { containerStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { containerStatusesBuilder_.clear(); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public Builder removeContainerStatuses(int index) { if (containerStatusesBuilder_ == null) { ensureContainerStatusesIsMutable(); containerStatuses_.remove(index); onChanged(); } else { containerStatusesBuilder_.remove(index); } return this; } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder getContainerStatusesBuilder( int index) { return getContainerStatusesFieldBuilder().getBuilder(index); } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getContainerStatusesOrBuilder( int index) { if (containerStatusesBuilder_ == null) { return containerStatuses_.get(index); } else { return containerStatusesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public java.util.List getContainerStatusesOrBuilderList() { if (containerStatusesBuilder_ != null) { return containerStatusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containerStatuses_); } } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder addContainerStatusesBuilder() { return getContainerStatusesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()); } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder addContainerStatusesBuilder( int index) { return getContainerStatusesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()); } /** * * *
       * The list has one entry per container in the manifest. Each entry is currently the output
       * of `docker inspect`.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus containerStatuses = 8; */ public java.util.List getContainerStatusesBuilderList() { return getContainerStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder> getContainerStatusesFieldBuilder() { if (containerStatusesBuilder_ == null) { containerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder>( containerStatuses_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); containerStatuses_ = null; } return containerStatusesBuilder_; } private java.lang.Object qosClass_ = ""; /** * * *
       * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
       * See PodQOSClass type for available QOS classes
       * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
       * +optional
       * 
* * optional string qosClass = 9; */ public boolean hasQosClass() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
       * See PodQOSClass type for available QOS classes
       * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
       * +optional
       * 
* * optional string qosClass = 9; */ public java.lang.String getQosClass() { java.lang.Object ref = qosClass_; 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()) { qosClass_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
       * See PodQOSClass type for available QOS classes
       * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
       * +optional
       * 
* * optional string qosClass = 9; */ public com.google.protobuf.ByteString getQosClassBytes() { java.lang.Object ref = qosClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); qosClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
       * See PodQOSClass type for available QOS classes
       * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
       * +optional
       * 
* * optional string qosClass = 9; */ public Builder setQosClass(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; qosClass_ = value; onChanged(); return this; } /** * * *
       * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
       * See PodQOSClass type for available QOS classes
       * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
       * +optional
       * 
* * optional string qosClass = 9; */ public Builder clearQosClass() { bitField0_ = (bitField0_ & ~0x00000800); qosClass_ = getDefaultInstance().getQosClass(); onChanged(); return this; } /** * * *
       * The Quality of Service (QOS) classification assigned to the pod based on resource requirements
       * See PodQOSClass type for available QOS classes
       * More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
       * +optional
       * 
* * optional string qosClass = 9; */ public Builder setQosClassBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; qosClass_ = value; onChanged(); return this; } private java.util.List ephemeralContainerStatuses_ = java.util.Collections.emptyList(); private void ensureEphemeralContainerStatusesIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { ephemeralContainerStatuses_ = new java.util.ArrayList( ephemeralContainerStatuses_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder> ephemeralContainerStatusesBuilder_; /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public java.util.List getEphemeralContainerStatusesList() { if (ephemeralContainerStatusesBuilder_ == null) { return java.util.Collections.unmodifiableList(ephemeralContainerStatuses_); } else { return ephemeralContainerStatusesBuilder_.getMessageList(); } } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public int getEphemeralContainerStatusesCount() { if (ephemeralContainerStatusesBuilder_ == null) { return ephemeralContainerStatuses_.size(); } else { return ephemeralContainerStatusesBuilder_.getCount(); } } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatus getEphemeralContainerStatuses( int index) { if (ephemeralContainerStatusesBuilder_ == null) { return ephemeralContainerStatuses_.get(index); } else { return ephemeralContainerStatusesBuilder_.getMessage(index); } } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder setEphemeralContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus value) { if (ephemeralContainerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.set(index, value); onChanged(); } else { ephemeralContainerStatusesBuilder_.setMessage(index, value); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder setEphemeralContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (ephemeralContainerStatusesBuilder_ == null) { ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.set(index, builderForValue.build()); onChanged(); } else { ephemeralContainerStatusesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder addEphemeralContainerStatuses( io.kubernetes.client.proto.V1.ContainerStatus value) { if (ephemeralContainerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.add(value); onChanged(); } else { ephemeralContainerStatusesBuilder_.addMessage(value); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder addEphemeralContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus value) { if (ephemeralContainerStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.add(index, value); onChanged(); } else { ephemeralContainerStatusesBuilder_.addMessage(index, value); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder addEphemeralContainerStatuses( io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (ephemeralContainerStatusesBuilder_ == null) { ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.add(builderForValue.build()); onChanged(); } else { ephemeralContainerStatusesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder addEphemeralContainerStatuses( int index, io.kubernetes.client.proto.V1.ContainerStatus.Builder builderForValue) { if (ephemeralContainerStatusesBuilder_ == null) { ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.add(index, builderForValue.build()); onChanged(); } else { ephemeralContainerStatusesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder addAllEphemeralContainerStatuses( java.lang.Iterable values) { if (ephemeralContainerStatusesBuilder_ == null) { ensureEphemeralContainerStatusesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ephemeralContainerStatuses_); onChanged(); } else { ephemeralContainerStatusesBuilder_.addAllMessages(values); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder clearEphemeralContainerStatuses() { if (ephemeralContainerStatusesBuilder_ == null) { ephemeralContainerStatuses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { ephemeralContainerStatusesBuilder_.clear(); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public Builder removeEphemeralContainerStatuses(int index) { if (ephemeralContainerStatusesBuilder_ == null) { ensureEphemeralContainerStatusesIsMutable(); ephemeralContainerStatuses_.remove(index); onChanged(); } else { ephemeralContainerStatusesBuilder_.remove(index); } return this; } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder getEphemeralContainerStatusesBuilder(int index) { return getEphemeralContainerStatusesFieldBuilder().getBuilder(index); } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatusOrBuilder getEphemeralContainerStatusesOrBuilder(int index) { if (ephemeralContainerStatusesBuilder_ == null) { return ephemeralContainerStatuses_.get(index); } else { return ephemeralContainerStatusesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public java.util.List getEphemeralContainerStatusesOrBuilderList() { if (ephemeralContainerStatusesBuilder_ != null) { return ephemeralContainerStatusesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ephemeralContainerStatuses_); } } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder addEphemeralContainerStatusesBuilder() { return getEphemeralContainerStatusesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()); } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public io.kubernetes.client.proto.V1.ContainerStatus.Builder addEphemeralContainerStatusesBuilder(int index) { return getEphemeralContainerStatusesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ContainerStatus.getDefaultInstance()); } /** * * *
       * Status for any ephemeral containers that have run in this pod.
       * This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ContainerStatus ephemeralContainerStatuses = 13; */ public java.util.List getEphemeralContainerStatusesBuilderList() { return getEphemeralContainerStatusesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder> getEphemeralContainerStatusesFieldBuilder() { if (ephemeralContainerStatusesBuilder_ == null) { ephemeralContainerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ContainerStatus, io.kubernetes.client.proto.V1.ContainerStatus.Builder, io.kubernetes.client.proto.V1.ContainerStatusOrBuilder>( ephemeralContainerStatuses_, ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); ephemeralContainerStatuses_ = null; } return ephemeralContainerStatusesBuilder_; } @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.core.v1.PodStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodStatus) private static final io.kubernetes.client.proto.V1.PodStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodStatus(); } public static io.kubernetes.client.proto.V1.PodStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodStatus(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.V1.PodStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodStatusResultOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodStatusResult) 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(); /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ boolean hasStatus(); /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ io.kubernetes.client.proto.V1.PodStatus getStatus(); /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodStatusResult} */ public static final class PodStatusResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodStatusResult) PodStatusResultOrBuilder { private static final long serialVersionUID = 0L; // Use PodStatusResult.newBuilder() to construct. private PodStatusResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodStatusResult() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodStatusResult( 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.V1.PodStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.PodStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodStatusResult.class, io.kubernetes.client.proto.V1.PodStatusResult.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 STATUS_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PodStatus status_; /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public io.kubernetes.client.proto.V1.PodStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; } /** * * *
     * Most recently observed status of the pod.
     * This data may not be up to date.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.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, 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, 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.V1.PodStatusResult)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodStatusResult other = (io.kubernetes.client.proto.V1.PodStatusResult) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } 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 (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.V1.PodStatusResult parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodStatusResult 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.V1.PodStatusResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodStatusResult 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.V1.PodStatusResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodStatusResult 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.V1.PodStatusResult parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodStatusResult 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.V1.PodStatusResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodStatusResult 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.V1.PodStatusResult 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; } /** * * *
     * PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodStatusResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodStatusResult) io.kubernetes.client.proto.V1.PodStatusResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodStatusResult.class, io.kubernetes.client.proto.V1.PodStatusResult.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodStatusResult.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(); getStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (statusBuilder_ == null) { status_ = null; } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodStatusResult getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodStatusResult.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodStatusResult build() { io.kubernetes.client.proto.V1.PodStatusResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodStatusResult buildPartial() { io.kubernetes.client.proto.V1.PodStatusResult result = new io.kubernetes.client.proto.V1.PodStatusResult(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 (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.V1.PodStatusResult) { return mergeFrom((io.kubernetes.client.proto.V1.PodStatusResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodStatusResult other) { if (other == io.kubernetes.client.proto.V1.PodStatusResult.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } 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.V1.PodStatusResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodStatusResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.PodStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder> statusBuilder_; /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public io.kubernetes.client.proto.V1.PodStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public Builder setStatus(io.kubernetes.client.proto.V1.PodStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public Builder setStatus(io.kubernetes.client.proto.V1.PodStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.PodStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && status_ != null && status_ != io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.PodStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public io.kubernetes.client.proto.V1.PodStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ public io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; } } /** * * *
       * Most recently observed status of the pod.
       * This data may not be up to date.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodStatus status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder>( 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.core.v1.PodStatusResult) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodStatusResult) private static final io.kubernetes.client.proto.V1.PodStatusResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodStatusResult(); } public static io.kubernetes.client.proto.V1.PodStatusResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodStatusResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodStatusResult(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.V1.PodStatusResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodTemplate) 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(); /** * * *
     * Template defines the pods that will be created from this pod template.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ boolean hasTemplate(); /** * * *
     * Template defines the pods that will be created from this pod template.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate(); /** * * *
     * Template defines the pods that will be created from this pod template.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder(); } /** * * *
   * PodTemplate describes a template for creating copies of a predefined pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodTemplate} */ public static final class PodTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodTemplate) PodTemplateOrBuilder { private static final long serialVersionUID = 0L; // Use PodTemplate.newBuilder() to construct. private PodTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodTemplate() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodTemplate( 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.V1.PodTemplateSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = template_.toBuilder(); } template_ = input.readMessage( io.kubernetes.client.proto.V1.PodTemplateSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PodTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodTemplate.class, io.kubernetes.client.proto.V1.PodTemplate.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 TEMPLATE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PodTemplateSpec template_; /** * * *
     * Template defines the pods that will be created from this pod template.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public boolean hasTemplate() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Template defines the pods that will be created from this pod template.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } /** * * *
     * Template defines the pods that will be created from this pod template.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } 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, getTemplate()); } 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, getTemplate()); } 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.V1.PodTemplate)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodTemplate other = (io.kubernetes.client.proto.V1.PodTemplate) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasTemplate() == other.hasTemplate()); if (hasTemplate()) { result = result && getTemplate().equals(other.getTemplate()); } 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 (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PodTemplate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplate 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.V1.PodTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplate 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.V1.PodTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodTemplate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplate 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.V1.PodTemplate parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplate 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.V1.PodTemplate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplate 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.V1.PodTemplate 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; } /** * * *
     * PodTemplate describes a template for creating copies of a predefined pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodTemplate) io.kubernetes.client.proto.V1.PodTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodTemplate.class, io.kubernetes.client.proto.V1.PodTemplate.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodTemplate.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(); getTemplateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (templateBuilder_ == null) { template_ = null; } else { templateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodTemplate_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplate getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodTemplate.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplate build() { io.kubernetes.client.proto.V1.PodTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplate buildPartial() { io.kubernetes.client.proto.V1.PodTemplate result = new io.kubernetes.client.proto.V1.PodTemplate(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 (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.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.V1.PodTemplate) { return mergeFrom((io.kubernetes.client.proto.V1.PodTemplate) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodTemplate other) { if (other == io.kubernetes.client.proto.V1.PodTemplate.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } 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.V1.PodTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.PodTemplateSpec template_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplateSpec, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder, io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder> templateBuilder_; /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public boolean hasTemplate() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { if (templateBuilder_ == null) { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public Builder setTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; onChanged(); } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public Builder setTemplate( io.kubernetes.client.proto.V1.PodTemplateSpec.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public Builder mergeTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && template_ != null && template_ != io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance()) { template_ = io.kubernetes.client.proto.V1.PodTemplateSpec.newBuilder(template_) .mergeFrom(value) .buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { templateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public io.kubernetes.client.proto.V1.PodTemplateSpec.Builder getTemplateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } } /** * * *
       * Template defines the pods that will be created from this pod template.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplateSpec, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder, io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplateSpec, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder, io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } @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.core.v1.PodTemplate) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodTemplate) private static final io.kubernetes.client.proto.V1.PodTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodTemplate(); } public static io.kubernetes.client.proto.V1.PodTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodTemplate(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.V1.PodTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodTemplateListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodTemplateList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ java.util.List getItemsList(); /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ io.kubernetes.client.proto.V1.PodTemplate getItems(int index); /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ int getItemsCount(); /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ io.kubernetes.client.proto.V1.PodTemplateOrBuilder getItemsOrBuilder(int index); } /** * * *
   * PodTemplateList is a list of PodTemplates.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodTemplateList} */ public static final class PodTemplateList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodTemplateList) PodTemplateListOrBuilder { private static final long serialVersionUID = 0L; // Use PodTemplateList.newBuilder() to construct. private PodTemplateList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodTemplateList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodTemplateList( 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.V1.PodTemplate.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 .V1 .internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodTemplateList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodTemplateList.class, io.kubernetes.client.proto.V1.PodTemplateList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplate getItems(int index) { return items_.get(index); } /** * * *
     * List of pod templates
     * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplateOrBuilder 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.V1.PodTemplateList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodTemplateList other = (io.kubernetes.client.proto.V1.PodTemplateList) 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.V1.PodTemplateList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplateList 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.V1.PodTemplateList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplateList 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.V1.PodTemplateList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplateList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodTemplateList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplateList 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.V1.PodTemplateList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplateList 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.V1.PodTemplateList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplateList 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.V1.PodTemplateList 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; } /** * * *
     * PodTemplateList is a list of PodTemplates.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodTemplateList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodTemplateList) io.kubernetes.client.proto.V1.PodTemplateListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodTemplateList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodTemplateList.class, io.kubernetes.client.proto.V1.PodTemplateList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodTemplateList.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 .V1 .internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplateList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodTemplateList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplateList build() { io.kubernetes.client.proto.V1.PodTemplateList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplateList buildPartial() { io.kubernetes.client.proto.V1.PodTemplateList result = new io.kubernetes.client.proto.V1.PodTemplateList(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.V1.PodTemplateList) { return mergeFrom((io.kubernetes.client.proto.V1.PodTemplateList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodTemplateList other) { if (other == io.kubernetes.client.proto.V1.PodTemplateList.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.V1.PodTemplateList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodTemplateList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.PodTemplate, io.kubernetes.client.proto.V1.PodTemplate.Builder, io.kubernetes.client.proto.V1.PodTemplateOrBuilder> itemsBuilder_; /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplate getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.PodTemplate value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.PodTemplate.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.PodTemplate value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.PodTemplate value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.PodTemplate.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.PodTemplate.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate 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; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplate.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplateOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplate.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.PodTemplate.getDefaultInstance()); } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public io.kubernetes.client.proto.V1.PodTemplate.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.PodTemplate.getDefaultInstance()); } /** * * *
       * List of pod templates
       * 
* * repeated .k8s.io.api.core.v1.PodTemplate items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplate, io.kubernetes.client.proto.V1.PodTemplate.Builder, io.kubernetes.client.proto.V1.PodTemplateOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplate, io.kubernetes.client.proto.V1.PodTemplate.Builder, io.kubernetes.client.proto.V1.PodTemplateOrBuilder>( 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.core.v1.PodTemplateList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodTemplateList) private static final io.kubernetes.client.proto.V1.PodTemplateList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodTemplateList(); } public static io.kubernetes.client.proto.V1.PodTemplateList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodTemplateList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodTemplateList(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.V1.PodTemplateList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodTemplateSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodTemplateSpec) 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(); /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ io.kubernetes.client.proto.V1.PodSpec getSpec(); /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder(); } /** * * *
   * PodTemplateSpec describes the data a pod should have when created from a template
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PodTemplateSpec} */ public static final class PodTemplateSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodTemplateSpec) PodTemplateSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PodTemplateSpec.newBuilder() to construct. private PodTemplateSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodTemplateSpec() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodTemplateSpec( 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.V1.PodSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.PodSpec.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 .V1 .internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodTemplateSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodTemplateSpec.class, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PodSpec spec_; /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } /** * * *
     * Specification of the desired behavior of the pod.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.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.V1.PodTemplateSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PodTemplateSpec other = (io.kubernetes.client.proto.V1.PodTemplateSpec) 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.V1.PodTemplateSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplateSpec 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.V1.PodTemplateSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplateSpec 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.V1.PodTemplateSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PodTemplateSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PodTemplateSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplateSpec 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.V1.PodTemplateSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplateSpec 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.V1.PodTemplateSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PodTemplateSpec 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.V1.PodTemplateSpec 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; } /** * * *
     * PodTemplateSpec describes the data a pod should have when created from a template
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PodTemplateSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodTemplateSpec) io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PodTemplateSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PodTemplateSpec.class, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PodTemplateSpec.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 .V1 .internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplateSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplateSpec build() { io.kubernetes.client.proto.V1.PodTemplateSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PodTemplateSpec buildPartial() { io.kubernetes.client.proto.V1.PodTemplateSpec result = new io.kubernetes.client.proto.V1.PodTemplateSpec(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.V1.PodTemplateSpec) { return mergeFrom((io.kubernetes.client.proto.V1.PodTemplateSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PodTemplateSpec other) { if (other == io.kubernetes.client.proto.V1.PodTemplateSpec.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.V1.PodTemplateSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PodTemplateSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.PodSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder> specBuilder_; /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PodSpec 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 behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.PodSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.PodSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.PodSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ public io.kubernetes.client.proto.V1.PodSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.PodSpec.getDefaultInstance() : spec_; } } /** * * *
       * Specification of the desired behavior of the pod.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSpec, io.kubernetes.client.proto.V1.PodSpec.Builder, io.kubernetes.client.proto.V1.PodSpecOrBuilder>( 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.core.v1.PodTemplateSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodTemplateSpec) private static final io.kubernetes.client.proto.V1.PodTemplateSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodTemplateSpec(); } public static io.kubernetes.client.proto.V1.PodTemplateSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodTemplateSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodTemplateSpec(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.V1.PodTemplateSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PortStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PortStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Port is the port number of the service port of which status is recorded here
     * 
* * optional int32 port = 1; */ boolean hasPort(); /** * * *
     * Port is the port number of the service port of which status is recorded here
     * 
* * optional int32 port = 1; */ int getPort(); /** * * *
     * Protocol is the protocol of the service port of which status is recorded here
     * The supported values are: "TCP", "UDP", "SCTP"
     * 
* * optional string protocol = 2; */ boolean hasProtocol(); /** * * *
     * Protocol is the protocol of the service port of which status is recorded here
     * The supported values are: "TCP", "UDP", "SCTP"
     * 
* * optional string protocol = 2; */ java.lang.String getProtocol(); /** * * *
     * Protocol is the protocol of the service port of which status is recorded here
     * The supported values are: "TCP", "UDP", "SCTP"
     * 
* * optional string protocol = 2; */ com.google.protobuf.ByteString getProtocolBytes(); /** * * *
     * Error is to record the problem with the service port
     * The format of the error shall comply with the following rules:
     * - built-in error values shall be specified in this file and those shall use
     *   CamelCase names
     * - cloud provider specific error values must have names that comply with the
     *   format foo.example.com/CamelCase.
     * ---
     * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
     * +optional
     * +kubebuilder:validation:Required
     * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
     * +kubebuilder:validation:MaxLength=316
     * 
* * optional string error = 3; */ boolean hasError(); /** * * *
     * Error is to record the problem with the service port
     * The format of the error shall comply with the following rules:
     * - built-in error values shall be specified in this file and those shall use
     *   CamelCase names
     * - cloud provider specific error values must have names that comply with the
     *   format foo.example.com/CamelCase.
     * ---
     * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
     * +optional
     * +kubebuilder:validation:Required
     * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
     * +kubebuilder:validation:MaxLength=316
     * 
* * optional string error = 3; */ java.lang.String getError(); /** * * *
     * Error is to record the problem with the service port
     * The format of the error shall comply with the following rules:
     * - built-in error values shall be specified in this file and those shall use
     *   CamelCase names
     * - cloud provider specific error values must have names that comply with the
     *   format foo.example.com/CamelCase.
     * ---
     * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
     * +optional
     * +kubebuilder:validation:Required
     * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
     * +kubebuilder:validation:MaxLength=316
     * 
* * optional string error = 3; */ com.google.protobuf.ByteString getErrorBytes(); } /** Protobuf type {@code k8s.io.api.core.v1.PortStatus} */ public static final class PortStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PortStatus) PortStatusOrBuilder { private static final long serialVersionUID = 0L; // Use PortStatus.newBuilder() to construct. private PortStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortStatus() { port_ = 0; protocol_ = ""; error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PortStatus( 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; port_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; protocol_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; error_ = 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.V1.internal_static_k8s_io_api_core_v1_PortStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PortStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PortStatus.class, io.kubernetes.client.proto.V1.PortStatus.Builder.class); } private int bitField0_; public static final int PORT_FIELD_NUMBER = 1; private int port_; /** * * *
     * Port is the port number of the service port of which status is recorded here
     * 
* * optional int32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Port is the port number of the service port of which status is recorded here
     * 
* * optional int32 port = 1; */ public int getPort() { return port_; } public static final int PROTOCOL_FIELD_NUMBER = 2; private volatile java.lang.Object protocol_; /** * * *
     * Protocol is the protocol of the service port of which status is recorded here
     * The supported values are: "TCP", "UDP", "SCTP"
     * 
* * optional string protocol = 2; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Protocol is the protocol of the service port of which status is recorded here
     * The supported values are: "TCP", "UDP", "SCTP"
     * 
* * optional string protocol = 2; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } } /** * * *
     * Protocol is the protocol of the service port of which status is recorded here
     * The supported values are: "TCP", "UDP", "SCTP"
     * 
* * optional string protocol = 2; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERROR_FIELD_NUMBER = 3; private volatile java.lang.Object error_; /** * * *
     * Error is to record the problem with the service port
     * The format of the error shall comply with the following rules:
     * - built-in error values shall be specified in this file and those shall use
     *   CamelCase names
     * - cloud provider specific error values must have names that comply with the
     *   format foo.example.com/CamelCase.
     * ---
     * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
     * +optional
     * +kubebuilder:validation:Required
     * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
     * +kubebuilder:validation:MaxLength=316
     * 
* * optional string error = 3; */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Error is to record the problem with the service port
     * The format of the error shall comply with the following rules:
     * - built-in error values shall be specified in this file and those shall use
     *   CamelCase names
     * - cloud provider specific error values must have names that comply with the
     *   format foo.example.com/CamelCase.
     * ---
     * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
     * +optional
     * +kubebuilder:validation:Required
     * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
     * +kubebuilder:validation:MaxLength=316
     * 
* * optional string error = 3; */ public java.lang.String getError() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { error_ = s; } return s; } } /** * * *
     * Error is to record the problem with the service port
     * The format of the error shall comply with the following rules:
     * - built-in error values shall be specified in this file and those shall use
     *   CamelCase names
     * - cloud provider specific error values must have names that comply with the
     *   format foo.example.com/CamelCase.
     * ---
     * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
     * +optional
     * +kubebuilder:validation:Required
     * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
     * +kubebuilder:validation:MaxLength=316
     * 
* * optional string error = 3; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, port_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocol_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); } 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, port_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocol_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); } 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.V1.PortStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PortStatus other = (io.kubernetes.client.proto.V1.PortStatus) obj; boolean result = true; result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol().equals(other.getProtocol()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError().equals(other.getError()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PortStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PortStatus 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.V1.PortStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PortStatus 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.V1.PortStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PortStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PortStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PortStatus 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.V1.PortStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PortStatus 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.V1.PortStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PortStatus 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.V1.PortStatus 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; } /** Protobuf type {@code k8s.io.api.core.v1.PortStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PortStatus) io.kubernetes.client.proto.V1.PortStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PortStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PortStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PortStatus.class, io.kubernetes.client.proto.V1.PortStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PortStatus.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(); port_ = 0; bitField0_ = (bitField0_ & ~0x00000001); protocol_ = ""; bitField0_ = (bitField0_ & ~0x00000002); error_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PortStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PortStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PortStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PortStatus build() { io.kubernetes.client.proto.V1.PortStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PortStatus buildPartial() { io.kubernetes.client.proto.V1.PortStatus result = new io.kubernetes.client.proto.V1.PortStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.port_ = port_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.protocol_ = protocol_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.error_ = error_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.PortStatus) { return mergeFrom((io.kubernetes.client.proto.V1.PortStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PortStatus other) { if (other == io.kubernetes.client.proto.V1.PortStatus.getDefaultInstance()) return this; if (other.hasPort()) { setPort(other.getPort()); } if (other.hasProtocol()) { bitField0_ |= 0x00000002; protocol_ = other.protocol_; onChanged(); } if (other.hasError()) { bitField0_ |= 0x00000004; error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.PortStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PortStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int port_; /** * * *
       * Port is the port number of the service port of which status is recorded here
       * 
* * optional int32 port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Port is the port number of the service port of which status is recorded here
       * 
* * optional int32 port = 1; */ public int getPort() { return port_; } /** * * *
       * Port is the port number of the service port of which status is recorded here
       * 
* * optional int32 port = 1; */ public Builder setPort(int value) { bitField0_ |= 0x00000001; port_ = value; onChanged(); return this; } /** * * *
       * Port is the port number of the service port of which status is recorded here
       * 
* * optional int32 port = 1; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000001); port_ = 0; onChanged(); return this; } private java.lang.Object protocol_ = ""; /** * * *
       * Protocol is the protocol of the service port of which status is recorded here
       * The supported values are: "TCP", "UDP", "SCTP"
       * 
* * optional string protocol = 2; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Protocol is the protocol of the service port of which status is recorded here
       * The supported values are: "TCP", "UDP", "SCTP"
       * 
* * optional string protocol = 2; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Protocol is the protocol of the service port of which status is recorded here
       * The supported values are: "TCP", "UDP", "SCTP"
       * 
* * optional string protocol = 2; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Protocol is the protocol of the service port of which status is recorded here
       * The supported values are: "TCP", "UDP", "SCTP"
       * 
* * optional string protocol = 2; */ public Builder setProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; protocol_ = value; onChanged(); return this; } /** * * *
       * Protocol is the protocol of the service port of which status is recorded here
       * The supported values are: "TCP", "UDP", "SCTP"
       * 
* * optional string protocol = 2; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000002); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** * * *
       * Protocol is the protocol of the service port of which status is recorded here
       * The supported values are: "TCP", "UDP", "SCTP"
       * 
* * optional string protocol = 2; */ public Builder setProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; protocol_ = value; onChanged(); return this; } private java.lang.Object error_ = ""; /** * * *
       * Error is to record the problem with the service port
       * The format of the error shall comply with the following rules:
       * - built-in error values shall be specified in this file and those shall use
       *   CamelCase names
       * - cloud provider specific error values must have names that comply with the
       *   format foo.example.com/CamelCase.
       * ---
       * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
       * +optional
       * +kubebuilder:validation:Required
       * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
       * +kubebuilder:validation:MaxLength=316
       * 
* * optional string error = 3; */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Error is to record the problem with the service port
       * The format of the error shall comply with the following rules:
       * - built-in error values shall be specified in this file and those shall use
       *   CamelCase names
       * - cloud provider specific error values must have names that comply with the
       *   format foo.example.com/CamelCase.
       * ---
       * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
       * +optional
       * +kubebuilder:validation:Required
       * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
       * +kubebuilder:validation:MaxLength=316
       * 
* * optional string error = 3; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { error_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Error is to record the problem with the service port
       * The format of the error shall comply with the following rules:
       * - built-in error values shall be specified in this file and those shall use
       *   CamelCase names
       * - cloud provider specific error values must have names that comply with the
       *   format foo.example.com/CamelCase.
       * ---
       * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
       * +optional
       * +kubebuilder:validation:Required
       * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
       * +kubebuilder:validation:MaxLength=316
       * 
* * optional string error = 3; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Error is to record the problem with the service port
       * The format of the error shall comply with the following rules:
       * - built-in error values shall be specified in this file and those shall use
       *   CamelCase names
       * - cloud provider specific error values must have names that comply with the
       *   format foo.example.com/CamelCase.
       * ---
       * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
       * +optional
       * +kubebuilder:validation:Required
       * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
       * +kubebuilder:validation:MaxLength=316
       * 
* * optional string error = 3; */ public Builder setError(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; error_ = value; onChanged(); return this; } /** * * *
       * Error is to record the problem with the service port
       * The format of the error shall comply with the following rules:
       * - built-in error values shall be specified in this file and those shall use
       *   CamelCase names
       * - cloud provider specific error values must have names that comply with the
       *   format foo.example.com/CamelCase.
       * ---
       * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
       * +optional
       * +kubebuilder:validation:Required
       * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
       * +kubebuilder:validation:MaxLength=316
       * 
* * optional string error = 3; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000004); error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * * *
       * Error is to record the problem with the service port
       * The format of the error shall comply with the following rules:
       * - built-in error values shall be specified in this file and those shall use
       *   CamelCase names
       * - cloud provider specific error values must have names that comply with the
       *   format foo.example.com/CamelCase.
       * ---
       * The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
       * +optional
       * +kubebuilder:validation:Required
       * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
       * +kubebuilder:validation:MaxLength=316
       * 
* * optional string error = 3; */ public Builder setErrorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; error_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PortStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PortStatus) private static final io.kubernetes.client.proto.V1.PortStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PortStatus(); } public static io.kubernetes.client.proto.V1.PortStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PortStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PortStatus(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.V1.PortStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PortworxVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PortworxVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * VolumeID uniquely identifies a Portworx volume
     * 
* * optional string volumeID = 1; */ boolean hasVolumeID(); /** * * *
     * VolumeID uniquely identifies a Portworx volume
     * 
* * optional string volumeID = 1; */ java.lang.String getVolumeID(); /** * * *
     * VolumeID uniquely identifies a Portworx volume
     * 
* * optional string volumeID = 1; */ com.google.protobuf.ByteString getVolumeIDBytes(); /** * * *
     * FSType represents the filesystem type to mount
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * FSType represents the filesystem type to mount
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * FSType represents the filesystem type to mount
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); } /** * * *
   * PortworxVolumeSource represents a Portworx volume resource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PortworxVolumeSource} */ public static final class PortworxVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PortworxVolumeSource) PortworxVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use PortworxVolumeSource.newBuilder() to construct. private PortworxVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortworxVolumeSource() { volumeID_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PortworxVolumeSource( 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; volumeID_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PortworxVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PortworxVolumeSource.class, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMEID_FIELD_NUMBER = 1; private volatile java.lang.Object volumeID_; /** * * *
     * VolumeID uniquely identifies a Portworx volume
     * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * VolumeID uniquely identifies a Portworx volume
     * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } } /** * * *
     * VolumeID uniquely identifies a Portworx volume
     * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * FSType represents the filesystem type to mount
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * FSType represents the filesystem type to mount
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * FSType represents the filesystem type to mount
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } 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, volumeID_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } 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.V1.PortworxVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PortworxVolumeSource other = (io.kubernetes.client.proto.V1.PortworxVolumeSource) obj; boolean result = true; result = result && (hasVolumeID() == other.hasVolumeID()); if (hasVolumeID()) { result = result && getVolumeID().equals(other.getVolumeID()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasVolumeID()) { hash = (37 * hash) + VOLUMEID_FIELD_NUMBER; hash = (53 * hash) + getVolumeID().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PortworxVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource 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.V1.PortworxVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource 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.V1.PortworxVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource 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.V1.PortworxVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource 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.V1.PortworxVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource 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.V1.PortworxVolumeSource 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; } /** * * *
     * PortworxVolumeSource represents a Portworx volume resource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PortworxVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PortworxVolumeSource) io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PortworxVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PortworxVolumeSource.class, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PortworxVolumeSource.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(); volumeID_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PortworxVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PortworxVolumeSource build() { io.kubernetes.client.proto.V1.PortworxVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PortworxVolumeSource buildPartial() { io.kubernetes.client.proto.V1.PortworxVolumeSource result = new io.kubernetes.client.proto.V1.PortworxVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumeID_ = volumeID_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; 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.V1.PortworxVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.PortworxVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PortworxVolumeSource other) { if (other == io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeID()) { bitField0_ |= 0x00000001; volumeID_ = other.volumeID_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.PortworxVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PortworxVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumeID_ = ""; /** * * *
       * VolumeID uniquely identifies a Portworx volume
       * 
* * optional string volumeID = 1; */ public boolean hasVolumeID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * VolumeID uniquely identifies a Portworx volume
       * 
* * optional string volumeID = 1; */ public java.lang.String getVolumeID() { java.lang.Object ref = volumeID_; 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()) { volumeID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeID uniquely identifies a Portworx volume
       * 
* * optional string volumeID = 1; */ public com.google.protobuf.ByteString getVolumeIDBytes() { java.lang.Object ref = volumeID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeID uniquely identifies a Portworx volume
       * 
* * optional string volumeID = 1; */ public Builder setVolumeID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } /** * * *
       * VolumeID uniquely identifies a Portworx volume
       * 
* * optional string volumeID = 1; */ public Builder clearVolumeID() { bitField0_ = (bitField0_ & ~0x00000001); volumeID_ = getDefaultInstance().getVolumeID(); onChanged(); return this; } /** * * *
       * VolumeID uniquely identifies a Portworx volume
       * 
* * optional string volumeID = 1; */ public Builder setVolumeIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeID_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * FSType represents the filesystem type to mount
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * FSType represents the filesystem type to mount
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * FSType represents the filesystem type to mount
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * FSType represents the filesystem type to mount
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * FSType represents the filesystem type to mount
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * FSType represents the filesystem type to mount
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = 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.core.v1.PortworxVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PortworxVolumeSource) private static final io.kubernetes.client.proto.V1.PortworxVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PortworxVolumeSource(); } public static io.kubernetes.client.proto.V1.PortworxVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PortworxVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PortworxVolumeSource(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.V1.PortworxVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PreconditionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Preconditions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Specifies the target UID.
     * +optional
     * 
* * optional string uid = 1; */ boolean hasUid(); /** * * *
     * Specifies the target UID.
     * +optional
     * 
* * optional string uid = 1; */ java.lang.String getUid(); /** * * *
     * Specifies the target UID.
     * +optional
     * 
* * optional string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); } /** * * *
   * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
   * +k8s:openapi-gen=false
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Preconditions} */ public static final class Preconditions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Preconditions) PreconditionsOrBuilder { private static final long serialVersionUID = 0L; // Use Preconditions.newBuilder() to construct. private Preconditions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Preconditions() { uid_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Preconditions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; uid_ = bs; break; } 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 .V1 .internal_static_k8s_io_api_core_v1_Preconditions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Preconditions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Preconditions.class, io.kubernetes.client.proto.V1.Preconditions.Builder.class); } private int bitField0_; public static final int UID_FIELD_NUMBER = 1; private volatile java.lang.Object uid_; /** * * *
     * Specifies the target UID.
     * +optional
     * 
* * optional string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Specifies the target UID.
     * +optional
     * 
* * optional string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } } /** * * *
     * Specifies the target UID.
     * +optional
     * 
* * optional string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); } 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.V1.Preconditions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Preconditions other = (io.kubernetes.client.proto.V1.Preconditions) obj; boolean result = true; result = result && (hasUid() == other.hasUid()); if (hasUid()) { result = result && getUid().equals(other.getUid()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUid()) { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Preconditions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Preconditions 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.V1.Preconditions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Preconditions 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.V1.Preconditions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Preconditions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Preconditions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Preconditions 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.V1.Preconditions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Preconditions 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.V1.Preconditions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Preconditions 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.V1.Preconditions 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; } /** * * *
     * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
     * +k8s:openapi-gen=false
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Preconditions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Preconditions) io.kubernetes.client.proto.V1.PreconditionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Preconditions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Preconditions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Preconditions.class, io.kubernetes.client.proto.V1.Preconditions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Preconditions.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(); uid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Preconditions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Preconditions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Preconditions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Preconditions build() { io.kubernetes.client.proto.V1.Preconditions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Preconditions buildPartial() { io.kubernetes.client.proto.V1.Preconditions result = new io.kubernetes.client.proto.V1.Preconditions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.uid_ = uid_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.Preconditions) { return mergeFrom((io.kubernetes.client.proto.V1.Preconditions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Preconditions other) { if (other == io.kubernetes.client.proto.V1.Preconditions.getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.Preconditions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Preconditions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object uid_ = ""; /** * * *
       * Specifies the target UID.
       * +optional
       * 
* * optional string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Specifies the target UID.
       * +optional
       * 
* * optional string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { uid_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Specifies the target UID.
       * +optional
       * 
* * optional string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Specifies the target UID.
       * +optional
       * 
* * optional string uid = 1; */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * * *
       * Specifies the target UID.
       * +optional
       * 
* * optional string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * * *
       * Specifies the target UID.
       * +optional
       * 
* * optional string uid = 1; */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } @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.core.v1.Preconditions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Preconditions) private static final io.kubernetes.client.proto.V1.Preconditions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Preconditions(); } public static io.kubernetes.client.proto.V1.Preconditions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Preconditions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Preconditions(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.V1.Preconditions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PreferAvoidPodsEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PreferAvoidPodsEntry) com.google.protobuf.MessageOrBuilder { /** * * *
     * The class of pods.
     * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ boolean hasPodSignature(); /** * * *
     * The class of pods.
     * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ io.kubernetes.client.proto.V1.PodSignature getPodSignature(); /** * * *
     * The class of pods.
     * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ io.kubernetes.client.proto.V1.PodSignatureOrBuilder getPodSignatureOrBuilder(); /** * * *
     * Time at which this entry was added to the list.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ boolean hasEvictionTime(); /** * * *
     * Time at which this entry was added to the list.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ io.kubernetes.client.proto.Meta.Time getEvictionTime(); /** * * *
     * Time at which this entry was added to the list.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getEvictionTimeOrBuilder(); /** * * *
     * (brief) reason why this entry was added to the list.
     * +optional
     * 
* * optional string reason = 3; */ boolean hasReason(); /** * * *
     * (brief) reason why this entry was added to the list.
     * +optional
     * 
* * optional string reason = 3; */ java.lang.String getReason(); /** * * *
     * (brief) reason why this entry was added to the list.
     * +optional
     * 
* * optional string reason = 3; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * Human readable message indicating why this entry was added to the list.
     * +optional
     * 
* * optional string message = 4; */ boolean hasMessage(); /** * * *
     * Human readable message indicating why this entry was added to the list.
     * +optional
     * 
* * optional string message = 4; */ java.lang.String getMessage(); /** * * *
     * Human readable message indicating why this entry was added to the list.
     * +optional
     * 
* * optional string message = 4; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * Describes a class of pods that should avoid this node.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PreferAvoidPodsEntry} */ public static final class PreferAvoidPodsEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PreferAvoidPodsEntry) PreferAvoidPodsEntryOrBuilder { private static final long serialVersionUID = 0L; // Use PreferAvoidPodsEntry.newBuilder() to construct. private PreferAvoidPodsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PreferAvoidPodsEntry() { reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PreferAvoidPodsEntry( 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.V1.PodSignature.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = podSignature_.toBuilder(); } podSignature_ = input.readMessage( io.kubernetes.client.proto.V1.PodSignature.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(podSignature_); podSignature_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = evictionTime_.toBuilder(); } evictionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(evictionTime_); evictionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; reason_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.class, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder.class); } private int bitField0_; public static final int PODSIGNATURE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.PodSignature podSignature_; /** * * *
     * The class of pods.
     * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public boolean hasPodSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The class of pods.
     * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public io.kubernetes.client.proto.V1.PodSignature getPodSignature() { return podSignature_ == null ? io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance() : podSignature_; } /** * * *
     * The class of pods.
     * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public io.kubernetes.client.proto.V1.PodSignatureOrBuilder getPodSignatureOrBuilder() { return podSignature_ == null ? io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance() : podSignature_; } public static final int EVICTIONTIME_FIELD_NUMBER = 2; private io.kubernetes.client.proto.Meta.Time evictionTime_; /** * * *
     * Time at which this entry was added to the list.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public boolean hasEvictionTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Time at which this entry was added to the list.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public io.kubernetes.client.proto.Meta.Time getEvictionTime() { return evictionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : evictionTime_; } /** * * *
     * Time at which this entry was added to the list.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getEvictionTimeOrBuilder() { return evictionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : evictionTime_; } public static final int REASON_FIELD_NUMBER = 3; private volatile java.lang.Object reason_; /** * * *
     * (brief) reason why this entry was added to the list.
     * +optional
     * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * (brief) reason why this entry was added to the list.
     * +optional
     * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * (brief) reason why this entry was added to the list.
     * +optional
     * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 4; private volatile java.lang.Object message_; /** * * *
     * Human readable message indicating why this entry was added to the list.
     * +optional
     * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Human readable message indicating why this entry was added to the list.
     * +optional
     * 
* * optional string message = 4; */ 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; } } /** * * *
     * Human readable message indicating why this entry was added to the list.
     * +optional
     * 
* * optional string message = 4; */ 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, getPodSignature()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getEvictionTime()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, reason_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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, getPodSignature()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvictionTime()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, reason_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.V1.PreferAvoidPodsEntry)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PreferAvoidPodsEntry other = (io.kubernetes.client.proto.V1.PreferAvoidPodsEntry) obj; boolean result = true; result = result && (hasPodSignature() == other.hasPodSignature()); if (hasPodSignature()) { result = result && getPodSignature().equals(other.getPodSignature()); } result = result && (hasEvictionTime() == other.hasEvictionTime()); if (hasEvictionTime()) { result = result && getEvictionTime().equals(other.getEvictionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPodSignature()) { hash = (37 * hash) + PODSIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getPodSignature().hashCode(); } if (hasEvictionTime()) { hash = (37 * hash) + EVICTIONTIME_FIELD_NUMBER; hash = (53 * hash) + getEvictionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry 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.V1.PreferAvoidPodsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry 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.V1.PreferAvoidPodsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry 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.V1.PreferAvoidPodsEntry parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry 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.V1.PreferAvoidPodsEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry 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.V1.PreferAvoidPodsEntry 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; } /** * * *
     * Describes a class of pods that should avoid this node.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PreferAvoidPodsEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PreferAvoidPodsEntry) io.kubernetes.client.proto.V1.PreferAvoidPodsEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.class, io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPodSignatureFieldBuilder(); getEvictionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (podSignatureBuilder_ == null) { podSignature_ = null; } else { podSignatureBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (evictionTimeBuilder_ == null) { evictionTime_ = null; } else { evictionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000004); message_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry build() { io.kubernetes.client.proto.V1.PreferAvoidPodsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PreferAvoidPodsEntry buildPartial() { io.kubernetes.client.proto.V1.PreferAvoidPodsEntry result = new io.kubernetes.client.proto.V1.PreferAvoidPodsEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (podSignatureBuilder_ == null) { result.podSignature_ = podSignature_; } else { result.podSignature_ = podSignatureBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (evictionTimeBuilder_ == null) { result.evictionTime_ = evictionTime_; } else { result.evictionTime_ = evictionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } 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.V1.PreferAvoidPodsEntry) { return mergeFrom((io.kubernetes.client.proto.V1.PreferAvoidPodsEntry) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PreferAvoidPodsEntry other) { if (other == io.kubernetes.client.proto.V1.PreferAvoidPodsEntry.getDefaultInstance()) return this; if (other.hasPodSignature()) { mergePodSignature(other.getPodSignature()); } if (other.hasEvictionTime()) { mergeEvictionTime(other.getEvictionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000004; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000008; 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.V1.PreferAvoidPodsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PreferAvoidPodsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.PodSignature podSignature_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSignature, io.kubernetes.client.proto.V1.PodSignature.Builder, io.kubernetes.client.proto.V1.PodSignatureOrBuilder> podSignatureBuilder_; /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public boolean hasPodSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public io.kubernetes.client.proto.V1.PodSignature getPodSignature() { if (podSignatureBuilder_ == null) { return podSignature_ == null ? io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance() : podSignature_; } else { return podSignatureBuilder_.getMessage(); } } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public Builder setPodSignature(io.kubernetes.client.proto.V1.PodSignature value) { if (podSignatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } podSignature_ = value; onChanged(); } else { podSignatureBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public Builder setPodSignature( io.kubernetes.client.proto.V1.PodSignature.Builder builderForValue) { if (podSignatureBuilder_ == null) { podSignature_ = builderForValue.build(); onChanged(); } else { podSignatureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public Builder mergePodSignature(io.kubernetes.client.proto.V1.PodSignature value) { if (podSignatureBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && podSignature_ != null && podSignature_ != io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance()) { podSignature_ = io.kubernetes.client.proto.V1.PodSignature.newBuilder(podSignature_) .mergeFrom(value) .buildPartial(); } else { podSignature_ = value; } onChanged(); } else { podSignatureBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public Builder clearPodSignature() { if (podSignatureBuilder_ == null) { podSignature_ = null; onChanged(); } else { podSignatureBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public io.kubernetes.client.proto.V1.PodSignature.Builder getPodSignatureBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPodSignatureFieldBuilder().getBuilder(); } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ public io.kubernetes.client.proto.V1.PodSignatureOrBuilder getPodSignatureOrBuilder() { if (podSignatureBuilder_ != null) { return podSignatureBuilder_.getMessageOrBuilder(); } else { return podSignature_ == null ? io.kubernetes.client.proto.V1.PodSignature.getDefaultInstance() : podSignature_; } } /** * * *
       * The class of pods.
       * 
* * optional .k8s.io.api.core.v1.PodSignature podSignature = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSignature, io.kubernetes.client.proto.V1.PodSignature.Builder, io.kubernetes.client.proto.V1.PodSignatureOrBuilder> getPodSignatureFieldBuilder() { if (podSignatureBuilder_ == null) { podSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodSignature, io.kubernetes.client.proto.V1.PodSignature.Builder, io.kubernetes.client.proto.V1.PodSignatureOrBuilder>( getPodSignature(), getParentForChildren(), isClean()); podSignature_ = null; } return podSignatureBuilder_; } private io.kubernetes.client.proto.Meta.Time evictionTime_ = 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> evictionTimeBuilder_; /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public boolean hasEvictionTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public io.kubernetes.client.proto.Meta.Time getEvictionTime() { if (evictionTimeBuilder_ == null) { return evictionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : evictionTime_; } else { return evictionTimeBuilder_.getMessage(); } } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public Builder setEvictionTime(io.kubernetes.client.proto.Meta.Time value) { if (evictionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } evictionTime_ = value; onChanged(); } else { evictionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public Builder setEvictionTime(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (evictionTimeBuilder_ == null) { evictionTime_ = builderForValue.build(); onChanged(); } else { evictionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public Builder mergeEvictionTime(io.kubernetes.client.proto.Meta.Time value) { if (evictionTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && evictionTime_ != null && evictionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { evictionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(evictionTime_) .mergeFrom(value) .buildPartial(); } else { evictionTime_ = value; } onChanged(); } else { evictionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public Builder clearEvictionTime() { if (evictionTimeBuilder_ == null) { evictionTime_ = null; onChanged(); } else { evictionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public io.kubernetes.client.proto.Meta.Time.Builder getEvictionTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEvictionTimeFieldBuilder().getBuilder(); } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getEvictionTimeOrBuilder() { if (evictionTimeBuilder_ != null) { return evictionTimeBuilder_.getMessageOrBuilder(); } else { return evictionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : evictionTime_; } } /** * * *
       * Time at which this entry was added to the list.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time evictionTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getEvictionTimeFieldBuilder() { if (evictionTimeBuilder_ == null) { evictionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getEvictionTime(), getParentForChildren(), isClean()); evictionTime_ = null; } return evictionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * (brief) reason why this entry was added to the list.
       * +optional
       * 
* * optional string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * (brief) reason why this entry was added to the list.
       * +optional
       * 
* * optional string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * (brief) reason why this entry was added to the list.
       * +optional
       * 
* * optional string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * (brief) reason why this entry was added to the list.
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } /** * * *
       * (brief) reason why this entry was added to the list.
       * +optional
       * 
* * optional string reason = 3; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000004); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * (brief) reason why this entry was added to the list.
       * +optional
       * 
* * optional string reason = 3; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * Human readable message indicating why this entry was added to the list.
       * +optional
       * 
* * optional string message = 4; */ public boolean hasMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Human readable message indicating why this entry was added to the list.
       * +optional
       * 
* * optional string message = 4; */ 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; } } /** * * *
       * Human readable message indicating why this entry was added to the list.
       * +optional
       * 
* * optional string message = 4; */ 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; } } /** * * *
       * Human readable message indicating why this entry was added to the list.
       * +optional
       * 
* * optional string message = 4; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; message_ = value; onChanged(); return this; } /** * * *
       * Human readable message indicating why this entry was added to the list.
       * +optional
       * 
* * optional string message = 4; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000008); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * Human readable message indicating why this entry was added to the list.
       * +optional
       * 
* * optional string message = 4; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; 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.core.v1.PreferAvoidPodsEntry) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PreferAvoidPodsEntry) private static final io.kubernetes.client.proto.V1.PreferAvoidPodsEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PreferAvoidPodsEntry(); } public static io.kubernetes.client.proto.V1.PreferAvoidPodsEntry getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PreferAvoidPodsEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PreferAvoidPodsEntry(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.V1.PreferAvoidPodsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PreferredSchedulingTermOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PreferredSchedulingTerm) com.google.protobuf.MessageOrBuilder { /** * * *
     * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
     * 
* * optional int32 weight = 1; */ boolean hasWeight(); /** * * *
     * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
     * 
* * optional int32 weight = 1; */ int getWeight(); /** * * *
     * A node selector term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ boolean hasPreference(); /** * * *
     * A node selector term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ io.kubernetes.client.proto.V1.NodeSelectorTerm getPreference(); /** * * *
     * A node selector term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder getPreferenceOrBuilder(); } /** * * *
   * An empty preferred scheduling term matches all objects with implicit weight 0
   * (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
   * 
* * Protobuf type {@code k8s.io.api.core.v1.PreferredSchedulingTerm} */ public static final class PreferredSchedulingTerm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PreferredSchedulingTerm) PreferredSchedulingTermOrBuilder { private static final long serialVersionUID = 0L; // Use PreferredSchedulingTerm.newBuilder() to construct. private PreferredSchedulingTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PreferredSchedulingTerm() { weight_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PreferredSchedulingTerm( 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; weight_ = input.readInt32(); break; } case 18: { io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = preference_.toBuilder(); } preference_ = input.readMessage( io.kubernetes.client.proto.V1.NodeSelectorTerm.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preference_); preference_ = 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 .V1 .internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PreferredSchedulingTerm.class, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder.class); } private int bitField0_; public static final int WEIGHT_FIELD_NUMBER = 1; private int weight_; /** * * *
     * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
     * 
* * optional int32 weight = 1; */ public boolean hasWeight() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
     * 
* * optional int32 weight = 1; */ public int getWeight() { return weight_; } public static final int PREFERENCE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.NodeSelectorTerm preference_; /** * * *
     * A node selector term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public boolean hasPreference() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * A node selector term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm getPreference() { return preference_ == null ? io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance() : preference_; } /** * * *
     * A node selector term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder getPreferenceOrBuilder() { return preference_ == null ? io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance() : preference_; } 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, weight_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPreference()); } 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, weight_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPreference()); } 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.V1.PreferredSchedulingTerm)) { return super.equals(obj); } io.kubernetes.client.proto.V1.PreferredSchedulingTerm other = (io.kubernetes.client.proto.V1.PreferredSchedulingTerm) obj; boolean result = true; result = result && (hasWeight() == other.hasWeight()); if (hasWeight()) { result = result && (getWeight() == other.getWeight()); } result = result && (hasPreference() == other.hasPreference()); if (hasPreference()) { result = result && getPreference().equals(other.getPreference()); } 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 (hasWeight()) { hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); } if (hasPreference()) { hash = (37 * hash) + PREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getPreference().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm 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.V1.PreferredSchedulingTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm 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.V1.PreferredSchedulingTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm 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.V1.PreferredSchedulingTerm parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm 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.V1.PreferredSchedulingTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm 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.V1.PreferredSchedulingTerm 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; } /** * * *
     * An empty preferred scheduling term matches all objects with implicit weight 0
     * (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
     * 
* * Protobuf type {@code k8s.io.api.core.v1.PreferredSchedulingTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PreferredSchedulingTerm) io.kubernetes.client.proto.V1.PreferredSchedulingTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.PreferredSchedulingTerm.class, io.kubernetes.client.proto.V1.PreferredSchedulingTerm.Builder.class); } // Construct using io.kubernetes.client.proto.V1.PreferredSchedulingTerm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPreferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); weight_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (preferenceBuilder_ == null) { preference_ = null; } else { preferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.PreferredSchedulingTerm getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.PreferredSchedulingTerm.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.PreferredSchedulingTerm build() { io.kubernetes.client.proto.V1.PreferredSchedulingTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.PreferredSchedulingTerm buildPartial() { io.kubernetes.client.proto.V1.PreferredSchedulingTerm result = new io.kubernetes.client.proto.V1.PreferredSchedulingTerm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.weight_ = weight_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (preferenceBuilder_ == null) { result.preference_ = preference_; } else { result.preference_ = preferenceBuilder_.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.V1.PreferredSchedulingTerm) { return mergeFrom((io.kubernetes.client.proto.V1.PreferredSchedulingTerm) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.PreferredSchedulingTerm other) { if (other == io.kubernetes.client.proto.V1.PreferredSchedulingTerm.getDefaultInstance()) return this; if (other.hasWeight()) { setWeight(other.getWeight()); } if (other.hasPreference()) { mergePreference(other.getPreference()); } 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.V1.PreferredSchedulingTerm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.PreferredSchedulingTerm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int weight_; /** * * *
       * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
       * 
* * optional int32 weight = 1; */ public boolean hasWeight() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
       * 
* * optional int32 weight = 1; */ public int getWeight() { return weight_; } /** * * *
       * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
       * 
* * optional int32 weight = 1; */ public Builder setWeight(int value) { bitField0_ |= 0x00000001; weight_ = value; onChanged(); return this; } /** * * *
       * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
       * 
* * optional int32 weight = 1; */ public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000001); weight_ = 0; onChanged(); return this; } private io.kubernetes.client.proto.V1.NodeSelectorTerm preference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorTerm, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder, io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder> preferenceBuilder_; /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public boolean hasPreference() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm getPreference() { if (preferenceBuilder_ == null) { return preference_ == null ? io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance() : preference_; } else { return preferenceBuilder_.getMessage(); } } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public Builder setPreference(io.kubernetes.client.proto.V1.NodeSelectorTerm value) { if (preferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preference_ = value; onChanged(); } else { preferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public Builder setPreference( io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder builderForValue) { if (preferenceBuilder_ == null) { preference_ = builderForValue.build(); onChanged(); } else { preferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public Builder mergePreference(io.kubernetes.client.proto.V1.NodeSelectorTerm value) { if (preferenceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && preference_ != null && preference_ != io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance()) { preference_ = io.kubernetes.client.proto.V1.NodeSelectorTerm.newBuilder(preference_) .mergeFrom(value) .buildPartial(); } else { preference_ = value; } onChanged(); } else { preferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public Builder clearPreference() { if (preferenceBuilder_ == null) { preference_ = null; onChanged(); } else { preferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder getPreferenceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPreferenceFieldBuilder().getBuilder(); } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ public io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder getPreferenceOrBuilder() { if (preferenceBuilder_ != null) { return preferenceBuilder_.getMessageOrBuilder(); } else { return preference_ == null ? io.kubernetes.client.proto.V1.NodeSelectorTerm.getDefaultInstance() : preference_; } } /** * * *
       * A node selector term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.NodeSelectorTerm preference = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorTerm, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder, io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder> getPreferenceFieldBuilder() { if (preferenceBuilder_ == null) { preferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelectorTerm, io.kubernetes.client.proto.V1.NodeSelectorTerm.Builder, io.kubernetes.client.proto.V1.NodeSelectorTermOrBuilder>( getPreference(), getParentForChildren(), isClean()); preference_ = null; } return preferenceBuilder_; } @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.core.v1.PreferredSchedulingTerm) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PreferredSchedulingTerm) private static final io.kubernetes.client.proto.V1.PreferredSchedulingTerm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PreferredSchedulingTerm(); } public static io.kubernetes.client.proto.V1.PreferredSchedulingTerm getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PreferredSchedulingTerm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PreferredSchedulingTerm(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.V1.PreferredSchedulingTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProbeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Probe) com.google.protobuf.MessageOrBuilder { /** * * *
     * The action taken to determine the health of a container
     * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ boolean hasHandler(); /** * * *
     * The action taken to determine the health of a container
     * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ io.kubernetes.client.proto.V1.ProbeHandler getHandler(); /** * * *
     * The action taken to determine the health of a container
     * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder getHandlerOrBuilder(); /** * * *
     * Number of seconds after the container has started before liveness probes are initiated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 initialDelaySeconds = 2; */ boolean hasInitialDelaySeconds(); /** * * *
     * Number of seconds after the container has started before liveness probes are initiated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 initialDelaySeconds = 2; */ int getInitialDelaySeconds(); /** * * *
     * Number of seconds after which the probe times out.
     * Defaults to 1 second. Minimum value is 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 timeoutSeconds = 3; */ boolean hasTimeoutSeconds(); /** * * *
     * Number of seconds after which the probe times out.
     * Defaults to 1 second. Minimum value is 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 timeoutSeconds = 3; */ int getTimeoutSeconds(); /** * * *
     * How often (in seconds) to perform the probe.
     * Default to 10 seconds. Minimum value is 1.
     * +optional
     * 
* * optional int32 periodSeconds = 4; */ boolean hasPeriodSeconds(); /** * * *
     * How often (in seconds) to perform the probe.
     * Default to 10 seconds. Minimum value is 1.
     * +optional
     * 
* * optional int32 periodSeconds = 4; */ int getPeriodSeconds(); /** * * *
     * Minimum consecutive successes for the probe to be considered successful after having failed.
     * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
     * +optional
     * 
* * optional int32 successThreshold = 5; */ boolean hasSuccessThreshold(); /** * * *
     * Minimum consecutive successes for the probe to be considered successful after having failed.
     * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
     * +optional
     * 
* * optional int32 successThreshold = 5; */ int getSuccessThreshold(); /** * * *
     * Minimum consecutive failures for the probe to be considered failed after having succeeded.
     * Defaults to 3. Minimum value is 1.
     * +optional
     * 
* * optional int32 failureThreshold = 6; */ boolean hasFailureThreshold(); /** * * *
     * Minimum consecutive failures for the probe to be considered failed after having succeeded.
     * Defaults to 3. Minimum value is 1.
     * +optional
     * 
* * optional int32 failureThreshold = 6; */ int getFailureThreshold(); /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
     * value overrides the value provided by the pod spec.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
     * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 7; */ boolean hasTerminationGracePeriodSeconds(); /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
     * value overrides the value provided by the pod spec.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
     * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 7; */ long getTerminationGracePeriodSeconds(); } /** * * *
   * Probe describes a health check to be performed against a container to determine whether it is
   * alive or ready to receive traffic.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Probe} */ public static final class Probe extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Probe) ProbeOrBuilder { private static final long serialVersionUID = 0L; // Use Probe.newBuilder() to construct. private Probe(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Probe() { initialDelaySeconds_ = 0; timeoutSeconds_ = 0; periodSeconds_ = 0; successThreshold_ = 0; failureThreshold_ = 0; terminationGracePeriodSeconds_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Probe( 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.V1.ProbeHandler.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = handler_.toBuilder(); } handler_ = input.readMessage( io.kubernetes.client.proto.V1.ProbeHandler.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(handler_); handler_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; initialDelaySeconds_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; timeoutSeconds_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; periodSeconds_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; successThreshold_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; failureThreshold_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; terminationGracePeriodSeconds_ = 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.V1.internal_static_k8s_io_api_core_v1_Probe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Probe_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Probe.class, io.kubernetes.client.proto.V1.Probe.Builder.class); } private int bitField0_; public static final int HANDLER_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ProbeHandler handler_; /** * * *
     * The action taken to determine the health of a container
     * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public boolean hasHandler() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The action taken to determine the health of a container
     * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public io.kubernetes.client.proto.V1.ProbeHandler getHandler() { return handler_ == null ? io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance() : handler_; } /** * * *
     * The action taken to determine the health of a container
     * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder getHandlerOrBuilder() { return handler_ == null ? io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance() : handler_; } public static final int INITIALDELAYSECONDS_FIELD_NUMBER = 2; private int initialDelaySeconds_; /** * * *
     * Number of seconds after the container has started before liveness probes are initiated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 initialDelaySeconds = 2; */ public boolean hasInitialDelaySeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Number of seconds after the container has started before liveness probes are initiated.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 initialDelaySeconds = 2; */ public int getInitialDelaySeconds() { return initialDelaySeconds_; } public static final int TIMEOUTSECONDS_FIELD_NUMBER = 3; private int timeoutSeconds_; /** * * *
     * Number of seconds after which the probe times out.
     * Defaults to 1 second. Minimum value is 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 timeoutSeconds = 3; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Number of seconds after which the probe times out.
     * Defaults to 1 second. Minimum value is 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
     * +optional
     * 
* * optional int32 timeoutSeconds = 3; */ public int getTimeoutSeconds() { return timeoutSeconds_; } public static final int PERIODSECONDS_FIELD_NUMBER = 4; private int periodSeconds_; /** * * *
     * How often (in seconds) to perform the probe.
     * Default to 10 seconds. Minimum value is 1.
     * +optional
     * 
* * optional int32 periodSeconds = 4; */ public boolean hasPeriodSeconds() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * How often (in seconds) to perform the probe.
     * Default to 10 seconds. Minimum value is 1.
     * +optional
     * 
* * optional int32 periodSeconds = 4; */ public int getPeriodSeconds() { return periodSeconds_; } public static final int SUCCESSTHRESHOLD_FIELD_NUMBER = 5; private int successThreshold_; /** * * *
     * Minimum consecutive successes for the probe to be considered successful after having failed.
     * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
     * +optional
     * 
* * optional int32 successThreshold = 5; */ public boolean hasSuccessThreshold() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Minimum consecutive successes for the probe to be considered successful after having failed.
     * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
     * +optional
     * 
* * optional int32 successThreshold = 5; */ public int getSuccessThreshold() { return successThreshold_; } public static final int FAILURETHRESHOLD_FIELD_NUMBER = 6; private int failureThreshold_; /** * * *
     * Minimum consecutive failures for the probe to be considered failed after having succeeded.
     * Defaults to 3. Minimum value is 1.
     * +optional
     * 
* * optional int32 failureThreshold = 6; */ public boolean hasFailureThreshold() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Minimum consecutive failures for the probe to be considered failed after having succeeded.
     * Defaults to 3. Minimum value is 1.
     * +optional
     * 
* * optional int32 failureThreshold = 6; */ public int getFailureThreshold() { return failureThreshold_; } public static final int TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER = 7; private long terminationGracePeriodSeconds_; /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
     * value overrides the value provided by the pod spec.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
     * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 7; */ public boolean hasTerminationGracePeriodSeconds() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
     * The grace period is the duration in seconds after the processes running in the pod are sent
     * a termination signal and the time when the processes are forcibly halted with a kill signal.
     * Set this value longer than the expected cleanup time for your process.
     * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
     * value overrides the value provided by the pod spec.
     * Value must be non-negative integer. The value zero indicates stop immediately via
     * the kill signal (no opportunity to shut down).
     * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
     * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
     * +optional
     * 
* * optional int64 terminationGracePeriodSeconds = 7; */ public long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds_; } 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, getHandler()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, initialDelaySeconds_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, timeoutSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, periodSeconds_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, successThreshold_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, failureThreshold_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, terminationGracePeriodSeconds_); } 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, getHandler()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, initialDelaySeconds_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, timeoutSeconds_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, periodSeconds_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, successThreshold_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, failureThreshold_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size( 7, terminationGracePeriodSeconds_); } 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.V1.Probe)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Probe other = (io.kubernetes.client.proto.V1.Probe) obj; boolean result = true; result = result && (hasHandler() == other.hasHandler()); if (hasHandler()) { result = result && getHandler().equals(other.getHandler()); } result = result && (hasInitialDelaySeconds() == other.hasInitialDelaySeconds()); if (hasInitialDelaySeconds()) { result = result && (getInitialDelaySeconds() == other.getInitialDelaySeconds()); } result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds()); if (hasTimeoutSeconds()) { result = result && (getTimeoutSeconds() == other.getTimeoutSeconds()); } result = result && (hasPeriodSeconds() == other.hasPeriodSeconds()); if (hasPeriodSeconds()) { result = result && (getPeriodSeconds() == other.getPeriodSeconds()); } result = result && (hasSuccessThreshold() == other.hasSuccessThreshold()); if (hasSuccessThreshold()) { result = result && (getSuccessThreshold() == other.getSuccessThreshold()); } result = result && (hasFailureThreshold() == other.hasFailureThreshold()); if (hasFailureThreshold()) { result = result && (getFailureThreshold() == other.getFailureThreshold()); } result = result && (hasTerminationGracePeriodSeconds() == other.hasTerminationGracePeriodSeconds()); if (hasTerminationGracePeriodSeconds()) { result = result && (getTerminationGracePeriodSeconds() == other.getTerminationGracePeriodSeconds()); } 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 (hasHandler()) { hash = (37 * hash) + HANDLER_FIELD_NUMBER; hash = (53 * hash) + getHandler().hashCode(); } if (hasInitialDelaySeconds()) { hash = (37 * hash) + INITIALDELAYSECONDS_FIELD_NUMBER; hash = (53 * hash) + getInitialDelaySeconds(); } if (hasTimeoutSeconds()) { hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER; hash = (53 * hash) + getTimeoutSeconds(); } if (hasPeriodSeconds()) { hash = (37 * hash) + PERIODSECONDS_FIELD_NUMBER; hash = (53 * hash) + getPeriodSeconds(); } if (hasSuccessThreshold()) { hash = (37 * hash) + SUCCESSTHRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getSuccessThreshold(); } if (hasFailureThreshold()) { hash = (37 * hash) + FAILURETHRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getFailureThreshold(); } if (hasTerminationGracePeriodSeconds()) { hash = (37 * hash) + TERMINATIONGRACEPERIODSECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTerminationGracePeriodSeconds()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Probe parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Probe 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.V1.Probe parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Probe 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.V1.Probe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Probe parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Probe parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Probe 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.V1.Probe parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Probe 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.V1.Probe parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Probe 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.V1.Probe 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; } /** * * *
     * Probe describes a health check to be performed against a container to determine whether it is
     * alive or ready to receive traffic.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Probe} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Probe) io.kubernetes.client.proto.V1.ProbeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Probe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Probe_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Probe.class, io.kubernetes.client.proto.V1.Probe.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Probe.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHandlerFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (handlerBuilder_ == null) { handler_ = null; } else { handlerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); initialDelaySeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000002); timeoutSeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000004); periodSeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000008); successThreshold_ = 0; bitField0_ = (bitField0_ & ~0x00000010); failureThreshold_ = 0; bitField0_ = (bitField0_ & ~0x00000020); terminationGracePeriodSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Probe_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Probe getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Probe.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Probe build() { io.kubernetes.client.proto.V1.Probe result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Probe buildPartial() { io.kubernetes.client.proto.V1.Probe result = new io.kubernetes.client.proto.V1.Probe(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (handlerBuilder_ == null) { result.handler_ = handler_; } else { result.handler_ = handlerBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.initialDelaySeconds_ = initialDelaySeconds_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.timeoutSeconds_ = timeoutSeconds_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.periodSeconds_ = periodSeconds_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.successThreshold_ = successThreshold_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.failureThreshold_ = failureThreshold_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.terminationGracePeriodSeconds_ = terminationGracePeriodSeconds_; 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.V1.Probe) { return mergeFrom((io.kubernetes.client.proto.V1.Probe) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Probe other) { if (other == io.kubernetes.client.proto.V1.Probe.getDefaultInstance()) return this; if (other.hasHandler()) { mergeHandler(other.getHandler()); } if (other.hasInitialDelaySeconds()) { setInitialDelaySeconds(other.getInitialDelaySeconds()); } if (other.hasTimeoutSeconds()) { setTimeoutSeconds(other.getTimeoutSeconds()); } if (other.hasPeriodSeconds()) { setPeriodSeconds(other.getPeriodSeconds()); } if (other.hasSuccessThreshold()) { setSuccessThreshold(other.getSuccessThreshold()); } if (other.hasFailureThreshold()) { setFailureThreshold(other.getFailureThreshold()); } if (other.hasTerminationGracePeriodSeconds()) { setTerminationGracePeriodSeconds(other.getTerminationGracePeriodSeconds()); } 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.V1.Probe parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Probe) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ProbeHandler handler_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ProbeHandler, io.kubernetes.client.proto.V1.ProbeHandler.Builder, io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder> handlerBuilder_; /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public boolean hasHandler() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public io.kubernetes.client.proto.V1.ProbeHandler getHandler() { if (handlerBuilder_ == null) { return handler_ == null ? io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance() : handler_; } else { return handlerBuilder_.getMessage(); } } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public Builder setHandler(io.kubernetes.client.proto.V1.ProbeHandler value) { if (handlerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handler_ = value; onChanged(); } else { handlerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public Builder setHandler( io.kubernetes.client.proto.V1.ProbeHandler.Builder builderForValue) { if (handlerBuilder_ == null) { handler_ = builderForValue.build(); onChanged(); } else { handlerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public Builder mergeHandler(io.kubernetes.client.proto.V1.ProbeHandler value) { if (handlerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && handler_ != null && handler_ != io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance()) { handler_ = io.kubernetes.client.proto.V1.ProbeHandler.newBuilder(handler_) .mergeFrom(value) .buildPartial(); } else { handler_ = value; } onChanged(); } else { handlerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public Builder clearHandler() { if (handlerBuilder_ == null) { handler_ = null; onChanged(); } else { handlerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public io.kubernetes.client.proto.V1.ProbeHandler.Builder getHandlerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHandlerFieldBuilder().getBuilder(); } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ public io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder getHandlerOrBuilder() { if (handlerBuilder_ != null) { return handlerBuilder_.getMessageOrBuilder(); } else { return handler_ == null ? io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance() : handler_; } } /** * * *
       * The action taken to determine the health of a container
       * 
* * optional .k8s.io.api.core.v1.ProbeHandler handler = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ProbeHandler, io.kubernetes.client.proto.V1.ProbeHandler.Builder, io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder> getHandlerFieldBuilder() { if (handlerBuilder_ == null) { handlerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ProbeHandler, io.kubernetes.client.proto.V1.ProbeHandler.Builder, io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder>( getHandler(), getParentForChildren(), isClean()); handler_ = null; } return handlerBuilder_; } private int initialDelaySeconds_; /** * * *
       * Number of seconds after the container has started before liveness probes are initiated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 initialDelaySeconds = 2; */ public boolean hasInitialDelaySeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Number of seconds after the container has started before liveness probes are initiated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 initialDelaySeconds = 2; */ public int getInitialDelaySeconds() { return initialDelaySeconds_; } /** * * *
       * Number of seconds after the container has started before liveness probes are initiated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 initialDelaySeconds = 2; */ public Builder setInitialDelaySeconds(int value) { bitField0_ |= 0x00000002; initialDelaySeconds_ = value; onChanged(); return this; } /** * * *
       * Number of seconds after the container has started before liveness probes are initiated.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 initialDelaySeconds = 2; */ public Builder clearInitialDelaySeconds() { bitField0_ = (bitField0_ & ~0x00000002); initialDelaySeconds_ = 0; onChanged(); return this; } private int timeoutSeconds_; /** * * *
       * Number of seconds after which the probe times out.
       * Defaults to 1 second. Minimum value is 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 timeoutSeconds = 3; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Number of seconds after which the probe times out.
       * Defaults to 1 second. Minimum value is 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 timeoutSeconds = 3; */ public int getTimeoutSeconds() { return timeoutSeconds_; } /** * * *
       * Number of seconds after which the probe times out.
       * Defaults to 1 second. Minimum value is 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 timeoutSeconds = 3; */ public Builder setTimeoutSeconds(int value) { bitField0_ |= 0x00000004; timeoutSeconds_ = value; onChanged(); return this; } /** * * *
       * Number of seconds after which the probe times out.
       * Defaults to 1 second. Minimum value is 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
       * +optional
       * 
* * optional int32 timeoutSeconds = 3; */ public Builder clearTimeoutSeconds() { bitField0_ = (bitField0_ & ~0x00000004); timeoutSeconds_ = 0; onChanged(); return this; } private int periodSeconds_; /** * * *
       * How often (in seconds) to perform the probe.
       * Default to 10 seconds. Minimum value is 1.
       * +optional
       * 
* * optional int32 periodSeconds = 4; */ public boolean hasPeriodSeconds() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * How often (in seconds) to perform the probe.
       * Default to 10 seconds. Minimum value is 1.
       * +optional
       * 
* * optional int32 periodSeconds = 4; */ public int getPeriodSeconds() { return periodSeconds_; } /** * * *
       * How often (in seconds) to perform the probe.
       * Default to 10 seconds. Minimum value is 1.
       * +optional
       * 
* * optional int32 periodSeconds = 4; */ public Builder setPeriodSeconds(int value) { bitField0_ |= 0x00000008; periodSeconds_ = value; onChanged(); return this; } /** * * *
       * How often (in seconds) to perform the probe.
       * Default to 10 seconds. Minimum value is 1.
       * +optional
       * 
* * optional int32 periodSeconds = 4; */ public Builder clearPeriodSeconds() { bitField0_ = (bitField0_ & ~0x00000008); periodSeconds_ = 0; onChanged(); return this; } private int successThreshold_; /** * * *
       * Minimum consecutive successes for the probe to be considered successful after having failed.
       * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
       * +optional
       * 
* * optional int32 successThreshold = 5; */ public boolean hasSuccessThreshold() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Minimum consecutive successes for the probe to be considered successful after having failed.
       * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
       * +optional
       * 
* * optional int32 successThreshold = 5; */ public int getSuccessThreshold() { return successThreshold_; } /** * * *
       * Minimum consecutive successes for the probe to be considered successful after having failed.
       * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
       * +optional
       * 
* * optional int32 successThreshold = 5; */ public Builder setSuccessThreshold(int value) { bitField0_ |= 0x00000010; successThreshold_ = value; onChanged(); return this; } /** * * *
       * Minimum consecutive successes for the probe to be considered successful after having failed.
       * Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
       * +optional
       * 
* * optional int32 successThreshold = 5; */ public Builder clearSuccessThreshold() { bitField0_ = (bitField0_ & ~0x00000010); successThreshold_ = 0; onChanged(); return this; } private int failureThreshold_; /** * * *
       * Minimum consecutive failures for the probe to be considered failed after having succeeded.
       * Defaults to 3. Minimum value is 1.
       * +optional
       * 
* * optional int32 failureThreshold = 6; */ public boolean hasFailureThreshold() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Minimum consecutive failures for the probe to be considered failed after having succeeded.
       * Defaults to 3. Minimum value is 1.
       * +optional
       * 
* * optional int32 failureThreshold = 6; */ public int getFailureThreshold() { return failureThreshold_; } /** * * *
       * Minimum consecutive failures for the probe to be considered failed after having succeeded.
       * Defaults to 3. Minimum value is 1.
       * +optional
       * 
* * optional int32 failureThreshold = 6; */ public Builder setFailureThreshold(int value) { bitField0_ |= 0x00000020; failureThreshold_ = value; onChanged(); return this; } /** * * *
       * Minimum consecutive failures for the probe to be considered failed after having succeeded.
       * Defaults to 3. Minimum value is 1.
       * +optional
       * 
* * optional int32 failureThreshold = 6; */ public Builder clearFailureThreshold() { bitField0_ = (bitField0_ & ~0x00000020); failureThreshold_ = 0; onChanged(); return this; } private long terminationGracePeriodSeconds_; /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
       * value overrides the value provided by the pod spec.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
       * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 7; */ public boolean hasTerminationGracePeriodSeconds() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
       * value overrides the value provided by the pod spec.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
       * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 7; */ public long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds_; } /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
       * value overrides the value provided by the pod spec.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
       * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 7; */ public Builder setTerminationGracePeriodSeconds(long value) { bitField0_ |= 0x00000040; terminationGracePeriodSeconds_ = value; onChanged(); return this; } /** * * *
       * Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
       * The grace period is the duration in seconds after the processes running in the pod are sent
       * a termination signal and the time when the processes are forcibly halted with a kill signal.
       * Set this value longer than the expected cleanup time for your process.
       * If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
       * value overrides the value provided by the pod spec.
       * Value must be non-negative integer. The value zero indicates stop immediately via
       * the kill signal (no opportunity to shut down).
       * This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
       * Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
       * +optional
       * 
* * optional int64 terminationGracePeriodSeconds = 7; */ public Builder clearTerminationGracePeriodSeconds() { bitField0_ = (bitField0_ & ~0x00000040); terminationGracePeriodSeconds_ = 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.core.v1.Probe) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Probe) private static final io.kubernetes.client.proto.V1.Probe DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Probe(); } public static io.kubernetes.client.proto.V1.Probe getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Probe parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Probe(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.V1.Probe getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProbeHandlerOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ProbeHandler) com.google.protobuf.MessageOrBuilder { /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ boolean hasExec(); /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ io.kubernetes.client.proto.V1.ExecAction getExec(); /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ io.kubernetes.client.proto.V1.ExecActionOrBuilder getExecOrBuilder(); /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ boolean hasHttpGet(); /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ io.kubernetes.client.proto.V1.HTTPGetAction getHttpGet(); /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder getHttpGetOrBuilder(); /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ boolean hasTcpSocket(); /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ io.kubernetes.client.proto.V1.TCPSocketAction getTcpSocket(); /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder getTcpSocketOrBuilder(); } /** * * *
   * ProbeHandler defines a specific action that should be taken in a probe.
   * This type has a strong relationship to LifecycleHandler - overlapping fields
   * should be identical.
   * TODO: pass structured data to these actions, and document that data here.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ProbeHandler} */ public static final class ProbeHandler extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ProbeHandler) ProbeHandlerOrBuilder { private static final long serialVersionUID = 0L; // Use ProbeHandler.newBuilder() to construct. private ProbeHandler(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProbeHandler() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProbeHandler( 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.V1.ExecAction.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = exec_.toBuilder(); } exec_ = input.readMessage( io.kubernetes.client.proto.V1.ExecAction.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(exec_); exec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.HTTPGetAction.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = httpGet_.toBuilder(); } httpGet_ = input.readMessage( io.kubernetes.client.proto.V1.HTTPGetAction.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(httpGet_); httpGet_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.TCPSocketAction.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = tcpSocket_.toBuilder(); } tcpSocket_ = input.readMessage( io.kubernetes.client.proto.V1.TCPSocketAction.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tcpSocket_); tcpSocket_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ProbeHandler_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ProbeHandler.class, io.kubernetes.client.proto.V1.ProbeHandler.Builder.class); } private int bitField0_; public static final int EXEC_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ExecAction exec_; /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public boolean hasExec() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecAction getExec() { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } /** * * *
     * One and only one of the following should be specified.
     * Exec specifies the action to take.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecActionOrBuilder getExecOrBuilder() { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } public static final int HTTPGET_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.HTTPGetAction httpGet_; /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public boolean hasHttpGet() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetAction getHttpGet() { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } /** * * *
     * HTTPGet specifies the http request to perform.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder getHttpGetOrBuilder() { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } public static final int TCPSOCKET_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.TCPSocketAction tcpSocket_; /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public boolean hasTcpSocket() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketAction getTcpSocket() { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } /** * * *
     * TCPSocket specifies an action involving a TCP port.
     * TCP hooks not yet supported
     * TODO: implement a realistic TCP lifecycle hook
     * +optional
     * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder getTcpSocketOrBuilder() { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } 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, getExec()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getHttpGet()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getTcpSocket()); } 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, getExec()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpGet()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTcpSocket()); } 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.V1.ProbeHandler)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ProbeHandler other = (io.kubernetes.client.proto.V1.ProbeHandler) obj; boolean result = true; result = result && (hasExec() == other.hasExec()); if (hasExec()) { result = result && getExec().equals(other.getExec()); } result = result && (hasHttpGet() == other.hasHttpGet()); if (hasHttpGet()) { result = result && getHttpGet().equals(other.getHttpGet()); } result = result && (hasTcpSocket() == other.hasTcpSocket()); if (hasTcpSocket()) { result = result && getTcpSocket().equals(other.getTcpSocket()); } 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 (hasExec()) { hash = (37 * hash) + EXEC_FIELD_NUMBER; hash = (53 * hash) + getExec().hashCode(); } if (hasHttpGet()) { hash = (37 * hash) + HTTPGET_FIELD_NUMBER; hash = (53 * hash) + getHttpGet().hashCode(); } if (hasTcpSocket()) { hash = (37 * hash) + TCPSOCKET_FIELD_NUMBER; hash = (53 * hash) + getTcpSocket().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ProbeHandler parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ProbeHandler 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.V1.ProbeHandler parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ProbeHandler 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.V1.ProbeHandler parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ProbeHandler parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ProbeHandler parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ProbeHandler 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.V1.ProbeHandler parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ProbeHandler 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.V1.ProbeHandler parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ProbeHandler 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.V1.ProbeHandler 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; } /** * * *
     * ProbeHandler defines a specific action that should be taken in a probe.
     * This type has a strong relationship to LifecycleHandler - overlapping fields
     * should be identical.
     * TODO: pass structured data to these actions, and document that data here.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ProbeHandler} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ProbeHandler) io.kubernetes.client.proto.V1.ProbeHandlerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ProbeHandler_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ProbeHandler.class, io.kubernetes.client.proto.V1.ProbeHandler.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ProbeHandler.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getExecFieldBuilder(); getHttpGetFieldBuilder(); getTcpSocketFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (execBuilder_ == null) { exec_ = null; } else { execBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (httpGetBuilder_ == null) { httpGet_ = null; } else { httpGetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (tcpSocketBuilder_ == null) { tcpSocket_ = null; } else { tcpSocketBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ProbeHandler getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ProbeHandler build() { io.kubernetes.client.proto.V1.ProbeHandler result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ProbeHandler buildPartial() { io.kubernetes.client.proto.V1.ProbeHandler result = new io.kubernetes.client.proto.V1.ProbeHandler(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (execBuilder_ == null) { result.exec_ = exec_; } else { result.exec_ = execBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (httpGetBuilder_ == null) { result.httpGet_ = httpGet_; } else { result.httpGet_ = httpGetBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (tcpSocketBuilder_ == null) { result.tcpSocket_ = tcpSocket_; } else { result.tcpSocket_ = tcpSocketBuilder_.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.V1.ProbeHandler) { return mergeFrom((io.kubernetes.client.proto.V1.ProbeHandler) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ProbeHandler other) { if (other == io.kubernetes.client.proto.V1.ProbeHandler.getDefaultInstance()) return this; if (other.hasExec()) { mergeExec(other.getExec()); } if (other.hasHttpGet()) { mergeHttpGet(other.getHttpGet()); } if (other.hasTcpSocket()) { mergeTcpSocket(other.getTcpSocket()); } 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.V1.ProbeHandler parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ProbeHandler) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ExecAction exec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ExecAction, io.kubernetes.client.proto.V1.ExecAction.Builder, io.kubernetes.client.proto.V1.ExecActionOrBuilder> execBuilder_; /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public boolean hasExec() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecAction getExec() { if (execBuilder_ == null) { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } else { return execBuilder_.getMessage(); } } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder setExec(io.kubernetes.client.proto.V1.ExecAction value) { if (execBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exec_ = value; onChanged(); } else { execBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder setExec(io.kubernetes.client.proto.V1.ExecAction.Builder builderForValue) { if (execBuilder_ == null) { exec_ = builderForValue.build(); onChanged(); } else { execBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder mergeExec(io.kubernetes.client.proto.V1.ExecAction value) { if (execBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && exec_ != null && exec_ != io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance()) { exec_ = io.kubernetes.client.proto.V1.ExecAction.newBuilder(exec_) .mergeFrom(value) .buildPartial(); } else { exec_ = value; } onChanged(); } else { execBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public Builder clearExec() { if (execBuilder_ == null) { exec_ = null; onChanged(); } else { execBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecAction.Builder getExecBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExecFieldBuilder().getBuilder(); } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ public io.kubernetes.client.proto.V1.ExecActionOrBuilder getExecOrBuilder() { if (execBuilder_ != null) { return execBuilder_.getMessageOrBuilder(); } else { return exec_ == null ? io.kubernetes.client.proto.V1.ExecAction.getDefaultInstance() : exec_; } } /** * * *
       * One and only one of the following should be specified.
       * Exec specifies the action to take.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ExecAction exec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ExecAction, io.kubernetes.client.proto.V1.ExecAction.Builder, io.kubernetes.client.proto.V1.ExecActionOrBuilder> getExecFieldBuilder() { if (execBuilder_ == null) { execBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ExecAction, io.kubernetes.client.proto.V1.ExecAction.Builder, io.kubernetes.client.proto.V1.ExecActionOrBuilder>( getExec(), getParentForChildren(), isClean()); exec_ = null; } return execBuilder_; } private io.kubernetes.client.proto.V1.HTTPGetAction httpGet_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPGetAction, io.kubernetes.client.proto.V1.HTTPGetAction.Builder, io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder> httpGetBuilder_; /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public boolean hasHttpGet() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetAction getHttpGet() { if (httpGetBuilder_ == null) { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } else { return httpGetBuilder_.getMessage(); } } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder setHttpGet(io.kubernetes.client.proto.V1.HTTPGetAction value) { if (httpGetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } httpGet_ = value; onChanged(); } else { httpGetBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder setHttpGet( io.kubernetes.client.proto.V1.HTTPGetAction.Builder builderForValue) { if (httpGetBuilder_ == null) { httpGet_ = builderForValue.build(); onChanged(); } else { httpGetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder mergeHttpGet(io.kubernetes.client.proto.V1.HTTPGetAction value) { if (httpGetBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && httpGet_ != null && httpGet_ != io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance()) { httpGet_ = io.kubernetes.client.proto.V1.HTTPGetAction.newBuilder(httpGet_) .mergeFrom(value) .buildPartial(); } else { httpGet_ = value; } onChanged(); } else { httpGetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public Builder clearHttpGet() { if (httpGetBuilder_ == null) { httpGet_ = null; onChanged(); } else { httpGetBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetAction.Builder getHttpGetBuilder() { bitField0_ |= 0x00000002; onChanged(); return getHttpGetFieldBuilder().getBuilder(); } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ public io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder getHttpGetOrBuilder() { if (httpGetBuilder_ != null) { return httpGetBuilder_.getMessageOrBuilder(); } else { return httpGet_ == null ? io.kubernetes.client.proto.V1.HTTPGetAction.getDefaultInstance() : httpGet_; } } /** * * *
       * HTTPGet specifies the http request to perform.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPGetAction, io.kubernetes.client.proto.V1.HTTPGetAction.Builder, io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder> getHttpGetFieldBuilder() { if (httpGetBuilder_ == null) { httpGetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HTTPGetAction, io.kubernetes.client.proto.V1.HTTPGetAction.Builder, io.kubernetes.client.proto.V1.HTTPGetActionOrBuilder>( getHttpGet(), getParentForChildren(), isClean()); httpGet_ = null; } return httpGetBuilder_; } private io.kubernetes.client.proto.V1.TCPSocketAction tcpSocket_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TCPSocketAction, io.kubernetes.client.proto.V1.TCPSocketAction.Builder, io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder> tcpSocketBuilder_; /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public boolean hasTcpSocket() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketAction getTcpSocket() { if (tcpSocketBuilder_ == null) { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } else { return tcpSocketBuilder_.getMessage(); } } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder setTcpSocket(io.kubernetes.client.proto.V1.TCPSocketAction value) { if (tcpSocketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tcpSocket_ = value; onChanged(); } else { tcpSocketBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder setTcpSocket( io.kubernetes.client.proto.V1.TCPSocketAction.Builder builderForValue) { if (tcpSocketBuilder_ == null) { tcpSocket_ = builderForValue.build(); onChanged(); } else { tcpSocketBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder mergeTcpSocket(io.kubernetes.client.proto.V1.TCPSocketAction value) { if (tcpSocketBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tcpSocket_ != null && tcpSocket_ != io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance()) { tcpSocket_ = io.kubernetes.client.proto.V1.TCPSocketAction.newBuilder(tcpSocket_) .mergeFrom(value) .buildPartial(); } else { tcpSocket_ = value; } onChanged(); } else { tcpSocketBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public Builder clearTcpSocket() { if (tcpSocketBuilder_ == null) { tcpSocket_ = null; onChanged(); } else { tcpSocketBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketAction.Builder getTcpSocketBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTcpSocketFieldBuilder().getBuilder(); } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ public io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder getTcpSocketOrBuilder() { if (tcpSocketBuilder_ != null) { return tcpSocketBuilder_.getMessageOrBuilder(); } else { return tcpSocket_ == null ? io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance() : tcpSocket_; } } /** * * *
       * TCPSocket specifies an action involving a TCP port.
       * TCP hooks not yet supported
       * TODO: implement a realistic TCP lifecycle hook
       * +optional
       * 
* * optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TCPSocketAction, io.kubernetes.client.proto.V1.TCPSocketAction.Builder, io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder> getTcpSocketFieldBuilder() { if (tcpSocketBuilder_ == null) { tcpSocketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.TCPSocketAction, io.kubernetes.client.proto.V1.TCPSocketAction.Builder, io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder>( getTcpSocket(), getParentForChildren(), isClean()); tcpSocket_ = null; } return tcpSocketBuilder_; } @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.core.v1.ProbeHandler) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ProbeHandler) private static final io.kubernetes.client.proto.V1.ProbeHandler DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ProbeHandler(); } public static io.kubernetes.client.proto.V1.ProbeHandler getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProbeHandler parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProbeHandler(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.V1.ProbeHandler getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProjectedVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ProjectedVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ java.util.List getSourcesList(); /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ io.kubernetes.client.proto.V1.VolumeProjection getSources(int index); /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ int getSourcesCount(); /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ java.util.List getSourcesOrBuilderList(); /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder getSourcesOrBuilder(int index); /** * * *
     * Mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ boolean hasDefaultMode(); /** * * *
     * Mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ int getDefaultMode(); } /** * * *
   * Represents a projected volume source
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ProjectedVolumeSource} */ public static final class ProjectedVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ProjectedVolumeSource) ProjectedVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ProjectedVolumeSource.newBuilder() to construct. private ProjectedVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProjectedVolumeSource() { sources_ = java.util.Collections.emptyList(); defaultMode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProjectedVolumeSource( 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)) { sources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } sources_.add( input.readMessage( io.kubernetes.client.proto.V1.VolumeProjection.PARSER, extensionRegistry)); break; } case 16: { bitField0_ |= 0x00000001; defaultMode_ = 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { sources_ = java.util.Collections.unmodifiableList(sources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ProjectedVolumeSource.class, io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder.class); } private int bitField0_; public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public java.util.List getSourcesList() { return sources_; } /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public java.util.List getSourcesOrBuilderList() { return sources_; } /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public int getSourcesCount() { return sources_.size(); } /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjection getSources(int index) { return sources_.get(index); } /** * * *
     * list of volume projections
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder getSourcesOrBuilder(int index) { return sources_.get(index); } public static final int DEFAULTMODE_FIELD_NUMBER = 2; private int defaultMode_; /** * * *
     * Mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 2; */ public int getDefaultMode() { return defaultMode_; } 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 < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(2, defaultMode_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sources_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sources_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, defaultMode_); } 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.V1.ProjectedVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ProjectedVolumeSource other = (io.kubernetes.client.proto.V1.ProjectedVolumeSource) obj; boolean result = true; result = result && getSourcesList().equals(other.getSourcesList()); result = result && (hasDefaultMode() == other.hasDefaultMode()); if (hasDefaultMode()) { result = result && (getDefaultMode() == other.getDefaultMode()); } 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 (getSourcesCount() > 0) { hash = (37 * hash) + SOURCES_FIELD_NUMBER; hash = (53 * hash) + getSourcesList().hashCode(); } if (hasDefaultMode()) { hash = (37 * hash) + DEFAULTMODE_FIELD_NUMBER; hash = (53 * hash) + getDefaultMode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource 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.V1.ProjectedVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource 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.V1.ProjectedVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource 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.V1.ProjectedVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource 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.V1.ProjectedVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource 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.V1.ProjectedVolumeSource 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; } /** * * *
     * Represents a projected volume source
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ProjectedVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ProjectedVolumeSource) io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ProjectedVolumeSource.class, io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ProjectedVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSourcesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { sourcesBuilder_.clear(); } defaultMode_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ProjectedVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ProjectedVolumeSource build() { io.kubernetes.client.proto.V1.ProjectedVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ProjectedVolumeSource buildPartial() { io.kubernetes.client.proto.V1.ProjectedVolumeSource result = new io.kubernetes.client.proto.V1.ProjectedVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { sources_ = java.util.Collections.unmodifiableList(sources_); bitField0_ = (bitField0_ & ~0x00000001); } result.sources_ = sources_; } else { result.sources_ = sourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.defaultMode_ = defaultMode_; 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.V1.ProjectedVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.ProjectedVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ProjectedVolumeSource other) { if (other == io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSourcesIsMutable(); sources_.addAll(other.sources_); } onChanged(); } } else { if (!other.sources_.isEmpty()) { if (sourcesBuilder_.isEmpty()) { sourcesBuilder_.dispose(); sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); sourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } } } if (other.hasDefaultMode()) { setDefaultMode(other.getDefaultMode()); } 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.V1.ProjectedVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ProjectedVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List sources_ = java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeProjection, io.kubernetes.client.proto.V1.VolumeProjection.Builder, io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder> sourcesBuilder_; /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public java.util.List getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { return sourcesBuilder_.getMessageList(); } } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public int getSourcesCount() { if (sourcesBuilder_ == null) { return sources_.size(); } else { return sourcesBuilder_.getCount(); } } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjection getSources(int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessage(index); } } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder setSources(int index, io.kubernetes.client.proto.V1.VolumeProjection value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.set(index, value); onChanged(); } else { sourcesBuilder_.setMessage(index, value); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder setSources( int index, io.kubernetes.client.proto.V1.VolumeProjection.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.set(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder addSources(io.kubernetes.client.proto.V1.VolumeProjection value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(value); onChanged(); } else { sourcesBuilder_.addMessage(value); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder addSources(int index, io.kubernetes.client.proto.V1.VolumeProjection value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(index, value); onChanged(); } else { sourcesBuilder_.addMessage(index, value); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder addSources( io.kubernetes.client.proto.V1.VolumeProjection.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder addSources( int index, io.kubernetes.client.proto.V1.VolumeProjection.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder clearSources() { if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sourcesBuilder_.clear(); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public Builder removeSources(int index) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.remove(index); onChanged(); } else { sourcesBuilder_.remove(index); } return this; } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjection.Builder getSourcesBuilder(int index) { return getSourcesFieldBuilder().getBuilder(index); } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder getSourcesOrBuilder( int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public java.util.List getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sources_); } } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjection.Builder addSourcesBuilder() { return getSourcesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.VolumeProjection.getDefaultInstance()); } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public io.kubernetes.client.proto.V1.VolumeProjection.Builder addSourcesBuilder(int index) { return getSourcesFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.VolumeProjection.getDefaultInstance()); } /** * * *
       * list of volume projections
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.VolumeProjection sources = 1; */ public java.util.List getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeProjection, io.kubernetes.client.proto.V1.VolumeProjection.Builder, io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeProjection, io.kubernetes.client.proto.V1.VolumeProjection.Builder, io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder>( sources_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; } private int defaultMode_; /** * * *
       * Mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public int getDefaultMode() { return defaultMode_; } /** * * *
       * Mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public Builder setDefaultMode(int value) { bitField0_ |= 0x00000002; defaultMode_ = value; onChanged(); return this; } /** * * *
       * Mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 2; */ public Builder clearDefaultMode() { bitField0_ = (bitField0_ & ~0x00000002); defaultMode_ = 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.core.v1.ProjectedVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ProjectedVolumeSource) private static final io.kubernetes.client.proto.V1.ProjectedVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ProjectedVolumeSource(); } public static io.kubernetes.client.proto.V1.ProjectedVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProjectedVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProjectedVolumeSource(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.V1.ProjectedVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QuobyteVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.QuobyteVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Registry represents a single or multiple Quobyte Registry services
     * specified as a string as host:port pair (multiple entries are separated with commas)
     * which acts as the central registry for volumes
     * 
* * optional string registry = 1; */ boolean hasRegistry(); /** * * *
     * Registry represents a single or multiple Quobyte Registry services
     * specified as a string as host:port pair (multiple entries are separated with commas)
     * which acts as the central registry for volumes
     * 
* * optional string registry = 1; */ java.lang.String getRegistry(); /** * * *
     * Registry represents a single or multiple Quobyte Registry services
     * specified as a string as host:port pair (multiple entries are separated with commas)
     * which acts as the central registry for volumes
     * 
* * optional string registry = 1; */ com.google.protobuf.ByteString getRegistryBytes(); /** * * *
     * Volume is a string that references an already created Quobyte volume by name.
     * 
* * optional string volume = 2; */ boolean hasVolume(); /** * * *
     * Volume is a string that references an already created Quobyte volume by name.
     * 
* * optional string volume = 2; */ java.lang.String getVolume(); /** * * *
     * Volume is a string that references an already created Quobyte volume by name.
     * 
* * optional string volume = 2; */ com.google.protobuf.ByteString getVolumeBytes(); /** * * *
     * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 3; */ boolean getReadOnly(); /** * * *
     * User to map volume access to
     * Defaults to serivceaccount user
     * +optional
     * 
* * optional string user = 4; */ boolean hasUser(); /** * * *
     * User to map volume access to
     * Defaults to serivceaccount user
     * +optional
     * 
* * optional string user = 4; */ java.lang.String getUser(); /** * * *
     * User to map volume access to
     * Defaults to serivceaccount user
     * +optional
     * 
* * optional string user = 4; */ com.google.protobuf.ByteString getUserBytes(); /** * * *
     * Group to map volume access to
     * Default is no group
     * +optional
     * 
* * optional string group = 5; */ boolean hasGroup(); /** * * *
     * Group to map volume access to
     * Default is no group
     * +optional
     * 
* * optional string group = 5; */ java.lang.String getGroup(); /** * * *
     * Group to map volume access to
     * Default is no group
     * +optional
     * 
* * optional string group = 5; */ com.google.protobuf.ByteString getGroupBytes(); /** * * *
     * Tenant owning the given Quobyte volume in the Backend
     * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
     * +optional
     * 
* * optional string tenant = 6; */ boolean hasTenant(); /** * * *
     * Tenant owning the given Quobyte volume in the Backend
     * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
     * +optional
     * 
* * optional string tenant = 6; */ java.lang.String getTenant(); /** * * *
     * Tenant owning the given Quobyte volume in the Backend
     * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
     * +optional
     * 
* * optional string tenant = 6; */ com.google.protobuf.ByteString getTenantBytes(); } /** * * *
   * Represents a Quobyte mount that lasts the lifetime of a pod.
   * Quobyte volumes do not support ownership management or SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.QuobyteVolumeSource} */ public static final class QuobyteVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.QuobyteVolumeSource) QuobyteVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use QuobyteVolumeSource.newBuilder() to construct. private QuobyteVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QuobyteVolumeSource() { registry_ = ""; volume_ = ""; readOnly_ = false; user_ = ""; group_ = ""; tenant_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QuobyteVolumeSource( 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; registry_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; volume_ = bs; break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; user_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; group_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; tenant_ = 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 .V1 .internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.QuobyteVolumeSource.class, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder.class); } private int bitField0_; public static final int REGISTRY_FIELD_NUMBER = 1; private volatile java.lang.Object registry_; /** * * *
     * Registry represents a single or multiple Quobyte Registry services
     * specified as a string as host:port pair (multiple entries are separated with commas)
     * which acts as the central registry for volumes
     * 
* * optional string registry = 1; */ public boolean hasRegistry() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Registry represents a single or multiple Quobyte Registry services
     * specified as a string as host:port pair (multiple entries are separated with commas)
     * which acts as the central registry for volumes
     * 
* * optional string registry = 1; */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; 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()) { registry_ = s; } return s; } } /** * * *
     * Registry represents a single or multiple Quobyte Registry services
     * specified as a string as host:port pair (multiple entries are separated with commas)
     * which acts as the central registry for volumes
     * 
* * optional string registry = 1; */ public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUME_FIELD_NUMBER = 2; private volatile java.lang.Object volume_; /** * * *
     * Volume is a string that references an already created Quobyte volume by name.
     * 
* * optional string volume = 2; */ public boolean hasVolume() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Volume is a string that references an already created Quobyte volume by name.
     * 
* * optional string volume = 2; */ public java.lang.String getVolume() { java.lang.Object ref = volume_; 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()) { volume_ = s; } return s; } } /** * * *
     * Volume is a string that references an already created Quobyte volume by name.
     * 
* * optional string volume = 2; */ public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * * *
     * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int USER_FIELD_NUMBER = 4; private volatile java.lang.Object user_; /** * * *
     * User to map volume access to
     * Defaults to serivceaccount user
     * +optional
     * 
* * optional string user = 4; */ public boolean hasUser() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * User to map volume access to
     * Defaults to serivceaccount user
     * +optional
     * 
* * optional string user = 4; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * * *
     * User to map volume access to
     * Defaults to serivceaccount user
     * +optional
     * 
* * optional string user = 4; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUP_FIELD_NUMBER = 5; private volatile java.lang.Object group_; /** * * *
     * Group to map volume access to
     * Default is no group
     * +optional
     * 
* * optional string group = 5; */ public boolean hasGroup() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Group to map volume access to
     * Default is no group
     * +optional
     * 
* * optional string group = 5; */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { group_ = s; } return s; } } /** * * *
     * Group to map volume access to
     * Default is no group
     * +optional
     * 
* * optional string group = 5; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TENANT_FIELD_NUMBER = 6; private volatile java.lang.Object tenant_; /** * * *
     * Tenant owning the given Quobyte volume in the Backend
     * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
     * +optional
     * 
* * optional string tenant = 6; */ public boolean hasTenant() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Tenant owning the given Quobyte volume in the Backend
     * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
     * +optional
     * 
* * optional string tenant = 6; */ public java.lang.String getTenant() { java.lang.Object ref = tenant_; 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()) { tenant_ = s; } return s; } } /** * * *
     * Tenant owning the given Quobyte volume in the Backend
     * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
     * +optional
     * 
* * optional string tenant = 6; */ public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tenant_ = 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, registry_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, volume_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, group_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tenant_); } 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, registry_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, volume_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, readOnly_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, group_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tenant_); } 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.V1.QuobyteVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.QuobyteVolumeSource other = (io.kubernetes.client.proto.V1.QuobyteVolumeSource) obj; boolean result = true; result = result && (hasRegistry() == other.hasRegistry()); if (hasRegistry()) { result = result && getRegistry().equals(other.getRegistry()); } result = result && (hasVolume() == other.hasVolume()); if (hasVolume()) { result = result && getVolume().equals(other.getVolume()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser().equals(other.getUser()); } result = result && (hasGroup() == other.hasGroup()); if (hasGroup()) { result = result && getGroup().equals(other.getGroup()); } result = result && (hasTenant() == other.hasTenant()); if (hasTenant()) { result = result && getTenant().equals(other.getTenant()); } 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 (hasRegistry()) { hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); } if (hasVolume()) { hash = (37 * hash) + VOLUME_FIELD_NUMBER; hash = (53 * hash) + getVolume().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasGroup()) { hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + getGroup().hashCode(); } if (hasTenant()) { hash = (37 * hash) + TENANT_FIELD_NUMBER; hash = (53 * hash) + getTenant().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource 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.V1.QuobyteVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource 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.V1.QuobyteVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource 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.V1.QuobyteVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource 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.V1.QuobyteVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource 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.V1.QuobyteVolumeSource 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; } /** * * *
     * Represents a Quobyte mount that lasts the lifetime of a pod.
     * Quobyte volumes do not support ownership management or SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.QuobyteVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.QuobyteVolumeSource) io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.QuobyteVolumeSource.class, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.QuobyteVolumeSource.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(); registry_ = ""; bitField0_ = (bitField0_ & ~0x00000001); volume_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); user_ = ""; bitField0_ = (bitField0_ & ~0x00000008); group_ = ""; bitField0_ = (bitField0_ & ~0x00000010); tenant_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.QuobyteVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.QuobyteVolumeSource build() { io.kubernetes.client.proto.V1.QuobyteVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.QuobyteVolumeSource buildPartial() { io.kubernetes.client.proto.V1.QuobyteVolumeSource result = new io.kubernetes.client.proto.V1.QuobyteVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.registry_ = registry_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.volume_ = volume_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.user_ = user_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.group_ = group_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.tenant_ = tenant_; 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.V1.QuobyteVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.QuobyteVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.QuobyteVolumeSource other) { if (other == io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance()) return this; if (other.hasRegistry()) { bitField0_ |= 0x00000001; registry_ = other.registry_; onChanged(); } if (other.hasVolume()) { bitField0_ |= 0x00000002; volume_ = other.volume_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasUser()) { bitField0_ |= 0x00000008; user_ = other.user_; onChanged(); } if (other.hasGroup()) { bitField0_ |= 0x00000010; group_ = other.group_; onChanged(); } if (other.hasTenant()) { bitField0_ |= 0x00000020; tenant_ = other.tenant_; 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.V1.QuobyteVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.QuobyteVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object registry_ = ""; /** * * *
       * Registry represents a single or multiple Quobyte Registry services
       * specified as a string as host:port pair (multiple entries are separated with commas)
       * which acts as the central registry for volumes
       * 
* * optional string registry = 1; */ public boolean hasRegistry() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Registry represents a single or multiple Quobyte Registry services
       * specified as a string as host:port pair (multiple entries are separated with commas)
       * which acts as the central registry for volumes
       * 
* * optional string registry = 1; */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; 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()) { registry_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Registry represents a single or multiple Quobyte Registry services
       * specified as a string as host:port pair (multiple entries are separated with commas)
       * which acts as the central registry for volumes
       * 
* * optional string registry = 1; */ public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Registry represents a single or multiple Quobyte Registry services
       * specified as a string as host:port pair (multiple entries are separated with commas)
       * which acts as the central registry for volumes
       * 
* * optional string registry = 1; */ public Builder setRegistry(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; registry_ = value; onChanged(); return this; } /** * * *
       * Registry represents a single or multiple Quobyte Registry services
       * specified as a string as host:port pair (multiple entries are separated with commas)
       * which acts as the central registry for volumes
       * 
* * optional string registry = 1; */ public Builder clearRegistry() { bitField0_ = (bitField0_ & ~0x00000001); registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** * * *
       * Registry represents a single or multiple Quobyte Registry services
       * specified as a string as host:port pair (multiple entries are separated with commas)
       * which acts as the central registry for volumes
       * 
* * optional string registry = 1; */ public Builder setRegistryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; registry_ = value; onChanged(); return this; } private java.lang.Object volume_ = ""; /** * * *
       * Volume is a string that references an already created Quobyte volume by name.
       * 
* * optional string volume = 2; */ public boolean hasVolume() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Volume is a string that references an already created Quobyte volume by name.
       * 
* * optional string volume = 2; */ public java.lang.String getVolume() { java.lang.Object ref = volume_; 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()) { volume_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Volume is a string that references an already created Quobyte volume by name.
       * 
* * optional string volume = 2; */ public com.google.protobuf.ByteString getVolumeBytes() { java.lang.Object ref = volume_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volume_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Volume is a string that references an already created Quobyte volume by name.
       * 
* * optional string volume = 2; */ public Builder setVolume(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volume_ = value; onChanged(); return this; } /** * * *
       * Volume is a string that references an already created Quobyte volume by name.
       * 
* * optional string volume = 2; */ public Builder clearVolume() { bitField0_ = (bitField0_ & ~0x00000002); volume_ = getDefaultInstance().getVolume(); onChanged(); return this; } /** * * *
       * Volume is a string that references an already created Quobyte volume by name.
       * 
* * optional string volume = 2; */ public Builder setVolumeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volume_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 3; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions.
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 3; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } private java.lang.Object user_ = ""; /** * * *
       * User to map volume access to
       * Defaults to serivceaccount user
       * +optional
       * 
* * optional string user = 4; */ public boolean hasUser() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * User to map volume access to
       * Defaults to serivceaccount user
       * +optional
       * 
* * optional string user = 4; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * User to map volume access to
       * Defaults to serivceaccount user
       * +optional
       * 
* * optional string user = 4; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * User to map volume access to
       * Defaults to serivceaccount user
       * +optional
       * 
* * optional string user = 4; */ public Builder setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; user_ = value; onChanged(); return this; } /** * * *
       * User to map volume access to
       * Defaults to serivceaccount user
       * +optional
       * 
* * optional string user = 4; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000008); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * * *
       * User to map volume access to
       * Defaults to serivceaccount user
       * +optional
       * 
* * optional string user = 4; */ public Builder setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; user_ = value; onChanged(); return this; } private java.lang.Object group_ = ""; /** * * *
       * Group to map volume access to
       * Default is no group
       * +optional
       * 
* * optional string group = 5; */ public boolean hasGroup() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Group to map volume access to
       * Default is no group
       * +optional
       * 
* * optional string group = 5; */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { group_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Group to map volume access to
       * Default is no group
       * +optional
       * 
* * optional string group = 5; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Group to map volume access to
       * Default is no group
       * +optional
       * 
* * optional string group = 5; */ public Builder setGroup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; group_ = value; onChanged(); return this; } /** * * *
       * Group to map volume access to
       * Default is no group
       * +optional
       * 
* * optional string group = 5; */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000010); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** * * *
       * Group to map volume access to
       * Default is no group
       * +optional
       * 
* * optional string group = 5; */ public Builder setGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; group_ = value; onChanged(); return this; } private java.lang.Object tenant_ = ""; /** * * *
       * Tenant owning the given Quobyte volume in the Backend
       * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
       * +optional
       * 
* * optional string tenant = 6; */ public boolean hasTenant() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Tenant owning the given Quobyte volume in the Backend
       * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
       * +optional
       * 
* * optional string tenant = 6; */ public java.lang.String getTenant() { java.lang.Object ref = tenant_; 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()) { tenant_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Tenant owning the given Quobyte volume in the Backend
       * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
       * +optional
       * 
* * optional string tenant = 6; */ public com.google.protobuf.ByteString getTenantBytes() { java.lang.Object ref = tenant_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tenant_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Tenant owning the given Quobyte volume in the Backend
       * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
       * +optional
       * 
* * optional string tenant = 6; */ public Builder setTenant(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; tenant_ = value; onChanged(); return this; } /** * * *
       * Tenant owning the given Quobyte volume in the Backend
       * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
       * +optional
       * 
* * optional string tenant = 6; */ public Builder clearTenant() { bitField0_ = (bitField0_ & ~0x00000020); tenant_ = getDefaultInstance().getTenant(); onChanged(); return this; } /** * * *
       * Tenant owning the given Quobyte volume in the Backend
       * Used with dynamically provisioned Quobyte volumes, value is set by the plugin
       * +optional
       * 
* * optional string tenant = 6; */ public Builder setTenantBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; tenant_ = 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.core.v1.QuobyteVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.QuobyteVolumeSource) private static final io.kubernetes.client.proto.V1.QuobyteVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.QuobyteVolumeSource(); } public static io.kubernetes.client.proto.V1.QuobyteVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public QuobyteVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QuobyteVolumeSource(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.V1.QuobyteVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RBDPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.RBDPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.util.List getMonitorsList(); /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ int getMonitorsCount(); /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.lang.String getMonitors(int index); /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ com.google.protobuf.ByteString getMonitorsBytes(int index); /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ boolean hasImage(); /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ java.lang.String getImage(); /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ com.google.protobuf.ByteString getImageBytes(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ boolean hasFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ java.lang.String getFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ boolean hasPool(); /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ java.lang.String getPool(); /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ com.google.protobuf.ByteString getPoolBytes(); /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ boolean hasUser(); /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ java.lang.String getUser(); /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ com.google.protobuf.ByteString getUserBytes(); /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ boolean hasKeyring(); /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ java.lang.String getKeyring(); /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ com.google.protobuf.ByteString getKeyringBytes(); /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ boolean hasSecretRef(); /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ io.kubernetes.client.proto.V1.SecretReference getSecretRef(); /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ boolean getReadOnly(); } /** * * *
   * Represents a Rados Block Device mount that lasts the lifetime of a pod.
   * RBD volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.RBDPersistentVolumeSource} */ public static final class RBDPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.RBDPersistentVolumeSource) RBDPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use RBDPersistentVolumeSource.newBuilder() to construct. private RBDPersistentVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RBDPersistentVolumeSource() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; image_ = ""; fsType_ = ""; pool_ = ""; user_ = ""; keyring_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RBDPersistentVolumeSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } monitors_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; image_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; pool_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; user_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; keyring_ = bs; break; } case 58: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 64: { bitField0_ |= 0x00000040; readOnly_ = 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_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.class, io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int MONITORS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList monitors_; /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_; } /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } public static final int IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } } /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 3; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POOL_FIELD_NUMBER = 4; private volatile java.lang.Object pool_; /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ public boolean hasPool() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ public java.lang.String getPool() { java.lang.Object ref = pool_; 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()) { pool_ = s; } return s; } } /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ public com.google.protobuf.ByteString getPoolBytes() { java.lang.Object ref = pool_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 5; private volatile java.lang.Object user_; /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ public boolean hasUser() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEYRING_FIELD_NUMBER = 6; private volatile java.lang.Object keyring_; /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ public boolean hasKeyring() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ public java.lang.String getKeyring() { java.lang.Object ref = keyring_; 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()) { keyring_ = s; } return s; } } /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ public com.google.protobuf.ByteString getKeyringBytes() { java.lang.Object ref = keyring_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.SecretReference secretRef_; /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } public static final int READONLY_FIELD_NUMBER = 8; private boolean readOnly_; /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ public boolean getReadOnly() { return readOnly_; } 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 < monitors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, monitors_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pool_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keyring_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(7, getSecretRef()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(8, readOnly_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < monitors_.size(); i++) { dataSize += computeStringSizeNoTag(monitors_.getRaw(i)); } size += dataSize; size += 1 * getMonitorsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pool_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keyring_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSecretRef()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, readOnly_); } 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.V1.RBDPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.RBDPersistentVolumeSource other = (io.kubernetes.client.proto.V1.RBDPersistentVolumeSource) obj; boolean result = true; result = result && getMonitorsList().equals(other.getMonitorsList()); result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasPool() == other.hasPool()); if (hasPool()) { result = result && getPool().equals(other.getPool()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser().equals(other.getUser()); } result = result && (hasKeyring() == other.hasKeyring()); if (hasKeyring()) { result = result && getKeyring().equals(other.getKeyring()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (getMonitorsCount() > 0) { hash = (37 * hash) + MONITORS_FIELD_NUMBER; hash = (53 * hash) + getMonitorsList().hashCode(); } if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasPool()) { hash = (37 * hash) + POOL_FIELD_NUMBER; hash = (53 * hash) + getPool().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasKeyring()) { hash = (37 * hash) + KEYRING_FIELD_NUMBER; hash = (53 * hash) + getKeyring().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource 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.V1.RBDPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource 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.V1.RBDPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource 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.V1.RBDPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource 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.V1.RBDPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource 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.V1.RBDPersistentVolumeSource 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; } /** * * *
     * Represents a Rados Block Device mount that lasts the lifetime of a pod.
     * RBD volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.RBDPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.RBDPersistentVolumeSource) io.kubernetes.client.proto.V1.RBDPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.class, io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); image_ = ""; bitField0_ = (bitField0_ & ~0x00000002); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); pool_ = ""; bitField0_ = (bitField0_ & ~0x00000008); user_ = ""; bitField0_ = (bitField0_ & ~0x00000010); keyring_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.RBDPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.RBDPersistentVolumeSource build() { io.kubernetes.client.proto.V1.RBDPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.RBDPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.RBDPersistentVolumeSource result = new io.kubernetes.client.proto.V1.RBDPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.monitors_ = monitors_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.image_ = image_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.pool_ = pool_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.user_ = user_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.keyring_ = keyring_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.readOnly_ = readOnly_; 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.V1.RBDPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.RBDPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.RBDPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.RBDPersistentVolumeSource.getDefaultInstance()) return this; if (!other.monitors_.isEmpty()) { if (monitors_.isEmpty()) { monitors_ = other.monitors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMonitorsIsMutable(); monitors_.addAll(other.monitors_); } onChanged(); } if (other.hasImage()) { bitField0_ |= 0x00000002; image_ = other.image_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000004; fsType_ = other.fsType_; onChanged(); } if (other.hasPool()) { bitField0_ |= 0x00000008; pool_ = other.pool_; onChanged(); } if (other.hasUser()) { bitField0_ |= 0x00000010; user_ = other.user_; onChanged(); } if (other.hasKeyring()) { bitField0_ |= 0x00000020; keyring_ = other.keyring_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.RBDPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.RBDPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMonitorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(monitors_); bitField0_ |= 0x00000001; } } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_.getUnmodifiableView(); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder setMonitors(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.set(index, value); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitors(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addAllMonitors(java.lang.Iterable values) { ensureMonitorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitors_); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder clearMonitors() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } private java.lang.Object image_ = ""; /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public Builder setImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public Builder clearImage() { bitField0_ = (bitField0_ & ~0x00000002); image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000004); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } private java.lang.Object pool_ = ""; /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public boolean hasPool() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public java.lang.String getPool() { java.lang.Object ref = pool_; 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()) { pool_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public com.google.protobuf.ByteString getPoolBytes() { java.lang.Object ref = pool_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public Builder setPool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pool_ = value; onChanged(); return this; } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public Builder clearPool() { bitField0_ = (bitField0_ & ~0x00000008); pool_ = getDefaultInstance().getPool(); onChanged(); return this; } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public Builder setPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pool_ = value; onChanged(); return this; } private java.lang.Object user_ = ""; /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public boolean hasUser() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public Builder setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; user_ = value; onChanged(); return this; } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000010); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public Builder setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; user_ = value; onChanged(); return this; } private java.lang.Object keyring_ = ""; /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public boolean hasKeyring() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public java.lang.String getKeyring() { java.lang.Object ref = keyring_; 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()) { keyring_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public com.google.protobuf.ByteString getKeyringBytes() { java.lang.Object ref = keyring_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public Builder setKeyring(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; keyring_ = value; onChanged(); return this; } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public Builder clearKeyring() { bitField0_ = (bitField0_ & ~0x00000020); keyring_ = getDefaultInstance().getKeyring(); onChanged(); return this; } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public Builder setKeyringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; keyring_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecretReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> secretRefBuilder_; /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000040; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000080; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000080); readOnly_ = 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.core.v1.RBDPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.RBDPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.RBDPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.RBDPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.RBDPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RBDPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RBDPersistentVolumeSource(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.V1.RBDPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RBDVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.RBDVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.util.List getMonitorsList(); /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ int getMonitorsCount(); /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ java.lang.String getMonitors(int index); /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ com.google.protobuf.ByteString getMonitorsBytes(int index); /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ boolean hasImage(); /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ java.lang.String getImage(); /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ com.google.protobuf.ByteString getImageBytes(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ boolean hasFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ java.lang.String getFsType(); /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ boolean hasPool(); /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ java.lang.String getPool(); /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ com.google.protobuf.ByteString getPoolBytes(); /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ boolean hasUser(); /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ java.lang.String getUser(); /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ com.google.protobuf.ByteString getUserBytes(); /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ boolean hasKeyring(); /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ java.lang.String getKeyring(); /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ com.google.protobuf.ByteString getKeyringBytes(); /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ boolean hasSecretRef(); /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ boolean hasReadOnly(); /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ boolean getReadOnly(); } /** * * *
   * Represents a Rados Block Device mount that lasts the lifetime of a pod.
   * RBD volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.RBDVolumeSource} */ public static final class RBDVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.RBDVolumeSource) RBDVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use RBDVolumeSource.newBuilder() to construct. private RBDVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RBDVolumeSource() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; image_ = ""; fsType_ = ""; pool_ = ""; user_ = ""; keyring_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RBDVolumeSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } monitors_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; image_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; pool_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; user_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; keyring_ = bs; break; } case 58: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 64: { bitField0_ |= 0x00000040; readOnly_ = 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_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_RBDVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.RBDVolumeSource.class, io.kubernetes.client.proto.V1.RBDVolumeSource.Builder.class); } private int bitField0_; public static final int MONITORS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList monitors_; /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_; } /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
     * A collection of Ceph monitors.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } public static final int IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object image_; /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } } /** * * *
     * The rados image name.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 3; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type of the volume that you want to mount.
     * Tip: Ensure that the filesystem type is supported by the host operating system.
     * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
     * TODO: how do we prevent errors in the filesystem from compromising the machine
     * +optional
     * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POOL_FIELD_NUMBER = 4; private volatile java.lang.Object pool_; /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ public boolean hasPool() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ public java.lang.String getPool() { java.lang.Object ref = pool_; 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()) { pool_ = s; } return s; } } /** * * *
     * The rados pool name.
     * Default is rbd.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string pool = 4; */ public com.google.protobuf.ByteString getPoolBytes() { java.lang.Object ref = pool_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 5; private volatile java.lang.Object user_; /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ public boolean hasUser() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * * *
     * The rados user name.
     * Default is admin.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string user = 5; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEYRING_FIELD_NUMBER = 6; private volatile java.lang.Object keyring_; /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ public boolean hasKeyring() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ public java.lang.String getKeyring() { java.lang.Object ref = keyring_; 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()) { keyring_ = s; } return s; } } /** * * *
     * Keyring is the path to key ring for RBDUser.
     * Default is /etc/ceph/keyring.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional string keyring = 6; */ public com.google.protobuf.ByteString getKeyringBytes() { java.lang.Object ref = keyring_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * SecretRef is name of the authentication secret for RBDUser. If provided
     * overrides keyring.
     * Default is nil.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } public static final int READONLY_FIELD_NUMBER = 8; private boolean readOnly_; /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * ReadOnly here will force the ReadOnly setting in VolumeMounts.
     * Defaults to false.
     * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
     * +optional
     * 
* * optional bool readOnly = 8; */ public boolean getReadOnly() { return readOnly_; } 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 < monitors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, monitors_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pool_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, user_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keyring_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(7, getSecretRef()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(8, readOnly_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < monitors_.size(); i++) { dataSize += computeStringSizeNoTag(monitors_.getRaw(i)); } size += dataSize; size += 1 * getMonitorsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pool_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, user_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keyring_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSecretRef()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, readOnly_); } 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.V1.RBDVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.RBDVolumeSource other = (io.kubernetes.client.proto.V1.RBDVolumeSource) obj; boolean result = true; result = result && getMonitorsList().equals(other.getMonitorsList()); result = result && (hasImage() == other.hasImage()); if (hasImage()) { result = result && getImage().equals(other.getImage()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasPool() == other.hasPool()); if (hasPool()) { result = result && getPool().equals(other.getPool()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser().equals(other.getUser()); } result = result && (hasKeyring() == other.hasKeyring()); if (hasKeyring()) { result = result && getKeyring().equals(other.getKeyring()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (getMonitorsCount() > 0) { hash = (37 * hash) + MONITORS_FIELD_NUMBER; hash = (53 * hash) + getMonitorsList().hashCode(); } if (hasImage()) { hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasPool()) { hash = (37 * hash) + POOL_FIELD_NUMBER; hash = (53 * hash) + getPool().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasKeyring()) { hash = (37 * hash) + KEYRING_FIELD_NUMBER; hash = (53 * hash) + getKeyring().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.RBDVolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RBDVolumeSource 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.V1.RBDVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RBDVolumeSource 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.V1.RBDVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RBDVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.RBDVolumeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RBDVolumeSource 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.V1.RBDVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RBDVolumeSource 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.V1.RBDVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RBDVolumeSource 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.V1.RBDVolumeSource 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; } /** * * *
     * Represents a Rados Block Device mount that lasts the lifetime of a pod.
     * RBD volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.RBDVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.RBDVolumeSource) io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_RBDVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.RBDVolumeSource.class, io.kubernetes.client.proto.V1.RBDVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.RBDVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); image_ = ""; bitField0_ = (bitField0_ & ~0x00000002); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); pool_ = ""; bitField0_ = (bitField0_ & ~0x00000008); user_ = ""; bitField0_ = (bitField0_ & ~0x00000010); keyring_ = ""; bitField0_ = (bitField0_ & ~0x00000020); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.RBDVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.RBDVolumeSource build() { io.kubernetes.client.proto.V1.RBDVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.RBDVolumeSource buildPartial() { io.kubernetes.client.proto.V1.RBDVolumeSource result = new io.kubernetes.client.proto.V1.RBDVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = monitors_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.monitors_ = monitors_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.image_ = image_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.pool_ = pool_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.user_ = user_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.keyring_ = keyring_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.readOnly_ = readOnly_; 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.V1.RBDVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.RBDVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.RBDVolumeSource other) { if (other == io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance()) return this; if (!other.monitors_.isEmpty()) { if (monitors_.isEmpty()) { monitors_ = other.monitors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMonitorsIsMutable(); monitors_.addAll(other.monitors_); } onChanged(); } if (other.hasImage()) { bitField0_ |= 0x00000002; image_ = other.image_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000004; fsType_ = other.fsType_; onChanged(); } if (other.hasPool()) { bitField0_ |= 0x00000008; pool_ = other.pool_; onChanged(); } if (other.hasUser()) { bitField0_ |= 0x00000010; user_ = other.user_; onChanged(); } if (other.hasKeyring()) { bitField0_ |= 0x00000020; keyring_ = other.keyring_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.RBDVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.RBDVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMonitorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { monitors_ = new com.google.protobuf.LazyStringArrayList(monitors_); bitField0_ |= 0x00000001; } } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ProtocolStringList getMonitorsList() { return monitors_.getUnmodifiableView(); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public int getMonitorsCount() { return monitors_.size(); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public java.lang.String getMonitors(int index) { return monitors_.get(index); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public com.google.protobuf.ByteString getMonitorsBytes(int index) { return monitors_.getByteString(index); } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder setMonitors(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.set(index, value); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitors(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addAllMonitors(java.lang.Iterable values) { ensureMonitorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, monitors_); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder clearMonitors() { monitors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * A collection of Ceph monitors.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * repeated string monitors = 1; */ public Builder addMonitorsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMonitorsIsMutable(); monitors_.add(value); onChanged(); return this; } private java.lang.Object image_ = ""; /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public boolean hasImage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public java.lang.String getImage() { java.lang.Object ref = image_; 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()) { image_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public Builder setImage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public Builder clearImage() { bitField0_ = (bitField0_ & ~0x00000002); image_ = getDefaultInstance().getImage(); onChanged(); return this; } /** * * *
       * The rados image name.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * 
* * optional string image = 2; */ public Builder setImageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; image_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000004); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type of the volume that you want to mount.
       * Tip: Ensure that the filesystem type is supported by the host operating system.
       * Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
       * TODO: how do we prevent errors in the filesystem from compromising the machine
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } private java.lang.Object pool_ = ""; /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public boolean hasPool() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public java.lang.String getPool() { java.lang.Object ref = pool_; 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()) { pool_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public com.google.protobuf.ByteString getPoolBytes() { java.lang.Object ref = pool_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public Builder setPool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pool_ = value; onChanged(); return this; } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public Builder clearPool() { bitField0_ = (bitField0_ & ~0x00000008); pool_ = getDefaultInstance().getPool(); onChanged(); return this; } /** * * *
       * The rados pool name.
       * Default is rbd.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string pool = 4; */ public Builder setPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; pool_ = value; onChanged(); return this; } private java.lang.Object user_ = ""; /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public boolean hasUser() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public Builder setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; user_ = value; onChanged(); return this; } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000010); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * * *
       * The rados user name.
       * Default is admin.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string user = 5; */ public Builder setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; user_ = value; onChanged(); return this; } private java.lang.Object keyring_ = ""; /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public boolean hasKeyring() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public java.lang.String getKeyring() { java.lang.Object ref = keyring_; 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()) { keyring_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public com.google.protobuf.ByteString getKeyringBytes() { java.lang.Object ref = keyring_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); keyring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public Builder setKeyring(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; keyring_ = value; onChanged(); return this; } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public Builder clearKeyring() { bitField0_ = (bitField0_ & ~0x00000020); keyring_ = getDefaultInstance().getKeyring(); onChanged(); return this; } /** * * *
       * Keyring is the path to key ring for RBDUser.
       * Default is /etc/ceph/keyring.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional string keyring = 6; */ public Builder setKeyringBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; keyring_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000040; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * SecretRef is name of the authentication secret for RBDUser. If provided
       * overrides keyring.
       * Default is nil.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean readOnly_; /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000080; readOnly_ = value; onChanged(); return this; } /** * * *
       * ReadOnly here will force the ReadOnly setting in VolumeMounts.
       * Defaults to false.
       * More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
       * +optional
       * 
* * optional bool readOnly = 8; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000080); readOnly_ = 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.core.v1.RBDVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.RBDVolumeSource) private static final io.kubernetes.client.proto.V1.RBDVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.RBDVolumeSource(); } public static io.kubernetes.client.proto.V1.RBDVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RBDVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RBDVolumeSource(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.V1.RBDVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RangeAllocationOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.RangeAllocation) 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(); /** * * *
     * Range is string that identifies the range represented by 'data'.
     * 
* * optional string range = 2; */ boolean hasRange(); /** * * *
     * Range is string that identifies the range represented by 'data'.
     * 
* * optional string range = 2; */ java.lang.String getRange(); /** * * *
     * Range is string that identifies the range represented by 'data'.
     * 
* * optional string range = 2; */ com.google.protobuf.ByteString getRangeBytes(); /** * * *
     * Data is a bit array containing all allocated addresses in the previous segment.
     * 
* * optional bytes data = 3; */ boolean hasData(); /** * * *
     * Data is a bit array containing all allocated addresses in the previous segment.
     * 
* * optional bytes data = 3; */ com.google.protobuf.ByteString getData(); } /** * * *
   * RangeAllocation is not a public type.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.RangeAllocation} */ public static final class RangeAllocation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.RangeAllocation) RangeAllocationOrBuilder { private static final long serialVersionUID = 0L; // Use RangeAllocation.newBuilder() to construct. private RangeAllocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RangeAllocation() { range_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RangeAllocation( 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; range_ = bs; break; } case 26: { bitField0_ |= 0x00000004; data_ = input.readBytes(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_RangeAllocation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.RangeAllocation.class, io.kubernetes.client.proto.V1.RangeAllocation.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 RANGE_FIELD_NUMBER = 2; private volatile java.lang.Object range_; /** * * *
     * Range is string that identifies the range represented by 'data'.
     * 
* * optional string range = 2; */ public boolean hasRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Range is string that identifies the range represented by 'data'.
     * 
* * optional string range = 2; */ public java.lang.String getRange() { java.lang.Object ref = range_; 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()) { range_ = s; } return s; } } /** * * *
     * Range is string that identifies the range represented by 'data'.
     * 
* * optional string range = 2; */ public com.google.protobuf.ByteString getRangeBytes() { java.lang.Object ref = range_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); range_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** * * *
     * Data is a bit array containing all allocated addresses in the previous segment.
     * 
* * optional bytes data = 3; */ public boolean hasData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Data is a bit array containing all allocated addresses in the previous segment.
     * 
* * optional bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } 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, range_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, data_); } 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, range_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, data_); } 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.V1.RangeAllocation)) { return super.equals(obj); } io.kubernetes.client.proto.V1.RangeAllocation other = (io.kubernetes.client.proto.V1.RangeAllocation) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasRange() == other.hasRange()); if (hasRange()) { result = result && getRange().equals(other.getRange()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData().equals(other.getData()); } 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 (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + getRange().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.RangeAllocation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RangeAllocation 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.V1.RangeAllocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RangeAllocation 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.V1.RangeAllocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.RangeAllocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.RangeAllocation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RangeAllocation 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.V1.RangeAllocation parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RangeAllocation 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.V1.RangeAllocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.RangeAllocation 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.V1.RangeAllocation 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; } /** * * *
     * RangeAllocation is not a public type.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.RangeAllocation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.RangeAllocation) io.kubernetes.client.proto.V1.RangeAllocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_RangeAllocation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.RangeAllocation.class, io.kubernetes.client.proto.V1.RangeAllocation.Builder.class); } // Construct using io.kubernetes.client.proto.V1.RangeAllocation.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); range_ = ""; bitField0_ = (bitField0_ & ~0x00000002); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.RangeAllocation getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.RangeAllocation.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.RangeAllocation build() { io.kubernetes.client.proto.V1.RangeAllocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.RangeAllocation buildPartial() { io.kubernetes.client.proto.V1.RangeAllocation result = new io.kubernetes.client.proto.V1.RangeAllocation(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.range_ = range_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.data_ = data_; 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.V1.RangeAllocation) { return mergeFrom((io.kubernetes.client.proto.V1.RangeAllocation) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.RangeAllocation other) { if (other == io.kubernetes.client.proto.V1.RangeAllocation.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasRange()) { bitField0_ |= 0x00000002; range_ = other.range_; onChanged(); } if (other.hasData()) { setData(other.getData()); } 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.V1.RangeAllocation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.RangeAllocation) 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 range_ = ""; /** * * *
       * Range is string that identifies the range represented by 'data'.
       * 
* * optional string range = 2; */ public boolean hasRange() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Range is string that identifies the range represented by 'data'.
       * 
* * optional string range = 2; */ public java.lang.String getRange() { java.lang.Object ref = range_; 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()) { range_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Range is string that identifies the range represented by 'data'.
       * 
* * optional string range = 2; */ public com.google.protobuf.ByteString getRangeBytes() { java.lang.Object ref = range_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); range_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Range is string that identifies the range represented by 'data'.
       * 
* * optional string range = 2; */ public Builder setRange(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; range_ = value; onChanged(); return this; } /** * * *
       * Range is string that identifies the range represented by 'data'.
       * 
* * optional string range = 2; */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000002); range_ = getDefaultInstance().getRange(); onChanged(); return this; } /** * * *
       * Range is string that identifies the range represented by 'data'.
       * 
* * optional string range = 2; */ public Builder setRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; range_ = value; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * * *
       * Data is a bit array containing all allocated addresses in the previous segment.
       * 
* * optional bytes data = 3; */ public boolean hasData() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Data is a bit array containing all allocated addresses in the previous segment.
       * 
* * optional bytes data = 3; */ public com.google.protobuf.ByteString getData() { return data_; } /** * * *
       * Data is a bit array containing all allocated addresses in the previous segment.
       * 
* * optional bytes data = 3; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; data_ = value; onChanged(); return this; } /** * * *
       * Data is a bit array containing all allocated addresses in the previous segment.
       * 
* * optional bytes data = 3; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000004); data_ = getDefaultInstance().getData(); 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.core.v1.RangeAllocation) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.RangeAllocation) private static final io.kubernetes.client.proto.V1.RangeAllocation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.RangeAllocation(); } public static io.kubernetes.client.proto.V1.RangeAllocation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RangeAllocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RangeAllocation(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.V1.RangeAllocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReplicationControllerOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ReplicationController) com.google.protobuf.MessageOrBuilder { /** * * *
     * If the Labels of a ReplicationController are empty, they are defaulted to
     * be the same as the Pod(s) that the replication controller manages.
     * 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(); /** * * *
     * If the Labels of a ReplicationController are empty, they are defaulted to
     * be the same as the Pod(s) that the replication controller manages.
     * 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(); /** * * *
     * If the Labels of a ReplicationController are empty, they are defaulted to
     * be the same as the Pod(s) that the replication controller manages.
     * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the specification of the desired behavior of the replication controller.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the specification of the desired behavior of the replication controller.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ io.kubernetes.client.proto.V1.ReplicationControllerSpec getSpec(); /** * * *
     * Spec defines the specification of the desired behavior of the replication controller.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Status is the most recently observed status of the replication controller.
     * This data may be out of date by some window of time.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ boolean hasStatus(); /** * * *
     * Status is the most recently observed status of the replication controller.
     * This data may be out of date by some window of time.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ io.kubernetes.client.proto.V1.ReplicationControllerStatus getStatus(); /** * * *
     * Status is the most recently observed status of the replication controller.
     * This data may be out of date by some window of time.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * ReplicationController represents the configuration of a replication controller.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationController} */ public static final class ReplicationController extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ReplicationController) ReplicationControllerOrBuilder { private static final long serialVersionUID = 0L; // Use ReplicationController.newBuilder() to construct. private ReplicationController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReplicationController() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReplicationController( 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.V1.ReplicationControllerSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.ReplicationControllerSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.ReplicationControllerStatus.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 .V1 .internal_static_k8s_io_api_core_v1_ReplicationController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationController_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationController.class, io.kubernetes.client.proto.V1.ReplicationController.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * If the Labels of a ReplicationController are empty, they are defaulted to
     * be the same as the Pod(s) that the replication controller manages.
     * 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); } /** * * *
     * If the Labels of a ReplicationController are empty, they are defaulted to
     * be the same as the Pod(s) that the replication controller manages.
     * 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_; } /** * * *
     * If the Labels of a ReplicationController are empty, they are defaulted to
     * be the same as the Pod(s) that the replication controller manages.
     * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ReplicationControllerSpec spec_; /** * * *
     * Spec defines the specification of the desired behavior of the replication controller.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the specification of the desired behavior of the replication controller.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the specification of the desired behavior of the replication controller.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ReplicationControllerStatus status_; /** * * *
     * Status is the most recently observed status of the replication controller.
     * This data may be out of date by some window of time.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Status is the most recently observed status of the replication controller.
     * This data may be out of date by some window of time.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public io.kubernetes.client.proto.V1.ReplicationControllerStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerStatus.getDefaultInstance() : status_; } /** * * *
     * Status is the most recently observed status of the replication controller.
     * This data may be out of date by some window of time.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerStatus.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.V1.ReplicationController)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ReplicationController other = (io.kubernetes.client.proto.V1.ReplicationController) 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.V1.ReplicationController parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationController 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.V1.ReplicationController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationController 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.V1.ReplicationController parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationController parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ReplicationController parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationController 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.V1.ReplicationController parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationController 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.V1.ReplicationController parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationController 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.V1.ReplicationController 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; } /** * * *
     * ReplicationController represents the configuration of a replication controller.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationController} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ReplicationController) io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationController_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationController.class, io.kubernetes.client.proto.V1.ReplicationController.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ReplicationController.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 .V1 .internal_static_k8s_io_api_core_v1_ReplicationController_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationController getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ReplicationController.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationController build() { io.kubernetes.client.proto.V1.ReplicationController result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationController buildPartial() { io.kubernetes.client.proto.V1.ReplicationController result = new io.kubernetes.client.proto.V1.ReplicationController(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.V1.ReplicationController) { return mergeFrom((io.kubernetes.client.proto.V1.ReplicationController) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ReplicationController other) { if (other == io.kubernetes.client.proto.V1.ReplicationController.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.V1.ReplicationController parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ReplicationController) 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_; /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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); } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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(); } } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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; } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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; } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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; } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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; } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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(); } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * 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_; } } /** * * *
       * If the Labels of a ReplicationController are empty, they are defaulted to
       * be the same as the Pod(s) that the replication controller manages.
       * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.ReplicationControllerSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerSpec, io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder, io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.ReplicationControllerSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.ReplicationControllerSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.ReplicationControllerSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the specification of the desired behavior of the replication controller.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerSpec, io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder, io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerSpec, io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder, io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.ReplicationControllerStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerStatus, io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder, io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder> statusBuilder_; /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public io.kubernetes.client.proto.V1.ReplicationControllerStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.ReplicationControllerStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.ReplicationControllerStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.ReplicationControllerStatus .getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.ReplicationControllerStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ public io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.ReplicationControllerStatus.getDefaultInstance() : status_; } } /** * * *
       * Status is the most recently observed status of the replication controller.
       * This data may be out of date by some window of time.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ReplicationControllerStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerStatus, io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder, io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerStatus, io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder, io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder>( 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.core.v1.ReplicationController) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ReplicationController) private static final io.kubernetes.client.proto.V1.ReplicationController DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ReplicationController(); } public static io.kubernetes.client.proto.V1.ReplicationController getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReplicationController parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReplicationController(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.V1.ReplicationController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReplicationControllerConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ReplicationControllerCondition) com.google.protobuf.MessageOrBuilder { /** * * *
     * Type of replication controller condition.
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * Type of replication controller condition.
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * Type of replication controller condition.
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ boolean hasStatus(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ java.lang.String getStatus(); /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ com.google.protobuf.ByteString getStatusBytes(); /** * * *
     * The last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ boolean hasLastTransitionTime(); /** * * *
     * The last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); /** * * *
     * The last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); /** * * *
     * The reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ boolean hasReason(); /** * * *
     * The reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ java.lang.String getReason(); /** * * *
     * The reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ com.google.protobuf.ByteString getReasonBytes(); /** * * *
     * A human readable message indicating details about the transition.
     * +optional
     * 
* * optional string message = 5; */ boolean hasMessage(); /** * * *
     * A human readable message indicating details about the transition.
     * +optional
     * 
* * optional string message = 5; */ java.lang.String getMessage(); /** * * *
     * A human readable message indicating details about the transition.
     * +optional
     * 
* * optional string message = 5; */ com.google.protobuf.ByteString getMessageBytes(); } /** * * *
   * ReplicationControllerCondition describes the state of a replication controller at a certain point.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerCondition} */ public static final class ReplicationControllerCondition extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ReplicationControllerCondition) ReplicationControllerConditionOrBuilder { private static final long serialVersionUID = 0L; // Use ReplicationControllerCondition.newBuilder() to construct. private ReplicationControllerCondition( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReplicationControllerCondition() { type_ = ""; status_ = ""; reason_ = ""; message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReplicationControllerCondition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; status_ = bs; break; } case 26: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = lastTransitionTime_.toBuilder(); } lastTransitionTime_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastTransitionTime_); lastTransitionTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; reason_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; message_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerCondition.class, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * Type of replication controller condition.
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Type of replication controller condition.
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type of replication controller condition.
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } } /** * * *
     * Status of the condition, one of True, False, Unknown.
     * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 3; private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** * * *
     * The last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } /** * * *
     * The last time the condition transitioned from one status to another.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } public static final int REASON_FIELD_NUMBER = 4; private volatile java.lang.Object reason_; /** * * *
     * The reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } } /** * * *
     * The reason for the condition's last transition.
     * +optional
     * 
* * optional string reason = 4; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object message_; /** * * *
     * A human readable message indicating details about the transition.
     * +optional
     * 
* * optional string message = 5; */ public boolean hasMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * A human readable message indicating details about the transition.
     * +optional
     * 
* * optional string message = 5; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } } /** * * *
     * A human readable message indicating details about the transition.
     * +optional
     * 
* * optional string message = 5; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getLastTransitionTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastTransitionTime()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.ReplicationControllerCondition)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ReplicationControllerCondition other = (io.kubernetes.client.proto.V1.ReplicationControllerCondition) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); if (hasLastTransitionTime()) { result = result && getLastTransitionTime().equals(other.getLastTransitionTime()); } result = result && (hasReason() == other.hasReason()); if (hasReason()) { result = result && getReason().equals(other.getReason()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasLastTransitionTime()) { hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; hash = (53 * hash) + getLastTransitionTime().hashCode(); } if (hasReason()) { hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition 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.V1.ReplicationControllerCondition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition 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.V1.ReplicationControllerCondition parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition 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.V1.ReplicationControllerCondition parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition 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.V1.ReplicationControllerCondition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition 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.V1.ReplicationControllerCondition 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; } /** * * *
     * ReplicationControllerCondition describes the state of a replication controller at a certain point.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerCondition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ReplicationControllerCondition) io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerCondition.class, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ReplicationControllerCondition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000008); message_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerCondition getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ReplicationControllerCondition.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerCondition build() { io.kubernetes.client.proto.V1.ReplicationControllerCondition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerCondition buildPartial() { io.kubernetes.client.proto.V1.ReplicationControllerCondition result = new io.kubernetes.client.proto.V1.ReplicationControllerCondition(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (lastTransitionTimeBuilder_ == null) { result.lastTransitionTime_ = lastTransitionTime_; } else { result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.message_ = message_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1.ReplicationControllerCondition) { return mergeFrom((io.kubernetes.client.proto.V1.ReplicationControllerCondition) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ReplicationControllerCondition other) { if (other == io.kubernetes.client.proto.V1.ReplicationControllerCondition.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasStatus()) { bitField0_ |= 0x00000002; status_ = other.status_; onChanged(); } if (other.hasLastTransitionTime()) { mergeLastTransitionTime(other.getLastTransitionTime()); } if (other.hasReason()) { bitField0_ |= 0x00000008; reason_ = other.reason_; onChanged(); } if (other.hasMessage()) { bitField0_ |= 0x00000010; message_ = other.message_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1.ReplicationControllerCondition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ReplicationControllerCondition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * Type of replication controller condition.
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Type of replication controller condition.
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type of replication controller condition.
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type of replication controller condition.
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * Type of replication controller condition.
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type of replication controller condition.
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { status_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** * * *
       * Status of the condition, one of True, False, Unknown.
       * 
* * optional string status = 2; */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public boolean hasLastTransitionTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } else { return lastTransitionTimeBuilder_.getMessage(); } } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastTransitionTime_ = value; onChanged(); } else { lastTransitionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder setLastTransitionTime( io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = builderForValue.build(); onChanged(); } else { lastTransitionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && lastTransitionTime_ != null && lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { lastTransitionTime_ = io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_) .mergeFrom(value) .buildPartial(); } else { lastTransitionTime_ = value; } onChanged(); } else { lastTransitionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public Builder clearLastTransitionTime() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTime_ = null; onChanged(); } else { lastTransitionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getLastTransitionTimeFieldBuilder().getBuilder(); } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { if (lastTransitionTimeBuilder_ != null) { return lastTransitionTimeBuilder_.getMessageOrBuilder(); } else { return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; } } /** * * *
       * The last time the condition transitioned from one status to another.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getLastTransitionTimeFieldBuilder() { if (lastTransitionTimeBuilder_ == null) { lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getLastTransitionTime(), getParentForChildren(), isClean()); lastTransitionTime_ = null; } return lastTransitionTimeBuilder_; } private java.lang.Object reason_ = ""; /** * * *
       * The reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public boolean hasReason() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reason_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public Builder setReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } /** * * *
       * The reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000008); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * * *
       * The reason for the condition's last transition.
       * +optional
       * 
* * optional string reason = 4; */ public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; reason_ = value; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
       * A human readable message indicating details about the transition.
       * +optional
       * 
* * optional string message = 5; */ public boolean hasMessage() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * A human readable message indicating details about the transition.
       * +optional
       * 
* * optional string message = 5; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * A human readable message indicating details about the transition.
       * +optional
       * 
* * optional string message = 5; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * A human readable message indicating details about the transition.
       * +optional
       * 
* * optional string message = 5; */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; message_ = value; onChanged(); return this; } /** * * *
       * A human readable message indicating details about the transition.
       * +optional
       * 
* * optional string message = 5; */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000010); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * * *
       * A human readable message indicating details about the transition.
       * +optional
       * 
* * optional string message = 5; */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; message_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ReplicationControllerCondition) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ReplicationControllerCondition) private static final io.kubernetes.client.proto.V1.ReplicationControllerCondition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ReplicationControllerCondition(); } public static io.kubernetes.client.proto.V1.ReplicationControllerCondition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReplicationControllerCondition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReplicationControllerCondition(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.V1.ReplicationControllerCondition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReplicationControllerListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ReplicationControllerList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ java.util.List getItemsList(); /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ io.kubernetes.client.proto.V1.ReplicationController getItems(int index); /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ int getItemsCount(); /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder getItemsOrBuilder(int index); } /** * * *
   * ReplicationControllerList is a collection of replication controllers.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerList} */ public static final class ReplicationControllerList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ReplicationControllerList) ReplicationControllerListOrBuilder { private static final long serialVersionUID = 0L; // Use ReplicationControllerList.newBuilder() to construct. private ReplicationControllerList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReplicationControllerList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReplicationControllerList( 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.V1.ReplicationController>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1.ReplicationController.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 .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerList.class, io.kubernetes.client.proto.V1.ReplicationControllerList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationController getItems(int index) { return items_.get(index); } /** * * *
     * List of replication controllers.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
     * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder 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.V1.ReplicationControllerList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ReplicationControllerList other = (io.kubernetes.client.proto.V1.ReplicationControllerList) 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.V1.ReplicationControllerList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerList 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.V1.ReplicationControllerList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerList 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.V1.ReplicationControllerList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ReplicationControllerList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerList 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.V1.ReplicationControllerList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerList 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.V1.ReplicationControllerList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerList 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.V1.ReplicationControllerList 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; } /** * * *
     * ReplicationControllerList is a collection of replication controllers.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ReplicationControllerList) io.kubernetes.client.proto.V1.ReplicationControllerListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerList.class, io.kubernetes.client.proto.V1.ReplicationControllerList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ReplicationControllerList.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 .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ReplicationControllerList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerList build() { io.kubernetes.client.proto.V1.ReplicationControllerList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerList buildPartial() { io.kubernetes.client.proto.V1.ReplicationControllerList result = new io.kubernetes.client.proto.V1.ReplicationControllerList(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.V1.ReplicationControllerList) { return mergeFrom((io.kubernetes.client.proto.V1.ReplicationControllerList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ReplicationControllerList other) { if (other == io.kubernetes.client.proto.V1.ReplicationControllerList.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.V1.ReplicationControllerList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ReplicationControllerList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.ReplicationController, io.kubernetes.client.proto.V1.ReplicationController.Builder, io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder> itemsBuilder_; /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationController getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.ReplicationController value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.ReplicationController.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ReplicationController value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.ReplicationController value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1.ReplicationController.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.ReplicationController.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController 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; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationController.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationController.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ReplicationController.getDefaultInstance()); } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public io.kubernetes.client.proto.V1.ReplicationController.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.ReplicationController.getDefaultInstance()); } /** * * *
       * List of replication controllers.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller
       * 
* * repeated .k8s.io.api.core.v1.ReplicationController items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationController, io.kubernetes.client.proto.V1.ReplicationController.Builder, io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationController, io.kubernetes.client.proto.V1.ReplicationController.Builder, io.kubernetes.client.proto.V1.ReplicationControllerOrBuilder>( 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.core.v1.ReplicationControllerList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ReplicationControllerList) private static final io.kubernetes.client.proto.V1.ReplicationControllerList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ReplicationControllerList(); } public static io.kubernetes.client.proto.V1.ReplicationControllerList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReplicationControllerList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReplicationControllerList(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.V1.ReplicationControllerList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReplicationControllerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ReplicationControllerSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Replicas is the number of desired replicas.
     * This is a pointer to distinguish between explicit zero and unspecified.
     * Defaults to 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * +optional
     * 
* * optional int32 replicas = 1; */ boolean hasReplicas(); /** * * *
     * Replicas is the number of desired replicas.
     * This is a pointer to distinguish between explicit zero and unspecified.
     * Defaults to 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * +optional
     * 
* * optional int32 replicas = 1; */ int getReplicas(); /** * * *
     * Minimum number of seconds for which a newly created pod should be ready
     * without any of its container crashing, for it to be considered available.
     * Defaults to 0 (pod will be considered available as soon as it is ready)
     * +optional
     * 
* * optional int32 minReadySeconds = 4; */ boolean hasMinReadySeconds(); /** * * *
     * Minimum number of seconds for which a newly created pod should be ready
     * without any of its container crashing, for it to be considered available.
     * Defaults to 0 (pod will be considered available as soon as it is ready)
     * +optional
     * 
* * optional int32 minReadySeconds = 4; */ int getMinReadySeconds(); /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ int getSelectorCount(); /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ boolean containsSelector(java.lang.String key); /** Use {@link #getSelectorMap()} instead. */ @java.lang.Deprecated java.util.Map getSelector(); /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ java.util.Map getSelectorMap(); /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ java.lang.String getSelectorOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ java.lang.String getSelectorOrThrow(java.lang.String key); /** * * *
     * Template is the object that describes the pod that will be created if
     * insufficient replicas are detected. This takes precedence over a TemplateRef.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ boolean hasTemplate(); /** * * *
     * Template is the object that describes the pod that will be created if
     * insufficient replicas are detected. This takes precedence over a TemplateRef.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate(); /** * * *
     * Template is the object that describes the pod that will be created if
     * insufficient replicas are detected. This takes precedence over a TemplateRef.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder(); } /** * * *
   * ReplicationControllerSpec is the specification of a replication controller.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerSpec} */ public static final class ReplicationControllerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ReplicationControllerSpec) ReplicationControllerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ReplicationControllerSpec.newBuilder() to construct. private ReplicationControllerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReplicationControllerSpec() { replicas_ = 0; minReadySeconds_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReplicationControllerSpec( 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; replicas_ = input.readInt32(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { selector_ = com.google.protobuf.MapField.newMapField( SelectorDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry selector__ = input.readMessage( SelectorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); selector_.getMutableMap().put(selector__.getKey(), selector__.getValue()); break; } case 26: { io.kubernetes.client.proto.V1.PodTemplateSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = template_.toBuilder(); } template_ = input.readMessage( io.kubernetes.client.proto.V1.PodTemplateSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(template_); template_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000002; minReadySeconds_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerSpec.class, io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder.class); } private int bitField0_; public static final int REPLICAS_FIELD_NUMBER = 1; private int replicas_; /** * * *
     * Replicas is the number of desired replicas.
     * This is a pointer to distinguish between explicit zero and unspecified.
     * Defaults to 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * +optional
     * 
* * optional int32 replicas = 1; */ public boolean hasReplicas() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Replicas is the number of desired replicas.
     * This is a pointer to distinguish between explicit zero and unspecified.
     * Defaults to 1.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * +optional
     * 
* * optional int32 replicas = 1; */ public int getReplicas() { return replicas_; } public static final int MINREADYSECONDS_FIELD_NUMBER = 4; private int minReadySeconds_; /** * * *
     * Minimum number of seconds for which a newly created pod should be ready
     * without any of its container crashing, for it to be considered available.
     * Defaults to 0 (pod will be considered available as soon as it is ready)
     * +optional
     * 
* * optional int32 minReadySeconds = 4; */ public boolean hasMinReadySeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Minimum number of seconds for which a newly created pod should be ready
     * without any of its container crashing, for it to be considered available.
     * Defaults to 0 (pod will be considered available as soon as it is ready)
     * +optional
     * 
* * optional int32 minReadySeconds = 4; */ public int getMinReadySeconds() { return minReadySeconds_; } public static final int SELECTOR_FIELD_NUMBER = 2; private static final class SelectorDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField selector_; private com.google.protobuf.MapField internalGetSelector() { if (selector_ == null) { return com.google.protobuf.MapField.emptyMapField(SelectorDefaultEntryHolder.defaultEntry); } return selector_; } public int getSelectorCount() { return internalGetSelector().getMap().size(); } /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public boolean containsSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSelector().getMap().containsKey(key); } /** Use {@link #getSelectorMap()} instead. */ @java.lang.Deprecated public java.util.Map getSelector() { return getSelectorMap(); } /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public java.util.Map getSelectorMap() { return internalGetSelector().getMap(); } /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Selector is a label query over pods that should match the Replicas count.
     * If Selector is empty, it is defaulted to the labels present on the Pod template.
     * Label keys and values that must match in order to be controlled by this replication
     * controller, if empty defaulted to labels on Pod template.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TEMPLATE_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.PodTemplateSpec template_; /** * * *
     * Template is the object that describes the pod that will be created if
     * insufficient replicas are detected. This takes precedence over a TemplateRef.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public boolean hasTemplate() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Template is the object that describes the pod that will be created if
     * insufficient replicas are detected. This takes precedence over a TemplateRef.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } /** * * *
     * Template is the object that describes the pod that will be created if
     * insufficient replicas are detected. This takes precedence over a TemplateRef.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } 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, replicas_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSelector(), SelectorDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getTemplate()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(4, minReadySeconds_); } 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, replicas_); } for (java.util.Map.Entry entry : internalGetSelector().getMap().entrySet()) { com.google.protobuf.MapEntry selector__ = SelectorDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, selector__); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTemplate()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, minReadySeconds_); } 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.V1.ReplicationControllerSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ReplicationControllerSpec other = (io.kubernetes.client.proto.V1.ReplicationControllerSpec) obj; boolean result = true; result = result && (hasReplicas() == other.hasReplicas()); if (hasReplicas()) { result = result && (getReplicas() == other.getReplicas()); } result = result && (hasMinReadySeconds() == other.hasMinReadySeconds()); if (hasMinReadySeconds()) { result = result && (getMinReadySeconds() == other.getMinReadySeconds()); } result = result && internalGetSelector().equals(other.internalGetSelector()); result = result && (hasTemplate() == other.hasTemplate()); if (hasTemplate()) { result = result && getTemplate().equals(other.getTemplate()); } 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 (hasReplicas()) { hash = (37 * hash) + REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getReplicas(); } if (hasMinReadySeconds()) { hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER; hash = (53 * hash) + getMinReadySeconds(); } if (!internalGetSelector().getMap().isEmpty()) { hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + internalGetSelector().hashCode(); } if (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec 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.V1.ReplicationControllerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec 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.V1.ReplicationControllerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec 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.V1.ReplicationControllerSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec 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.V1.ReplicationControllerSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec 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.V1.ReplicationControllerSpec 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; } /** * * *
     * ReplicationControllerSpec is the specification of a replication controller.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ReplicationControllerSpec) io.kubernetes.client.proto.V1.ReplicationControllerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerSpec.class, io.kubernetes.client.proto.V1.ReplicationControllerSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ReplicationControllerSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTemplateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); replicas_ = 0; bitField0_ = (bitField0_ & ~0x00000001); minReadySeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableSelector().clear(); if (templateBuilder_ == null) { template_ = null; } else { templateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerSpec build() { io.kubernetes.client.proto.V1.ReplicationControllerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerSpec buildPartial() { io.kubernetes.client.proto.V1.ReplicationControllerSpec result = new io.kubernetes.client.proto.V1.ReplicationControllerSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.replicas_ = replicas_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.minReadySeconds_ = minReadySeconds_; result.selector_ = internalGetSelector(); result.selector_.makeImmutable(); if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (templateBuilder_ == null) { result.template_ = template_; } else { result.template_ = templateBuilder_.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.V1.ReplicationControllerSpec) { return mergeFrom((io.kubernetes.client.proto.V1.ReplicationControllerSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ReplicationControllerSpec other) { if (other == io.kubernetes.client.proto.V1.ReplicationControllerSpec.getDefaultInstance()) return this; if (other.hasReplicas()) { setReplicas(other.getReplicas()); } if (other.hasMinReadySeconds()) { setMinReadySeconds(other.getMinReadySeconds()); } internalGetMutableSelector().mergeFrom(other.internalGetSelector()); if (other.hasTemplate()) { mergeTemplate(other.getTemplate()); } 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.V1.ReplicationControllerSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ReplicationControllerSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int replicas_; /** * * *
       * Replicas is the number of desired replicas.
       * This is a pointer to distinguish between explicit zero and unspecified.
       * Defaults to 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * +optional
       * 
* * optional int32 replicas = 1; */ public boolean hasReplicas() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Replicas is the number of desired replicas.
       * This is a pointer to distinguish between explicit zero and unspecified.
       * Defaults to 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * +optional
       * 
* * optional int32 replicas = 1; */ public int getReplicas() { return replicas_; } /** * * *
       * Replicas is the number of desired replicas.
       * This is a pointer to distinguish between explicit zero and unspecified.
       * Defaults to 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * +optional
       * 
* * optional int32 replicas = 1; */ public Builder setReplicas(int value) { bitField0_ |= 0x00000001; replicas_ = value; onChanged(); return this; } /** * * *
       * Replicas is the number of desired replicas.
       * This is a pointer to distinguish between explicit zero and unspecified.
       * Defaults to 1.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * +optional
       * 
* * optional int32 replicas = 1; */ public Builder clearReplicas() { bitField0_ = (bitField0_ & ~0x00000001); replicas_ = 0; onChanged(); return this; } private int minReadySeconds_; /** * * *
       * Minimum number of seconds for which a newly created pod should be ready
       * without any of its container crashing, for it to be considered available.
       * Defaults to 0 (pod will be considered available as soon as it is ready)
       * +optional
       * 
* * optional int32 minReadySeconds = 4; */ public boolean hasMinReadySeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Minimum number of seconds for which a newly created pod should be ready
       * without any of its container crashing, for it to be considered available.
       * Defaults to 0 (pod will be considered available as soon as it is ready)
       * +optional
       * 
* * optional int32 minReadySeconds = 4; */ public int getMinReadySeconds() { return minReadySeconds_; } /** * * *
       * Minimum number of seconds for which a newly created pod should be ready
       * without any of its container crashing, for it to be considered available.
       * Defaults to 0 (pod will be considered available as soon as it is ready)
       * +optional
       * 
* * optional int32 minReadySeconds = 4; */ public Builder setMinReadySeconds(int value) { bitField0_ |= 0x00000002; minReadySeconds_ = value; onChanged(); return this; } /** * * *
       * Minimum number of seconds for which a newly created pod should be ready
       * without any of its container crashing, for it to be considered available.
       * Defaults to 0 (pod will be considered available as soon as it is ready)
       * +optional
       * 
* * optional int32 minReadySeconds = 4; */ public Builder clearMinReadySeconds() { bitField0_ = (bitField0_ & ~0x00000002); minReadySeconds_ = 0; onChanged(); return this; } private com.google.protobuf.MapField selector_; private com.google.protobuf.MapField internalGetSelector() { if (selector_ == null) { return com.google.protobuf.MapField.emptyMapField( SelectorDefaultEntryHolder.defaultEntry); } return selector_; } private com.google.protobuf.MapField internalGetMutableSelector() { onChanged(); ; if (selector_ == null) { selector_ = com.google.protobuf.MapField.newMapField(SelectorDefaultEntryHolder.defaultEntry); } if (!selector_.isMutable()) { selector_ = selector_.copy(); } return selector_; } public int getSelectorCount() { return internalGetSelector().getMap().size(); } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public boolean containsSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSelector().getMap().containsKey(key); } /** Use {@link #getSelectorMap()} instead. */ @java.lang.Deprecated public java.util.Map getSelector() { return getSelectorMap(); } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public java.util.Map getSelectorMap() { return internalGetSelector().getMap(); } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSelector() { internalGetMutableSelector().getMutableMap().clear(); return this; } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public Builder removeSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSelector().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSelector() { return internalGetMutableSelector().getMutableMap(); } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public Builder putSelector(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSelector().getMutableMap().put(key, value); return this; } /** * * *
       * Selector is a label query over pods that should match the Replicas count.
       * If Selector is empty, it is defaulted to the labels present on the Pod template.
       * Label keys and values that must match in order to be controlled by this replication
       * controller, if empty defaulted to labels on Pod template.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public Builder putAllSelector(java.util.Map values) { internalGetMutableSelector().getMutableMap().putAll(values); return this; } private io.kubernetes.client.proto.V1.PodTemplateSpec template_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplateSpec, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder, io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder> templateBuilder_; /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public boolean hasTemplate() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { if (templateBuilder_ == null) { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } else { return templateBuilder_.getMessage(); } } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public Builder setTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) { if (templateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } template_ = value; onChanged(); } else { templateBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public Builder setTemplate( io.kubernetes.client.proto.V1.PodTemplateSpec.Builder builderForValue) { if (templateBuilder_ == null) { template_ = builderForValue.build(); onChanged(); } else { templateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public Builder mergeTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) { if (templateBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && template_ != null && template_ != io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance()) { template_ = io.kubernetes.client.proto.V1.PodTemplateSpec.newBuilder(template_) .mergeFrom(value) .buildPartial(); } else { template_ = value; } onChanged(); } else { templateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public Builder clearTemplate() { if (templateBuilder_ == null) { template_ = null; onChanged(); } else { templateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public io.kubernetes.client.proto.V1.PodTemplateSpec.Builder getTemplateBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTemplateFieldBuilder().getBuilder(); } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() { if (templateBuilder_ != null) { return templateBuilder_.getMessageOrBuilder(); } else { return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_; } } /** * * *
       * Template is the object that describes the pod that will be created if
       * insufficient replicas are detected. This takes precedence over a TemplateRef.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplateSpec, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder, io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder> getTemplateFieldBuilder() { if (templateBuilder_ == null) { templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodTemplateSpec, io.kubernetes.client.proto.V1.PodTemplateSpec.Builder, io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder>( getTemplate(), getParentForChildren(), isClean()); template_ = null; } return templateBuilder_; } @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.core.v1.ReplicationControllerSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ReplicationControllerSpec) private static final io.kubernetes.client.proto.V1.ReplicationControllerSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ReplicationControllerSpec(); } public static io.kubernetes.client.proto.V1.ReplicationControllerSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReplicationControllerSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReplicationControllerSpec(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.V1.ReplicationControllerSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReplicationControllerStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ReplicationControllerStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Replicas is the most recently oberved number of replicas.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * 
* * optional int32 replicas = 1; */ boolean hasReplicas(); /** * * *
     * Replicas is the most recently oberved number of replicas.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * 
* * optional int32 replicas = 1; */ int getReplicas(); /** * * *
     * The number of pods that have labels matching the labels of the pod template of the replication controller.
     * +optional
     * 
* * optional int32 fullyLabeledReplicas = 2; */ boolean hasFullyLabeledReplicas(); /** * * *
     * The number of pods that have labels matching the labels of the pod template of the replication controller.
     * +optional
     * 
* * optional int32 fullyLabeledReplicas = 2; */ int getFullyLabeledReplicas(); /** * * *
     * The number of ready replicas for this replication controller.
     * +optional
     * 
* * optional int32 readyReplicas = 4; */ boolean hasReadyReplicas(); /** * * *
     * The number of ready replicas for this replication controller.
     * +optional
     * 
* * optional int32 readyReplicas = 4; */ int getReadyReplicas(); /** * * *
     * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
     * +optional
     * 
* * optional int32 availableReplicas = 5; */ boolean hasAvailableReplicas(); /** * * *
     * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
     * +optional
     * 
* * optional int32 availableReplicas = 5; */ int getAvailableReplicas(); /** * * *
     * ObservedGeneration reflects the generation of the most recently observed replication controller.
     * +optional
     * 
* * optional int64 observedGeneration = 3; */ boolean hasObservedGeneration(); /** * * *
     * ObservedGeneration reflects the generation of the most recently observed replication controller.
     * +optional
     * 
* * optional int64 observedGeneration = 3; */ long getObservedGeneration(); /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ java.util.List getConditionsList(); /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ io.kubernetes.client.proto.V1.ReplicationControllerCondition getConditions(int index); /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ int getConditionsCount(); /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder getConditionsOrBuilder( int index); } /** * * *
   * ReplicationControllerStatus represents the current status of a replication
   * controller.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerStatus} */ public static final class ReplicationControllerStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ReplicationControllerStatus) ReplicationControllerStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ReplicationControllerStatus.newBuilder() to construct. private ReplicationControllerStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReplicationControllerStatus() { replicas_ = 0; fullyLabeledReplicas_ = 0; readyReplicas_ = 0; availableReplicas_ = 0; observedGeneration_ = 0L; conditions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReplicationControllerStatus( 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; replicas_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; fullyLabeledReplicas_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000010; observedGeneration_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000004; readyReplicas_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000008; availableReplicas_ = input.readInt32(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { conditions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.ReplicationControllerCondition>(); mutable_bitField0_ |= 0x00000020; } conditions_.add( input.readMessage( io.kubernetes.client.proto.V1.ReplicationControllerCondition.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_ & 0x00000020) == 0x00000020)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerStatus.class, io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder.class); } private int bitField0_; public static final int REPLICAS_FIELD_NUMBER = 1; private int replicas_; /** * * *
     * Replicas is the most recently oberved number of replicas.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * 
* * optional int32 replicas = 1; */ public boolean hasReplicas() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Replicas is the most recently oberved number of replicas.
     * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
     * 
* * optional int32 replicas = 1; */ public int getReplicas() { return replicas_; } public static final int FULLYLABELEDREPLICAS_FIELD_NUMBER = 2; private int fullyLabeledReplicas_; /** * * *
     * The number of pods that have labels matching the labels of the pod template of the replication controller.
     * +optional
     * 
* * optional int32 fullyLabeledReplicas = 2; */ public boolean hasFullyLabeledReplicas() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The number of pods that have labels matching the labels of the pod template of the replication controller.
     * +optional
     * 
* * optional int32 fullyLabeledReplicas = 2; */ public int getFullyLabeledReplicas() { return fullyLabeledReplicas_; } public static final int READYREPLICAS_FIELD_NUMBER = 4; private int readyReplicas_; /** * * *
     * The number of ready replicas for this replication controller.
     * +optional
     * 
* * optional int32 readyReplicas = 4; */ public boolean hasReadyReplicas() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The number of ready replicas for this replication controller.
     * +optional
     * 
* * optional int32 readyReplicas = 4; */ public int getReadyReplicas() { return readyReplicas_; } public static final int AVAILABLEREPLICAS_FIELD_NUMBER = 5; private int availableReplicas_; /** * * *
     * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
     * +optional
     * 
* * optional int32 availableReplicas = 5; */ public boolean hasAvailableReplicas() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
     * +optional
     * 
* * optional int32 availableReplicas = 5; */ public int getAvailableReplicas() { return availableReplicas_; } public static final int OBSERVEDGENERATION_FIELD_NUMBER = 3; private long observedGeneration_; /** * * *
     * ObservedGeneration reflects the generation of the most recently observed replication controller.
     * +optional
     * 
* * optional int64 observedGeneration = 3; */ public boolean hasObservedGeneration() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * ObservedGeneration reflects the generation of the most recently observed replication controller.
     * +optional
     * 
* * optional int64 observedGeneration = 3; */ public long getObservedGeneration() { return observedGeneration_; } public static final int CONDITIONS_FIELD_NUMBER = 6; private java.util.List conditions_; /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public java.util.List< ? extends io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder> getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerCondition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Represents the latest available observations of a replication controller's current state.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.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.writeInt32(1, replicas_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, fullyLabeledReplicas_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(3, observedGeneration_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(4, readyReplicas_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(5, availableReplicas_); } for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(6, conditions_.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.computeInt32Size(1, replicas_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fullyLabeledReplicas_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, observedGeneration_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, readyReplicas_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, availableReplicas_); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, conditions_.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.V1.ReplicationControllerStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ReplicationControllerStatus other = (io.kubernetes.client.proto.V1.ReplicationControllerStatus) obj; boolean result = true; result = result && (hasReplicas() == other.hasReplicas()); if (hasReplicas()) { result = result && (getReplicas() == other.getReplicas()); } result = result && (hasFullyLabeledReplicas() == other.hasFullyLabeledReplicas()); if (hasFullyLabeledReplicas()) { result = result && (getFullyLabeledReplicas() == other.getFullyLabeledReplicas()); } result = result && (hasReadyReplicas() == other.hasReadyReplicas()); if (hasReadyReplicas()) { result = result && (getReadyReplicas() == other.getReadyReplicas()); } result = result && (hasAvailableReplicas() == other.hasAvailableReplicas()); if (hasAvailableReplicas()) { result = result && (getAvailableReplicas() == other.getAvailableReplicas()); } result = result && (hasObservedGeneration() == other.hasObservedGeneration()); if (hasObservedGeneration()) { result = result && (getObservedGeneration() == other.getObservedGeneration()); } result = result && getConditionsList().equals(other.getConditionsList()); 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 (hasReplicas()) { hash = (37 * hash) + REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getReplicas(); } if (hasFullyLabeledReplicas()) { hash = (37 * hash) + FULLYLABELEDREPLICAS_FIELD_NUMBER; hash = (53 * hash) + getFullyLabeledReplicas(); } if (hasReadyReplicas()) { hash = (37 * hash) + READYREPLICAS_FIELD_NUMBER; hash = (53 * hash) + getReadyReplicas(); } if (hasAvailableReplicas()) { hash = (37 * hash) + AVAILABLEREPLICAS_FIELD_NUMBER; hash = (53 * hash) + getAvailableReplicas(); } if (hasObservedGeneration()) { hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus 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.V1.ReplicationControllerStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus 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.V1.ReplicationControllerStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus 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.V1.ReplicationControllerStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus 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.V1.ReplicationControllerStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus 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.V1.ReplicationControllerStatus 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; } /** * * *
     * ReplicationControllerStatus represents the current status of a replication
     * controller.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ReplicationControllerStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ReplicationControllerStatus) io.kubernetes.client.proto.V1.ReplicationControllerStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ReplicationControllerStatus.class, io.kubernetes.client.proto.V1.ReplicationControllerStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ReplicationControllerStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); replicas_ = 0; bitField0_ = (bitField0_ & ~0x00000001); fullyLabeledReplicas_ = 0; bitField0_ = (bitField0_ & ~0x00000002); readyReplicas_ = 0; bitField0_ = (bitField0_ & ~0x00000004); availableReplicas_ = 0; bitField0_ = (bitField0_ & ~0x00000008); observedGeneration_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { conditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ReplicationControllerStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerStatus build() { io.kubernetes.client.proto.V1.ReplicationControllerStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ReplicationControllerStatus buildPartial() { io.kubernetes.client.proto.V1.ReplicationControllerStatus result = new io.kubernetes.client.proto.V1.ReplicationControllerStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.replicas_ = replicas_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fullyLabeledReplicas_ = fullyLabeledReplicas_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readyReplicas_ = readyReplicas_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.availableReplicas_ = availableReplicas_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.observedGeneration_ = observedGeneration_; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000020); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.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.V1.ReplicationControllerStatus) { return mergeFrom((io.kubernetes.client.proto.V1.ReplicationControllerStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ReplicationControllerStatus other) { if (other == io.kubernetes.client.proto.V1.ReplicationControllerStatus.getDefaultInstance()) return this; if (other.hasReplicas()) { setReplicas(other.getReplicas()); } if (other.hasFullyLabeledReplicas()) { setFullyLabeledReplicas(other.getFullyLabeledReplicas()); } if (other.hasReadyReplicas()) { setReadyReplicas(other.getReadyReplicas()); } if (other.hasAvailableReplicas()) { setAvailableReplicas(other.getAvailableReplicas()); } if (other.hasObservedGeneration()) { setObservedGeneration(other.getObservedGeneration()); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000020); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } 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.V1.ReplicationControllerStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ReplicationControllerStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int replicas_; /** * * *
       * Replicas is the most recently oberved number of replicas.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * 
* * optional int32 replicas = 1; */ public boolean hasReplicas() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Replicas is the most recently oberved number of replicas.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * 
* * optional int32 replicas = 1; */ public int getReplicas() { return replicas_; } /** * * *
       * Replicas is the most recently oberved number of replicas.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * 
* * optional int32 replicas = 1; */ public Builder setReplicas(int value) { bitField0_ |= 0x00000001; replicas_ = value; onChanged(); return this; } /** * * *
       * Replicas is the most recently oberved number of replicas.
       * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
       * 
* * optional int32 replicas = 1; */ public Builder clearReplicas() { bitField0_ = (bitField0_ & ~0x00000001); replicas_ = 0; onChanged(); return this; } private int fullyLabeledReplicas_; /** * * *
       * The number of pods that have labels matching the labels of the pod template of the replication controller.
       * +optional
       * 
* * optional int32 fullyLabeledReplicas = 2; */ public boolean hasFullyLabeledReplicas() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The number of pods that have labels matching the labels of the pod template of the replication controller.
       * +optional
       * 
* * optional int32 fullyLabeledReplicas = 2; */ public int getFullyLabeledReplicas() { return fullyLabeledReplicas_; } /** * * *
       * The number of pods that have labels matching the labels of the pod template of the replication controller.
       * +optional
       * 
* * optional int32 fullyLabeledReplicas = 2; */ public Builder setFullyLabeledReplicas(int value) { bitField0_ |= 0x00000002; fullyLabeledReplicas_ = value; onChanged(); return this; } /** * * *
       * The number of pods that have labels matching the labels of the pod template of the replication controller.
       * +optional
       * 
* * optional int32 fullyLabeledReplicas = 2; */ public Builder clearFullyLabeledReplicas() { bitField0_ = (bitField0_ & ~0x00000002); fullyLabeledReplicas_ = 0; onChanged(); return this; } private int readyReplicas_; /** * * *
       * The number of ready replicas for this replication controller.
       * +optional
       * 
* * optional int32 readyReplicas = 4; */ public boolean hasReadyReplicas() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The number of ready replicas for this replication controller.
       * +optional
       * 
* * optional int32 readyReplicas = 4; */ public int getReadyReplicas() { return readyReplicas_; } /** * * *
       * The number of ready replicas for this replication controller.
       * +optional
       * 
* * optional int32 readyReplicas = 4; */ public Builder setReadyReplicas(int value) { bitField0_ |= 0x00000004; readyReplicas_ = value; onChanged(); return this; } /** * * *
       * The number of ready replicas for this replication controller.
       * +optional
       * 
* * optional int32 readyReplicas = 4; */ public Builder clearReadyReplicas() { bitField0_ = (bitField0_ & ~0x00000004); readyReplicas_ = 0; onChanged(); return this; } private int availableReplicas_; /** * * *
       * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
       * +optional
       * 
* * optional int32 availableReplicas = 5; */ public boolean hasAvailableReplicas() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
       * +optional
       * 
* * optional int32 availableReplicas = 5; */ public int getAvailableReplicas() { return availableReplicas_; } /** * * *
       * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
       * +optional
       * 
* * optional int32 availableReplicas = 5; */ public Builder setAvailableReplicas(int value) { bitField0_ |= 0x00000008; availableReplicas_ = value; onChanged(); return this; } /** * * *
       * The number of available replicas (ready for at least minReadySeconds) for this replication controller.
       * +optional
       * 
* * optional int32 availableReplicas = 5; */ public Builder clearAvailableReplicas() { bitField0_ = (bitField0_ & ~0x00000008); availableReplicas_ = 0; onChanged(); return this; } private long observedGeneration_; /** * * *
       * ObservedGeneration reflects the generation of the most recently observed replication controller.
       * +optional
       * 
* * optional int64 observedGeneration = 3; */ public boolean hasObservedGeneration() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * ObservedGeneration reflects the generation of the most recently observed replication controller.
       * +optional
       * 
* * optional int64 observedGeneration = 3; */ public long getObservedGeneration() { return observedGeneration_; } /** * * *
       * ObservedGeneration reflects the generation of the most recently observed replication controller.
       * +optional
       * 
* * optional int64 observedGeneration = 3; */ public Builder setObservedGeneration(long value) { bitField0_ |= 0x00000010; observedGeneration_ = value; onChanged(); return this; } /** * * *
       * ObservedGeneration reflects the generation of the most recently observed replication controller.
       * +optional
       * 
* * optional int64 observedGeneration = 3; */ public Builder clearObservedGeneration() { bitField0_ = (bitField0_ & ~0x00000010); observedGeneration_ = 0L; onChanged(); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { conditions_ = new java.util.ArrayList( conditions_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerCondition, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder, io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder> conditionsBuilder_; /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerCondition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.ReplicationControllerCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder setConditions( int index, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder addConditions( io.kubernetes.client.proto.V1.ReplicationControllerCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.ReplicationControllerCondition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder addConditions( io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder addConditions( int index, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public java.util.List< ? extends io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder> getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1.ReplicationControllerCondition.getDefaultInstance()); } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.ReplicationControllerCondition.getDefaultInstance()); } /** * * *
       * Represents the latest available observations of a replication controller's current state.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ReplicationControllerCondition conditions = 6; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerCondition, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder, io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ReplicationControllerCondition, io.kubernetes.client.proto.V1.ReplicationControllerCondition.Builder, io.kubernetes.client.proto.V1.ReplicationControllerConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } @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.core.v1.ReplicationControllerStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ReplicationControllerStatus) private static final io.kubernetes.client.proto.V1.ReplicationControllerStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ReplicationControllerStatus(); } public static io.kubernetes.client.proto.V1.ReplicationControllerStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReplicationControllerStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReplicationControllerStatus(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.V1.ReplicationControllerStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceFieldSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ResourceFieldSelector) com.google.protobuf.MessageOrBuilder { /** * * *
     * Container name: required for volumes, optional for env vars
     * +optional
     * 
* * optional string containerName = 1; */ boolean hasContainerName(); /** * * *
     * Container name: required for volumes, optional for env vars
     * +optional
     * 
* * optional string containerName = 1; */ java.lang.String getContainerName(); /** * * *
     * Container name: required for volumes, optional for env vars
     * +optional
     * 
* * optional string containerName = 1; */ com.google.protobuf.ByteString getContainerNameBytes(); /** * * *
     * Required: resource to select
     * 
* * optional string resource = 2; */ boolean hasResource(); /** * * *
     * Required: resource to select
     * 
* * optional string resource = 2; */ java.lang.String getResource(); /** * * *
     * Required: resource to select
     * 
* * optional string resource = 2; */ com.google.protobuf.ByteString getResourceBytes(); /** * * *
     * Specifies the output format of the exposed resources, defaults to "1"
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ boolean hasDivisor(); /** * * *
     * Specifies the output format of the exposed resources, defaults to "1"
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ io.kubernetes.client.proto.Resource.Quantity getDivisor(); /** * * *
     * Specifies the output format of the exposed resources, defaults to "1"
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ io.kubernetes.client.proto.Resource.QuantityOrBuilder getDivisorOrBuilder(); } /** * * *
   * ResourceFieldSelector represents container resources (cpu, memory) and their output format
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceFieldSelector} */ public static final class ResourceFieldSelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ResourceFieldSelector) ResourceFieldSelectorOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceFieldSelector.newBuilder() to construct. private ResourceFieldSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceFieldSelector() { containerName_ = ""; resource_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceFieldSelector( 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; containerName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; resource_ = bs; break; } case 26: { io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = divisor_.toBuilder(); } divisor_ = input.readMessage( io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(divisor_); divisor_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceFieldSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceFieldSelector.class, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder.class); } private int bitField0_; public static final int CONTAINERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object containerName_; /** * * *
     * Container name: required for volumes, optional for env vars
     * +optional
     * 
* * optional string containerName = 1; */ public boolean hasContainerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Container name: required for volumes, optional for env vars
     * +optional
     * 
* * optional string containerName = 1; */ public java.lang.String getContainerName() { java.lang.Object ref = containerName_; 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()) { containerName_ = s; } return s; } } /** * * *
     * Container name: required for volumes, optional for env vars
     * +optional
     * 
* * optional string containerName = 1; */ public com.google.protobuf.ByteString getContainerNameBytes() { java.lang.Object ref = containerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object resource_; /** * * *
     * Required: resource to select
     * 
* * optional string resource = 2; */ public boolean hasResource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Required: resource to select
     * 
* * optional string resource = 2; */ public java.lang.String getResource() { java.lang.Object ref = resource_; 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()) { resource_ = s; } return s; } } /** * * *
     * Required: resource to select
     * 
* * optional string resource = 2; */ public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIVISOR_FIELD_NUMBER = 3; private io.kubernetes.client.proto.Resource.Quantity divisor_; /** * * *
     * Specifies the output format of the exposed resources, defaults to "1"
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public boolean hasDivisor() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Specifies the output format of the exposed resources, defaults to "1"
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public io.kubernetes.client.proto.Resource.Quantity getDivisor() { return divisor_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : divisor_; } /** * * *
     * Specifies the output format of the exposed resources, defaults to "1"
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getDivisorOrBuilder() { return divisor_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : divisor_; } 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, containerName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getDivisor()); } 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, containerName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDivisor()); } 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.V1.ResourceFieldSelector)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ResourceFieldSelector other = (io.kubernetes.client.proto.V1.ResourceFieldSelector) obj; boolean result = true; result = result && (hasContainerName() == other.hasContainerName()); if (hasContainerName()) { result = result && getContainerName().equals(other.getContainerName()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource().equals(other.getResource()); } result = result && (hasDivisor() == other.hasDivisor()); if (hasDivisor()) { result = result && getDivisor().equals(other.getDivisor()); } 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 (hasContainerName()) { hash = (37 * hash) + CONTAINERNAME_FIELD_NUMBER; hash = (53 * hash) + getContainerName().hashCode(); } if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } if (hasDivisor()) { hash = (37 * hash) + DIVISOR_FIELD_NUMBER; hash = (53 * hash) + getDivisor().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ResourceFieldSelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector 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.V1.ResourceFieldSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector 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.V1.ResourceFieldSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector 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.V1.ResourceFieldSelector parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector 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.V1.ResourceFieldSelector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector 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.V1.ResourceFieldSelector 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; } /** * * *
     * ResourceFieldSelector represents container resources (cpu, memory) and their output format
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceFieldSelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ResourceFieldSelector) io.kubernetes.client.proto.V1.ResourceFieldSelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceFieldSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceFieldSelector.class, io.kubernetes.client.proto.V1.ResourceFieldSelector.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ResourceFieldSelector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDivisorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); containerName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); resource_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (divisorBuilder_ == null) { divisor_ = null; } else { divisorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceFieldSelector getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceFieldSelector build() { io.kubernetes.client.proto.V1.ResourceFieldSelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceFieldSelector buildPartial() { io.kubernetes.client.proto.V1.ResourceFieldSelector result = new io.kubernetes.client.proto.V1.ResourceFieldSelector(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.containerName_ = containerName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.resource_ = resource_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (divisorBuilder_ == null) { result.divisor_ = divisor_; } else { result.divisor_ = divisorBuilder_.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.V1.ResourceFieldSelector) { return mergeFrom((io.kubernetes.client.proto.V1.ResourceFieldSelector) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceFieldSelector other) { if (other == io.kubernetes.client.proto.V1.ResourceFieldSelector.getDefaultInstance()) return this; if (other.hasContainerName()) { bitField0_ |= 0x00000001; containerName_ = other.containerName_; onChanged(); } if (other.hasResource()) { bitField0_ |= 0x00000002; resource_ = other.resource_; onChanged(); } if (other.hasDivisor()) { mergeDivisor(other.getDivisor()); } 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.V1.ResourceFieldSelector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ResourceFieldSelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object containerName_ = ""; /** * * *
       * Container name: required for volumes, optional for env vars
       * +optional
       * 
* * optional string containerName = 1; */ public boolean hasContainerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Container name: required for volumes, optional for env vars
       * +optional
       * 
* * optional string containerName = 1; */ public java.lang.String getContainerName() { java.lang.Object ref = containerName_; 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()) { containerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Container name: required for volumes, optional for env vars
       * +optional
       * 
* * optional string containerName = 1; */ public com.google.protobuf.ByteString getContainerNameBytes() { java.lang.Object ref = containerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); containerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Container name: required for volumes, optional for env vars
       * +optional
       * 
* * optional string containerName = 1; */ public Builder setContainerName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; containerName_ = value; onChanged(); return this; } /** * * *
       * Container name: required for volumes, optional for env vars
       * +optional
       * 
* * optional string containerName = 1; */ public Builder clearContainerName() { bitField0_ = (bitField0_ & ~0x00000001); containerName_ = getDefaultInstance().getContainerName(); onChanged(); return this; } /** * * *
       * Container name: required for volumes, optional for env vars
       * +optional
       * 
* * optional string containerName = 1; */ public Builder setContainerNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; containerName_ = value; onChanged(); return this; } private java.lang.Object resource_ = ""; /** * * *
       * Required: resource to select
       * 
* * optional string resource = 2; */ public boolean hasResource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Required: resource to select
       * 
* * optional string resource = 2; */ public java.lang.String getResource() { java.lang.Object ref = resource_; 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()) { resource_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required: resource to select
       * 
* * optional string resource = 2; */ public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required: resource to select
       * 
* * optional string resource = 2; */ public Builder setResource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; resource_ = value; onChanged(); return this; } /** * * *
       * Required: resource to select
       * 
* * optional string resource = 2; */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** * * *
       * Required: resource to select
       * 
* * optional string resource = 2; */ public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; resource_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Resource.Quantity divisor_ = 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> divisorBuilder_; /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public boolean hasDivisor() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public io.kubernetes.client.proto.Resource.Quantity getDivisor() { if (divisorBuilder_ == null) { return divisor_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : divisor_; } else { return divisorBuilder_.getMessage(); } } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public Builder setDivisor(io.kubernetes.client.proto.Resource.Quantity value) { if (divisorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } divisor_ = value; onChanged(); } else { divisorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public Builder setDivisor( io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { if (divisorBuilder_ == null) { divisor_ = builderForValue.build(); onChanged(); } else { divisorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public Builder mergeDivisor(io.kubernetes.client.proto.Resource.Quantity value) { if (divisorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && divisor_ != null && divisor_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { divisor_ = io.kubernetes.client.proto.Resource.Quantity.newBuilder(divisor_) .mergeFrom(value) .buildPartial(); } else { divisor_ = value; } onChanged(); } else { divisorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public Builder clearDivisor() { if (divisorBuilder_ == null) { divisor_ = null; onChanged(); } else { divisorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public io.kubernetes.client.proto.Resource.Quantity.Builder getDivisorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDivisorFieldBuilder().getBuilder(); } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getDivisorOrBuilder() { if (divisorBuilder_ != null) { return divisorBuilder_.getMessageOrBuilder(); } else { return divisor_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : divisor_; } } /** * * *
       * Specifies the output format of the exposed resources, defaults to "1"
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.api.resource.Quantity divisor = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> getDivisorFieldBuilder() { if (divisorBuilder_ == null) { divisorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( getDivisor(), getParentForChildren(), isClean()); divisor_ = null; } return divisorBuilder_; } @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.core.v1.ResourceFieldSelector) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ResourceFieldSelector) private static final io.kubernetes.client.proto.V1.ResourceFieldSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ResourceFieldSelector(); } public static io.kubernetes.client.proto.V1.ResourceFieldSelector getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceFieldSelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceFieldSelector(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.V1.ResourceFieldSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceQuotaOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ResourceQuota) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the desired quota.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the desired quota.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ io.kubernetes.client.proto.V1.ResourceQuotaSpec getSpec(); /** * * *
     * Spec defines the desired quota.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Status defines the actual enforced quota and its current usage.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ boolean hasStatus(); /** * * *
     * Status defines the actual enforced quota and its current usage.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ io.kubernetes.client.proto.V1.ResourceQuotaStatus getStatus(); /** * * *
     * Status defines the actual enforced quota and its current usage.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * ResourceQuota sets aggregate quota restrictions enforced per namespace
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuota} */ public static final class ResourceQuota extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ResourceQuota) ResourceQuotaOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceQuota.newBuilder() to construct. private ResourceQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceQuota() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceQuota( 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.V1.ResourceQuotaSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceQuotaSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.ResourceQuotaStatus.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 .V1 .internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuota_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuota.class, io.kubernetes.client.proto.V1.ResourceQuota.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ResourceQuotaSpec spec_; /** * * *
     * Spec defines the desired quota.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the desired quota.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the desired quota.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ResourceQuotaStatus status_; /** * * *
     * Status defines the actual enforced quota and its current usage.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Status defines the actual enforced quota and its current usage.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public io.kubernetes.client.proto.V1.ResourceQuotaStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaStatus.getDefaultInstance() : status_; } /** * * *
     * Status defines the actual enforced quota and its current usage.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaStatus.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.V1.ResourceQuota)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ResourceQuota other = (io.kubernetes.client.proto.V1.ResourceQuota) 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.V1.ResourceQuota parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuota 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.V1.ResourceQuota parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuota 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.V1.ResourceQuota parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuota parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ResourceQuota parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuota 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.V1.ResourceQuota parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuota 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.V1.ResourceQuota parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuota 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.V1.ResourceQuota 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; } /** * * *
     * ResourceQuota sets aggregate quota restrictions enforced per namespace
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuota} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ResourceQuota) io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuota_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuota.class, io.kubernetes.client.proto.V1.ResourceQuota.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ResourceQuota.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 .V1 .internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuota getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ResourceQuota.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuota build() { io.kubernetes.client.proto.V1.ResourceQuota result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuota buildPartial() { io.kubernetes.client.proto.V1.ResourceQuota result = new io.kubernetes.client.proto.V1.ResourceQuota(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.V1.ResourceQuota) { return mergeFrom((io.kubernetes.client.proto.V1.ResourceQuota) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceQuota other) { if (other == io.kubernetes.client.proto.V1.ResourceQuota.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.V1.ResourceQuota parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ResourceQuota) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.ResourceQuotaSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuotaSpec, io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder, io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.ResourceQuotaSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.ResourceQuotaSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.ResourceQuotaSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the desired quota.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuotaSpec, io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder, io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuotaSpec, io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder, io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.ResourceQuotaStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuotaStatus, io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder, io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder> statusBuilder_; /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public io.kubernetes.client.proto.V1.ResourceQuotaStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.ResourceQuotaStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.ResourceQuotaStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.ResourceQuotaStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.ResourceQuotaStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ public io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.ResourceQuotaStatus.getDefaultInstance() : status_; } } /** * * *
       * Status defines the actual enforced quota and its current usage.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ResourceQuotaStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuotaStatus, io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder, io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuotaStatus, io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder, io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder>( 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.core.v1.ResourceQuota) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ResourceQuota) private static final io.kubernetes.client.proto.V1.ResourceQuota DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ResourceQuota(); } public static io.kubernetes.client.proto.V1.ResourceQuota getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceQuota parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceQuota(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.V1.ResourceQuota getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceQuotaListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ResourceQuotaList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ io.kubernetes.client.proto.V1.ResourceQuota getItems(int index); /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ int getItemsCount(); /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder getItemsOrBuilder(int index); } /** * * *
   * ResourceQuotaList is a list of ResourceQuota items.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuotaList} */ public static final class ResourceQuotaList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ResourceQuotaList) ResourceQuotaListOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceQuotaList.newBuilder() to construct. private ResourceQuotaList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceQuotaList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceQuotaList( 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.V1.ResourceQuota.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 .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuotaList.class, io.kubernetes.client.proto.V1.ResourceQuotaList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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 a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuota getItems(int index) { return items_.get(index); } /** * * *
     * Items is a list of ResourceQuota objects.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder 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.V1.ResourceQuotaList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ResourceQuotaList other = (io.kubernetes.client.proto.V1.ResourceQuotaList) 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.V1.ResourceQuotaList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaList 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.V1.ResourceQuotaList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaList 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.V1.ResourceQuotaList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ResourceQuotaList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaList 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.V1.ResourceQuotaList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaList 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.V1.ResourceQuotaList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaList 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.V1.ResourceQuotaList 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; } /** * * *
     * ResourceQuotaList is a list of ResourceQuota items.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuotaList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ResourceQuotaList) io.kubernetes.client.proto.V1.ResourceQuotaListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuotaList.class, io.kubernetes.client.proto.V1.ResourceQuotaList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ResourceQuotaList.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 .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ResourceQuotaList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaList build() { io.kubernetes.client.proto.V1.ResourceQuotaList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaList buildPartial() { io.kubernetes.client.proto.V1.ResourceQuotaList result = new io.kubernetes.client.proto.V1.ResourceQuotaList(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.V1.ResourceQuotaList) { return mergeFrom((io.kubernetes.client.proto.V1.ResourceQuotaList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceQuotaList other) { if (other == io.kubernetes.client.proto.V1.ResourceQuotaList.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.V1.ResourceQuotaList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ResourceQuotaList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.ResourceQuota, io.kubernetes.client.proto.V1.ResourceQuota.Builder, io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder> itemsBuilder_; /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuota getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.ResourceQuota 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 a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.ResourceQuota.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ResourceQuota value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.ResourceQuota 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 a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ResourceQuota.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.ResourceQuota.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota 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 a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuota.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuota.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ResourceQuota.getDefaultInstance()); } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public io.kubernetes.client.proto.V1.ResourceQuota.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ResourceQuota.getDefaultInstance()); } /** * * *
       * Items is a list of ResourceQuota objects.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * 
* * repeated .k8s.io.api.core.v1.ResourceQuota items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuota, io.kubernetes.client.proto.V1.ResourceQuota.Builder, io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ResourceQuota, io.kubernetes.client.proto.V1.ResourceQuota.Builder, io.kubernetes.client.proto.V1.ResourceQuotaOrBuilder>( 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.core.v1.ResourceQuotaList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ResourceQuotaList) private static final io.kubernetes.client.proto.V1.ResourceQuotaList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ResourceQuotaList(); } public static io.kubernetes.client.proto.V1.ResourceQuotaList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceQuotaList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceQuotaList(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.V1.ResourceQuotaList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceQuotaSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ResourceQuotaSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ int getHardCount(); /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ boolean containsHard(java.lang.String key); /** Use {@link #getHardMap()} instead. */ @java.lang.Deprecated java.util.Map getHard(); /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ java.util.Map getHardMap(); /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ io.kubernetes.client.proto.Resource.Quantity getHardOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ io.kubernetes.client.proto.Resource.Quantity getHardOrThrow(java.lang.String key); /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ java.util.List getScopesList(); /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ int getScopesCount(); /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ java.lang.String getScopes(int index); /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ com.google.protobuf.ByteString getScopesBytes(int index); /** * * *
     * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
     * but expressed using ScopeSelectorOperator in combination with possible values.
     * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ boolean hasScopeSelector(); /** * * *
     * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
     * but expressed using ScopeSelectorOperator in combination with possible values.
     * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ io.kubernetes.client.proto.V1.ScopeSelector getScopeSelector(); /** * * *
     * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
     * but expressed using ScopeSelectorOperator in combination with possible values.
     * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder getScopeSelectorOrBuilder(); } /** * * *
   * ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuotaSpec} */ public static final class ResourceQuotaSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ResourceQuotaSpec) ResourceQuotaSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceQuotaSpec.newBuilder() to construct. private ResourceQuotaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceQuotaSpec() { scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceQuotaSpec( 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)) { hard_ = com.google.protobuf.MapField.newMapField(HardDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> hard__ = input.readMessage( HardDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); hard_.getMutableMap().put(hard__.getKey(), hard__.getValue()); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { scopes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } scopes_.add(bs); break; } case 26: { io.kubernetes.client.proto.V1.ScopeSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = scopeSelector_.toBuilder(); } scopeSelector_ = input.readMessage( io.kubernetes.client.proto.V1.ScopeSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scopeSelector_); scopeSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { scopes_ = scopes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetHard(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuotaSpec.class, io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder.class); } private int bitField0_; public static final int HARD_FIELD_NUMBER = 1; private static final class HardDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> hard_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetHard() { if (hard_ == null) { return com.google.protobuf.MapField.emptyMapField(HardDefaultEntryHolder.defaultEntry); } return hard_; } public int getHardCount() { return internalGetHard().getMap().size(); } /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public boolean containsHard(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetHard().getMap().containsKey(key); } /** Use {@link #getHardMap()} instead. */ @java.lang.Deprecated public java.util.Map getHard() { return getHardMap(); } /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public java.util.Map getHardMap() { return internalGetHard().getMap(); } /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * hard is the set of desired hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SCOPES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList scopes_; /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ public com.google.protobuf.ProtocolStringList getScopesList() { return scopes_; } /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ public int getScopesCount() { return scopes_.size(); } /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ public java.lang.String getScopes(int index) { return scopes_.get(index); } /** * * *
     * A collection of filters that must match each object tracked by a quota.
     * If not specified, the quota matches all objects.
     * +optional
     * 
* * repeated string scopes = 2; */ public com.google.protobuf.ByteString getScopesBytes(int index) { return scopes_.getByteString(index); } public static final int SCOPESELECTOR_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ScopeSelector scopeSelector_; /** * * *
     * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
     * but expressed using ScopeSelectorOperator in combination with possible values.
     * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public boolean hasScopeSelector() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
     * but expressed using ScopeSelectorOperator in combination with possible values.
     * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public io.kubernetes.client.proto.V1.ScopeSelector getScopeSelector() { return scopeSelector_ == null ? io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance() : scopeSelector_; } /** * * *
     * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
     * but expressed using ScopeSelectorOperator in combination with possible values.
     * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder getScopeSelectorOrBuilder() { return scopeSelector_ == null ? io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance() : scopeSelector_; } 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 { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetHard(), HardDefaultEntryHolder.defaultEntry, 1); for (int i = 0; i < scopes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scopes_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(3, getScopeSelector()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetHard().getMap().entrySet()) { com.google.protobuf.MapEntry hard__ = HardDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hard__); } { int dataSize = 0; for (int i = 0; i < scopes_.size(); i++) { dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); } size += dataSize; size += 1 * getScopesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScopeSelector()); } 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.V1.ResourceQuotaSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ResourceQuotaSpec other = (io.kubernetes.client.proto.V1.ResourceQuotaSpec) obj; boolean result = true; result = result && internalGetHard().equals(other.internalGetHard()); result = result && getScopesList().equals(other.getScopesList()); result = result && (hasScopeSelector() == other.hasScopeSelector()); if (hasScopeSelector()) { result = result && getScopeSelector().equals(other.getScopeSelector()); } 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 (!internalGetHard().getMap().isEmpty()) { hash = (37 * hash) + HARD_FIELD_NUMBER; hash = (53 * hash) + internalGetHard().hashCode(); } if (getScopesCount() > 0) { hash = (37 * hash) + SCOPES_FIELD_NUMBER; hash = (53 * hash) + getScopesList().hashCode(); } if (hasScopeSelector()) { hash = (37 * hash) + SCOPESELECTOR_FIELD_NUMBER; hash = (53 * hash) + getScopeSelector().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec 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.V1.ResourceQuotaSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec 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.V1.ResourceQuotaSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec 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.V1.ResourceQuotaSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec 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.V1.ResourceQuotaSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec 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.V1.ResourceQuotaSpec 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; } /** * * *
     * ResourceQuotaSpec defines the desired hard limits to enforce for Quota.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuotaSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ResourceQuotaSpec) io.kubernetes.client.proto.V1.ResourceQuotaSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetHard(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableHard(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuotaSpec.class, io.kubernetes.client.proto.V1.ResourceQuotaSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ResourceQuotaSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScopeSelectorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableHard().clear(); scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (scopeSelectorBuilder_ == null) { scopeSelector_ = null; } else { scopeSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaSpec build() { io.kubernetes.client.proto.V1.ResourceQuotaSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaSpec buildPartial() { io.kubernetes.client.proto.V1.ResourceQuotaSpec result = new io.kubernetes.client.proto.V1.ResourceQuotaSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.hard_ = internalGetHard(); result.hard_.makeImmutable(); if (((bitField0_ & 0x00000002) == 0x00000002)) { scopes_ = scopes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.scopes_ = scopes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } if (scopeSelectorBuilder_ == null) { result.scopeSelector_ = scopeSelector_; } else { result.scopeSelector_ = scopeSelectorBuilder_.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.V1.ResourceQuotaSpec) { return mergeFrom((io.kubernetes.client.proto.V1.ResourceQuotaSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceQuotaSpec other) { if (other == io.kubernetes.client.proto.V1.ResourceQuotaSpec.getDefaultInstance()) return this; internalGetMutableHard().mergeFrom(other.internalGetHard()); if (!other.scopes_.isEmpty()) { if (scopes_.isEmpty()) { scopes_ = other.scopes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureScopesIsMutable(); scopes_.addAll(other.scopes_); } onChanged(); } if (other.hasScopeSelector()) { mergeScopeSelector(other.getScopeSelector()); } 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.V1.ResourceQuotaSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ResourceQuotaSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> hard_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetHard() { if (hard_ == null) { return com.google.protobuf.MapField.emptyMapField(HardDefaultEntryHolder.defaultEntry); } return hard_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableHard() { onChanged(); ; if (hard_ == null) { hard_ = com.google.protobuf.MapField.newMapField(HardDefaultEntryHolder.defaultEntry); } if (!hard_.isMutable()) { hard_ = hard_.copy(); } return hard_; } public int getHardCount() { return internalGetHard().getMap().size(); } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public boolean containsHard(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetHard().getMap().containsKey(key); } /** Use {@link #getHardMap()} instead. */ @java.lang.Deprecated public java.util.Map getHard() { return getHardMap(); } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public java.util.Map getHardMap() { return internalGetHard().getMap(); } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHard() { internalGetMutableHard().getMutableMap().clear(); return this; } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public Builder removeHard(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableHard().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHard() { return internalGetMutableHard().getMutableMap(); } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public Builder putHard( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableHard().getMutableMap().put(key, value); return this; } /** * * *
       * hard is the set of desired hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public Builder putAllHard( java.util.Map values) { internalGetMutableHard().getMutableMap().putAll(values); return this; } private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureScopesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); bitField0_ |= 0x00000002; } } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public com.google.protobuf.ProtocolStringList getScopesList() { return scopes_.getUnmodifiableView(); } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public int getScopesCount() { return scopes_.size(); } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public java.lang.String getScopes(int index) { return scopes_.get(index); } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public com.google.protobuf.ByteString getScopesBytes(int index) { return scopes_.getByteString(index); } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public Builder setScopes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.set(index, value); onChanged(); return this; } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public Builder addScopes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(value); onChanged(); return this; } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public Builder addAllScopes(java.lang.Iterable values) { ensureScopesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); onChanged(); return this; } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public Builder clearScopes() { scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * A collection of filters that must match each object tracked by a quota.
       * If not specified, the quota matches all objects.
       * +optional
       * 
* * repeated string scopes = 2; */ public Builder addScopesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.V1.ScopeSelector scopeSelector_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScopeSelector, io.kubernetes.client.proto.V1.ScopeSelector.Builder, io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder> scopeSelectorBuilder_; /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public boolean hasScopeSelector() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public io.kubernetes.client.proto.V1.ScopeSelector getScopeSelector() { if (scopeSelectorBuilder_ == null) { return scopeSelector_ == null ? io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance() : scopeSelector_; } else { return scopeSelectorBuilder_.getMessage(); } } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public Builder setScopeSelector(io.kubernetes.client.proto.V1.ScopeSelector value) { if (scopeSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scopeSelector_ = value; onChanged(); } else { scopeSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public Builder setScopeSelector( io.kubernetes.client.proto.V1.ScopeSelector.Builder builderForValue) { if (scopeSelectorBuilder_ == null) { scopeSelector_ = builderForValue.build(); onChanged(); } else { scopeSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public Builder mergeScopeSelector(io.kubernetes.client.proto.V1.ScopeSelector value) { if (scopeSelectorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && scopeSelector_ != null && scopeSelector_ != io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance()) { scopeSelector_ = io.kubernetes.client.proto.V1.ScopeSelector.newBuilder(scopeSelector_) .mergeFrom(value) .buildPartial(); } else { scopeSelector_ = value; } onChanged(); } else { scopeSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public Builder clearScopeSelector() { if (scopeSelectorBuilder_ == null) { scopeSelector_ = null; onChanged(); } else { scopeSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public io.kubernetes.client.proto.V1.ScopeSelector.Builder getScopeSelectorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getScopeSelectorFieldBuilder().getBuilder(); } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ public io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder getScopeSelectorOrBuilder() { if (scopeSelectorBuilder_ != null) { return scopeSelectorBuilder_.getMessageOrBuilder(); } else { return scopeSelector_ == null ? io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance() : scopeSelector_; } } /** * * *
       * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
       * but expressed using ScopeSelectorOperator in combination with possible values.
       * For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScopeSelector scopeSelector = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScopeSelector, io.kubernetes.client.proto.V1.ScopeSelector.Builder, io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder> getScopeSelectorFieldBuilder() { if (scopeSelectorBuilder_ == null) { scopeSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScopeSelector, io.kubernetes.client.proto.V1.ScopeSelector.Builder, io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder>( getScopeSelector(), getParentForChildren(), isClean()); scopeSelector_ = null; } return scopeSelectorBuilder_; } @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.core.v1.ResourceQuotaSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ResourceQuotaSpec) private static final io.kubernetes.client.proto.V1.ResourceQuotaSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ResourceQuotaSpec(); } public static io.kubernetes.client.proto.V1.ResourceQuotaSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceQuotaSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceQuotaSpec(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.V1.ResourceQuotaSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceQuotaStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ResourceQuotaStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ int getHardCount(); /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ boolean containsHard(java.lang.String key); /** Use {@link #getHardMap()} instead. */ @java.lang.Deprecated java.util.Map getHard(); /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ java.util.Map getHardMap(); /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ io.kubernetes.client.proto.Resource.Quantity getHardOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ io.kubernetes.client.proto.Resource.Quantity getHardOrThrow(java.lang.String key); /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ int getUsedCount(); /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ boolean containsUsed(java.lang.String key); /** Use {@link #getUsedMap()} instead. */ @java.lang.Deprecated java.util.Map getUsed(); /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ java.util.Map getUsedMap(); /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ io.kubernetes.client.proto.Resource.Quantity getUsedOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ io.kubernetes.client.proto.Resource.Quantity getUsedOrThrow(java.lang.String key); } /** * * *
   * ResourceQuotaStatus defines the enforced hard limits and observed use.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuotaStatus} */ public static final class ResourceQuotaStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ResourceQuotaStatus) ResourceQuotaStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceQuotaStatus.newBuilder() to construct. private ResourceQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceQuotaStatus() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceQuotaStatus( 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)) { hard_ = com.google.protobuf.MapField.newMapField(HardDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> hard__ = input.readMessage( HardDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); hard_.getMutableMap().put(hard__.getKey(), hard__.getValue()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { used_ = com.google.protobuf.MapField.newMapField(UsedDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> used__ = input.readMessage( UsedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); used_.getMutableMap().put(used__.getKey(), used__.getValue()); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetHard(); case 2: return internalGetUsed(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuotaStatus.class, io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder.class); } public static final int HARD_FIELD_NUMBER = 1; private static final class HardDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_HardEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> hard_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetHard() { if (hard_ == null) { return com.google.protobuf.MapField.emptyMapField(HardDefaultEntryHolder.defaultEntry); } return hard_; } public int getHardCount() { return internalGetHard().getMap().size(); } /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public boolean containsHard(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetHard().getMap().containsKey(key); } /** Use {@link #getHardMap()} instead. */ @java.lang.Deprecated public java.util.Map getHard() { return getHardMap(); } /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public java.util.Map getHardMap() { return internalGetHard().getMap(); } /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Hard is the set of enforced hard limits for each named resource.
     * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int USED_FIELD_NUMBER = 2; private static final class UsedDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> used_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetUsed() { if (used_ == null) { return com.google.protobuf.MapField.emptyMapField(UsedDefaultEntryHolder.defaultEntry); } return used_; } public int getUsedCount() { return internalGetUsed().getMap().size(); } /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public boolean containsUsed(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetUsed().getMap().containsKey(key); } /** Use {@link #getUsedMap()} instead. */ @java.lang.Deprecated public java.util.Map getUsed() { return getUsedMap(); } /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public java.util.Map getUsedMap() { return internalGetUsed().getMap(); } /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public io.kubernetes.client.proto.Resource.Quantity getUsedOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetUsed().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Used is the current observed total usage of the resource in the namespace.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public io.kubernetes.client.proto.Resource.Quantity getUsedOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetHard(), HardDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetUsed(), UsedDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetHard().getMap().entrySet()) { com.google.protobuf.MapEntry hard__ = HardDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hard__); } for (java.util.Map.Entry entry : internalGetUsed().getMap().entrySet()) { com.google.protobuf.MapEntry used__ = UsedDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, used__); } 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.V1.ResourceQuotaStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ResourceQuotaStatus other = (io.kubernetes.client.proto.V1.ResourceQuotaStatus) obj; boolean result = true; result = result && internalGetHard().equals(other.internalGetHard()); result = result && internalGetUsed().equals(other.internalGetUsed()); 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 (!internalGetHard().getMap().isEmpty()) { hash = (37 * hash) + HARD_FIELD_NUMBER; hash = (53 * hash) + internalGetHard().hashCode(); } if (!internalGetUsed().getMap().isEmpty()) { hash = (37 * hash) + USED_FIELD_NUMBER; hash = (53 * hash) + internalGetUsed().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus 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.V1.ResourceQuotaStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus 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.V1.ResourceQuotaStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus 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.V1.ResourceQuotaStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus 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.V1.ResourceQuotaStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus 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.V1.ResourceQuotaStatus 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; } /** * * *
     * ResourceQuotaStatus defines the enforced hard limits and observed use.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuotaStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ResourceQuotaStatus) io.kubernetes.client.proto.V1.ResourceQuotaStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetHard(); case 2: return internalGetUsed(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableHard(); case 2: return internalGetMutableUsed(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceQuotaStatus.class, io.kubernetes.client.proto.V1.ResourceQuotaStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ResourceQuotaStatus.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(); internalGetMutableHard().clear(); internalGetMutableUsed().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ResourceQuotaStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaStatus build() { io.kubernetes.client.proto.V1.ResourceQuotaStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceQuotaStatus buildPartial() { io.kubernetes.client.proto.V1.ResourceQuotaStatus result = new io.kubernetes.client.proto.V1.ResourceQuotaStatus(this); int from_bitField0_ = bitField0_; result.hard_ = internalGetHard(); result.hard_.makeImmutable(); result.used_ = internalGetUsed(); result.used_.makeImmutable(); 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.V1.ResourceQuotaStatus) { return mergeFrom((io.kubernetes.client.proto.V1.ResourceQuotaStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceQuotaStatus other) { if (other == io.kubernetes.client.proto.V1.ResourceQuotaStatus.getDefaultInstance()) return this; internalGetMutableHard().mergeFrom(other.internalGetHard()); internalGetMutableUsed().mergeFrom(other.internalGetUsed()); 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.V1.ResourceQuotaStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ResourceQuotaStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> hard_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetHard() { if (hard_ == null) { return com.google.protobuf.MapField.emptyMapField(HardDefaultEntryHolder.defaultEntry); } return hard_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableHard() { onChanged(); ; if (hard_ == null) { hard_ = com.google.protobuf.MapField.newMapField(HardDefaultEntryHolder.defaultEntry); } if (!hard_.isMutable()) { hard_ = hard_.copy(); } return hard_; } public int getHardCount() { return internalGetHard().getMap().size(); } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public boolean containsHard(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetHard().getMap().containsKey(key); } /** Use {@link #getHardMap()} instead. */ @java.lang.Deprecated public java.util.Map getHard() { return getHardMap(); } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public java.util.Map getHardMap() { return internalGetHard().getMap(); } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public io.kubernetes.client.proto.Resource.Quantity getHardOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetHard().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearHard() { internalGetMutableHard().getMutableMap().clear(); return this; } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public Builder removeHard(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableHard().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHard() { return internalGetMutableHard().getMutableMap(); } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public Builder putHard( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableHard().getMutableMap().put(key, value); return this; } /** * * *
       * Hard is the set of enforced hard limits for each named resource.
       * More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> hard = 1; */ public Builder putAllHard( java.util.Map values) { internalGetMutableHard().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> used_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetUsed() { if (used_ == null) { return com.google.protobuf.MapField.emptyMapField(UsedDefaultEntryHolder.defaultEntry); } return used_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableUsed() { onChanged(); ; if (used_ == null) { used_ = com.google.protobuf.MapField.newMapField(UsedDefaultEntryHolder.defaultEntry); } if (!used_.isMutable()) { used_ = used_.copy(); } return used_; } public int getUsedCount() { return internalGetUsed().getMap().size(); } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public boolean containsUsed(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetUsed().getMap().containsKey(key); } /** Use {@link #getUsedMap()} instead. */ @java.lang.Deprecated public java.util.Map getUsed() { return getUsedMap(); } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public java.util.Map getUsedMap() { return internalGetUsed().getMap(); } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public io.kubernetes.client.proto.Resource.Quantity getUsedOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetUsed().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public io.kubernetes.client.proto.Resource.Quantity getUsedOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetUsed().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearUsed() { internalGetMutableUsed().getMutableMap().clear(); return this; } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public Builder removeUsed(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableUsed().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUsed() { return internalGetMutableUsed().getMutableMap(); } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public Builder putUsed( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableUsed().getMutableMap().put(key, value); return this; } /** * * *
       * Used is the current observed total usage of the resource in the namespace.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> used = 2; */ public Builder putAllUsed( java.util.Map values) { internalGetMutableUsed().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ResourceQuotaStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ResourceQuotaStatus) private static final io.kubernetes.client.proto.V1.ResourceQuotaStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ResourceQuotaStatus(); } public static io.kubernetes.client.proto.V1.ResourceQuotaStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceQuotaStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceQuotaStatus(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.V1.ResourceQuotaStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceRequirementsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ResourceRequirements) com.google.protobuf.MessageOrBuilder { /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ int getLimitsCount(); /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ boolean containsLimits(java.lang.String key); /** Use {@link #getLimitsMap()} instead. */ @java.lang.Deprecated java.util.Map getLimits(); /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ java.util.Map getLimitsMap(); /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ io.kubernetes.client.proto.Resource.Quantity getLimitsOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ io.kubernetes.client.proto.Resource.Quantity getLimitsOrThrow(java.lang.String key); /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ int getRequestsCount(); /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ boolean containsRequests(java.lang.String key); /** Use {@link #getRequestsMap()} instead. */ @java.lang.Deprecated java.util.Map getRequests(); /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ java.util.Map getRequestsMap(); /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ io.kubernetes.client.proto.Resource.Quantity getRequestsOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue); /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ io.kubernetes.client.proto.Resource.Quantity getRequestsOrThrow(java.lang.String key); } /** * * *
   * ResourceRequirements describes the compute resource requirements.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceRequirements} */ public static final class ResourceRequirements extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ResourceRequirements) ResourceRequirementsOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceRequirements.newBuilder() to construct. private ResourceRequirements(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceRequirements() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceRequirements( 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)) { limits_ = com.google.protobuf.MapField.newMapField( LimitsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> limits__ = input.readMessage( LimitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); limits_.getMutableMap().put(limits__.getKey(), limits__.getValue()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { requests_ = com.google.protobuf.MapField.newMapField( RequestsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> requests__ = input.readMessage( RequestsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); requests_.getMutableMap().put(requests__.getKey(), requests__.getValue()); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetLimits(); case 2: return internalGetRequests(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceRequirements.class, io.kubernetes.client.proto.V1.ResourceRequirements.Builder.class); } public static final int LIMITS_FIELD_NUMBER = 1; private static final class LimitsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_LimitsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> limits_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetLimits() { if (limits_ == null) { return com.google.protobuf.MapField.emptyMapField(LimitsDefaultEntryHolder.defaultEntry); } return limits_; } public int getLimitsCount() { return internalGetLimits().getMap().size(); } /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public boolean containsLimits(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLimits().getMap().containsKey(key); } /** Use {@link #getLimitsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLimits() { return getLimitsMap(); } /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public java.util.Map getLimitsMap() { return internalGetLimits().getMap(); } /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public io.kubernetes.client.proto.Resource.Quantity getLimitsOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLimits().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Limits describes the maximum amount of compute resources allowed.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public io.kubernetes.client.proto.Resource.Quantity getLimitsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLimits().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int REQUESTS_FIELD_NUMBER = 2; private static final class RequestsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> requests_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetRequests() { if (requests_ == null) { return com.google.protobuf.MapField.emptyMapField(RequestsDefaultEntryHolder.defaultEntry); } return requests_; } public int getRequestsCount() { return internalGetRequests().getMap().size(); } /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ public boolean containsRequests(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetRequests().getMap().containsKey(key); } /** Use {@link #getRequestsMap()} instead. */ @java.lang.Deprecated public java.util.Map getRequests() { return getRequestsMap(); } /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ public java.util.Map getRequestsMap() { return internalGetRequests().getMap(); } /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ public io.kubernetes.client.proto.Resource.Quantity getRequestsOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetRequests().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Requests describes the minimum amount of compute resources required.
     * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
     * otherwise to an implementation-defined value.
     * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; */ public io.kubernetes.client.proto.Resource.Quantity getRequestsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetRequests().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLimits(), LimitsDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetRequests(), RequestsDefaultEntryHolder.defaultEntry, 2); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetLimits().getMap().entrySet()) { com.google.protobuf.MapEntry limits__ = LimitsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, limits__); } for (java.util.Map.Entry entry : internalGetRequests().getMap().entrySet()) { com.google.protobuf.MapEntry requests__ = RequestsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests__); } 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.V1.ResourceRequirements)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ResourceRequirements other = (io.kubernetes.client.proto.V1.ResourceRequirements) obj; boolean result = true; result = result && internalGetLimits().equals(other.internalGetLimits()); result = result && internalGetRequests().equals(other.internalGetRequests()); 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 (!internalGetLimits().getMap().isEmpty()) { hash = (37 * hash) + LIMITS_FIELD_NUMBER; hash = (53 * hash) + internalGetLimits().hashCode(); } if (!internalGetRequests().getMap().isEmpty()) { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + internalGetRequests().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ResourceRequirements parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceRequirements 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.V1.ResourceRequirements parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceRequirements 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.V1.ResourceRequirements parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ResourceRequirements parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ResourceRequirements parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceRequirements 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.V1.ResourceRequirements parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceRequirements 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.V1.ResourceRequirements parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ResourceRequirements 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.V1.ResourceRequirements 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; } /** * * *
     * ResourceRequirements describes the compute resource requirements.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceRequirements} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ResourceRequirements) io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetLimits(); case 2: return internalGetRequests(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 1: return internalGetMutableLimits(); case 2: return internalGetMutableRequests(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ResourceRequirements.class, io.kubernetes.client.proto.V1.ResourceRequirements.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ResourceRequirements.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(); internalGetMutableLimits().clear(); internalGetMutableRequests().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceRequirements getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceRequirements build() { io.kubernetes.client.proto.V1.ResourceRequirements result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ResourceRequirements buildPartial() { io.kubernetes.client.proto.V1.ResourceRequirements result = new io.kubernetes.client.proto.V1.ResourceRequirements(this); int from_bitField0_ = bitField0_; result.limits_ = internalGetLimits(); result.limits_.makeImmutable(); result.requests_ = internalGetRequests(); result.requests_.makeImmutable(); 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.V1.ResourceRequirements) { return mergeFrom((io.kubernetes.client.proto.V1.ResourceRequirements) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceRequirements other) { if (other == io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) return this; internalGetMutableLimits().mergeFrom(other.internalGetLimits()); internalGetMutableRequests().mergeFrom(other.internalGetRequests()); 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.V1.ResourceRequirements parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ResourceRequirements) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> limits_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetLimits() { if (limits_ == null) { return com.google.protobuf.MapField.emptyMapField(LimitsDefaultEntryHolder.defaultEntry); } return limits_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableLimits() { onChanged(); ; if (limits_ == null) { limits_ = com.google.protobuf.MapField.newMapField(LimitsDefaultEntryHolder.defaultEntry); } if (!limits_.isMutable()) { limits_ = limits_.copy(); } return limits_; } public int getLimitsCount() { return internalGetLimits().getMap().size(); } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public boolean containsLimits(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLimits().getMap().containsKey(key); } /** Use {@link #getLimitsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLimits() { return getLimitsMap(); } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public java.util.Map getLimitsMap() { return internalGetLimits().getMap(); } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public io.kubernetes.client.proto.Resource.Quantity getLimitsOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLimits().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public io.kubernetes.client.proto.Resource.Quantity getLimitsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLimits().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLimits() { internalGetMutableLimits().getMutableMap().clear(); return this; } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public Builder removeLimits(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLimits().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLimits() { return internalGetMutableLimits().getMutableMap(); } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public Builder putLimits( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableLimits().getMutableMap().put(key, value); return this; } /** * * *
       * Limits describes the maximum amount of compute resources allowed.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> limits = 1; */ public Builder putAllLimits( java.util.Map values) { internalGetMutableLimits().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> requests_; private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetRequests() { if (requests_ == null) { return com.google.protobuf.MapField.emptyMapField( RequestsDefaultEntryHolder.defaultEntry); } return requests_; } private com.google.protobuf.MapField< java.lang.String, io.kubernetes.client.proto.Resource.Quantity> internalGetMutableRequests() { onChanged(); ; if (requests_ == null) { requests_ = com.google.protobuf.MapField.newMapField(RequestsDefaultEntryHolder.defaultEntry); } if (!requests_.isMutable()) { requests_ = requests_.copy(); } return requests_; } public int getRequestsCount() { return internalGetRequests().getMap().size(); } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public boolean containsRequests(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetRequests().getMap().containsKey(key); } /** Use {@link #getRequestsMap()} instead. */ @java.lang.Deprecated public java.util.Map getRequests() { return getRequestsMap(); } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public java.util.Map getRequestsMap() { return internalGetRequests().getMap(); } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public io.kubernetes.client.proto.Resource.Quantity getRequestsOrDefault( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetRequests().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public io.kubernetes.client.proto.Resource.Quantity getRequestsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetRequests().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearRequests() { internalGetMutableRequests().getMutableMap().clear(); return this; } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public Builder removeRequests(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableRequests().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRequests() { return internalGetMutableRequests().getMutableMap(); } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public Builder putRequests( java.lang.String key, io.kubernetes.client.proto.Resource.Quantity value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableRequests().getMutableMap().put(key, value); return this; } /** * * *
       * Requests describes the minimum amount of compute resources required.
       * If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
       * otherwise to an implementation-defined value.
       * More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 2; * */ public Builder putAllRequests( java.util.Map values) { internalGetMutableRequests().getMutableMap().putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ResourceRequirements) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ResourceRequirements) private static final io.kubernetes.client.proto.V1.ResourceRequirements DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ResourceRequirements(); } public static io.kubernetes.client.proto.V1.ResourceRequirements getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceRequirements parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceRequirements(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.V1.ResourceRequirements getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SELinuxOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SELinuxOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * User is a SELinux user label that applies to the container.
     * +optional
     * 
* * optional string user = 1; */ boolean hasUser(); /** * * *
     * User is a SELinux user label that applies to the container.
     * +optional
     * 
* * optional string user = 1; */ java.lang.String getUser(); /** * * *
     * User is a SELinux user label that applies to the container.
     * +optional
     * 
* * optional string user = 1; */ com.google.protobuf.ByteString getUserBytes(); /** * * *
     * Role is a SELinux role label that applies to the container.
     * +optional
     * 
* * optional string role = 2; */ boolean hasRole(); /** * * *
     * Role is a SELinux role label that applies to the container.
     * +optional
     * 
* * optional string role = 2; */ java.lang.String getRole(); /** * * *
     * Role is a SELinux role label that applies to the container.
     * +optional
     * 
* * optional string role = 2; */ com.google.protobuf.ByteString getRoleBytes(); /** * * *
     * Type is a SELinux type label that applies to the container.
     * +optional
     * 
* * optional string type = 3; */ boolean hasType(); /** * * *
     * Type is a SELinux type label that applies to the container.
     * +optional
     * 
* * optional string type = 3; */ java.lang.String getType(); /** * * *
     * Type is a SELinux type label that applies to the container.
     * +optional
     * 
* * optional string type = 3; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * Level is SELinux level label that applies to the container.
     * +optional
     * 
* * optional string level = 4; */ boolean hasLevel(); /** * * *
     * Level is SELinux level label that applies to the container.
     * +optional
     * 
* * optional string level = 4; */ java.lang.String getLevel(); /** * * *
     * Level is SELinux level label that applies to the container.
     * +optional
     * 
* * optional string level = 4; */ com.google.protobuf.ByteString getLevelBytes(); } /** * * *
   * SELinuxOptions are the labels to be applied to the container
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SELinuxOptions} */ public static final class SELinuxOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SELinuxOptions) SELinuxOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use SELinuxOptions.newBuilder() to construct. private SELinuxOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SELinuxOptions() { user_ = ""; role_ = ""; type_ = ""; level_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SELinuxOptions( 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; user_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; role_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; type_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; level_ = 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 .V1 .internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SELinuxOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SELinuxOptions.class, io.kubernetes.client.proto.V1.SELinuxOptions.Builder.class); } private int bitField0_; public static final int USER_FIELD_NUMBER = 1; private volatile java.lang.Object user_; /** * * *
     * User is a SELinux user label that applies to the container.
     * +optional
     * 
* * optional string user = 1; */ public boolean hasUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * User is a SELinux user label that applies to the container.
     * +optional
     * 
* * optional string user = 1; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * * *
     * User is a SELinux user label that applies to the container.
     * +optional
     * 
* * optional string user = 1; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLE_FIELD_NUMBER = 2; private volatile java.lang.Object role_; /** * * *
     * Role is a SELinux role label that applies to the container.
     * +optional
     * 
* * optional string role = 2; */ public boolean hasRole() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Role is a SELinux role label that applies to the container.
     * +optional
     * 
* * optional string role = 2; */ public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } } /** * * *
     * Role is a SELinux role label that applies to the container.
     * +optional
     * 
* * optional string role = 2; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object type_; /** * * *
     * Type is a SELinux type label that applies to the container.
     * +optional
     * 
* * optional string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Type is a SELinux type label that applies to the container.
     * +optional
     * 
* * optional string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Type is a SELinux type label that applies to the container.
     * +optional
     * 
* * optional string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LEVEL_FIELD_NUMBER = 4; private volatile java.lang.Object level_; /** * * *
     * Level is SELinux level label that applies to the container.
     * +optional
     * 
* * optional string level = 4; */ public boolean hasLevel() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Level is SELinux level label that applies to the container.
     * +optional
     * 
* * optional string level = 4; */ public java.lang.String getLevel() { java.lang.Object ref = level_; 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()) { level_ = s; } return s; } } /** * * *
     * Level is SELinux level label that applies to the container.
     * +optional
     * 
* * optional string level = 4; */ public com.google.protobuf.ByteString getLevelBytes() { java.lang.Object ref = level_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); level_ = 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, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, role_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, level_); } 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, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, role_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, level_); } 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.V1.SELinuxOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SELinuxOptions other = (io.kubernetes.client.proto.V1.SELinuxOptions) obj; boolean result = true; result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser().equals(other.getUser()); } result = result && (hasRole() == other.hasRole()); if (hasRole()) { result = result && getRole().equals(other.getRole()); } result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasLevel() == other.hasLevel()); if (hasLevel()) { result = result && getLevel().equals(other.getLevel()); } 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 (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasRole()) { hash = (37 * hash) + ROLE_FIELD_NUMBER; hash = (53 * hash) + getRole().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasLevel()) { hash = (37 * hash) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + getLevel().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SELinuxOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SELinuxOptions 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.V1.SELinuxOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SELinuxOptions 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.V1.SELinuxOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SELinuxOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SELinuxOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SELinuxOptions 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.V1.SELinuxOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SELinuxOptions 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.V1.SELinuxOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SELinuxOptions 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.V1.SELinuxOptions 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; } /** * * *
     * SELinuxOptions are the labels to be applied to the container
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SELinuxOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SELinuxOptions) io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SELinuxOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SELinuxOptions.class, io.kubernetes.client.proto.V1.SELinuxOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SELinuxOptions.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(); user_ = ""; bitField0_ = (bitField0_ & ~0x00000001); role_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = ""; bitField0_ = (bitField0_ & ~0x00000004); level_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SELinuxOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SELinuxOptions build() { io.kubernetes.client.proto.V1.SELinuxOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SELinuxOptions buildPartial() { io.kubernetes.client.proto.V1.SELinuxOptions result = new io.kubernetes.client.proto.V1.SELinuxOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.user_ = user_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.role_ = role_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.level_ = level_; 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.V1.SELinuxOptions) { return mergeFrom((io.kubernetes.client.proto.V1.SELinuxOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SELinuxOptions other) { if (other == io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance()) return this; if (other.hasUser()) { bitField0_ |= 0x00000001; user_ = other.user_; onChanged(); } if (other.hasRole()) { bitField0_ |= 0x00000002; role_ = other.role_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000004; type_ = other.type_; onChanged(); } if (other.hasLevel()) { bitField0_ |= 0x00000008; level_ = other.level_; 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.V1.SELinuxOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SELinuxOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object user_ = ""; /** * * *
       * User is a SELinux user label that applies to the container.
       * +optional
       * 
* * optional string user = 1; */ public boolean hasUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * User is a SELinux user label that applies to the container.
       * +optional
       * 
* * optional string user = 1; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * User is a SELinux user label that applies to the container.
       * +optional
       * 
* * optional string user = 1; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * User is a SELinux user label that applies to the container.
       * +optional
       * 
* * optional string user = 1; */ public Builder setUser(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; user_ = value; onChanged(); return this; } /** * * *
       * User is a SELinux user label that applies to the container.
       * +optional
       * 
* * optional string user = 1; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000001); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * * *
       * User is a SELinux user label that applies to the container.
       * +optional
       * 
* * optional string user = 1; */ public Builder setUserBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; user_ = value; onChanged(); return this; } private java.lang.Object role_ = ""; /** * * *
       * Role is a SELinux role label that applies to the container.
       * +optional
       * 
* * optional string role = 2; */ public boolean hasRole() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Role is a SELinux role label that applies to the container.
       * +optional
       * 
* * optional string role = 2; */ public java.lang.String getRole() { java.lang.Object ref = role_; 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()) { role_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Role is a SELinux role label that applies to the container.
       * +optional
       * 
* * optional string role = 2; */ public com.google.protobuf.ByteString getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); role_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Role is a SELinux role label that applies to the container.
       * +optional
       * 
* * optional string role = 2; */ public Builder setRole(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; role_ = value; onChanged(); return this; } /** * * *
       * Role is a SELinux role label that applies to the container.
       * +optional
       * 
* * optional string role = 2; */ public Builder clearRole() { bitField0_ = (bitField0_ & ~0x00000002); role_ = getDefaultInstance().getRole(); onChanged(); return this; } /** * * *
       * Role is a SELinux role label that applies to the container.
       * +optional
       * 
* * optional string role = 2; */ public Builder setRoleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; role_ = value; onChanged(); return this; } private java.lang.Object type_ = ""; /** * * *
       * Type is a SELinux type label that applies to the container.
       * +optional
       * 
* * optional string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Type is a SELinux type label that applies to the container.
       * +optional
       * 
* * optional string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Type is a SELinux type label that applies to the container.
       * +optional
       * 
* * optional string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Type is a SELinux type label that applies to the container.
       * +optional
       * 
* * optional string type = 3; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * * *
       * Type is a SELinux type label that applies to the container.
       * +optional
       * 
* * optional string type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Type is a SELinux type label that applies to the container.
       * +optional
       * 
* * optional string type = 3; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } private java.lang.Object level_ = ""; /** * * *
       * Level is SELinux level label that applies to the container.
       * +optional
       * 
* * optional string level = 4; */ public boolean hasLevel() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Level is SELinux level label that applies to the container.
       * +optional
       * 
* * optional string level = 4; */ public java.lang.String getLevel() { java.lang.Object ref = level_; 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()) { level_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Level is SELinux level label that applies to the container.
       * +optional
       * 
* * optional string level = 4; */ public com.google.protobuf.ByteString getLevelBytes() { java.lang.Object ref = level_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); level_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Level is SELinux level label that applies to the container.
       * +optional
       * 
* * optional string level = 4; */ public Builder setLevel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; level_ = value; onChanged(); return this; } /** * * *
       * Level is SELinux level label that applies to the container.
       * +optional
       * 
* * optional string level = 4; */ public Builder clearLevel() { bitField0_ = (bitField0_ & ~0x00000008); level_ = getDefaultInstance().getLevel(); onChanged(); return this; } /** * * *
       * Level is SELinux level label that applies to the container.
       * +optional
       * 
* * optional string level = 4; */ public Builder setLevelBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; level_ = 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.core.v1.SELinuxOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SELinuxOptions) private static final io.kubernetes.client.proto.V1.SELinuxOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SELinuxOptions(); } public static io.kubernetes.client.proto.V1.SELinuxOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SELinuxOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SELinuxOptions(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.V1.SELinuxOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScaleIOPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ScaleIOPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ boolean hasGateway(); /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ java.lang.String getGateway(); /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ com.google.protobuf.ByteString getGatewayBytes(); /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ boolean hasSystem(); /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ java.lang.String getSystem(); /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ com.google.protobuf.ByteString getSystemBytes(); /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ boolean hasSecretRef(); /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ io.kubernetes.client.proto.V1.SecretReference getSecretRef(); /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ boolean hasSslEnabled(); /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ boolean getSslEnabled(); /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ boolean hasProtectionDomain(); /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ java.lang.String getProtectionDomain(); /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ com.google.protobuf.ByteString getProtectionDomainBytes(); /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ boolean hasStoragePool(); /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ java.lang.String getStoragePool(); /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ com.google.protobuf.ByteString getStoragePoolBytes(); /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ boolean hasStorageMode(); /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ java.lang.String getStorageMode(); /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ com.google.protobuf.ByteString getStorageModeBytes(); /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ boolean hasVolumeName(); /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ java.lang.String getVolumeName(); /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ com.google.protobuf.ByteString getVolumeNameBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs"
     * +optional
     * 
* * optional string fsType = 9; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs"
     * +optional
     * 
* * optional string fsType = 9; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs"
     * +optional
     * 
* * optional string fsType = 9; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ boolean getReadOnly(); } /** * * *
   * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ScaleIOPersistentVolumeSource} */ public static final class ScaleIOPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ScaleIOPersistentVolumeSource) ScaleIOPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ScaleIOPersistentVolumeSource.newBuilder() to construct. private ScaleIOPersistentVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScaleIOPersistentVolumeSource() { gateway_ = ""; system_ = ""; sslEnabled_ = false; protectionDomain_ = ""; storagePool_ = ""; storageMode_ = ""; volumeName_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScaleIOPersistentVolumeSource( 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; gateway_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; system_ = bs; break; } case 26: { io.kubernetes.client.proto.V1.SecretReference.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.SecretReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; sslEnabled_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; protectionDomain_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; storagePool_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; storageMode_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; volumeName_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; fsType_ = bs; break; } case 80: { bitField0_ |= 0x00000200; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.class, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int GATEWAY_FIELD_NUMBER = 1; private volatile java.lang.Object gateway_; /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ public boolean hasGateway() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ public java.lang.String getGateway() { java.lang.Object ref = gateway_; 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()) { gateway_ = s; } return s; } } /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ public com.google.protobuf.ByteString getGatewayBytes() { java.lang.Object ref = gateway_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gateway_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYSTEM_FIELD_NUMBER = 2; private volatile java.lang.Object system_; /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ public boolean hasSystem() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ public java.lang.String getSystem() { java.lang.Object ref = system_; 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()) { system_ = s; } return s; } } /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); system_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.SecretReference secretRef_; /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } public static final int SSLENABLED_FIELD_NUMBER = 4; private boolean sslEnabled_; /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ public boolean hasSslEnabled() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ public boolean getSslEnabled() { return sslEnabled_; } public static final int PROTECTIONDOMAIN_FIELD_NUMBER = 5; private volatile java.lang.Object protectionDomain_; /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ public boolean hasProtectionDomain() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ public java.lang.String getProtectionDomain() { java.lang.Object ref = protectionDomain_; 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()) { protectionDomain_ = s; } return s; } } /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ public com.google.protobuf.ByteString getProtectionDomainBytes() { java.lang.Object ref = protectionDomain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protectionDomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGEPOOL_FIELD_NUMBER = 6; private volatile java.lang.Object storagePool_; /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ public boolean hasStoragePool() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ public java.lang.String getStoragePool() { java.lang.Object ref = storagePool_; 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()) { storagePool_ = s; } return s; } } /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ public com.google.protobuf.ByteString getStoragePoolBytes() { java.lang.Object ref = storagePool_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGEMODE_FIELD_NUMBER = 7; private volatile java.lang.Object storageMode_; /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ public boolean hasStorageMode() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ public java.lang.String getStorageMode() { java.lang.Object ref = storageMode_; 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()) { storageMode_ = s; } return s; } } /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ public com.google.protobuf.ByteString getStorageModeBytes() { java.lang.Object ref = storageMode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMENAME_FIELD_NUMBER = 8; private volatile java.lang.Object volumeName_; /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } } /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 9; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs"
     * +optional
     * 
* * optional string fsType = 9; */ public boolean hasFsType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs"
     * +optional
     * 
* * optional string fsType = 9; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs"
     * +optional
     * 
* * optional string fsType = 9; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 10; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ public boolean getReadOnly() { return readOnly_; } 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, gateway_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, system_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, sslEnabled_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, protectionDomain_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, storagePool_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, storageMode_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, volumeName_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, fsType_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, readOnly_); } 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, gateway_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, system_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, sslEnabled_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, protectionDomain_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, storagePool_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, storageMode_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, volumeName_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, fsType_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, readOnly_); } 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.V1.ScaleIOPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource other = (io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource) obj; boolean result = true; result = result && (hasGateway() == other.hasGateway()); if (hasGateway()) { result = result && getGateway().equals(other.getGateway()); } result = result && (hasSystem() == other.hasSystem()); if (hasSystem()) { result = result && getSystem().equals(other.getSystem()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasSslEnabled() == other.hasSslEnabled()); if (hasSslEnabled()) { result = result && (getSslEnabled() == other.getSslEnabled()); } result = result && (hasProtectionDomain() == other.hasProtectionDomain()); if (hasProtectionDomain()) { result = result && getProtectionDomain().equals(other.getProtectionDomain()); } result = result && (hasStoragePool() == other.hasStoragePool()); if (hasStoragePool()) { result = result && getStoragePool().equals(other.getStoragePool()); } result = result && (hasStorageMode() == other.hasStorageMode()); if (hasStorageMode()) { result = result && getStorageMode().equals(other.getStorageMode()); } result = result && (hasVolumeName() == other.hasVolumeName()); if (hasVolumeName()) { result = result && getVolumeName().equals(other.getVolumeName()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasGateway()) { hash = (37 * hash) + GATEWAY_FIELD_NUMBER; hash = (53 * hash) + getGateway().hashCode(); } if (hasSystem()) { hash = (37 * hash) + SYSTEM_FIELD_NUMBER; hash = (53 * hash) + getSystem().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasSslEnabled()) { hash = (37 * hash) + SSLENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSslEnabled()); } if (hasProtectionDomain()) { hash = (37 * hash) + PROTECTIONDOMAIN_FIELD_NUMBER; hash = (53 * hash) + getProtectionDomain().hashCode(); } if (hasStoragePool()) { hash = (37 * hash) + STORAGEPOOL_FIELD_NUMBER; hash = (53 * hash) + getStoragePool().hashCode(); } if (hasStorageMode()) { hash = (37 * hash) + STORAGEMODE_FIELD_NUMBER; hash = (53 * hash) + getStorageMode().hashCode(); } if (hasVolumeName()) { hash = (37 * hash) + VOLUMENAME_FIELD_NUMBER; hash = (53 * hash) + getVolumeName().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource 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.V1.ScaleIOPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource 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.V1.ScaleIOPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource 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.V1.ScaleIOPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource 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.V1.ScaleIOPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource 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.V1.ScaleIOPersistentVolumeSource 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; } /** * * *
     * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ScaleIOPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ScaleIOPersistentVolumeSource) io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.class, io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); gateway_ = ""; bitField0_ = (bitField0_ & ~0x00000001); system_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); sslEnabled_ = false; bitField0_ = (bitField0_ & ~0x00000008); protectionDomain_ = ""; bitField0_ = (bitField0_ & ~0x00000010); storagePool_ = ""; bitField0_ = (bitField0_ & ~0x00000020); storageMode_ = ""; bitField0_ = (bitField0_ & ~0x00000040); volumeName_ = ""; bitField0_ = (bitField0_ & ~0x00000080); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000100); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource build() { io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource result = new io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.gateway_ = gateway_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.system_ = system_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.sslEnabled_ = sslEnabled_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.protectionDomain_ = protectionDomain_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.storagePool_ = storagePool_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.storageMode_ = storageMode_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.volumeName_ = volumeName_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.readOnly_ = readOnly_; 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.V1.ScaleIOPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasGateway()) { bitField0_ |= 0x00000001; gateway_ = other.gateway_; onChanged(); } if (other.hasSystem()) { bitField0_ |= 0x00000002; system_ = other.system_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasSslEnabled()) { setSslEnabled(other.getSslEnabled()); } if (other.hasProtectionDomain()) { bitField0_ |= 0x00000010; protectionDomain_ = other.protectionDomain_; onChanged(); } if (other.hasStoragePool()) { bitField0_ |= 0x00000020; storagePool_ = other.storagePool_; onChanged(); } if (other.hasStorageMode()) { bitField0_ |= 0x00000040; storageMode_ = other.storageMode_; onChanged(); } if (other.hasVolumeName()) { bitField0_ |= 0x00000080; volumeName_ = other.volumeName_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000100; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.ScaleIOPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object gateway_ = ""; /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public boolean hasGateway() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public java.lang.String getGateway() { java.lang.Object ref = gateway_; 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()) { gateway_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public com.google.protobuf.ByteString getGatewayBytes() { java.lang.Object ref = gateway_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gateway_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public Builder setGateway(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gateway_ = value; onChanged(); return this; } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public Builder clearGateway() { bitField0_ = (bitField0_ & ~0x00000001); gateway_ = getDefaultInstance().getGateway(); onChanged(); return this; } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public Builder setGatewayBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gateway_ = value; onChanged(); return this; } private java.lang.Object system_ = ""; /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public boolean hasSystem() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public java.lang.String getSystem() { java.lang.Object ref = system_; 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()) { system_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); system_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public Builder setSystem(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; system_ = value; onChanged(); return this; } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public Builder clearSystem() { bitField0_ = (bitField0_ & ~0x00000002); system_ = getDefaultInstance().getSystem(); onChanged(); return this; } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public Builder setSystemBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; system_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SecretReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> secretRefBuilder_; /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.SecretReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.SecretReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.SecretReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ public io.kubernetes.client.proto.V1.SecretReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance() : secretRef_; } } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.SecretReference secretRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretReference, io.kubernetes.client.proto.V1.SecretReference.Builder, io.kubernetes.client.proto.V1.SecretReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean sslEnabled_; /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public boolean hasSslEnabled() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public boolean getSslEnabled() { return sslEnabled_; } /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public Builder setSslEnabled(boolean value) { bitField0_ |= 0x00000008; sslEnabled_ = value; onChanged(); return this; } /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public Builder clearSslEnabled() { bitField0_ = (bitField0_ & ~0x00000008); sslEnabled_ = false; onChanged(); return this; } private java.lang.Object protectionDomain_ = ""; /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public boolean hasProtectionDomain() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public java.lang.String getProtectionDomain() { java.lang.Object ref = protectionDomain_; 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()) { protectionDomain_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public com.google.protobuf.ByteString getProtectionDomainBytes() { java.lang.Object ref = protectionDomain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protectionDomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public Builder setProtectionDomain(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; protectionDomain_ = value; onChanged(); return this; } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public Builder clearProtectionDomain() { bitField0_ = (bitField0_ & ~0x00000010); protectionDomain_ = getDefaultInstance().getProtectionDomain(); onChanged(); return this; } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public Builder setProtectionDomainBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; protectionDomain_ = value; onChanged(); return this; } private java.lang.Object storagePool_ = ""; /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public boolean hasStoragePool() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public java.lang.String getStoragePool() { java.lang.Object ref = storagePool_; 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()) { storagePool_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public com.google.protobuf.ByteString getStoragePoolBytes() { java.lang.Object ref = storagePool_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public Builder setStoragePool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; storagePool_ = value; onChanged(); return this; } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public Builder clearStoragePool() { bitField0_ = (bitField0_ & ~0x00000020); storagePool_ = getDefaultInstance().getStoragePool(); onChanged(); return this; } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public Builder setStoragePoolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; storagePool_ = value; onChanged(); return this; } private java.lang.Object storageMode_ = ""; /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public boolean hasStorageMode() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public java.lang.String getStorageMode() { java.lang.Object ref = storageMode_; 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()) { storageMode_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public com.google.protobuf.ByteString getStorageModeBytes() { java.lang.Object ref = storageMode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public Builder setStorageMode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; storageMode_ = value; onChanged(); return this; } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public Builder clearStorageMode() { bitField0_ = (bitField0_ & ~0x00000040); storageMode_ = getDefaultInstance().getStorageMode(); onChanged(); return this; } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public Builder setStorageModeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; storageMode_ = value; onChanged(); return this; } private java.lang.Object volumeName_ = ""; /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public Builder setVolumeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; volumeName_ = value; onChanged(); return this; } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public Builder clearVolumeName() { bitField0_ = (bitField0_ & ~0x00000080); volumeName_ = getDefaultInstance().getVolumeName(); onChanged(); return this; } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public Builder setVolumeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; volumeName_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs"
       * +optional
       * 
* * optional string fsType = 9; */ public boolean hasFsType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs"
       * +optional
       * 
* * optional string fsType = 9; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs"
       * +optional
       * 
* * optional string fsType = 9; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs"
       * +optional
       * 
* * optional string fsType = 9; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs"
       * +optional
       * 
* * optional string fsType = 9; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000100); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs"
       * +optional
       * 
* * optional string fsType = 9; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000200; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000200); readOnly_ = 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.core.v1.ScaleIOPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ScaleIOPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.ScaleIOPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScaleIOPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScaleIOPersistentVolumeSource(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.V1.ScaleIOPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScaleIOVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ScaleIOVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ boolean hasGateway(); /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ java.lang.String getGateway(); /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ com.google.protobuf.ByteString getGatewayBytes(); /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ boolean hasSystem(); /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ java.lang.String getSystem(); /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ com.google.protobuf.ByteString getSystemBytes(); /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ boolean hasSecretRef(); /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ boolean hasSslEnabled(); /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ boolean getSslEnabled(); /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ boolean hasProtectionDomain(); /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ java.lang.String getProtectionDomain(); /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ com.google.protobuf.ByteString getProtectionDomainBytes(); /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ boolean hasStoragePool(); /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ java.lang.String getStoragePool(); /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ com.google.protobuf.ByteString getStoragePoolBytes(); /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ boolean hasStorageMode(); /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ java.lang.String getStorageMode(); /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ com.google.protobuf.ByteString getStorageModeBytes(); /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ boolean hasVolumeName(); /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ java.lang.String getVolumeName(); /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ com.google.protobuf.ByteString getVolumeNameBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs".
     * +optional
     * 
* * optional string fsType = 9; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs".
     * +optional
     * 
* * optional string fsType = 9; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs".
     * +optional
     * 
* * optional string fsType = 9; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ boolean getReadOnly(); } /** * * *
   * ScaleIOVolumeSource represents a persistent ScaleIO volume
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ScaleIOVolumeSource} */ public static final class ScaleIOVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ScaleIOVolumeSource) ScaleIOVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use ScaleIOVolumeSource.newBuilder() to construct. private ScaleIOVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScaleIOVolumeSource() { gateway_ = ""; system_ = ""; sslEnabled_ = false; protectionDomain_ = ""; storagePool_ = ""; storageMode_ = ""; volumeName_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScaleIOVolumeSource( 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; gateway_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; system_ = bs; break; } case 26: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; sslEnabled_ = input.readBool(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; protectionDomain_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; storagePool_ = bs; break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; storageMode_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000080; volumeName_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; fsType_ = bs; break; } case 80: { bitField0_ |= 0x00000200; readOnly_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScaleIOVolumeSource.class, io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder.class); } private int bitField0_; public static final int GATEWAY_FIELD_NUMBER = 1; private volatile java.lang.Object gateway_; /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ public boolean hasGateway() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ public java.lang.String getGateway() { java.lang.Object ref = gateway_; 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()) { gateway_ = s; } return s; } } /** * * *
     * The host address of the ScaleIO API Gateway.
     * 
* * optional string gateway = 1; */ public com.google.protobuf.ByteString getGatewayBytes() { java.lang.Object ref = gateway_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gateway_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SYSTEM_FIELD_NUMBER = 2; private volatile java.lang.Object system_; /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ public boolean hasSystem() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ public java.lang.String getSystem() { java.lang.Object ref = system_; 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()) { system_ = s; } return s; } } /** * * *
     * The name of the storage system as configured in ScaleIO.
     * 
* * optional string system = 2; */ public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); system_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRETREF_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * SecretRef references to the secret for ScaleIO user and other
     * sensitive information. If this is not provided, Login operation will fail.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } public static final int SSLENABLED_FIELD_NUMBER = 4; private boolean sslEnabled_; /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ public boolean hasSslEnabled() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Flag to enable/disable SSL communication with Gateway, default false
     * +optional
     * 
* * optional bool sslEnabled = 4; */ public boolean getSslEnabled() { return sslEnabled_; } public static final int PROTECTIONDOMAIN_FIELD_NUMBER = 5; private volatile java.lang.Object protectionDomain_; /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ public boolean hasProtectionDomain() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ public java.lang.String getProtectionDomain() { java.lang.Object ref = protectionDomain_; 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()) { protectionDomain_ = s; } return s; } } /** * * *
     * The name of the ScaleIO Protection Domain for the configured storage.
     * +optional
     * 
* * optional string protectionDomain = 5; */ public com.google.protobuf.ByteString getProtectionDomainBytes() { java.lang.Object ref = protectionDomain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protectionDomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGEPOOL_FIELD_NUMBER = 6; private volatile java.lang.Object storagePool_; /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ public boolean hasStoragePool() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ public java.lang.String getStoragePool() { java.lang.Object ref = storagePool_; 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()) { storagePool_ = s; } return s; } } /** * * *
     * The ScaleIO Storage Pool associated with the protection domain.
     * +optional
     * 
* * optional string storagePool = 6; */ public com.google.protobuf.ByteString getStoragePoolBytes() { java.lang.Object ref = storagePool_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGEMODE_FIELD_NUMBER = 7; private volatile java.lang.Object storageMode_; /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ public boolean hasStorageMode() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ public java.lang.String getStorageMode() { java.lang.Object ref = storageMode_; 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()) { storageMode_ = s; } return s; } } /** * * *
     * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
     * Default is ThinProvisioned.
     * +optional
     * 
* * optional string storageMode = 7; */ public com.google.protobuf.ByteString getStorageModeBytes() { java.lang.Object ref = storageMode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMENAME_FIELD_NUMBER = 8; private volatile java.lang.Object volumeName_; /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } } /** * * *
     * The name of a volume already created in the ScaleIO system
     * that is associated with this volume source.
     * 
* * optional string volumeName = 8; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 9; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs".
     * +optional
     * 
* * optional string fsType = 9; */ public boolean hasFsType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs".
     * +optional
     * 
* * optional string fsType = 9; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs".
     * Default is "xfs".
     * +optional
     * 
* * optional string fsType = 9; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 10; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 10; */ public boolean getReadOnly() { return readOnly_; } 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, gateway_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, system_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, sslEnabled_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, protectionDomain_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, storagePool_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, storageMode_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, volumeName_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, fsType_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, readOnly_); } 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, gateway_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, system_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSecretRef()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, sslEnabled_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, protectionDomain_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, storagePool_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, storageMode_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, volumeName_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, fsType_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, readOnly_); } 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.V1.ScaleIOVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ScaleIOVolumeSource other = (io.kubernetes.client.proto.V1.ScaleIOVolumeSource) obj; boolean result = true; result = result && (hasGateway() == other.hasGateway()); if (hasGateway()) { result = result && getGateway().equals(other.getGateway()); } result = result && (hasSystem() == other.hasSystem()); if (hasSystem()) { result = result && getSystem().equals(other.getSystem()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } result = result && (hasSslEnabled() == other.hasSslEnabled()); if (hasSslEnabled()) { result = result && (getSslEnabled() == other.getSslEnabled()); } result = result && (hasProtectionDomain() == other.hasProtectionDomain()); if (hasProtectionDomain()) { result = result && getProtectionDomain().equals(other.getProtectionDomain()); } result = result && (hasStoragePool() == other.hasStoragePool()); if (hasStoragePool()) { result = result && getStoragePool().equals(other.getStoragePool()); } result = result && (hasStorageMode() == other.hasStorageMode()); if (hasStorageMode()) { result = result && getStorageMode().equals(other.getStorageMode()); } result = result && (hasVolumeName() == other.hasVolumeName()); if (hasVolumeName()) { result = result && getVolumeName().equals(other.getVolumeName()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasGateway()) { hash = (37 * hash) + GATEWAY_FIELD_NUMBER; hash = (53 * hash) + getGateway().hashCode(); } if (hasSystem()) { hash = (37 * hash) + SYSTEM_FIELD_NUMBER; hash = (53 * hash) + getSystem().hashCode(); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } if (hasSslEnabled()) { hash = (37 * hash) + SSLENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSslEnabled()); } if (hasProtectionDomain()) { hash = (37 * hash) + PROTECTIONDOMAIN_FIELD_NUMBER; hash = (53 * hash) + getProtectionDomain().hashCode(); } if (hasStoragePool()) { hash = (37 * hash) + STORAGEPOOL_FIELD_NUMBER; hash = (53 * hash) + getStoragePool().hashCode(); } if (hasStorageMode()) { hash = (37 * hash) + STORAGEMODE_FIELD_NUMBER; hash = (53 * hash) + getStorageMode().hashCode(); } if (hasVolumeName()) { hash = (37 * hash) + VOLUMENAME_FIELD_NUMBER; hash = (53 * hash) + getVolumeName().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource 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.V1.ScaleIOVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource 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.V1.ScaleIOVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource 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.V1.ScaleIOVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource 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.V1.ScaleIOVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource 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.V1.ScaleIOVolumeSource 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; } /** * * *
     * ScaleIOVolumeSource represents a persistent ScaleIO volume
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ScaleIOVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ScaleIOVolumeSource) io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScaleIOVolumeSource.class, io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ScaleIOVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); gateway_ = ""; bitField0_ = (bitField0_ & ~0x00000001); system_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); sslEnabled_ = false; bitField0_ = (bitField0_ & ~0x00000008); protectionDomain_ = ""; bitField0_ = (bitField0_ & ~0x00000010); storagePool_ = ""; bitField0_ = (bitField0_ & ~0x00000020); storageMode_ = ""; bitField0_ = (bitField0_ & ~0x00000040); volumeName_ = ""; bitField0_ = (bitField0_ & ~0x00000080); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000100); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ScaleIOVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ScaleIOVolumeSource build() { io.kubernetes.client.proto.V1.ScaleIOVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ScaleIOVolumeSource buildPartial() { io.kubernetes.client.proto.V1.ScaleIOVolumeSource result = new io.kubernetes.client.proto.V1.ScaleIOVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.gateway_ = gateway_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.system_ = system_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.sslEnabled_ = sslEnabled_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.protectionDomain_ = protectionDomain_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.storagePool_ = storagePool_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.storageMode_ = storageMode_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.volumeName_ = volumeName_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.readOnly_ = readOnly_; 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.V1.ScaleIOVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.ScaleIOVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ScaleIOVolumeSource other) { if (other == io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance()) return this; if (other.hasGateway()) { bitField0_ |= 0x00000001; gateway_ = other.gateway_; onChanged(); } if (other.hasSystem()) { bitField0_ |= 0x00000002; system_ = other.system_; onChanged(); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } if (other.hasSslEnabled()) { setSslEnabled(other.getSslEnabled()); } if (other.hasProtectionDomain()) { bitField0_ |= 0x00000010; protectionDomain_ = other.protectionDomain_; onChanged(); } if (other.hasStoragePool()) { bitField0_ |= 0x00000020; storagePool_ = other.storagePool_; onChanged(); } if (other.hasStorageMode()) { bitField0_ |= 0x00000040; storageMode_ = other.storageMode_; onChanged(); } if (other.hasVolumeName()) { bitField0_ |= 0x00000080; volumeName_ = other.volumeName_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000100; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1.ScaleIOVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ScaleIOVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object gateway_ = ""; /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public boolean hasGateway() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public java.lang.String getGateway() { java.lang.Object ref = gateway_; 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()) { gateway_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public com.google.protobuf.ByteString getGatewayBytes() { java.lang.Object ref = gateway_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gateway_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public Builder setGateway(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gateway_ = value; onChanged(); return this; } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public Builder clearGateway() { bitField0_ = (bitField0_ & ~0x00000001); gateway_ = getDefaultInstance().getGateway(); onChanged(); return this; } /** * * *
       * The host address of the ScaleIO API Gateway.
       * 
* * optional string gateway = 1; */ public Builder setGatewayBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gateway_ = value; onChanged(); return this; } private java.lang.Object system_ = ""; /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public boolean hasSystem() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public java.lang.String getSystem() { java.lang.Object ref = system_; 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()) { system_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public com.google.protobuf.ByteString getSystemBytes() { java.lang.Object ref = system_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); system_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public Builder setSystem(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; system_ = value; onChanged(); return this; } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public Builder clearSystem() { bitField0_ = (bitField0_ & ~0x00000002); system_ = getDefaultInstance().getSystem(); onChanged(); return this; } /** * * *
       * The name of the storage system as configured in ScaleIO.
       * 
* * optional string system = 2; */ public Builder setSystemBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; system_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * SecretRef references to the secret for ScaleIO user and other
       * sensitive information. If this is not provided, Login operation will fail.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } private boolean sslEnabled_; /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public boolean hasSslEnabled() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public boolean getSslEnabled() { return sslEnabled_; } /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public Builder setSslEnabled(boolean value) { bitField0_ |= 0x00000008; sslEnabled_ = value; onChanged(); return this; } /** * * *
       * Flag to enable/disable SSL communication with Gateway, default false
       * +optional
       * 
* * optional bool sslEnabled = 4; */ public Builder clearSslEnabled() { bitField0_ = (bitField0_ & ~0x00000008); sslEnabled_ = false; onChanged(); return this; } private java.lang.Object protectionDomain_ = ""; /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public boolean hasProtectionDomain() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public java.lang.String getProtectionDomain() { java.lang.Object ref = protectionDomain_; 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()) { protectionDomain_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public com.google.protobuf.ByteString getProtectionDomainBytes() { java.lang.Object ref = protectionDomain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protectionDomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public Builder setProtectionDomain(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; protectionDomain_ = value; onChanged(); return this; } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public Builder clearProtectionDomain() { bitField0_ = (bitField0_ & ~0x00000010); protectionDomain_ = getDefaultInstance().getProtectionDomain(); onChanged(); return this; } /** * * *
       * The name of the ScaleIO Protection Domain for the configured storage.
       * +optional
       * 
* * optional string protectionDomain = 5; */ public Builder setProtectionDomainBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; protectionDomain_ = value; onChanged(); return this; } private java.lang.Object storagePool_ = ""; /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public boolean hasStoragePool() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public java.lang.String getStoragePool() { java.lang.Object ref = storagePool_; 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()) { storagePool_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public com.google.protobuf.ByteString getStoragePoolBytes() { java.lang.Object ref = storagePool_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePool_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public Builder setStoragePool(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; storagePool_ = value; onChanged(); return this; } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public Builder clearStoragePool() { bitField0_ = (bitField0_ & ~0x00000020); storagePool_ = getDefaultInstance().getStoragePool(); onChanged(); return this; } /** * * *
       * The ScaleIO Storage Pool associated with the protection domain.
       * +optional
       * 
* * optional string storagePool = 6; */ public Builder setStoragePoolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; storagePool_ = value; onChanged(); return this; } private java.lang.Object storageMode_ = ""; /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public boolean hasStorageMode() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public java.lang.String getStorageMode() { java.lang.Object ref = storageMode_; 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()) { storageMode_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public com.google.protobuf.ByteString getStorageModeBytes() { java.lang.Object ref = storageMode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageMode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public Builder setStorageMode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; storageMode_ = value; onChanged(); return this; } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public Builder clearStorageMode() { bitField0_ = (bitField0_ & ~0x00000040); storageMode_ = getDefaultInstance().getStorageMode(); onChanged(); return this; } /** * * *
       * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
       * Default is ThinProvisioned.
       * +optional
       * 
* * optional string storageMode = 7; */ public Builder setStorageModeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; storageMode_ = value; onChanged(); return this; } private java.lang.Object volumeName_ = ""; /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public Builder setVolumeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; volumeName_ = value; onChanged(); return this; } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public Builder clearVolumeName() { bitField0_ = (bitField0_ & ~0x00000080); volumeName_ = getDefaultInstance().getVolumeName(); onChanged(); return this; } /** * * *
       * The name of a volume already created in the ScaleIO system
       * that is associated with this volume source.
       * 
* * optional string volumeName = 8; */ public Builder setVolumeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; volumeName_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs".
       * +optional
       * 
* * optional string fsType = 9; */ public boolean hasFsType() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs".
       * +optional
       * 
* * optional string fsType = 9; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs".
       * +optional
       * 
* * optional string fsType = 9; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs".
       * +optional
       * 
* * optional string fsType = 9; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs".
       * +optional
       * 
* * optional string fsType = 9; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000100); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs".
       * Default is "xfs".
       * +optional
       * 
* * optional string fsType = 9; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000200; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 10; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000200); readOnly_ = 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.core.v1.ScaleIOVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ScaleIOVolumeSource) private static final io.kubernetes.client.proto.V1.ScaleIOVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ScaleIOVolumeSource(); } public static io.kubernetes.client.proto.V1.ScaleIOVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScaleIOVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScaleIOVolumeSource(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.V1.ScaleIOVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopeSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ScopeSelector) com.google.protobuf.MessageOrBuilder { /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ java.util.List getMatchExpressionsList(); /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement getMatchExpressions(int index); /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ int getMatchExpressionsCount(); /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ java.util.List< ? extends io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder> getMatchExpressionsOrBuilderList(); /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(int index); } /** * * *
   * A scope selector represents the AND of the selectors represented
   * by the scoped-resource selector requirements.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ScopeSelector} */ public static final class ScopeSelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ScopeSelector) ScopeSelectorOrBuilder { private static final long serialVersionUID = 0L; // Use ScopeSelector.newBuilder() to construct. private ScopeSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScopeSelector() { matchExpressions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScopeSelector( 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)) { matchExpressions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement>(); mutable_bitField0_ |= 0x00000001; } matchExpressions_.add( input.readMessage( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.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)) { matchExpressions_ = java.util.Collections.unmodifiableList(matchExpressions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScopeSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScopeSelector.class, io.kubernetes.client.proto.V1.ScopeSelector.Builder.class); } public static final int MATCHEXPRESSIONS_FIELD_NUMBER = 1; private java.util.List matchExpressions_; /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public java.util.List getMatchExpressionsList() { return matchExpressions_; } /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder> getMatchExpressionsOrBuilderList() { return matchExpressions_; } /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public int getMatchExpressionsCount() { return matchExpressions_.size(); } /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement getMatchExpressions( int index) { return matchExpressions_.get(index); } /** * * *
     * A list of scope selector requirements by scope of the resources.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(int index) { return matchExpressions_.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 < matchExpressions_.size(); i++) { output.writeMessage(1, matchExpressions_.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 < matchExpressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, matchExpressions_.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.V1.ScopeSelector)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ScopeSelector other = (io.kubernetes.client.proto.V1.ScopeSelector) obj; boolean result = true; result = result && getMatchExpressionsList().equals(other.getMatchExpressionsList()); 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 (getMatchExpressionsCount() > 0) { hash = (37 * hash) + MATCHEXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getMatchExpressionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ScopeSelector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScopeSelector 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.V1.ScopeSelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScopeSelector 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.V1.ScopeSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScopeSelector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ScopeSelector parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScopeSelector 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.V1.ScopeSelector parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScopeSelector 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.V1.ScopeSelector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScopeSelector 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.V1.ScopeSelector 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; } /** * * *
     * A scope selector represents the AND of the selectors represented
     * by the scoped-resource selector requirements.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ScopeSelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ScopeSelector) io.kubernetes.client.proto.V1.ScopeSelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScopeSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScopeSelector.class, io.kubernetes.client.proto.V1.ScopeSelector.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ScopeSelector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMatchExpressionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (matchExpressionsBuilder_ == null) { matchExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { matchExpressionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ScopeSelector getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ScopeSelector build() { io.kubernetes.client.proto.V1.ScopeSelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ScopeSelector buildPartial() { io.kubernetes.client.proto.V1.ScopeSelector result = new io.kubernetes.client.proto.V1.ScopeSelector(this); int from_bitField0_ = bitField0_; if (matchExpressionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { matchExpressions_ = java.util.Collections.unmodifiableList(matchExpressions_); bitField0_ = (bitField0_ & ~0x00000001); } result.matchExpressions_ = matchExpressions_; } else { result.matchExpressions_ = matchExpressionsBuilder_.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.V1.ScopeSelector) { return mergeFrom((io.kubernetes.client.proto.V1.ScopeSelector) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ScopeSelector other) { if (other == io.kubernetes.client.proto.V1.ScopeSelector.getDefaultInstance()) return this; if (matchExpressionsBuilder_ == null) { if (!other.matchExpressions_.isEmpty()) { if (matchExpressions_.isEmpty()) { matchExpressions_ = other.matchExpressions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMatchExpressionsIsMutable(); matchExpressions_.addAll(other.matchExpressions_); } onChanged(); } } else { if (!other.matchExpressions_.isEmpty()) { if (matchExpressionsBuilder_.isEmpty()) { matchExpressionsBuilder_.dispose(); matchExpressionsBuilder_ = null; matchExpressions_ = other.matchExpressions_; bitField0_ = (bitField0_ & ~0x00000001); matchExpressionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchExpressionsFieldBuilder() : null; } else { matchExpressionsBuilder_.addAllMessages(other.matchExpressions_); } } } 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.V1.ScopeSelector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ScopeSelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List matchExpressions_ = java.util.Collections.emptyList(); private void ensureMatchExpressionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { matchExpressions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement>( matchExpressions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder> matchExpressionsBuilder_; /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public java.util.List getMatchExpressionsList() { if (matchExpressionsBuilder_ == null) { return java.util.Collections.unmodifiableList(matchExpressions_); } else { return matchExpressionsBuilder_.getMessageList(); } } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public int getMatchExpressionsCount() { if (matchExpressionsBuilder_ == null) { return matchExpressions_.size(); } else { return matchExpressionsBuilder_.getCount(); } } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement getMatchExpressions( int index) { if (matchExpressionsBuilder_ == null) { return matchExpressions_.get(index); } else { return matchExpressionsBuilder_.getMessage(index); } } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder setMatchExpressions( int index, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement value) { if (matchExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchExpressionsIsMutable(); matchExpressions_.set(index, value); onChanged(); } else { matchExpressionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder setMatchExpressions( int index, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder builderForValue) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.set(index, builderForValue.build()); onChanged(); } else { matchExpressionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder addMatchExpressions( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement value) { if (matchExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchExpressionsIsMutable(); matchExpressions_.add(value); onChanged(); } else { matchExpressionsBuilder_.addMessage(value); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder addMatchExpressions( int index, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement value) { if (matchExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchExpressionsIsMutable(); matchExpressions_.add(index, value); onChanged(); } else { matchExpressionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder addMatchExpressions( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder builderForValue) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.add(builderForValue.build()); onChanged(); } else { matchExpressionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder addMatchExpressions( int index, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder builderForValue) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.add(index, builderForValue.build()); onChanged(); } else { matchExpressionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder addAllMatchExpressions( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement> values) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchExpressions_); onChanged(); } else { matchExpressionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder clearMatchExpressions() { if (matchExpressionsBuilder_ == null) { matchExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { matchExpressionsBuilder_.clear(); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public Builder removeMatchExpressions(int index) { if (matchExpressionsBuilder_ == null) { ensureMatchExpressionsIsMutable(); matchExpressions_.remove(index); onChanged(); } else { matchExpressionsBuilder_.remove(index); } return this; } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder getMatchExpressionsBuilder(int index) { return getMatchExpressionsFieldBuilder().getBuilder(index); } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(int index) { if (matchExpressionsBuilder_ == null) { return matchExpressions_.get(index); } else { return matchExpressionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder> getMatchExpressionsOrBuilderList() { if (matchExpressionsBuilder_ != null) { return matchExpressionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(matchExpressions_); } } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder addMatchExpressionsBuilder() { return getMatchExpressionsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement .getDefaultInstance()); } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder addMatchExpressionsBuilder(int index) { return getMatchExpressionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement .getDefaultInstance()); } /** * * *
       * A list of scope selector requirements by scope of the resources.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.ScopedResourceSelectorRequirement matchExpressions = 1; * */ public java.util.List getMatchExpressionsBuilderList() { return getMatchExpressionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder> getMatchExpressionsFieldBuilder() { if (matchExpressionsBuilder_ == null) { matchExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder>( matchExpressions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); matchExpressions_ = null; } return matchExpressionsBuilder_; } @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.core.v1.ScopeSelector) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ScopeSelector) private static final io.kubernetes.client.proto.V1.ScopeSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ScopeSelector(); } public static io.kubernetes.client.proto.V1.ScopeSelector getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopeSelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScopeSelector(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.V1.ScopeSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScopedResourceSelectorRequirementOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ScopedResourceSelectorRequirement) com.google.protobuf.MessageOrBuilder { /** * * *
     * The name of the scope that the selector applies to.
     * 
* * optional string scopeName = 1; */ boolean hasScopeName(); /** * * *
     * The name of the scope that the selector applies to.
     * 
* * optional string scopeName = 1; */ java.lang.String getScopeName(); /** * * *
     * The name of the scope that the selector applies to.
     * 
* * optional string scopeName = 1; */ com.google.protobuf.ByteString getScopeNameBytes(); /** * * *
     * Represents a scope's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist.
     * 
* * optional string operator = 2; */ boolean hasOperator(); /** * * *
     * Represents a scope's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist.
     * 
* * optional string operator = 2; */ java.lang.String getOperator(); /** * * *
     * Represents a scope's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist.
     * 
* * optional string operator = 2; */ com.google.protobuf.ByteString getOperatorBytes(); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ java.util.List getValuesList(); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ int getValuesCount(); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ java.lang.String getValues(int index); /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * * *
   * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator
   * that relates the scope name and values.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ScopedResourceSelectorRequirement} */ public static final class ScopedResourceSelectorRequirement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ScopedResourceSelectorRequirement) ScopedResourceSelectorRequirementOrBuilder { private static final long serialVersionUID = 0L; // Use ScopedResourceSelectorRequirement.newBuilder() to construct. private ScopedResourceSelectorRequirement( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScopedResourceSelectorRequirement() { scopeName_ = ""; operator_ = ""; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScopedResourceSelectorRequirement( 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; scopeName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; operator_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } values_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.class, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder.class); } private int bitField0_; public static final int SCOPENAME_FIELD_NUMBER = 1; private volatile java.lang.Object scopeName_; /** * * *
     * The name of the scope that the selector applies to.
     * 
* * optional string scopeName = 1; */ public boolean hasScopeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The name of the scope that the selector applies to.
     * 
* * optional string scopeName = 1; */ public java.lang.String getScopeName() { java.lang.Object ref = scopeName_; 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()) { scopeName_ = s; } return s; } } /** * * *
     * The name of the scope that the selector applies to.
     * 
* * optional string scopeName = 1; */ public com.google.protobuf.ByteString getScopeNameBytes() { java.lang.Object ref = scopeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scopeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATOR_FIELD_NUMBER = 2; private volatile java.lang.Object operator_; /** * * *
     * Represents a scope's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist.
     * 
* * optional string operator = 2; */ public boolean hasOperator() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Represents a scope's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist.
     * 
* * optional string operator = 2; */ public java.lang.String getOperator() { java.lang.Object ref = operator_; 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()) { operator_ = s; } return s; } } /** * * *
     * Represents a scope's relationship to a set of values.
     * Valid operators are In, NotIn, Exists, DoesNotExist.
     * 
* * optional string operator = 2; */ public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public int getValuesCount() { return values_.size(); } /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public java.lang.String getValues(int index) { return values_.get(index); } /** * * *
     * An array of string values. If the operator is In or NotIn,
     * the values array must be non-empty. If the operator is Exists or DoesNotExist,
     * the values array must be empty.
     * This array is replaced during a strategic merge patch.
     * +optional
     * 
* * repeated string values = 3; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operator_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scopeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operator_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement other = (io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement) obj; boolean result = true; result = result && (hasScopeName() == other.hasScopeName()); if (hasScopeName()) { result = result && getScopeName().equals(other.getScopeName()); } result = result && (hasOperator() == other.hasOperator()); if (hasOperator()) { result = result && getOperator().equals(other.getOperator()); } result = result && getValuesList().equals(other.getValuesList()); 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 (hasScopeName()) { hash = (37 * hash) + SCOPENAME_FIELD_NUMBER; hash = (53 * hash) + getScopeName().hashCode(); } if (hasOperator()) { hash = (37 * hash) + OPERATOR_FIELD_NUMBER; hash = (53 * hash) + getOperator().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement 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.V1.ScopedResourceSelectorRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement 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.V1.ScopedResourceSelectorRequirement parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement 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.V1.ScopedResourceSelectorRequirement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement 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.V1.ScopedResourceSelectorRequirement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement 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.V1.ScopedResourceSelectorRequirement 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; } /** * * *
     * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator
     * that relates the scope name and values.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ScopedResourceSelectorRequirement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ScopedResourceSelectorRequirement) io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.class, io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.Builder.class); } // Construct using // io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.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(); scopeName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); operator_ = ""; bitField0_ = (bitField0_ & ~0x00000002); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement build() { io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement buildPartial() { io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement result = new io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.scopeName_ = scopeName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.operator_ = operator_; if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; 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.V1.ScopedResourceSelectorRequirement) { return mergeFrom((io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement other) { if (other == io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement.getDefaultInstance()) return this; if (other.hasScopeName()) { bitField0_ |= 0x00000001; scopeName_ = other.scopeName_; onChanged(); } if (other.hasOperator()) { bitField0_ |= 0x00000002; operator_ = other.operator_; onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } 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.V1.ScopedResourceSelectorRequirement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object scopeName_ = ""; /** * * *
       * The name of the scope that the selector applies to.
       * 
* * optional string scopeName = 1; */ public boolean hasScopeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The name of the scope that the selector applies to.
       * 
* * optional string scopeName = 1; */ public java.lang.String getScopeName() { java.lang.Object ref = scopeName_; 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()) { scopeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the scope that the selector applies to.
       * 
* * optional string scopeName = 1; */ public com.google.protobuf.ByteString getScopeNameBytes() { java.lang.Object ref = scopeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scopeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the scope that the selector applies to.
       * 
* * optional string scopeName = 1; */ public Builder setScopeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; scopeName_ = value; onChanged(); return this; } /** * * *
       * The name of the scope that the selector applies to.
       * 
* * optional string scopeName = 1; */ public Builder clearScopeName() { bitField0_ = (bitField0_ & ~0x00000001); scopeName_ = getDefaultInstance().getScopeName(); onChanged(); return this; } /** * * *
       * The name of the scope that the selector applies to.
       * 
* * optional string scopeName = 1; */ public Builder setScopeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; scopeName_ = value; onChanged(); return this; } private java.lang.Object operator_ = ""; /** * * *
       * Represents a scope's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist.
       * 
* * optional string operator = 2; */ public boolean hasOperator() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Represents a scope's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist.
       * 
* * optional string operator = 2; */ public java.lang.String getOperator() { java.lang.Object ref = operator_; 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()) { operator_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Represents a scope's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist.
       * 
* * optional string operator = 2; */ public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Represents a scope's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist.
       * 
* * optional string operator = 2; */ public Builder setOperator(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value; onChanged(); return this; } /** * * *
       * Represents a scope's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist.
       * 
* * optional string operator = 2; */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000002); operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** * * *
       * Represents a scope's relationship to a set of values.
       * Valid operators are In, NotIn, Exists, DoesNotExist.
       * 
* * optional string operator = 2; */ public Builder setOperatorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000004; } } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public int getValuesCount() { return values_.size(); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public java.lang.String getValues(int index) { return values_.get(index); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder setValues(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder addValues(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * An array of string values. If the operator is In or NotIn,
       * the values array must be non-empty. If the operator is Exists or DoesNotExist,
       * the values array must be empty.
       * This array is replaced during a strategic merge patch.
       * +optional
       * 
* * repeated string values = 3; */ public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.ScopedResourceSelectorRequirement) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ScopedResourceSelectorRequirement) private static final io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement(); } public static io.kubernetes.client.proto.V1.ScopedResourceSelectorRequirement getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScopedResourceSelectorRequirement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScopedResourceSelectorRequirement(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.V1.ScopedResourceSelectorRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeccompProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SeccompProfile) com.google.protobuf.MessageOrBuilder { /** * * *
     * type indicates which kind of seccomp profile will be applied.
     * Valid options are:
     * Localhost - a profile defined in a file on the node should be used.
     * RuntimeDefault - the container runtime default profile should be used.
     * Unconfined - no profile should be applied.
     * +unionDiscriminator
     * 
* * optional string type = 1; */ boolean hasType(); /** * * *
     * type indicates which kind of seccomp profile will be applied.
     * Valid options are:
     * Localhost - a profile defined in a file on the node should be used.
     * RuntimeDefault - the container runtime default profile should be used.
     * Unconfined - no profile should be applied.
     * +unionDiscriminator
     * 
* * optional string type = 1; */ java.lang.String getType(); /** * * *
     * type indicates which kind of seccomp profile will be applied.
     * Valid options are:
     * Localhost - a profile defined in a file on the node should be used.
     * RuntimeDefault - the container runtime default profile should be used.
     * Unconfined - no profile should be applied.
     * +unionDiscriminator
     * 
* * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * localhostProfile indicates a profile defined in a file on the node should be used.
     * The profile must be preconfigured on the node to work.
     * Must be a descending path, relative to the kubelet's configured seccomp profile location.
     * Must only be set if type is "Localhost".
     * +optional
     * 
* * optional string localhostProfile = 2; */ boolean hasLocalhostProfile(); /** * * *
     * localhostProfile indicates a profile defined in a file on the node should be used.
     * The profile must be preconfigured on the node to work.
     * Must be a descending path, relative to the kubelet's configured seccomp profile location.
     * Must only be set if type is "Localhost".
     * +optional
     * 
* * optional string localhostProfile = 2; */ java.lang.String getLocalhostProfile(); /** * * *
     * localhostProfile indicates a profile defined in a file on the node should be used.
     * The profile must be preconfigured on the node to work.
     * Must be a descending path, relative to the kubelet's configured seccomp profile location.
     * Must only be set if type is "Localhost".
     * +optional
     * 
* * optional string localhostProfile = 2; */ com.google.protobuf.ByteString getLocalhostProfileBytes(); } /** * * *
   * SeccompProfile defines a pod/container's seccomp profile settings.
   * Only one profile source may be set.
   * +union
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SeccompProfile} */ public static final class SeccompProfile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SeccompProfile) SeccompProfileOrBuilder { private static final long serialVersionUID = 0L; // Use SeccompProfile.newBuilder() to construct. private SeccompProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeccompProfile() { type_ = ""; localhostProfile_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SeccompProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; localhostProfile_ = 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 .V1 .internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SeccompProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SeccompProfile.class, io.kubernetes.client.proto.V1.SeccompProfile.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * * *
     * type indicates which kind of seccomp profile will be applied.
     * Valid options are:
     * Localhost - a profile defined in a file on the node should be used.
     * RuntimeDefault - the container runtime default profile should be used.
     * Unconfined - no profile should be applied.
     * +unionDiscriminator
     * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * type indicates which kind of seccomp profile will be applied.
     * Valid options are:
     * Localhost - a profile defined in a file on the node should be used.
     * RuntimeDefault - the container runtime default profile should be used.
     * Unconfined - no profile should be applied.
     * +unionDiscriminator
     * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * type indicates which kind of seccomp profile will be applied.
     * Valid options are:
     * Localhost - a profile defined in a file on the node should be used.
     * RuntimeDefault - the container runtime default profile should be used.
     * Unconfined - no profile should be applied.
     * +unionDiscriminator
     * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCALHOSTPROFILE_FIELD_NUMBER = 2; private volatile java.lang.Object localhostProfile_; /** * * *
     * localhostProfile indicates a profile defined in a file on the node should be used.
     * The profile must be preconfigured on the node to work.
     * Must be a descending path, relative to the kubelet's configured seccomp profile location.
     * Must only be set if type is "Localhost".
     * +optional
     * 
* * optional string localhostProfile = 2; */ public boolean hasLocalhostProfile() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * localhostProfile indicates a profile defined in a file on the node should be used.
     * The profile must be preconfigured on the node to work.
     * Must be a descending path, relative to the kubelet's configured seccomp profile location.
     * Must only be set if type is "Localhost".
     * +optional
     * 
* * optional string localhostProfile = 2; */ public java.lang.String getLocalhostProfile() { java.lang.Object ref = localhostProfile_; 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()) { localhostProfile_ = s; } return s; } } /** * * *
     * localhostProfile indicates a profile defined in a file on the node should be used.
     * The profile must be preconfigured on the node to work.
     * Must be a descending path, relative to the kubelet's configured seccomp profile location.
     * Must only be set if type is "Localhost".
     * +optional
     * 
* * optional string localhostProfile = 2; */ public com.google.protobuf.ByteString getLocalhostProfileBytes() { java.lang.Object ref = localhostProfile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); localhostProfile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localhostProfile_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localhostProfile_); } 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.V1.SeccompProfile)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SeccompProfile other = (io.kubernetes.client.proto.V1.SeccompProfile) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && (hasLocalhostProfile() == other.hasLocalhostProfile()); if (hasLocalhostProfile()) { result = result && getLocalhostProfile().equals(other.getLocalhostProfile()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasLocalhostProfile()) { hash = (37 * hash) + LOCALHOSTPROFILE_FIELD_NUMBER; hash = (53 * hash) + getLocalhostProfile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SeccompProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SeccompProfile 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.V1.SeccompProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SeccompProfile 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.V1.SeccompProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SeccompProfile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SeccompProfile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SeccompProfile 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.V1.SeccompProfile parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SeccompProfile 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.V1.SeccompProfile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SeccompProfile 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.V1.SeccompProfile 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; } /** * * *
     * SeccompProfile defines a pod/container's seccomp profile settings.
     * Only one profile source may be set.
     * +union
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SeccompProfile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SeccompProfile) io.kubernetes.client.proto.V1.SeccompProfileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SeccompProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SeccompProfile.class, io.kubernetes.client.proto.V1.SeccompProfile.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SeccompProfile.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(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); localhostProfile_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SeccompProfile getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SeccompProfile build() { io.kubernetes.client.proto.V1.SeccompProfile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SeccompProfile buildPartial() { io.kubernetes.client.proto.V1.SeccompProfile result = new io.kubernetes.client.proto.V1.SeccompProfile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.localhostProfile_ = localhostProfile_; 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.V1.SeccompProfile) { return mergeFrom((io.kubernetes.client.proto.V1.SeccompProfile) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SeccompProfile other) { if (other == io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasLocalhostProfile()) { bitField0_ |= 0x00000002; localhostProfile_ = other.localhostProfile_; 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.V1.SeccompProfile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SeccompProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * * *
       * type indicates which kind of seccomp profile will be applied.
       * Valid options are:
       * Localhost - a profile defined in a file on the node should be used.
       * RuntimeDefault - the container runtime default profile should be used.
       * Unconfined - no profile should be applied.
       * +unionDiscriminator
       * 
* * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * type indicates which kind of seccomp profile will be applied.
       * Valid options are:
       * Localhost - a profile defined in a file on the node should be used.
       * RuntimeDefault - the container runtime default profile should be used.
       * Unconfined - no profile should be applied.
       * +unionDiscriminator
       * 
* * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * type indicates which kind of seccomp profile will be applied.
       * Valid options are:
       * Localhost - a profile defined in a file on the node should be used.
       * RuntimeDefault - the container runtime default profile should be used.
       * Unconfined - no profile should be applied.
       * +unionDiscriminator
       * 
* * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * type indicates which kind of seccomp profile will be applied.
       * Valid options are:
       * Localhost - a profile defined in a file on the node should be used.
       * RuntimeDefault - the container runtime default profile should be used.
       * Unconfined - no profile should be applied.
       * +unionDiscriminator
       * 
* * optional string type = 1; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * * *
       * type indicates which kind of seccomp profile will be applied.
       * Valid options are:
       * Localhost - a profile defined in a file on the node should be used.
       * RuntimeDefault - the container runtime default profile should be used.
       * Unconfined - no profile should be applied.
       * +unionDiscriminator
       * 
* * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * type indicates which kind of seccomp profile will be applied.
       * Valid options are:
       * Localhost - a profile defined in a file on the node should be used.
       * RuntimeDefault - the container runtime default profile should be used.
       * Unconfined - no profile should be applied.
       * +unionDiscriminator
       * 
* * optional string type = 1; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object localhostProfile_ = ""; /** * * *
       * localhostProfile indicates a profile defined in a file on the node should be used.
       * The profile must be preconfigured on the node to work.
       * Must be a descending path, relative to the kubelet's configured seccomp profile location.
       * Must only be set if type is "Localhost".
       * +optional
       * 
* * optional string localhostProfile = 2; */ public boolean hasLocalhostProfile() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * localhostProfile indicates a profile defined in a file on the node should be used.
       * The profile must be preconfigured on the node to work.
       * Must be a descending path, relative to the kubelet's configured seccomp profile location.
       * Must only be set if type is "Localhost".
       * +optional
       * 
* * optional string localhostProfile = 2; */ public java.lang.String getLocalhostProfile() { java.lang.Object ref = localhostProfile_; 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()) { localhostProfile_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * localhostProfile indicates a profile defined in a file on the node should be used.
       * The profile must be preconfigured on the node to work.
       * Must be a descending path, relative to the kubelet's configured seccomp profile location.
       * Must only be set if type is "Localhost".
       * +optional
       * 
* * optional string localhostProfile = 2; */ public com.google.protobuf.ByteString getLocalhostProfileBytes() { java.lang.Object ref = localhostProfile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); localhostProfile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * localhostProfile indicates a profile defined in a file on the node should be used.
       * The profile must be preconfigured on the node to work.
       * Must be a descending path, relative to the kubelet's configured seccomp profile location.
       * Must only be set if type is "Localhost".
       * +optional
       * 
* * optional string localhostProfile = 2; */ public Builder setLocalhostProfile(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; localhostProfile_ = value; onChanged(); return this; } /** * * *
       * localhostProfile indicates a profile defined in a file on the node should be used.
       * The profile must be preconfigured on the node to work.
       * Must be a descending path, relative to the kubelet's configured seccomp profile location.
       * Must only be set if type is "Localhost".
       * +optional
       * 
* * optional string localhostProfile = 2; */ public Builder clearLocalhostProfile() { bitField0_ = (bitField0_ & ~0x00000002); localhostProfile_ = getDefaultInstance().getLocalhostProfile(); onChanged(); return this; } /** * * *
       * localhostProfile indicates a profile defined in a file on the node should be used.
       * The profile must be preconfigured on the node to work.
       * Must be a descending path, relative to the kubelet's configured seccomp profile location.
       * Must only be set if type is "Localhost".
       * +optional
       * 
* * optional string localhostProfile = 2; */ public Builder setLocalhostProfileBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; localhostProfile_ = 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.core.v1.SeccompProfile) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SeccompProfile) private static final io.kubernetes.client.proto.V1.SeccompProfile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SeccompProfile(); } public static io.kubernetes.client.proto.V1.SeccompProfile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SeccompProfile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeccompProfile(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.V1.SeccompProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Secret) 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(); /** * * *
     * Immutable, if set to true, ensures that data stored in the Secret cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 5; */ boolean hasImmutable(); /** * * *
     * Immutable, if set to true, ensures that data stored in the Secret cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 5; */ boolean getImmutable(); /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ int getDataCount(); /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ boolean containsData(java.lang.String key); /** Use {@link #getDataMap()} instead. */ @java.lang.Deprecated java.util.Map getData(); /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ java.util.Map getDataMap(); /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ com.google.protobuf.ByteString getDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue); /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ com.google.protobuf.ByteString getDataOrThrow(java.lang.String key); /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ int getStringDataCount(); /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ boolean containsStringData(java.lang.String key); /** Use {@link #getStringDataMap()} instead. */ @java.lang.Deprecated java.util.Map getStringData(); /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ java.util.Map getStringDataMap(); /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ java.lang.String getStringDataOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ java.lang.String getStringDataOrThrow(java.lang.String key); /** * * *
     * Used to facilitate programmatic handling of secret data.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
     * +optional
     * 
* * optional string type = 3; */ boolean hasType(); /** * * *
     * Used to facilitate programmatic handling of secret data.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
     * +optional
     * 
* * optional string type = 3; */ java.lang.String getType(); /** * * *
     * Used to facilitate programmatic handling of secret data.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
     * +optional
     * 
* * optional string type = 3; */ com.google.protobuf.ByteString getTypeBytes(); } /** * * *
   * Secret holds secret data of a certain type. The total bytes of the values in
   * the Data field must be less than MaxSecretSize bytes.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Secret} */ public static final class Secret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Secret) SecretOrBuilder { private static final long serialVersionUID = 0L; // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { immutable_ = false; type_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Secret( 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: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry data__ = input.readMessage( DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); data_.getMutableMap().put(data__.getKey(), data__.getValue()); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; type_ = bs; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { stringData_ = com.google.protobuf.MapField.newMapField( StringDataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; } com.google.protobuf.MapEntry stringData__ = input.readMessage( StringDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); stringData_.getMutableMap().put(stringData__.getKey(), stringData__.getValue()); break; } case 40: { bitField0_ |= 0x00000002; immutable_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Secret_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetData(); case 4: return internalGetStringData(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Secret.class, io.kubernetes.client.proto.V1.Secret.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 IMMUTABLE_FIELD_NUMBER = 5; private boolean immutable_; /** * * *
     * Immutable, if set to true, ensures that data stored in the Secret cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 5; */ public boolean hasImmutable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Immutable, if set to true, ensures that data stored in the Secret cannot
     * be updated (only object metadata can be modified).
     * If not set to true, the field can be modified at any time.
     * Defaulted to nil.
     * +optional
     * 
* * optional bool immutable = 5; */ public boolean getImmutable() { return immutable_; } public static final int DATA_FIELD_NUMBER = 2; private static final class DataDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Secret_DataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.BYTES, com.google.protobuf.ByteString.EMPTY); } private com.google.protobuf.MapField data_; private com.google.protobuf.MapField internalGetData() { if (data_ == null) { return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); } return data_; } public int getDataCount() { return internalGetData().getMap().size(); } /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ public boolean containsData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetData().getMap().containsKey(key); } /** Use {@link #getDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ public java.util.Map getDataMap() { return internalGetData().getMap(); } /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ public com.google.protobuf.ByteString getDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Data contains the secret data. Each key must consist of alphanumeric
     * characters, '-', '_' or '.'. The serialized form of the secret data is a
     * base64 encoded string, representing the arbitrary (possibly non-string)
     * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
     * +optional
     * 
* * map<string, bytes> data = 2; */ public com.google.protobuf.ByteString getDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STRINGDATA_FIELD_NUMBER = 4; private static final class StringDataDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField stringData_; private com.google.protobuf.MapField internalGetStringData() { if (stringData_ == null) { return com.google.protobuf.MapField.emptyMapField( StringDataDefaultEntryHolder.defaultEntry); } return stringData_; } public int getStringDataCount() { return internalGetStringData().getMap().size(); } /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ public boolean containsStringData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetStringData().getMap().containsKey(key); } /** Use {@link #getStringDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getStringData() { return getStringDataMap(); } /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ public java.util.Map getStringDataMap() { return internalGetStringData().getMap(); } /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ public java.lang.String getStringDataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStringData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * stringData allows specifying non-binary secret data in string form.
     * It is provided as a write-only input field for convenience.
     * All keys and values are merged into the data field on write, overwriting any existing values.
     * The stringData field is never output when reading from the API.
     * +k8s:conversion-gen=false
     * +optional
     * 
* * map<string, string> stringData = 4; */ public java.lang.String getStringDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStringData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object type_; /** * * *
     * Used to facilitate programmatic handling of secret data.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
     * +optional
     * 
* * optional string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Used to facilitate programmatic handling of secret data.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
     * +optional
     * 
* * optional string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * Used to facilitate programmatic handling of secret data.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
     * +optional
     * 
* * optional string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetData(), DataDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetStringData(), StringDataDefaultEntryHolder.defaultEntry, 4); if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(5, immutable_); } 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 (java.util.Map.Entry entry : internalGetData().getMap().entrySet()) { com.google.protobuf.MapEntry data__ = DataDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, data__); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } for (java.util.Map.Entry entry : internalGetStringData().getMap().entrySet()) { com.google.protobuf.MapEntry stringData__ = StringDataDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, stringData__); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, immutable_); } 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.V1.Secret)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Secret other = (io.kubernetes.client.proto.V1.Secret) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasImmutable() == other.hasImmutable()); if (hasImmutable()) { result = result && (getImmutable() == other.getImmutable()); } result = result && internalGetData().equals(other.internalGetData()); result = result && internalGetStringData().equals(other.internalGetStringData()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } 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 (hasImmutable()) { hash = (37 * hash) + IMMUTABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImmutable()); } if (!internalGetData().getMap().isEmpty()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + internalGetData().hashCode(); } if (!internalGetStringData().getMap().isEmpty()) { hash = (37 * hash) + STRINGDATA_FIELD_NUMBER; hash = (53 * hash) + internalGetStringData().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Secret parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Secret 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.V1.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Secret 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.V1.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Secret parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Secret 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.V1.Secret parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Secret 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.V1.Secret parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Secret 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.V1.Secret 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; } /** * * *
     * Secret holds secret data of a certain type. The total bytes of the values in
     * the Data field must be less than MaxSecretSize bytes.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Secret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Secret) io.kubernetes.client.proto.V1.SecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Secret_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetData(); case 4: return internalGetStringData(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableData(); case 4: return internalGetMutableStringData(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Secret.class, io.kubernetes.client.proto.V1.Secret.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Secret.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(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); immutable_ = false; bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableData().clear(); internalGetMutableStringData().clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Secret_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Secret getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Secret.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Secret build() { io.kubernetes.client.proto.V1.Secret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Secret buildPartial() { io.kubernetes.client.proto.V1.Secret result = new io.kubernetes.client.proto.V1.Secret(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.immutable_ = immutable_; result.data_ = internalGetData(); result.data_.makeImmutable(); result.stringData_ = internalGetStringData(); result.stringData_.makeImmutable(); if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; 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.V1.Secret) { return mergeFrom((io.kubernetes.client.proto.V1.Secret) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Secret other) { if (other == io.kubernetes.client.proto.V1.Secret.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasImmutable()) { setImmutable(other.getImmutable()); } internalGetMutableData().mergeFrom(other.internalGetData()); internalGetMutableStringData().mergeFrom(other.internalGetStringData()); if (other.hasType()) { bitField0_ |= 0x00000010; type_ = other.type_; 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.V1.Secret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Secret) 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 boolean immutable_; /** * * *
       * Immutable, if set to true, ensures that data stored in the Secret cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 5; */ public boolean hasImmutable() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Immutable, if set to true, ensures that data stored in the Secret cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 5; */ public boolean getImmutable() { return immutable_; } /** * * *
       * Immutable, if set to true, ensures that data stored in the Secret cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 5; */ public Builder setImmutable(boolean value) { bitField0_ |= 0x00000002; immutable_ = value; onChanged(); return this; } /** * * *
       * Immutable, if set to true, ensures that data stored in the Secret cannot
       * be updated (only object metadata can be modified).
       * If not set to true, the field can be modified at any time.
       * Defaulted to nil.
       * +optional
       * 
* * optional bool immutable = 5; */ public Builder clearImmutable() { bitField0_ = (bitField0_ & ~0x00000002); immutable_ = false; onChanged(); return this; } private com.google.protobuf.MapField data_; private com.google.protobuf.MapField internalGetData() { if (data_ == null) { return com.google.protobuf.MapField.emptyMapField(DataDefaultEntryHolder.defaultEntry); } return data_; } private com.google.protobuf.MapField internalGetMutableData() { onChanged(); ; if (data_ == null) { data_ = com.google.protobuf.MapField.newMapField(DataDefaultEntryHolder.defaultEntry); } if (!data_.isMutable()) { data_ = data_.copy(); } return data_; } public int getDataCount() { return internalGetData().getMap().size(); } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public boolean containsData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetData().getMap().containsKey(key); } /** Use {@link #getDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public java.util.Map getDataMap() { return internalGetData().getMap(); } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public com.google.protobuf.ByteString getDataOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public com.google.protobuf.ByteString getDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearData() { internalGetMutableData().getMutableMap().clear(); return this; } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public Builder removeData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableData().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableData() { return internalGetMutableData().getMutableMap(); } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public Builder putData(java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableData().getMutableMap().put(key, value); return this; } /** * * *
       * Data contains the secret data. Each key must consist of alphanumeric
       * characters, '-', '_' or '.'. The serialized form of the secret data is a
       * base64 encoded string, representing the arbitrary (possibly non-string)
       * data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
       * +optional
       * 
* * map<string, bytes> data = 2; */ public Builder putAllData( java.util.Map values) { internalGetMutableData().getMutableMap().putAll(values); return this; } private com.google.protobuf.MapField stringData_; private com.google.protobuf.MapField internalGetStringData() { if (stringData_ == null) { return com.google.protobuf.MapField.emptyMapField( StringDataDefaultEntryHolder.defaultEntry); } return stringData_; } private com.google.protobuf.MapField internalGetMutableStringData() { onChanged(); ; if (stringData_ == null) { stringData_ = com.google.protobuf.MapField.newMapField(StringDataDefaultEntryHolder.defaultEntry); } if (!stringData_.isMutable()) { stringData_ = stringData_.copy(); } return stringData_; } public int getStringDataCount() { return internalGetStringData().getMap().size(); } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public boolean containsStringData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetStringData().getMap().containsKey(key); } /** Use {@link #getStringDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getStringData() { return getStringDataMap(); } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public java.util.Map getStringDataMap() { return internalGetStringData().getMap(); } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public java.lang.String getStringDataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStringData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public java.lang.String getStringDataOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetStringData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearStringData() { internalGetMutableStringData().getMutableMap().clear(); return this; } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public Builder removeStringData(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableStringData().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableStringData() { return internalGetMutableStringData().getMutableMap(); } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public Builder putStringData(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableStringData().getMutableMap().put(key, value); return this; } /** * * *
       * stringData allows specifying non-binary secret data in string form.
       * It is provided as a write-only input field for convenience.
       * All keys and values are merged into the data field on write, overwriting any existing values.
       * The stringData field is never output when reading from the API.
       * +k8s:conversion-gen=false
       * +optional
       * 
* * map<string, string> stringData = 4; */ public Builder putAllStringData(java.util.Map values) { internalGetMutableStringData().getMutableMap().putAll(values); return this; } private java.lang.Object type_ = ""; /** * * *
       * Used to facilitate programmatic handling of secret data.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
       * +optional
       * 
* * optional string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Used to facilitate programmatic handling of secret data.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
       * +optional
       * 
* * optional string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Used to facilitate programmatic handling of secret data.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
       * +optional
       * 
* * optional string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Used to facilitate programmatic handling of secret data.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
       * +optional
       * 
* * optional string type = 3; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** * * *
       * Used to facilitate programmatic handling of secret data.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
       * +optional
       * 
* * optional string type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * Used to facilitate programmatic handling of secret data.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
       * +optional
       * 
* * optional string type = 3; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = 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.core.v1.Secret) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Secret) private static final io.kubernetes.client.proto.V1.Secret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Secret(); } public static io.kubernetes.client.proto.V1.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Secret(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.V1.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretEnvSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecretEnvSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * The Secret to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** * * *
     * The Secret to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** * * *
     * The Secret to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * Specify whether the Secret must be defined
     * +optional
     * 
* * optional bool optional = 2; */ boolean hasOptional(); /** * * *
     * Specify whether the Secret must be defined
     * +optional
     * 
* * optional bool optional = 2; */ boolean getOptional(); } /** * * *
   * SecretEnvSource selects a Secret to populate the environment
   * variables with.
   * The contents of the target Secret's Data field will represent the
   * key-value pairs as environment variables.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretEnvSource} */ public static final class SecretEnvSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecretEnvSource) SecretEnvSourceOrBuilder { private static final long serialVersionUID = 0L; // Use SecretEnvSource.newBuilder() to construct. private SecretEnvSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretEnvSource() { optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecretEnvSource( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; optional_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretEnvSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretEnvSource.class, io.kubernetes.client.proto.V1.SecretEnvSource.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** * * *
     * The Secret to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The Secret to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** * * *
     * The Secret to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int OPTIONAL_FIELD_NUMBER = 2; private boolean optional_; /** * * *
     * Specify whether the Secret must be defined
     * +optional
     * 
* * optional bool optional = 2; */ public boolean hasOptional() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specify whether the Secret must be defined
     * +optional
     * 
* * optional bool optional = 2; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, optional_); } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, optional_); } 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.V1.SecretEnvSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecretEnvSource other = (io.kubernetes.client.proto.V1.SecretEnvSource) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SecretEnvSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretEnvSource 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.V1.SecretEnvSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretEnvSource 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.V1.SecretEnvSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretEnvSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecretEnvSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretEnvSource 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.V1.SecretEnvSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretEnvSource 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.V1.SecretEnvSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretEnvSource 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.V1.SecretEnvSource 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; } /** * * *
     * SecretEnvSource selects a Secret to populate the environment
     * variables with.
     * The contents of the target Secret's Data field will represent the
     * key-value pairs as environment variables.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretEnvSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecretEnvSource) io.kubernetes.client.proto.V1.SecretEnvSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretEnvSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretEnvSource.class, io.kubernetes.client.proto.V1.SecretEnvSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecretEnvSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); optional_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretEnvSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecretEnvSource build() { io.kubernetes.client.proto.V1.SecretEnvSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretEnvSource buildPartial() { io.kubernetes.client.proto.V1.SecretEnvSource result = new io.kubernetes.client.proto.V1.SecretEnvSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.optional_ = optional_; 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.V1.SecretEnvSource) { return mergeFrom((io.kubernetes.client.proto.V1.SecretEnvSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecretEnvSource other) { if (other == io.kubernetes.client.proto.V1.SecretEnvSource.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.SecretEnvSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecretEnvSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * * *
       * The Secret to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } private boolean optional_; /** * * *
       * Specify whether the Secret must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public boolean hasOptional() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specify whether the Secret must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the Secret must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000002; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the Secret must be defined
       * +optional
       * 
* * optional bool optional = 2; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000002); optional_ = 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.core.v1.SecretEnvSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecretEnvSource) private static final io.kubernetes.client.proto.V1.SecretEnvSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecretEnvSource(); } public static io.kubernetes.client.proto.V1.SecretEnvSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecretEnvSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretEnvSource(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.V1.SecretEnvSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretKeySelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecretKeySelector) com.google.protobuf.MessageOrBuilder { /** * * *
     * The name of the secret in the pod's namespace to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** * * *
     * The name of the secret in the pod's namespace to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** * * *
     * The name of the secret in the pod's namespace to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * The key of the secret to select from.  Must be a valid secret key.
     * 
* * optional string key = 2; */ boolean hasKey(); /** * * *
     * The key of the secret to select from.  Must be a valid secret key.
     * 
* * optional string key = 2; */ java.lang.String getKey(); /** * * *
     * The key of the secret to select from.  Must be a valid secret key.
     * 
* * optional string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ boolean hasOptional(); /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ boolean getOptional(); } /** * * *
   * SecretKeySelector selects a key of a Secret.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretKeySelector} */ public static final class SecretKeySelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecretKeySelector) SecretKeySelectorOrBuilder { private static final long serialVersionUID = 0L; // Use SecretKeySelector.newBuilder() to construct. private SecretKeySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretKeySelector() { key_ = ""; optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecretKeySelector( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; key_ = bs; break; } case 24: { bitField0_ |= 0x00000004; optional_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretKeySelector.class, io.kubernetes.client.proto.V1.SecretKeySelector.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** * * *
     * The name of the secret in the pod's namespace to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The name of the secret in the pod's namespace to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** * * *
     * The name of the secret in the pod's namespace to select from.
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** * * *
     * The key of the secret to select from.  Must be a valid secret key.
     * 
* * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The key of the secret to select from.  Must be a valid secret key.
     * 
* * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * The key of the secret to select from.  Must be a valid secret key.
     * 
* * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONAL_FIELD_NUMBER = 3; private boolean optional_; /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 3; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, optional_); } 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, getLocalObjectReference()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, optional_); } 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.V1.SecretKeySelector)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecretKeySelector other = (io.kubernetes.client.proto.V1.SecretKeySelector) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SecretKeySelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretKeySelector 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.V1.SecretKeySelector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretKeySelector 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.V1.SecretKeySelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretKeySelector parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecretKeySelector parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretKeySelector 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.V1.SecretKeySelector parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretKeySelector 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.V1.SecretKeySelector parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretKeySelector 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.V1.SecretKeySelector 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; } /** * * *
     * SecretKeySelector selects a key of a Secret.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretKeySelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecretKeySelector) io.kubernetes.client.proto.V1.SecretKeySelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretKeySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretKeySelector.class, io.kubernetes.client.proto.V1.SecretKeySelector.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecretKeySelector.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); optional_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretKeySelector getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecretKeySelector build() { io.kubernetes.client.proto.V1.SecretKeySelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretKeySelector buildPartial() { io.kubernetes.client.proto.V1.SecretKeySelector result = new io.kubernetes.client.proto.V1.SecretKeySelector(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.optional_ = optional_; 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.V1.SecretKeySelector) { return mergeFrom((io.kubernetes.client.proto.V1.SecretKeySelector) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecretKeySelector other) { if (other == io.kubernetes.client.proto.V1.SecretKeySelector.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } if (other.hasKey()) { bitField0_ |= 0x00000002; key_ = other.key_; onChanged(); } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.SecretKeySelector parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecretKeySelector) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * * *
       * The name of the secret in the pod's namespace to select from.
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } private java.lang.Object key_ = ""; /** * * *
       * The key of the secret to select from.  Must be a valid secret key.
       * 
* * optional string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The key of the secret to select from.  Must be a valid secret key.
       * 
* * optional string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The key of the secret to select from.  Must be a valid secret key.
       * 
* * optional string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The key of the secret to select from.  Must be a valid secret key.
       * 
* * optional string key = 2; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * * *
       * The key of the secret to select from.  Must be a valid secret key.
       * 
* * optional string key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * The key of the secret to select from.  Must be a valid secret key.
       * 
* * optional string key = 2; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } private boolean optional_; /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000004; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 3; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000004); optional_ = 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.core.v1.SecretKeySelector) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecretKeySelector) private static final io.kubernetes.client.proto.V1.SecretKeySelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecretKeySelector(); } public static io.kubernetes.client.proto.V1.SecretKeySelector getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecretKeySelector parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretKeySelector(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.V1.SecretKeySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecretList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ java.util.List getItemsList(); /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ io.kubernetes.client.proto.V1.Secret getItems(int index); /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ int getItemsCount(); /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ io.kubernetes.client.proto.V1.SecretOrBuilder getItemsOrBuilder(int index); } /** * * *
   * SecretList is a list of Secret.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretList} */ public static final class SecretList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecretList) SecretListOrBuilder { private static final long serialVersionUID = 0L; // Use SecretList.newBuilder() to construct. private SecretList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecretList( 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.V1.Secret.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.V1.internal_static_k8s_io_api_core_v1_SecretList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretList.class, io.kubernetes.client.proto.V1.SecretList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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 a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.Secret getItems(int index) { return items_.get(index); } /** * * *
     * Items is a list of secret objects.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.SecretOrBuilder 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.V1.SecretList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecretList other = (io.kubernetes.client.proto.V1.SecretList) 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.V1.SecretList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretList 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.V1.SecretList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretList 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.V1.SecretList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecretList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretList 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.V1.SecretList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretList 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.V1.SecretList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretList 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.V1.SecretList 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; } /** * * *
     * SecretList is a list of Secret.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecretList) io.kubernetes.client.proto.V1.SecretListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretList.class, io.kubernetes.client.proto.V1.SecretList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecretList.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 .V1 .internal_static_k8s_io_api_core_v1_SecretList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecretList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecretList build() { io.kubernetes.client.proto.V1.SecretList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretList buildPartial() { io.kubernetes.client.proto.V1.SecretList result = new io.kubernetes.client.proto.V1.SecretList(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.V1.SecretList) { return mergeFrom((io.kubernetes.client.proto.V1.SecretList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecretList other) { if (other == io.kubernetes.client.proto.V1.SecretList.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.V1.SecretList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecretList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Secret, io.kubernetes.client.proto.V1.Secret.Builder, io.kubernetes.client.proto.V1.SecretOrBuilder> itemsBuilder_; /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.Secret getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Secret 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 a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Secret.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Secret value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Secret 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 a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Secret.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Secret.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret 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 a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.Secret.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.SecretOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.Secret.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Secret.getDefaultInstance()); } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public io.kubernetes.client.proto.V1.Secret.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Secret.getDefaultInstance()); } /** * * *
       * Items is a list of secret objects.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * 
* * repeated .k8s.io.api.core.v1.Secret items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Secret, io.kubernetes.client.proto.V1.Secret.Builder, io.kubernetes.client.proto.V1.SecretOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Secret, io.kubernetes.client.proto.V1.Secret.Builder, io.kubernetes.client.proto.V1.SecretOrBuilder>( 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.core.v1.SecretList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecretList) private static final io.kubernetes.client.proto.V1.SecretList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecretList(); } public static io.kubernetes.client.proto.V1.SecretList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecretList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretList(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.V1.SecretList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecretProjection) com.google.protobuf.MessageOrBuilder { /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ boolean hasLocalObjectReference(); /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference(); /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPath getItems(int index); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ int getItemsCount(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index); /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean hasOptional(); /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean getOptional(); } /** * * *
   * Adapts a secret into a projected volume.
   * The contents of the target Secret's Data field will be presented in a
   * projected volume as files using the keys in the Data field as the file names.
   * Note that this is identical to a secret volume source without the default
   * mode.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretProjection} */ public static final class SecretProjection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecretProjection) SecretProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use SecretProjection.newBuilder() to construct. private SecretProjection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretProjection() { items_ = java.util.Collections.emptyList(); optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecretProjection( 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.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = localObjectReference_.toBuilder(); } localObjectReference_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(localObjectReference_); localObjectReference_ = 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.V1.KeyToPath.PARSER, extensionRegistry)); break; } case 32: { bitField0_ |= 0x00000002; optional_ = 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_ & 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 .V1 .internal_static_k8s_io_api_core_v1_SecretProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretProjection.class, io.kubernetes.client.proto.V1.SecretProjection.Builder.class); } private int bitField0_; public static final int LOCALOBJECTREFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_; /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } /** optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { return items_.get(index); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int OPTIONAL_FIELD_NUMBER = 4; private boolean optional_; /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specify whether the Secret or its key must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } 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, getLocalObjectReference()); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(4, optional_); } 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, getLocalObjectReference()); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, optional_); } 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.V1.SecretProjection)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecretProjection other = (io.kubernetes.client.proto.V1.SecretProjection) obj; boolean result = true; result = result && (hasLocalObjectReference() == other.hasLocalObjectReference()); if (hasLocalObjectReference()) { result = result && getLocalObjectReference().equals(other.getLocalObjectReference()); } result = result && getItemsList().equals(other.getItemsList()); result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasLocalObjectReference()) { hash = (37 * hash) + LOCALOBJECTREFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLocalObjectReference().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SecretProjection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretProjection 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.V1.SecretProjection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretProjection 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.V1.SecretProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretProjection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecretProjection parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretProjection 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.V1.SecretProjection parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretProjection 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.V1.SecretProjection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretProjection 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.V1.SecretProjection 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; } /** * * *
     * Adapts a secret into a projected volume.
     * The contents of the target Secret's Data field will be presented in a
     * projected volume as files using the keys in the Data field as the file names.
     * Note that this is identical to a secret volume source without the default
     * mode.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretProjection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecretProjection) io.kubernetes.client.proto.V1.SecretProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretProjection.class, io.kubernetes.client.proto.V1.SecretProjection.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecretProjection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLocalObjectReferenceFieldBuilder(); getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.clear(); } optional_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretProjection_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretProjection getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecretProjection build() { io.kubernetes.client.proto.V1.SecretProjection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretProjection buildPartial() { io.kubernetes.client.proto.V1.SecretProjection result = new io.kubernetes.client.proto.V1.SecretProjection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (localObjectReferenceBuilder_ == null) { result.localObjectReference_ = localObjectReference_; } else { result.localObjectReference_ = localObjectReferenceBuilder_.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(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.optional_ = optional_; 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.V1.SecretProjection) { return mergeFrom((io.kubernetes.client.proto.V1.SecretProjection) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecretProjection other) { if (other == io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance()) return this; if (other.hasLocalObjectReference()) { mergeLocalObjectReference(other.getLocalObjectReference()); } 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_); } } } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.SecretProjection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecretProjection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LocalObjectReference localObjectReference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> localObjectReferenceBuilder_; /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public boolean hasLocalObjectReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference getLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } else { return localObjectReferenceBuilder_.getMessage(); } } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } localObjectReference_ = value; onChanged(); } else { localObjectReferenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder setLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = builderForValue.build(); onChanged(); } else { localObjectReferenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder mergeLocalObjectReference( io.kubernetes.client.proto.V1.LocalObjectReference value) { if (localObjectReferenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && localObjectReference_ != null && localObjectReference_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { localObjectReference_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(localObjectReference_) .mergeFrom(value) .buildPartial(); } else { localObjectReference_ = value; } onChanged(); } else { localObjectReferenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public Builder clearLocalObjectReference() { if (localObjectReferenceBuilder_ == null) { localObjectReference_ = null; onChanged(); } else { localObjectReferenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getLocalObjectReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLocalObjectReferenceFieldBuilder().getBuilder(); } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjectReferenceOrBuilder() { if (localObjectReferenceBuilder_ != null) { return localObjectReferenceBuilder_.getMessageOrBuilder(); } else { return localObjectReference_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : localObjectReference_; } } /** * optional .k8s.io.api.core.v1.LocalObjectReference localObjectReference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getLocalObjectReferenceFieldBuilder() { if (localObjectReferenceBuilder_ == null) { localObjectReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getLocalObjectReference(), getParentForChildren(), isClean()); localObjectReference_ = null; } return localObjectReferenceBuilder_; } 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.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> itemsBuilder_; /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath 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; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>( items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private boolean optional_; /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000004; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the Secret or its key must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000004); optional_ = 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.core.v1.SecretProjection) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecretProjection) private static final io.kubernetes.client.proto.V1.SecretProjection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecretProjection(); } public static io.kubernetes.client.proto.V1.SecretProjection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecretProjection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretProjection(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.V1.SecretProjection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecretReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name is unique within a namespace to reference a secret resource.
     * +optional
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name is unique within a namespace to reference a secret resource.
     * +optional
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name is unique within a namespace to reference a secret resource.
     * +optional
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Namespace defines the space within which the secret name must be unique.
     * +optional
     * 
* * optional string namespace = 2; */ boolean hasNamespace(); /** * * *
     * Namespace defines the space within which the secret name must be unique.
     * +optional
     * 
* * optional string namespace = 2; */ java.lang.String getNamespace(); /** * * *
     * Namespace defines the space within which the secret name must be unique.
     * +optional
     * 
* * optional string namespace = 2; */ com.google.protobuf.ByteString getNamespaceBytes(); } /** * * *
   * SecretReference represents a Secret Reference. It has enough information to retrieve secret
   * in any namespace
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretReference} */ public static final class SecretReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecretReference) SecretReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use SecretReference.newBuilder() to construct. private SecretReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretReference() { name_ = ""; namespace_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecretReference( 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; namespace_ = 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 .V1 .internal_static_k8s_io_api_core_v1_SecretReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretReference.class, io.kubernetes.client.proto.V1.SecretReference.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name is unique within a namespace to reference a secret resource.
     * +optional
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name is unique within a namespace to reference a secret resource.
     * +optional
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name is unique within a namespace to reference a secret resource.
     * +optional
     * 
* * 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 NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * * *
     * Namespace defines the space within which the secret name must be unique.
     * +optional
     * 
* * optional string namespace = 2; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Namespace defines the space within which the secret name must be unique.
     * +optional
     * 
* * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } } /** * * *
     * Namespace defines the space within which the secret name must be unique.
     * +optional
     * 
* * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, namespace_); } 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, namespace_); } 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.V1.SecretReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecretReference other = (io.kubernetes.client.proto.V1.SecretReference) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { result = result && getNamespace().equals(other.getNamespace()); } 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 (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SecretReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretReference 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.V1.SecretReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretReference 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.V1.SecretReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecretReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretReference 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.V1.SecretReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretReference 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.V1.SecretReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretReference 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.V1.SecretReference 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; } /** * * *
     * SecretReference represents a Secret Reference. It has enough information to retrieve secret
     * in any namespace
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecretReference) io.kubernetes.client.proto.V1.SecretReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretReference.class, io.kubernetes.client.proto.V1.SecretReference.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecretReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); namespace_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecretReference build() { io.kubernetes.client.proto.V1.SecretReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretReference buildPartial() { io.kubernetes.client.proto.V1.SecretReference result = new io.kubernetes.client.proto.V1.SecretReference(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.namespace_ = namespace_; 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.V1.SecretReference) { return mergeFrom((io.kubernetes.client.proto.V1.SecretReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecretReference other) { if (other == io.kubernetes.client.proto.V1.SecretReference.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasNamespace()) { bitField0_ |= 0x00000002; namespace_ = other.namespace_; 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.V1.SecretReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecretReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name is unique within a namespace to reference a secret resource.
       * +optional
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name is unique within a namespace to reference a secret resource.
       * +optional
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name is unique within a namespace to reference a secret resource.
       * +optional
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name is unique within a namespace to reference a secret resource.
       * +optional
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name is unique within a namespace to reference a secret resource.
       * +optional
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name is unique within a namespace to reference a secret resource.
       * +optional
       * 
* * 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 namespace_ = ""; /** * * *
       * Namespace defines the space within which the secret name must be unique.
       * +optional
       * 
* * optional string namespace = 2; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Namespace defines the space within which the secret name must be unique.
       * +optional
       * 
* * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Namespace defines the space within which the secret name must be unique.
       * +optional
       * 
* * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Namespace defines the space within which the secret name must be unique.
       * +optional
       * 
* * optional string namespace = 2; */ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; namespace_ = value; onChanged(); return this; } /** * * *
       * Namespace defines the space within which the secret name must be unique.
       * +optional
       * 
* * optional string namespace = 2; */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000002); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * * *
       * Namespace defines the space within which the secret name must be unique.
       * +optional
       * 
* * optional string namespace = 2; */ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; namespace_ = 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.core.v1.SecretReference) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecretReference) private static final io.kubernetes.client.proto.V1.SecretReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecretReference(); } public static io.kubernetes.client.proto.V1.SecretReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecretReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretReference(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.V1.SecretReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecretVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of the secret in the pod's namespace to use.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional string secretName = 1; */ boolean hasSecretName(); /** * * *
     * Name of the secret in the pod's namespace to use.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional string secretName = 1; */ java.lang.String getSecretName(); /** * * *
     * Name of the secret in the pod's namespace to use.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional string secretName = 1; */ com.google.protobuf.ByteString getSecretNameBytes(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPath getItems(int index); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ int getItemsCount(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index); /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values
     * for mode bits. Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ boolean hasDefaultMode(); /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values
     * for mode bits. Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ int getDefaultMode(); /** * * *
     * Specify whether the Secret or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean hasOptional(); /** * * *
     * Specify whether the Secret or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ boolean getOptional(); } /** * * *
   * Adapts a Secret into a volume.
   * The contents of the target Secret's Data field will be presented in a volume
   * as files using the keys in the Data field as the file names.
   * Secret volumes support ownership management and SELinux relabeling.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretVolumeSource} */ public static final class SecretVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecretVolumeSource) SecretVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use SecretVolumeSource.newBuilder() to construct. private SecretVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretVolumeSource() { secretName_ = ""; items_ = java.util.Collections.emptyList(); defaultMode_ = 0; optional_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecretVolumeSource( 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; secretName_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1.KeyToPath.PARSER, extensionRegistry)); break; } case 24: { bitField0_ |= 0x00000002; defaultMode_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000004; optional_ = 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_ & 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 .V1 .internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretVolumeSource.class, io.kubernetes.client.proto.V1.SecretVolumeSource.Builder.class); } private int bitField0_; public static final int SECRETNAME_FIELD_NUMBER = 1; private volatile java.lang.Object secretName_; /** * * *
     * Name of the secret in the pod's namespace to use.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional string secretName = 1; */ public boolean hasSecretName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of the secret in the pod's namespace to use.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional string secretName = 1; */ public java.lang.String getSecretName() { java.lang.Object ref = secretName_; 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()) { secretName_ = s; } return s; } } /** * * *
     * Name of the secret in the pod's namespace to use.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional string secretName = 1; */ public com.google.protobuf.ByteString getSecretNameBytes() { java.lang.Object ref = secretName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List items_; /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { return items_.get(index); } /** * * *
     * If unspecified, each key-value pair in the Data field of the referenced
     * Secret will be projected into the volume as a file whose name is the
     * key and content is the value. If specified, the listed keys will be
     * projected into the specified paths, and unlisted keys will not be
     * present. If a key is specified which is not present in the Secret,
     * the volume setup will error unless it is marked optional. Paths must be
     * relative and may not contain the '..' path or start with '..'.
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int DEFAULTMODE_FIELD_NUMBER = 3; private int defaultMode_; /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values
     * for mode bits. Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Optional: mode bits used to set permissions on created files by default.
     * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
     * YAML accepts both octal and decimal values, JSON requires decimal values
     * for mode bits. Defaults to 0644.
     * Directories within the path are not affected by this setting.
     * This might be in conflict with other options that affect the file
     * mode, like fsGroup, and the result can be other mode bits set.
     * +optional
     * 
* * optional int32 defaultMode = 3; */ public int getDefaultMode() { return defaultMode_; } public static final int OPTIONAL_FIELD_NUMBER = 4; private boolean optional_; /** * * *
     * Specify whether the Secret or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Specify whether the Secret or its keys must be defined
     * +optional
     * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } 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, secretName_); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(3, defaultMode_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(4, optional_); } 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, secretName_); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, defaultMode_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, optional_); } 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.V1.SecretVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecretVolumeSource other = (io.kubernetes.client.proto.V1.SecretVolumeSource) obj; boolean result = true; result = result && (hasSecretName() == other.hasSecretName()); if (hasSecretName()) { result = result && getSecretName().equals(other.getSecretName()); } result = result && getItemsList().equals(other.getItemsList()); result = result && (hasDefaultMode() == other.hasDefaultMode()); if (hasDefaultMode()) { result = result && (getDefaultMode() == other.getDefaultMode()); } result = result && (hasOptional() == other.hasOptional()); if (hasOptional()) { result = result && (getOptional() == other.getOptional()); } 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 (hasSecretName()) { hash = (37 * hash) + SECRETNAME_FIELD_NUMBER; hash = (53 * hash) + getSecretName().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } if (hasDefaultMode()) { hash = (37 * hash) + DEFAULTMODE_FIELD_NUMBER; hash = (53 * hash) + getDefaultMode(); } if (hasOptional()) { hash = (37 * hash) + OPTIONAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptional()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SecretVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretVolumeSource 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.V1.SecretVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretVolumeSource 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.V1.SecretVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecretVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecretVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretVolumeSource 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.V1.SecretVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretVolumeSource 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.V1.SecretVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecretVolumeSource 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.V1.SecretVolumeSource 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; } /** * * *
     * Adapts a Secret into a volume.
     * The contents of the target Secret's Data field will be presented in a volume
     * as files using the keys in the Data field as the file names.
     * Secret volumes support ownership management and SELinux relabeling.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecretVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecretVolumeSource) io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecretVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecretVolumeSource.class, io.kubernetes.client.proto.V1.SecretVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecretVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); secretName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.clear(); } defaultMode_ = 0; bitField0_ = (bitField0_ & ~0x00000004); optional_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecretVolumeSource build() { io.kubernetes.client.proto.V1.SecretVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecretVolumeSource buildPartial() { io.kubernetes.client.proto.V1.SecretVolumeSource result = new io.kubernetes.client.proto.V1.SecretVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.secretName_ = secretName_; if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000002); } result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.defaultMode_ = defaultMode_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.optional_ = optional_; 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.V1.SecretVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.SecretVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecretVolumeSource other) { if (other == io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance()) return this; if (other.hasSecretName()) { bitField0_ |= 0x00000001; secretName_ = other.secretName_; onChanged(); } 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_); } } } if (other.hasDefaultMode()) { setDefaultMode(other.getDefaultMode()); } if (other.hasOptional()) { setOptional(other.getOptional()); } 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.V1.SecretVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecretVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object secretName_ = ""; /** * * *
       * Name of the secret in the pod's namespace to use.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional string secretName = 1; */ public boolean hasSecretName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of the secret in the pod's namespace to use.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional string secretName = 1; */ public java.lang.String getSecretName() { java.lang.Object ref = secretName_; 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()) { secretName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of the secret in the pod's namespace to use.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional string secretName = 1; */ public com.google.protobuf.ByteString getSecretNameBytes() { java.lang.Object ref = secretName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of the secret in the pod's namespace to use.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional string secretName = 1; */ public Builder setSecretName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; secretName_ = value; onChanged(); return this; } /** * * *
       * Name of the secret in the pod's namespace to use.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional string secretName = 1; */ public Builder clearSecretName() { bitField0_ = (bitField0_ & ~0x00000001); secretName_ = getDefaultInstance().getSecretName(); onChanged(); return this; } /** * * *
       * Name of the secret in the pod's namespace to use.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional string secretName = 1; */ public Builder setSecretNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; secretName_ = value; onChanged(); return this; } 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.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> itemsBuilder_; /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.KeyToPath value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.KeyToPath.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath 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; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPathOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public io.kubernetes.client.proto.V1.KeyToPath.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.KeyToPath.getDefaultInstance()); } /** * * *
       * If unspecified, each key-value pair in the Data field of the referenced
       * Secret will be projected into the volume as a file whose name is the
       * key and content is the value. If specified, the listed keys will be
       * projected into the specified paths, and unlisted keys will not be
       * present. If a key is specified which is not present in the Secret,
       * the volume setup will error unless it is marked optional. Paths must be
       * relative and may not contain the '..' path or start with '..'.
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.KeyToPath items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.KeyToPath, io.kubernetes.client.proto.V1.KeyToPath.Builder, io.kubernetes.client.proto.V1.KeyToPathOrBuilder>( items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } private int defaultMode_; /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values
       * for mode bits. Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public boolean hasDefaultMode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values
       * for mode bits. Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public int getDefaultMode() { return defaultMode_; } /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values
       * for mode bits. Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public Builder setDefaultMode(int value) { bitField0_ |= 0x00000004; defaultMode_ = value; onChanged(); return this; } /** * * *
       * Optional: mode bits used to set permissions on created files by default.
       * Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
       * YAML accepts both octal and decimal values, JSON requires decimal values
       * for mode bits. Defaults to 0644.
       * Directories within the path are not affected by this setting.
       * This might be in conflict with other options that affect the file
       * mode, like fsGroup, and the result can be other mode bits set.
       * +optional
       * 
* * optional int32 defaultMode = 3; */ public Builder clearDefaultMode() { bitField0_ = (bitField0_ & ~0x00000004); defaultMode_ = 0; onChanged(); return this; } private boolean optional_; /** * * *
       * Specify whether the Secret or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean hasOptional() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Specify whether the Secret or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public boolean getOptional() { return optional_; } /** * * *
       * Specify whether the Secret or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder setOptional(boolean value) { bitField0_ |= 0x00000008; optional_ = value; onChanged(); return this; } /** * * *
       * Specify whether the Secret or its keys must be defined
       * +optional
       * 
* * optional bool optional = 4; */ public Builder clearOptional() { bitField0_ = (bitField0_ & ~0x00000008); optional_ = 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.core.v1.SecretVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecretVolumeSource) private static final io.kubernetes.client.proto.V1.SecretVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecretVolumeSource(); } public static io.kubernetes.client.proto.V1.SecretVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecretVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretVolumeSource(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.V1.SecretVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecurityContextOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SecurityContext) com.google.protobuf.MessageOrBuilder { /** * * *
     * The capabilities to add/drop when running containers.
     * Defaults to the default set of capabilities granted by the container runtime.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ boolean hasCapabilities(); /** * * *
     * The capabilities to add/drop when running containers.
     * Defaults to the default set of capabilities granted by the container runtime.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ io.kubernetes.client.proto.V1.Capabilities getCapabilities(); /** * * *
     * The capabilities to add/drop when running containers.
     * Defaults to the default set of capabilities granted by the container runtime.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ io.kubernetes.client.proto.V1.CapabilitiesOrBuilder getCapabilitiesOrBuilder(); /** * * *
     * Run container in privileged mode.
     * Processes in privileged containers are essentially equivalent to root on the host.
     * Defaults to false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool privileged = 2; */ boolean hasPrivileged(); /** * * *
     * Run container in privileged mode.
     * Processes in privileged containers are essentially equivalent to root on the host.
     * Defaults to false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool privileged = 2; */ boolean getPrivileged(); /** * * *
     * The SELinux context to be applied to the container.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ boolean hasSeLinuxOptions(); /** * * *
     * The SELinux context to be applied to the container.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions(); /** * * *
     * The SELinux context to be applied to the container.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder(); /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options from the PodSecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; */ boolean hasWindowsOptions(); /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options from the PodSecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; */ io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getWindowsOptions(); /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options from the PodSecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; */ io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder(); /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 4; */ boolean hasRunAsUser(); /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 4; */ long getRunAsUser(); /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 8; */ boolean hasRunAsGroup(); /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 8; */ long getRunAsGroup(); /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 5; */ boolean hasRunAsNonRoot(); /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 5; */ boolean getRunAsNonRoot(); /** * * *
     * Whether this container has a read-only root filesystem.
     * Default is false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 6; */ boolean hasReadOnlyRootFilesystem(); /** * * *
     * Whether this container has a read-only root filesystem.
     * Default is false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 6; */ boolean getReadOnlyRootFilesystem(); /** * * *
     * AllowPrivilegeEscalation controls whether a process can gain more
     * privileges than its parent process. This bool directly controls if
     * the no_new_privs flag will be set on the container process.
     * AllowPrivilegeEscalation is true always when the container is:
     * 1) run as Privileged
     * 2) has CAP_SYS_ADMIN
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 7; */ boolean hasAllowPrivilegeEscalation(); /** * * *
     * AllowPrivilegeEscalation controls whether a process can gain more
     * privileges than its parent process. This bool directly controls if
     * the no_new_privs flag will be set on the container process.
     * AllowPrivilegeEscalation is true always when the container is:
     * 1) run as Privileged
     * 2) has CAP_SYS_ADMIN
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 7; */ boolean getAllowPrivilegeEscalation(); /** * * *
     * procMount denotes the type of proc mount to use for the containers.
     * The default is DefaultProcMount which uses the container runtime defaults for
     * readonly paths and masked paths.
     * This requires the ProcMountType feature flag to be enabled.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string procMount = 9; */ boolean hasProcMount(); /** * * *
     * procMount denotes the type of proc mount to use for the containers.
     * The default is DefaultProcMount which uses the container runtime defaults for
     * readonly paths and masked paths.
     * This requires the ProcMountType feature flag to be enabled.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string procMount = 9; */ java.lang.String getProcMount(); /** * * *
     * procMount denotes the type of proc mount to use for the containers.
     * The default is DefaultProcMount which uses the container runtime defaults for
     * readonly paths and masked paths.
     * This requires the ProcMountType feature flag to be enabled.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string procMount = 9; */ com.google.protobuf.ByteString getProcMountBytes(); /** * * *
     * The seccomp options to use by this container. If seccomp options are
     * provided at both the pod & container level, the container options
     * override the pod options.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ boolean hasSeccompProfile(); /** * * *
     * The seccomp options to use by this container. If seccomp options are
     * provided at both the pod & container level, the container options
     * override the pod options.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ io.kubernetes.client.proto.V1.SeccompProfile getSeccompProfile(); /** * * *
     * The seccomp options to use by this container. If seccomp options are
     * provided at both the pod & container level, the container options
     * override the pod options.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ io.kubernetes.client.proto.V1.SeccompProfileOrBuilder getSeccompProfileOrBuilder(); } /** * * *
   * SecurityContext holds security configuration that will be applied to a container.
   * Some fields are present in both SecurityContext and PodSecurityContext.  When both
   * are set, the values in SecurityContext take precedence.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SecurityContext} */ public static final class SecurityContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SecurityContext) SecurityContextOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityContext.newBuilder() to construct. private SecurityContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityContext() { privileged_ = false; runAsUser_ = 0L; runAsGroup_ = 0L; runAsNonRoot_ = false; readOnlyRootFilesystem_ = false; allowPrivilegeEscalation_ = false; procMount_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecurityContext( 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.V1.Capabilities.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = capabilities_.toBuilder(); } capabilities_ = input.readMessage( io.kubernetes.client.proto.V1.Capabilities.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(capabilities_); capabilities_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; privileged_ = input.readBool(); break; } case 26: { io.kubernetes.client.proto.V1.SELinuxOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = seLinuxOptions_.toBuilder(); } seLinuxOptions_ = input.readMessage( io.kubernetes.client.proto.V1.SELinuxOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seLinuxOptions_); seLinuxOptions_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000010; runAsUser_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000040; runAsNonRoot_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000080; readOnlyRootFilesystem_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000100; allowPrivilegeEscalation_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000020; runAsGroup_ = input.readInt64(); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; procMount_ = bs; break; } case 82: { io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = windowsOptions_.toBuilder(); } windowsOptions_ = input.readMessage( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(windowsOptions_); windowsOptions_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 90: { io.kubernetes.client.proto.V1.SeccompProfile.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = seccompProfile_.toBuilder(); } seccompProfile_ = input.readMessage( io.kubernetes.client.proto.V1.SeccompProfile.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seccompProfile_); seccompProfile_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; 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 .V1 .internal_static_k8s_io_api_core_v1_SecurityContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecurityContext_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecurityContext.class, io.kubernetes.client.proto.V1.SecurityContext.Builder.class); } private int bitField0_; public static final int CAPABILITIES_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.Capabilities capabilities_; /** * * *
     * The capabilities to add/drop when running containers.
     * Defaults to the default set of capabilities granted by the container runtime.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public boolean hasCapabilities() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The capabilities to add/drop when running containers.
     * Defaults to the default set of capabilities granted by the container runtime.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public io.kubernetes.client.proto.V1.Capabilities getCapabilities() { return capabilities_ == null ? io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance() : capabilities_; } /** * * *
     * The capabilities to add/drop when running containers.
     * Defaults to the default set of capabilities granted by the container runtime.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public io.kubernetes.client.proto.V1.CapabilitiesOrBuilder getCapabilitiesOrBuilder() { return capabilities_ == null ? io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance() : capabilities_; } public static final int PRIVILEGED_FIELD_NUMBER = 2; private boolean privileged_; /** * * *
     * Run container in privileged mode.
     * Processes in privileged containers are essentially equivalent to root on the host.
     * Defaults to false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool privileged = 2; */ public boolean hasPrivileged() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Run container in privileged mode.
     * Processes in privileged containers are essentially equivalent to root on the host.
     * Defaults to false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool privileged = 2; */ public boolean getPrivileged() { return privileged_; } public static final int SELINUXOPTIONS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.SELinuxOptions seLinuxOptions_; /** * * *
     * The SELinux context to be applied to the container.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public boolean hasSeLinuxOptions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The SELinux context to be applied to the container.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions() { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } /** * * *
     * The SELinux context to be applied to the container.
     * If unspecified, the container runtime will allocate a random SELinux context for each
     * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder() { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } public static final int WINDOWSOPTIONS_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.WindowsSecurityContextOptions windowsOptions_; /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options from the PodSecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; */ public boolean hasWindowsOptions() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options from the PodSecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getWindowsOptions() { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } /** * * *
     * The Windows specific settings applied to all containers.
     * If unspecified, the options from the PodSecurityContext will be used.
     * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is linux.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder() { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } public static final int RUNASUSER_FIELD_NUMBER = 4; private long runAsUser_; /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 4; */ public boolean hasRunAsUser() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * The UID to run the entrypoint of the container process.
     * Defaults to user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsUser = 4; */ public long getRunAsUser() { return runAsUser_; } public static final int RUNASGROUP_FIELD_NUMBER = 8; private long runAsGroup_; /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 8; */ public boolean hasRunAsGroup() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * The GID to run the entrypoint of the container process.
     * Uses runtime default if unset.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional int64 runAsGroup = 8; */ public long getRunAsGroup() { return runAsGroup_; } public static final int RUNASNONROOT_FIELD_NUMBER = 5; private boolean runAsNonRoot_; /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 5; */ public boolean hasRunAsNonRoot() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * Indicates that the container must run as a non-root user.
     * If true, the Kubelet will validate the image at runtime to ensure that it
     * does not run as UID 0 (root) and fail to start the container if it does.
     * If unset or false, no such validation will be performed.
     * May also be set in PodSecurityContext.  If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional bool runAsNonRoot = 5; */ public boolean getRunAsNonRoot() { return runAsNonRoot_; } public static final int READONLYROOTFILESYSTEM_FIELD_NUMBER = 6; private boolean readOnlyRootFilesystem_; /** * * *
     * Whether this container has a read-only root filesystem.
     * Default is false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 6; */ public boolean hasReadOnlyRootFilesystem() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * Whether this container has a read-only root filesystem.
     * Default is false.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 6; */ public boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem_; } public static final int ALLOWPRIVILEGEESCALATION_FIELD_NUMBER = 7; private boolean allowPrivilegeEscalation_; /** * * *
     * AllowPrivilegeEscalation controls whether a process can gain more
     * privileges than its parent process. This bool directly controls if
     * the no_new_privs flag will be set on the container process.
     * AllowPrivilegeEscalation is true always when the container is:
     * 1) run as Privileged
     * 2) has CAP_SYS_ADMIN
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 7; */ public boolean hasAllowPrivilegeEscalation() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * AllowPrivilegeEscalation controls whether a process can gain more
     * privileges than its parent process. This bool directly controls if
     * the no_new_privs flag will be set on the container process.
     * AllowPrivilegeEscalation is true always when the container is:
     * 1) run as Privileged
     * 2) has CAP_SYS_ADMIN
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 7; */ public boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation_; } public static final int PROCMOUNT_FIELD_NUMBER = 9; private volatile java.lang.Object procMount_; /** * * *
     * procMount denotes the type of proc mount to use for the containers.
     * The default is DefaultProcMount which uses the container runtime defaults for
     * readonly paths and masked paths.
     * This requires the ProcMountType feature flag to be enabled.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string procMount = 9; */ public boolean hasProcMount() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * procMount denotes the type of proc mount to use for the containers.
     * The default is DefaultProcMount which uses the container runtime defaults for
     * readonly paths and masked paths.
     * This requires the ProcMountType feature flag to be enabled.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string procMount = 9; */ public java.lang.String getProcMount() { java.lang.Object ref = procMount_; 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()) { procMount_ = s; } return s; } } /** * * *
     * procMount denotes the type of proc mount to use for the containers.
     * The default is DefaultProcMount which uses the container runtime defaults for
     * readonly paths and masked paths.
     * This requires the ProcMountType feature flag to be enabled.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional string procMount = 9; */ public com.google.protobuf.ByteString getProcMountBytes() { java.lang.Object ref = procMount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); procMount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECCOMPPROFILE_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.SeccompProfile seccompProfile_; /** * * *
     * The seccomp options to use by this container. If seccomp options are
     * provided at both the pod & container level, the container options
     * override the pod options.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public boolean hasSeccompProfile() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * The seccomp options to use by this container. If seccomp options are
     * provided at both the pod & container level, the container options
     * override the pod options.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public io.kubernetes.client.proto.V1.SeccompProfile getSeccompProfile() { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } /** * * *
     * The seccomp options to use by this container. If seccomp options are
     * provided at both the pod & container level, the container options
     * override the pod options.
     * Note that this field cannot be set when spec.os.name is windows.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public io.kubernetes.client.proto.V1.SeccompProfileOrBuilder getSeccompProfileOrBuilder() { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } 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, getCapabilities()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, privileged_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getSeLinuxOptions()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(4, runAsUser_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(5, runAsNonRoot_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(6, readOnlyRootFilesystem_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(7, allowPrivilegeEscalation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(8, runAsGroup_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, procMount_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(10, getWindowsOptions()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(11, getSeccompProfile()); } 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, getCapabilities()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, privileged_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSeLinuxOptions()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, runAsUser_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, runAsNonRoot_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, readOnlyRootFilesystem_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, allowPrivilegeEscalation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, runAsGroup_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, procMount_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getWindowsOptions()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getSeccompProfile()); } 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.V1.SecurityContext)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SecurityContext other = (io.kubernetes.client.proto.V1.SecurityContext) obj; boolean result = true; result = result && (hasCapabilities() == other.hasCapabilities()); if (hasCapabilities()) { result = result && getCapabilities().equals(other.getCapabilities()); } result = result && (hasPrivileged() == other.hasPrivileged()); if (hasPrivileged()) { result = result && (getPrivileged() == other.getPrivileged()); } result = result && (hasSeLinuxOptions() == other.hasSeLinuxOptions()); if (hasSeLinuxOptions()) { result = result && getSeLinuxOptions().equals(other.getSeLinuxOptions()); } result = result && (hasWindowsOptions() == other.hasWindowsOptions()); if (hasWindowsOptions()) { result = result && getWindowsOptions().equals(other.getWindowsOptions()); } result = result && (hasRunAsUser() == other.hasRunAsUser()); if (hasRunAsUser()) { result = result && (getRunAsUser() == other.getRunAsUser()); } result = result && (hasRunAsGroup() == other.hasRunAsGroup()); if (hasRunAsGroup()) { result = result && (getRunAsGroup() == other.getRunAsGroup()); } result = result && (hasRunAsNonRoot() == other.hasRunAsNonRoot()); if (hasRunAsNonRoot()) { result = result && (getRunAsNonRoot() == other.getRunAsNonRoot()); } result = result && (hasReadOnlyRootFilesystem() == other.hasReadOnlyRootFilesystem()); if (hasReadOnlyRootFilesystem()) { result = result && (getReadOnlyRootFilesystem() == other.getReadOnlyRootFilesystem()); } result = result && (hasAllowPrivilegeEscalation() == other.hasAllowPrivilegeEscalation()); if (hasAllowPrivilegeEscalation()) { result = result && (getAllowPrivilegeEscalation() == other.getAllowPrivilegeEscalation()); } result = result && (hasProcMount() == other.hasProcMount()); if (hasProcMount()) { result = result && getProcMount().equals(other.getProcMount()); } result = result && (hasSeccompProfile() == other.hasSeccompProfile()); if (hasSeccompProfile()) { result = result && getSeccompProfile().equals(other.getSeccompProfile()); } 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 (hasCapabilities()) { hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getCapabilities().hashCode(); } if (hasPrivileged()) { hash = (37 * hash) + PRIVILEGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrivileged()); } if (hasSeLinuxOptions()) { hash = (37 * hash) + SELINUXOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getSeLinuxOptions().hashCode(); } if (hasWindowsOptions()) { hash = (37 * hash) + WINDOWSOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getWindowsOptions().hashCode(); } if (hasRunAsUser()) { hash = (37 * hash) + RUNASUSER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRunAsUser()); } if (hasRunAsGroup()) { hash = (37 * hash) + RUNASGROUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRunAsGroup()); } if (hasRunAsNonRoot()) { hash = (37 * hash) + RUNASNONROOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunAsNonRoot()); } if (hasReadOnlyRootFilesystem()) { hash = (37 * hash) + READONLYROOTFILESYSTEM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnlyRootFilesystem()); } if (hasAllowPrivilegeEscalation()) { hash = (37 * hash) + ALLOWPRIVILEGEESCALATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPrivilegeEscalation()); } if (hasProcMount()) { hash = (37 * hash) + PROCMOUNT_FIELD_NUMBER; hash = (53 * hash) + getProcMount().hashCode(); } if (hasSeccompProfile()) { hash = (37 * hash) + SECCOMPPROFILE_FIELD_NUMBER; hash = (53 * hash) + getSeccompProfile().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SecurityContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecurityContext 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.V1.SecurityContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecurityContext 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.V1.SecurityContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SecurityContext parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SecurityContext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecurityContext 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.V1.SecurityContext parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecurityContext 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.V1.SecurityContext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SecurityContext 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.V1.SecurityContext 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; } /** * * *
     * SecurityContext holds security configuration that will be applied to a container.
     * Some fields are present in both SecurityContext and PodSecurityContext.  When both
     * are set, the values in SecurityContext take precedence.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SecurityContext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SecurityContext) io.kubernetes.client.proto.V1.SecurityContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecurityContext_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SecurityContext_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SecurityContext.class, io.kubernetes.client.proto.V1.SecurityContext.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SecurityContext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCapabilitiesFieldBuilder(); getSeLinuxOptionsFieldBuilder(); getWindowsOptionsFieldBuilder(); getSeccompProfileFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (capabilitiesBuilder_ == null) { capabilities_ = null; } else { capabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); privileged_ = false; bitField0_ = (bitField0_ & ~0x00000002); if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = null; } else { seLinuxOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (windowsOptionsBuilder_ == null) { windowsOptions_ = null; } else { windowsOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); runAsUser_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); runAsGroup_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); runAsNonRoot_ = false; bitField0_ = (bitField0_ & ~0x00000040); readOnlyRootFilesystem_ = false; bitField0_ = (bitField0_ & ~0x00000080); allowPrivilegeEscalation_ = false; bitField0_ = (bitField0_ & ~0x00000100); procMount_ = ""; bitField0_ = (bitField0_ & ~0x00000200); if (seccompProfileBuilder_ == null) { seccompProfile_ = null; } else { seccompProfileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SecurityContext_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SecurityContext getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SecurityContext build() { io.kubernetes.client.proto.V1.SecurityContext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SecurityContext buildPartial() { io.kubernetes.client.proto.V1.SecurityContext result = new io.kubernetes.client.proto.V1.SecurityContext(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (capabilitiesBuilder_ == null) { result.capabilities_ = capabilities_; } else { result.capabilities_ = capabilitiesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.privileged_ = privileged_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (seLinuxOptionsBuilder_ == null) { result.seLinuxOptions_ = seLinuxOptions_; } else { result.seLinuxOptions_ = seLinuxOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (windowsOptionsBuilder_ == null) { result.windowsOptions_ = windowsOptions_; } else { result.windowsOptions_ = windowsOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.runAsUser_ = runAsUser_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.runAsGroup_ = runAsGroup_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.runAsNonRoot_ = runAsNonRoot_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.readOnlyRootFilesystem_ = readOnlyRootFilesystem_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.allowPrivilegeEscalation_ = allowPrivilegeEscalation_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.procMount_ = procMount_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (seccompProfileBuilder_ == null) { result.seccompProfile_ = seccompProfile_; } else { result.seccompProfile_ = seccompProfileBuilder_.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.V1.SecurityContext) { return mergeFrom((io.kubernetes.client.proto.V1.SecurityContext) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SecurityContext other) { if (other == io.kubernetes.client.proto.V1.SecurityContext.getDefaultInstance()) return this; if (other.hasCapabilities()) { mergeCapabilities(other.getCapabilities()); } if (other.hasPrivileged()) { setPrivileged(other.getPrivileged()); } if (other.hasSeLinuxOptions()) { mergeSeLinuxOptions(other.getSeLinuxOptions()); } if (other.hasWindowsOptions()) { mergeWindowsOptions(other.getWindowsOptions()); } if (other.hasRunAsUser()) { setRunAsUser(other.getRunAsUser()); } if (other.hasRunAsGroup()) { setRunAsGroup(other.getRunAsGroup()); } if (other.hasRunAsNonRoot()) { setRunAsNonRoot(other.getRunAsNonRoot()); } if (other.hasReadOnlyRootFilesystem()) { setReadOnlyRootFilesystem(other.getReadOnlyRootFilesystem()); } if (other.hasAllowPrivilegeEscalation()) { setAllowPrivilegeEscalation(other.getAllowPrivilegeEscalation()); } if (other.hasProcMount()) { bitField0_ |= 0x00000200; procMount_ = other.procMount_; onChanged(); } if (other.hasSeccompProfile()) { mergeSeccompProfile(other.getSeccompProfile()); } 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.V1.SecurityContext parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SecurityContext) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.Capabilities capabilities_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Capabilities, io.kubernetes.client.proto.V1.Capabilities.Builder, io.kubernetes.client.proto.V1.CapabilitiesOrBuilder> capabilitiesBuilder_; /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public boolean hasCapabilities() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public io.kubernetes.client.proto.V1.Capabilities getCapabilities() { if (capabilitiesBuilder_ == null) { return capabilities_ == null ? io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance() : capabilities_; } else { return capabilitiesBuilder_.getMessage(); } } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public Builder setCapabilities(io.kubernetes.client.proto.V1.Capabilities value) { if (capabilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } capabilities_ = value; onChanged(); } else { capabilitiesBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public Builder setCapabilities( io.kubernetes.client.proto.V1.Capabilities.Builder builderForValue) { if (capabilitiesBuilder_ == null) { capabilities_ = builderForValue.build(); onChanged(); } else { capabilitiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public Builder mergeCapabilities(io.kubernetes.client.proto.V1.Capabilities value) { if (capabilitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && capabilities_ != null && capabilities_ != io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance()) { capabilities_ = io.kubernetes.client.proto.V1.Capabilities.newBuilder(capabilities_) .mergeFrom(value) .buildPartial(); } else { capabilities_ = value; } onChanged(); } else { capabilitiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public Builder clearCapabilities() { if (capabilitiesBuilder_ == null) { capabilities_ = null; onChanged(); } else { capabilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public io.kubernetes.client.proto.V1.Capabilities.Builder getCapabilitiesBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCapabilitiesFieldBuilder().getBuilder(); } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ public io.kubernetes.client.proto.V1.CapabilitiesOrBuilder getCapabilitiesOrBuilder() { if (capabilitiesBuilder_ != null) { return capabilitiesBuilder_.getMessageOrBuilder(); } else { return capabilities_ == null ? io.kubernetes.client.proto.V1.Capabilities.getDefaultInstance() : capabilities_; } } /** * * *
       * The capabilities to add/drop when running containers.
       * Defaults to the default set of capabilities granted by the container runtime.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.Capabilities capabilities = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Capabilities, io.kubernetes.client.proto.V1.Capabilities.Builder, io.kubernetes.client.proto.V1.CapabilitiesOrBuilder> getCapabilitiesFieldBuilder() { if (capabilitiesBuilder_ == null) { capabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.Capabilities, io.kubernetes.client.proto.V1.Capabilities.Builder, io.kubernetes.client.proto.V1.CapabilitiesOrBuilder>( getCapabilities(), getParentForChildren(), isClean()); capabilities_ = null; } return capabilitiesBuilder_; } private boolean privileged_; /** * * *
       * Run container in privileged mode.
       * Processes in privileged containers are essentially equivalent to root on the host.
       * Defaults to false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool privileged = 2; */ public boolean hasPrivileged() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Run container in privileged mode.
       * Processes in privileged containers are essentially equivalent to root on the host.
       * Defaults to false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool privileged = 2; */ public boolean getPrivileged() { return privileged_; } /** * * *
       * Run container in privileged mode.
       * Processes in privileged containers are essentially equivalent to root on the host.
       * Defaults to false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool privileged = 2; */ public Builder setPrivileged(boolean value) { bitField0_ |= 0x00000002; privileged_ = value; onChanged(); return this; } /** * * *
       * Run container in privileged mode.
       * Processes in privileged containers are essentially equivalent to root on the host.
       * Defaults to false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool privileged = 2; */ public Builder clearPrivileged() { bitField0_ = (bitField0_ & ~0x00000002); privileged_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.SELinuxOptions seLinuxOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder> seLinuxOptionsBuilder_; /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public boolean hasSeLinuxOptions() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions() { if (seLinuxOptionsBuilder_ == null) { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } else { return seLinuxOptionsBuilder_.getMessage(); } } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public Builder setSeLinuxOptions(io.kubernetes.client.proto.V1.SELinuxOptions value) { if (seLinuxOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seLinuxOptions_ = value; onChanged(); } else { seLinuxOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public Builder setSeLinuxOptions( io.kubernetes.client.proto.V1.SELinuxOptions.Builder builderForValue) { if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = builderForValue.build(); onChanged(); } else { seLinuxOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public Builder mergeSeLinuxOptions(io.kubernetes.client.proto.V1.SELinuxOptions value) { if (seLinuxOptionsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && seLinuxOptions_ != null && seLinuxOptions_ != io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance()) { seLinuxOptions_ = io.kubernetes.client.proto.V1.SELinuxOptions.newBuilder(seLinuxOptions_) .mergeFrom(value) .buildPartial(); } else { seLinuxOptions_ = value; } onChanged(); } else { seLinuxOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public Builder clearSeLinuxOptions() { if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = null; onChanged(); } else { seLinuxOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public io.kubernetes.client.proto.V1.SELinuxOptions.Builder getSeLinuxOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSeLinuxOptionsFieldBuilder().getBuilder(); } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ public io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder() { if (seLinuxOptionsBuilder_ != null) { return seLinuxOptionsBuilder_.getMessageOrBuilder(); } else { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } } /** * * *
       * The SELinux context to be applied to the container.
       * If unspecified, the container runtime will allocate a random SELinux context for each
       * container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder> getSeLinuxOptionsFieldBuilder() { if (seLinuxOptionsBuilder_ == null) { seLinuxOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder>( getSeLinuxOptions(), getParentForChildren(), isClean()); seLinuxOptions_ = null; } return seLinuxOptionsBuilder_; } private io.kubernetes.client.proto.V1.WindowsSecurityContextOptions windowsOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.WindowsSecurityContextOptions, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder, io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder> windowsOptionsBuilder_; /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public boolean hasWindowsOptions() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getWindowsOptions() { if (windowsOptionsBuilder_ == null) { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } else { return windowsOptionsBuilder_.getMessage(); } } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public Builder setWindowsOptions( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions value) { if (windowsOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } windowsOptions_ = value; onChanged(); } else { windowsOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public Builder setWindowsOptions( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder builderForValue) { if (windowsOptionsBuilder_ == null) { windowsOptions_ = builderForValue.build(); onChanged(); } else { windowsOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public Builder mergeWindowsOptions( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions value) { if (windowsOptionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && windowsOptions_ != null && windowsOptions_ != io.kubernetes.client.proto.V1.WindowsSecurityContextOptions .getDefaultInstance()) { windowsOptions_ = io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.newBuilder( windowsOptions_) .mergeFrom(value) .buildPartial(); } else { windowsOptions_ = value; } onChanged(); } else { windowsOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public Builder clearWindowsOptions() { if (windowsOptionsBuilder_ == null) { windowsOptions_ = null; onChanged(); } else { windowsOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder getWindowsOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getWindowsOptionsFieldBuilder().getBuilder(); } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder getWindowsOptionsOrBuilder() { if (windowsOptionsBuilder_ != null) { return windowsOptionsBuilder_.getMessageOrBuilder(); } else { return windowsOptions_ == null ? io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance() : windowsOptions_; } } /** * * *
       * The Windows specific settings applied to all containers.
       * If unspecified, the options from the PodSecurityContext will be used.
       * If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is linux.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.WindowsSecurityContextOptions windowsOptions = 10; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.WindowsSecurityContextOptions, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder, io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder> getWindowsOptionsFieldBuilder() { if (windowsOptionsBuilder_ == null) { windowsOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.WindowsSecurityContextOptions, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder, io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder>( getWindowsOptions(), getParentForChildren(), isClean()); windowsOptions_ = null; } return windowsOptionsBuilder_; } private long runAsUser_; /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 4; */ public boolean hasRunAsUser() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 4; */ public long getRunAsUser() { return runAsUser_; } /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 4; */ public Builder setRunAsUser(long value) { bitField0_ |= 0x00000010; runAsUser_ = value; onChanged(); return this; } /** * * *
       * The UID to run the entrypoint of the container process.
       * Defaults to user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsUser = 4; */ public Builder clearRunAsUser() { bitField0_ = (bitField0_ & ~0x00000010); runAsUser_ = 0L; onChanged(); return this; } private long runAsGroup_; /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 8; */ public boolean hasRunAsGroup() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 8; */ public long getRunAsGroup() { return runAsGroup_; } /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 8; */ public Builder setRunAsGroup(long value) { bitField0_ |= 0x00000020; runAsGroup_ = value; onChanged(); return this; } /** * * *
       * The GID to run the entrypoint of the container process.
       * Uses runtime default if unset.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional int64 runAsGroup = 8; */ public Builder clearRunAsGroup() { bitField0_ = (bitField0_ & ~0x00000020); runAsGroup_ = 0L; onChanged(); return this; } private boolean runAsNonRoot_; /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 5; */ public boolean hasRunAsNonRoot() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 5; */ public boolean getRunAsNonRoot() { return runAsNonRoot_; } /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 5; */ public Builder setRunAsNonRoot(boolean value) { bitField0_ |= 0x00000040; runAsNonRoot_ = value; onChanged(); return this; } /** * * *
       * Indicates that the container must run as a non-root user.
       * If true, the Kubelet will validate the image at runtime to ensure that it
       * does not run as UID 0 (root) and fail to start the container if it does.
       * If unset or false, no such validation will be performed.
       * May also be set in PodSecurityContext.  If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional bool runAsNonRoot = 5; */ public Builder clearRunAsNonRoot() { bitField0_ = (bitField0_ & ~0x00000040); runAsNonRoot_ = false; onChanged(); return this; } private boolean readOnlyRootFilesystem_; /** * * *
       * Whether this container has a read-only root filesystem.
       * Default is false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 6; */ public boolean hasReadOnlyRootFilesystem() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * Whether this container has a read-only root filesystem.
       * Default is false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 6; */ public boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem_; } /** * * *
       * Whether this container has a read-only root filesystem.
       * Default is false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 6; */ public Builder setReadOnlyRootFilesystem(boolean value) { bitField0_ |= 0x00000080; readOnlyRootFilesystem_ = value; onChanged(); return this; } /** * * *
       * Whether this container has a read-only root filesystem.
       * Default is false.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 6; */ public Builder clearReadOnlyRootFilesystem() { bitField0_ = (bitField0_ & ~0x00000080); readOnlyRootFilesystem_ = false; onChanged(); return this; } private boolean allowPrivilegeEscalation_; /** * * *
       * AllowPrivilegeEscalation controls whether a process can gain more
       * privileges than its parent process. This bool directly controls if
       * the no_new_privs flag will be set on the container process.
       * AllowPrivilegeEscalation is true always when the container is:
       * 1) run as Privileged
       * 2) has CAP_SYS_ADMIN
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 7; */ public boolean hasAllowPrivilegeEscalation() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * AllowPrivilegeEscalation controls whether a process can gain more
       * privileges than its parent process. This bool directly controls if
       * the no_new_privs flag will be set on the container process.
       * AllowPrivilegeEscalation is true always when the container is:
       * 1) run as Privileged
       * 2) has CAP_SYS_ADMIN
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 7; */ public boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation_; } /** * * *
       * AllowPrivilegeEscalation controls whether a process can gain more
       * privileges than its parent process. This bool directly controls if
       * the no_new_privs flag will be set on the container process.
       * AllowPrivilegeEscalation is true always when the container is:
       * 1) run as Privileged
       * 2) has CAP_SYS_ADMIN
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 7; */ public Builder setAllowPrivilegeEscalation(boolean value) { bitField0_ |= 0x00000100; allowPrivilegeEscalation_ = value; onChanged(); return this; } /** * * *
       * AllowPrivilegeEscalation controls whether a process can gain more
       * privileges than its parent process. This bool directly controls if
       * the no_new_privs flag will be set on the container process.
       * AllowPrivilegeEscalation is true always when the container is:
       * 1) run as Privileged
       * 2) has CAP_SYS_ADMIN
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 7; */ public Builder clearAllowPrivilegeEscalation() { bitField0_ = (bitField0_ & ~0x00000100); allowPrivilegeEscalation_ = false; onChanged(); return this; } private java.lang.Object procMount_ = ""; /** * * *
       * procMount denotes the type of proc mount to use for the containers.
       * The default is DefaultProcMount which uses the container runtime defaults for
       * readonly paths and masked paths.
       * This requires the ProcMountType feature flag to be enabled.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string procMount = 9; */ public boolean hasProcMount() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * procMount denotes the type of proc mount to use for the containers.
       * The default is DefaultProcMount which uses the container runtime defaults for
       * readonly paths and masked paths.
       * This requires the ProcMountType feature flag to be enabled.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string procMount = 9; */ public java.lang.String getProcMount() { java.lang.Object ref = procMount_; 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()) { procMount_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * procMount denotes the type of proc mount to use for the containers.
       * The default is DefaultProcMount which uses the container runtime defaults for
       * readonly paths and masked paths.
       * This requires the ProcMountType feature flag to be enabled.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string procMount = 9; */ public com.google.protobuf.ByteString getProcMountBytes() { java.lang.Object ref = procMount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); procMount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * procMount denotes the type of proc mount to use for the containers.
       * The default is DefaultProcMount which uses the container runtime defaults for
       * readonly paths and masked paths.
       * This requires the ProcMountType feature flag to be enabled.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string procMount = 9; */ public Builder setProcMount(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; procMount_ = value; onChanged(); return this; } /** * * *
       * procMount denotes the type of proc mount to use for the containers.
       * The default is DefaultProcMount which uses the container runtime defaults for
       * readonly paths and masked paths.
       * This requires the ProcMountType feature flag to be enabled.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string procMount = 9; */ public Builder clearProcMount() { bitField0_ = (bitField0_ & ~0x00000200); procMount_ = getDefaultInstance().getProcMount(); onChanged(); return this; } /** * * *
       * procMount denotes the type of proc mount to use for the containers.
       * The default is DefaultProcMount which uses the container runtime defaults for
       * readonly paths and masked paths.
       * This requires the ProcMountType feature flag to be enabled.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional string procMount = 9; */ public Builder setProcMountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; procMount_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SeccompProfile seccompProfile_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SeccompProfile, io.kubernetes.client.proto.V1.SeccompProfile.Builder, io.kubernetes.client.proto.V1.SeccompProfileOrBuilder> seccompProfileBuilder_; /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public boolean hasSeccompProfile() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public io.kubernetes.client.proto.V1.SeccompProfile getSeccompProfile() { if (seccompProfileBuilder_ == null) { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } else { return seccompProfileBuilder_.getMessage(); } } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public Builder setSeccompProfile(io.kubernetes.client.proto.V1.SeccompProfile value) { if (seccompProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seccompProfile_ = value; onChanged(); } else { seccompProfileBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public Builder setSeccompProfile( io.kubernetes.client.proto.V1.SeccompProfile.Builder builderForValue) { if (seccompProfileBuilder_ == null) { seccompProfile_ = builderForValue.build(); onChanged(); } else { seccompProfileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public Builder mergeSeccompProfile(io.kubernetes.client.proto.V1.SeccompProfile value) { if (seccompProfileBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && seccompProfile_ != null && seccompProfile_ != io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance()) { seccompProfile_ = io.kubernetes.client.proto.V1.SeccompProfile.newBuilder(seccompProfile_) .mergeFrom(value) .buildPartial(); } else { seccompProfile_ = value; } onChanged(); } else { seccompProfileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public Builder clearSeccompProfile() { if (seccompProfileBuilder_ == null) { seccompProfile_ = null; onChanged(); } else { seccompProfileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public io.kubernetes.client.proto.V1.SeccompProfile.Builder getSeccompProfileBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSeccompProfileFieldBuilder().getBuilder(); } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ public io.kubernetes.client.proto.V1.SeccompProfileOrBuilder getSeccompProfileOrBuilder() { if (seccompProfileBuilder_ != null) { return seccompProfileBuilder_.getMessageOrBuilder(); } else { return seccompProfile_ == null ? io.kubernetes.client.proto.V1.SeccompProfile.getDefaultInstance() : seccompProfile_; } } /** * * *
       * The seccomp options to use by this container. If seccomp options are
       * provided at both the pod & container level, the container options
       * override the pod options.
       * Note that this field cannot be set when spec.os.name is windows.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SeccompProfile seccompProfile = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SeccompProfile, io.kubernetes.client.proto.V1.SeccompProfile.Builder, io.kubernetes.client.proto.V1.SeccompProfileOrBuilder> getSeccompProfileFieldBuilder() { if (seccompProfileBuilder_ == null) { seccompProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SeccompProfile, io.kubernetes.client.proto.V1.SeccompProfile.Builder, io.kubernetes.client.proto.V1.SeccompProfileOrBuilder>( getSeccompProfile(), getParentForChildren(), isClean()); seccompProfile_ = null; } return seccompProfileBuilder_; } @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.core.v1.SecurityContext) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SecurityContext) private static final io.kubernetes.client.proto.V1.SecurityContext DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SecurityContext(); } public static io.kubernetes.client.proto.V1.SecurityContext getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityContext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecurityContext(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.V1.SecurityContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SerializedReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SerializedReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * The reference to an object in the system.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ boolean hasReference(); /** * * *
     * The reference to an object in the system.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ io.kubernetes.client.proto.V1.ObjectReference getReference(); /** * * *
     * The reference to an object in the system.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getReferenceOrBuilder(); } /** * * *
   * SerializedReference is a reference to serialized object.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SerializedReference} */ public static final class SerializedReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SerializedReference) SerializedReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use SerializedReference.newBuilder() to construct. private SerializedReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SerializedReference() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SerializedReference( 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.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = reference_.toBuilder(); } reference_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reference_); reference_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SerializedReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SerializedReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SerializedReference.class, io.kubernetes.client.proto.V1.SerializedReference.Builder.class); } private int bitField0_; public static final int REFERENCE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ObjectReference reference_; /** * * *
     * The reference to an object in the system.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public boolean hasReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The reference to an object in the system.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public io.kubernetes.client.proto.V1.ObjectReference getReference() { return reference_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : reference_; } /** * * *
     * The reference to an object in the system.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getReferenceOrBuilder() { return reference_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : reference_; } 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, getReference()); } 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, getReference()); } 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.V1.SerializedReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SerializedReference other = (io.kubernetes.client.proto.V1.SerializedReference) obj; boolean result = true; result = result && (hasReference() == other.hasReference()); if (hasReference()) { result = result && getReference().equals(other.getReference()); } 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 (hasReference()) { hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SerializedReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SerializedReference 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.V1.SerializedReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SerializedReference 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.V1.SerializedReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SerializedReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SerializedReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SerializedReference 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.V1.SerializedReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SerializedReference 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.V1.SerializedReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SerializedReference 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.V1.SerializedReference 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; } /** * * *
     * SerializedReference is a reference to serialized object.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SerializedReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SerializedReference) io.kubernetes.client.proto.V1.SerializedReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SerializedReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SerializedReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SerializedReference.class, io.kubernetes.client.proto.V1.SerializedReference.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SerializedReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReferenceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (referenceBuilder_ == null) { reference_ = null; } else { referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SerializedReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SerializedReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SerializedReference.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SerializedReference build() { io.kubernetes.client.proto.V1.SerializedReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SerializedReference buildPartial() { io.kubernetes.client.proto.V1.SerializedReference result = new io.kubernetes.client.proto.V1.SerializedReference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (referenceBuilder_ == null) { result.reference_ = reference_; } else { result.reference_ = referenceBuilder_.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.V1.SerializedReference) { return mergeFrom((io.kubernetes.client.proto.V1.SerializedReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SerializedReference other) { if (other == io.kubernetes.client.proto.V1.SerializedReference.getDefaultInstance()) return this; if (other.hasReference()) { mergeReference(other.getReference()); } 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.V1.SerializedReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SerializedReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ObjectReference reference_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> referenceBuilder_; /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public boolean hasReference() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public io.kubernetes.client.proto.V1.ObjectReference getReference() { if (referenceBuilder_ == null) { return reference_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : reference_; } else { return referenceBuilder_.getMessage(); } } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public Builder setReference(io.kubernetes.client.proto.V1.ObjectReference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reference_ = value; onChanged(); } else { referenceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public Builder setReference( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (referenceBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); } else { referenceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public Builder mergeReference(io.kubernetes.client.proto.V1.ObjectReference value) { if (referenceBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && reference_ != null && reference_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { reference_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(reference_) .mergeFrom(value) .buildPartial(); } else { reference_ = value; } onChanged(); } else { referenceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public Builder clearReference() { if (referenceBuilder_ == null) { reference_ = null; onChanged(); } else { referenceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getReferenceFieldBuilder().getBuilder(); } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getReferenceOrBuilder() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { return reference_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : reference_; } } /** * * *
       * The reference to an object in the system.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference reference = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getReference(), getParentForChildren(), isClean()); reference_ = null; } return referenceBuilder_; } @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.core.v1.SerializedReference) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SerializedReference) private static final io.kubernetes.client.proto.V1.SerializedReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SerializedReference(); } public static io.kubernetes.client.proto.V1.SerializedReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SerializedReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SerializedReference(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.V1.SerializedReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Service) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Spec defines the behavior of a service.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Spec defines the behavior of a service.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ io.kubernetes.client.proto.V1.ServiceSpec getSpec(); /** * * *
     * Spec defines the behavior of a service.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ io.kubernetes.client.proto.V1.ServiceSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Most recently observed status of the service.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ boolean hasStatus(); /** * * *
     * Most recently observed status of the service.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ io.kubernetes.client.proto.V1.ServiceStatus getStatus(); /** * * *
     * Most recently observed status of the service.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ io.kubernetes.client.proto.V1.ServiceStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * Service is a named abstraction of software service (for example, mysql) consisting of local port
   * (for example 3306) that the proxy listens on, and the selector that determines which pods
   * will answer requests sent through the proxy.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Service} */ public static final class Service extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Service) ServiceOrBuilder { private static final long serialVersionUID = 0L; // Use Service.newBuilder() to construct. private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Service() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Service( 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.V1.ServiceSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1.ServiceSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ServiceStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1.ServiceStatus.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.V1.internal_static_k8s_io_api_core_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Service.class, io.kubernetes.client.proto.V1.Service.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.ServiceSpec spec_; /** * * *
     * Spec defines the behavior of a service.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Spec defines the behavior of a service.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public io.kubernetes.client.proto.V1.ServiceSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance() : spec_; } /** * * *
     * Spec defines the behavior of a service.
     * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public io.kubernetes.client.proto.V1.ServiceSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ServiceStatus status_; /** * * *
     * Most recently observed status of the service.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Most recently observed status of the service.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public io.kubernetes.client.proto.V1.ServiceStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1.ServiceStatus.getDefaultInstance() : status_; } /** * * *
     * Most recently observed status of the service.
     * Populated by the system.
     * Read-only.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public io.kubernetes.client.proto.V1.ServiceStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1.ServiceStatus.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.V1.Service)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Service other = (io.kubernetes.client.proto.V1.Service) 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.V1.Service parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Service 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.V1.Service parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Service 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.V1.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Service parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Service parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Service 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.V1.Service parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Service 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.V1.Service parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Service 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.V1.Service 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; } /** * * *
     * Service is a named abstraction of software service (for example, mysql) consisting of local port
     * (for example 3306) that the proxy listens on, and the selector that determines which pods
     * will answer requests sent through the proxy.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Service} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Service) io.kubernetes.client.proto.V1.ServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Service.class, io.kubernetes.client.proto.V1.Service.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Service.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.V1.internal_static_k8s_io_api_core_v1_Service_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Service getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Service.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Service build() { io.kubernetes.client.proto.V1.Service result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Service buildPartial() { io.kubernetes.client.proto.V1.Service result = new io.kubernetes.client.proto.V1.Service(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.V1.Service) { return mergeFrom((io.kubernetes.client.proto.V1.Service) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Service other) { if (other == io.kubernetes.client.proto.V1.Service.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.V1.Service parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Service) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object's metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private io.kubernetes.client.proto.V1.ServiceSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceSpec, io.kubernetes.client.proto.V1.ServiceSpec.Builder, io.kubernetes.client.proto.V1.ServiceSpecOrBuilder> specBuilder_; /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public io.kubernetes.client.proto.V1.ServiceSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.ServiceSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1.ServiceSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public Builder mergeSpec(io.kubernetes.client.proto.V1.ServiceSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1.ServiceSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public io.kubernetes.client.proto.V1.ServiceSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ public io.kubernetes.client.proto.V1.ServiceSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance() : spec_; } } /** * * *
       * Spec defines the behavior of a service.
       * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceSpec, io.kubernetes.client.proto.V1.ServiceSpec.Builder, io.kubernetes.client.proto.V1.ServiceSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceSpec, io.kubernetes.client.proto.V1.ServiceSpec.Builder, io.kubernetes.client.proto.V1.ServiceSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1.ServiceStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceStatus, io.kubernetes.client.proto.V1.ServiceStatus.Builder, io.kubernetes.client.proto.V1.ServiceStatusOrBuilder> statusBuilder_; /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public io.kubernetes.client.proto.V1.ServiceStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1.ServiceStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public Builder setStatus(io.kubernetes.client.proto.V1.ServiceStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1.ServiceStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public Builder mergeStatus(io.kubernetes.client.proto.V1.ServiceStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1.ServiceStatus.getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1.ServiceStatus.newBuilder(status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public io.kubernetes.client.proto.V1.ServiceStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ public io.kubernetes.client.proto.V1.ServiceStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1.ServiceStatus.getDefaultInstance() : status_; } } /** * * *
       * Most recently observed status of the service.
       * Populated by the system.
       * Read-only.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceStatus, io.kubernetes.client.proto.V1.ServiceStatus.Builder, io.kubernetes.client.proto.V1.ServiceStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceStatus, io.kubernetes.client.proto.V1.ServiceStatus.Builder, io.kubernetes.client.proto.V1.ServiceStatusOrBuilder>( 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.core.v1.Service) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Service) private static final io.kubernetes.client.proto.V1.Service DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Service(); } public static io.kubernetes.client.proto.V1.Service getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Service parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Service(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.V1.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceAccount) 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(); /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ java.util.List getSecretsList(); /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ io.kubernetes.client.proto.V1.ObjectReference getSecrets(int index); /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ int getSecretsCount(); /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ java.util.List getSecretsOrBuilderList(); /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getSecretsOrBuilder(int index); /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ java.util.List getImagePullSecretsList(); /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ io.kubernetes.client.proto.V1.LocalObjectReference getImagePullSecrets(int index); /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ int getImagePullSecretsCount(); /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ java.util.List getImagePullSecretsOrBuilderList(); /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder( int index); /** * * *
     * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
     * Can be overridden at the pod level.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 4; */ boolean hasAutomountServiceAccountToken(); /** * * *
     * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
     * Can be overridden at the pod level.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 4; */ boolean getAutomountServiceAccountToken(); } /** * * *
   * ServiceAccount binds together:
   * * a name, understood by users, and perhaps by peripheral systems, for an identity
   * * a principal that can be authenticated and authorized
   * * a set of secrets
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceAccount} */ public static final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceAccount) ServiceAccountOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceAccount.newBuilder() to construct. private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceAccount() { secrets_ = java.util.Collections.emptyList(); imagePullSecrets_ = java.util.Collections.emptyList(); automountServiceAccountToken_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceAccount( 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: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { secrets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } secrets_.add( input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { imagePullSecrets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } imagePullSecrets_.add( input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry)); break; } case 32: { bitField0_ |= 0x00000002; automountServiceAccountToken_ = 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_ & 0x00000002) == 0x00000002)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { imagePullSecrets_ = java.util.Collections.unmodifiableList(imagePullSecrets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceAccount.class, io.kubernetes.client.proto.V1.ServiceAccount.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 SECRETS_FIELD_NUMBER = 2; private java.util.List secrets_; /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public java.util.List getSecretsList() { return secrets_; } /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public java.util.List getSecretsOrBuilderList() { return secrets_; } /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public int getSecretsCount() { return secrets_.size(); } /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getSecrets(int index) { return secrets_.get(index); } /** * * *
     * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
     * More info: https://kubernetes.io/docs/concepts/configuration/secret
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getSecretsOrBuilder(int index) { return secrets_.get(index); } public static final int IMAGEPULLSECRETS_FIELD_NUMBER = 3; private java.util.List imagePullSecrets_; /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public java.util.List getImagePullSecretsList() { return imagePullSecrets_; } /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public java.util.List getImagePullSecretsOrBuilderList() { return imagePullSecrets_; } /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public int getImagePullSecretsCount() { return imagePullSecrets_.size(); } /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference getImagePullSecrets(int index) { return imagePullSecrets_.get(index); } /** * * *
     * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
     * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
     * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
     * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
     * +optional
     * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder( int index) { return imagePullSecrets_.get(index); } public static final int AUTOMOUNTSERVICEACCOUNTTOKEN_FIELD_NUMBER = 4; private boolean automountServiceAccountToken_; /** * * *
     * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
     * Can be overridden at the pod level.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 4; */ public boolean hasAutomountServiceAccountToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
     * Can be overridden at the pod level.
     * +optional
     * 
* * optional bool automountServiceAccountToken = 4; */ public boolean getAutomountServiceAccountToken() { return automountServiceAccountToken_; } 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 < secrets_.size(); i++) { output.writeMessage(2, secrets_.get(i)); } for (int i = 0; i < imagePullSecrets_.size(); i++) { output.writeMessage(3, imagePullSecrets_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(4, automountServiceAccountToken_); } 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 < secrets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, secrets_.get(i)); } for (int i = 0; i < imagePullSecrets_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, imagePullSecrets_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, automountServiceAccountToken_); } 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.V1.ServiceAccount)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceAccount other = (io.kubernetes.client.proto.V1.ServiceAccount) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getSecretsList().equals(other.getSecretsList()); result = result && getImagePullSecretsList().equals(other.getImagePullSecretsList()); result = result && (hasAutomountServiceAccountToken() == other.hasAutomountServiceAccountToken()); if (hasAutomountServiceAccountToken()) { result = result && (getAutomountServiceAccountToken() == other.getAutomountServiceAccountToken()); } 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 (getSecretsCount() > 0) { hash = (37 * hash) + SECRETS_FIELD_NUMBER; hash = (53 * hash) + getSecretsList().hashCode(); } if (getImagePullSecretsCount() > 0) { hash = (37 * hash) + IMAGEPULLSECRETS_FIELD_NUMBER; hash = (53 * hash) + getImagePullSecretsList().hashCode(); } if (hasAutomountServiceAccountToken()) { hash = (37 * hash) + AUTOMOUNTSERVICEACCOUNTTOKEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutomountServiceAccountToken()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ServiceAccount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccount 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.V1.ServiceAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccount 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.V1.ServiceAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccount parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceAccount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccount 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.V1.ServiceAccount parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccount 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.V1.ServiceAccount parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccount 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.V1.ServiceAccount 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; } /** * * *
     * ServiceAccount binds together:
     * * a name, understood by users, and perhaps by peripheral systems, for an identity
     * * a principal that can be authenticated and authorized
     * * a set of secrets
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceAccount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceAccount) io.kubernetes.client.proto.V1.ServiceAccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceAccount.class, io.kubernetes.client.proto.V1.ServiceAccount.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceAccount.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(); getSecretsFieldBuilder(); getImagePullSecretsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (secretsBuilder_ == null) { secrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { secretsBuilder_.clear(); } if (imagePullSecretsBuilder_ == null) { imagePullSecrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { imagePullSecretsBuilder_.clear(); } automountServiceAccountToken_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccount getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceAccount.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccount build() { io.kubernetes.client.proto.V1.ServiceAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccount buildPartial() { io.kubernetes.client.proto.V1.ServiceAccount result = new io.kubernetes.client.proto.V1.ServiceAccount(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 (secretsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); bitField0_ = (bitField0_ & ~0x00000002); } result.secrets_ = secrets_; } else { result.secrets_ = secretsBuilder_.build(); } if (imagePullSecretsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { imagePullSecrets_ = java.util.Collections.unmodifiableList(imagePullSecrets_); bitField0_ = (bitField0_ & ~0x00000004); } result.imagePullSecrets_ = imagePullSecrets_; } else { result.imagePullSecrets_ = imagePullSecretsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.automountServiceAccountToken_ = automountServiceAccountToken_; 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.V1.ServiceAccount) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceAccount) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceAccount other) { if (other == io.kubernetes.client.proto.V1.ServiceAccount.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (secretsBuilder_ == null) { if (!other.secrets_.isEmpty()) { if (secrets_.isEmpty()) { secrets_ = other.secrets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSecretsIsMutable(); secrets_.addAll(other.secrets_); } onChanged(); } } else { if (!other.secrets_.isEmpty()) { if (secretsBuilder_.isEmpty()) { secretsBuilder_.dispose(); secretsBuilder_ = null; secrets_ = other.secrets_; bitField0_ = (bitField0_ & ~0x00000002); secretsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecretsFieldBuilder() : null; } else { secretsBuilder_.addAllMessages(other.secrets_); } } } if (imagePullSecretsBuilder_ == null) { if (!other.imagePullSecrets_.isEmpty()) { if (imagePullSecrets_.isEmpty()) { imagePullSecrets_ = other.imagePullSecrets_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureImagePullSecretsIsMutable(); imagePullSecrets_.addAll(other.imagePullSecrets_); } onChanged(); } } else { if (!other.imagePullSecrets_.isEmpty()) { if (imagePullSecretsBuilder_.isEmpty()) { imagePullSecretsBuilder_.dispose(); imagePullSecretsBuilder_ = null; imagePullSecrets_ = other.imagePullSecrets_; bitField0_ = (bitField0_ & ~0x00000004); imagePullSecretsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImagePullSecretsFieldBuilder() : null; } else { imagePullSecretsBuilder_.addAllMessages(other.imagePullSecrets_); } } } if (other.hasAutomountServiceAccountToken()) { setAutomountServiceAccountToken(other.getAutomountServiceAccountToken()); } 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.V1.ServiceAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceAccount) 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.util.List secrets_ = java.util.Collections.emptyList(); private void ensureSecretsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { secrets_ = new java.util.ArrayList(secrets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> secretsBuilder_; /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public java.util.List getSecretsList() { if (secretsBuilder_ == null) { return java.util.Collections.unmodifiableList(secrets_); } else { return secretsBuilder_.getMessageList(); } } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public int getSecretsCount() { if (secretsBuilder_ == null) { return secrets_.size(); } else { return secretsBuilder_.getCount(); } } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReference getSecrets(int index) { if (secretsBuilder_ == null) { return secrets_.get(index); } else { return secretsBuilder_.getMessage(index); } } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder setSecrets(int index, io.kubernetes.client.proto.V1.ObjectReference value) { if (secretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretsIsMutable(); secrets_.set(index, value); onChanged(); } else { secretsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder setSecrets( int index, io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.set(index, builderForValue.build()); onChanged(); } else { secretsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder addSecrets(io.kubernetes.client.proto.V1.ObjectReference value) { if (secretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretsIsMutable(); secrets_.add(value); onChanged(); } else { secretsBuilder_.addMessage(value); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder addSecrets(int index, io.kubernetes.client.proto.V1.ObjectReference value) { if (secretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretsIsMutable(); secrets_.add(index, value); onChanged(); } else { secretsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder addSecrets( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.add(builderForValue.build()); onChanged(); } else { secretsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder addSecrets( int index, io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.add(index, builderForValue.build()); onChanged(); } else { secretsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder addAllSecrets( java.lang.Iterable values) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secrets_); onChanged(); } else { secretsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder clearSecrets() { if (secretsBuilder_ == null) { secrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { secretsBuilder_.clear(); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public Builder removeSecrets(int index) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.remove(index); onChanged(); } else { secretsBuilder_.remove(index); } return this; } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getSecretsBuilder(int index) { return getSecretsFieldBuilder().getBuilder(index); } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getSecretsOrBuilder(int index) { if (secretsBuilder_ == null) { return secrets_.get(index); } else { return secretsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public java.util.List getSecretsOrBuilderList() { if (secretsBuilder_ != null) { return secretsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(secrets_); } } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder addSecretsBuilder() { return getSecretsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()); } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder addSecretsBuilder(int index) { return getSecretsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()); } /** * * *
       * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount.
       * More info: https://kubernetes.io/docs/concepts/configuration/secret
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.core.v1.ObjectReference secrets = 2; */ public java.util.List getSecretsBuilderList() { return getSecretsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getSecretsFieldBuilder() { if (secretsBuilder_ == null) { secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( secrets_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); secrets_ = null; } return secretsBuilder_; } private java.util.List imagePullSecrets_ = java.util.Collections.emptyList(); private void ensureImagePullSecretsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { imagePullSecrets_ = new java.util.ArrayList( imagePullSecrets_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> imagePullSecretsBuilder_; /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public java.util.List getImagePullSecretsList() { if (imagePullSecretsBuilder_ == null) { return java.util.Collections.unmodifiableList(imagePullSecrets_); } else { return imagePullSecretsBuilder_.getMessageList(); } } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public int getImagePullSecretsCount() { if (imagePullSecretsBuilder_ == null) { return imagePullSecrets_.size(); } else { return imagePullSecretsBuilder_.getCount(); } } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference getImagePullSecrets(int index) { if (imagePullSecretsBuilder_ == null) { return imagePullSecrets_.get(index); } else { return imagePullSecretsBuilder_.getMessage(index); } } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder setImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference value) { if (imagePullSecretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagePullSecretsIsMutable(); imagePullSecrets_.set(index, value); onChanged(); } else { imagePullSecretsBuilder_.setMessage(index, value); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder setImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.set(index, builderForValue.build()); onChanged(); } else { imagePullSecretsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder addImagePullSecrets(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (imagePullSecretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(value); onChanged(); } else { imagePullSecretsBuilder_.addMessage(value); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder addImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference value) { if (imagePullSecretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(index, value); onChanged(); } else { imagePullSecretsBuilder_.addMessage(index, value); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder addImagePullSecrets( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(builderForValue.build()); onChanged(); } else { imagePullSecretsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder addImagePullSecrets( int index, io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.add(index, builderForValue.build()); onChanged(); } else { imagePullSecretsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder addAllImagePullSecrets( java.lang.Iterable values) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, imagePullSecrets_); onChanged(); } else { imagePullSecretsBuilder_.addAllMessages(values); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder clearImagePullSecrets() { if (imagePullSecretsBuilder_ == null) { imagePullSecrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { imagePullSecretsBuilder_.clear(); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public Builder removeImagePullSecrets(int index) { if (imagePullSecretsBuilder_ == null) { ensureImagePullSecretsIsMutable(); imagePullSecrets_.remove(index); onChanged(); } else { imagePullSecretsBuilder_.remove(index); } return this; } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getImagePullSecretsBuilder( int index) { return getImagePullSecretsFieldBuilder().getBuilder(index); } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsOrBuilder(int index) { if (imagePullSecretsBuilder_ == null) { return imagePullSecrets_.get(index); } else { return imagePullSecretsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public java.util.List getImagePullSecretsOrBuilderList() { if (imagePullSecretsBuilder_ != null) { return imagePullSecretsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(imagePullSecrets_); } } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder addImagePullSecretsBuilder() { return getImagePullSecretsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()); } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder addImagePullSecretsBuilder( int index) { return getImagePullSecretsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()); } /** * * *
       * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
       * in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
       * can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
       * More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
       * +optional
       * 
* * repeated .k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 3; */ public java.util.List getImagePullSecretsBuilderList() { return getImagePullSecretsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getImagePullSecretsFieldBuilder() { if (imagePullSecretsBuilder_ == null) { imagePullSecretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( imagePullSecrets_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); imagePullSecrets_ = null; } return imagePullSecretsBuilder_; } private boolean automountServiceAccountToken_; /** * * *
       * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
       * Can be overridden at the pod level.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 4; */ public boolean hasAutomountServiceAccountToken() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
       * Can be overridden at the pod level.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 4; */ public boolean getAutomountServiceAccountToken() { return automountServiceAccountToken_; } /** * * *
       * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
       * Can be overridden at the pod level.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 4; */ public Builder setAutomountServiceAccountToken(boolean value) { bitField0_ |= 0x00000008; automountServiceAccountToken_ = value; onChanged(); return this; } /** * * *
       * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
       * Can be overridden at the pod level.
       * +optional
       * 
* * optional bool automountServiceAccountToken = 4; */ public Builder clearAutomountServiceAccountToken() { bitField0_ = (bitField0_ & ~0x00000008); automountServiceAccountToken_ = 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.core.v1.ServiceAccount) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceAccount) private static final io.kubernetes.client.proto.V1.ServiceAccount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceAccount(); } public static io.kubernetes.client.proto.V1.ServiceAccount getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceAccount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceAccount(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.V1.ServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceAccountListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceAccountList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ java.util.List getItemsList(); /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ io.kubernetes.client.proto.V1.ServiceAccount getItems(int index); /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ int getItemsCount(); /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ io.kubernetes.client.proto.V1.ServiceAccountOrBuilder getItemsOrBuilder(int index); } /** * * *
   * ServiceAccountList is a list of ServiceAccount objects
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceAccountList} */ public static final class ServiceAccountList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceAccountList) ServiceAccountListOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceAccountList.newBuilder() to construct. private ServiceAccountList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceAccountList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceAccountList( 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.V1.ServiceAccount.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 .V1 .internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceAccountList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceAccountList.class, io.kubernetes.client.proto.V1.ServiceAccountList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccount getItems(int index) { return items_.get(index); } /** * * *
     * List of ServiceAccounts.
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
     * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccountOrBuilder 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.V1.ServiceAccountList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceAccountList other = (io.kubernetes.client.proto.V1.ServiceAccountList) 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.V1.ServiceAccountList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccountList 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.V1.ServiceAccountList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccountList 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.V1.ServiceAccountList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccountList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceAccountList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccountList 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.V1.ServiceAccountList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccountList 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.V1.ServiceAccountList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccountList 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.V1.ServiceAccountList 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; } /** * * *
     * ServiceAccountList is a list of ServiceAccount objects
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceAccountList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceAccountList) io.kubernetes.client.proto.V1.ServiceAccountListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceAccountList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceAccountList.class, io.kubernetes.client.proto.V1.ServiceAccountList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceAccountList.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 .V1 .internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccountList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceAccountList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccountList build() { io.kubernetes.client.proto.V1.ServiceAccountList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccountList buildPartial() { io.kubernetes.client.proto.V1.ServiceAccountList result = new io.kubernetes.client.proto.V1.ServiceAccountList(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.V1.ServiceAccountList) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceAccountList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceAccountList other) { if (other == io.kubernetes.client.proto.V1.ServiceAccountList.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.V1.ServiceAccountList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceAccountList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.ServiceAccount, io.kubernetes.client.proto.V1.ServiceAccount.Builder, io.kubernetes.client.proto.V1.ServiceAccountOrBuilder> itemsBuilder_; /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccount getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.ServiceAccount value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.ServiceAccount.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.ServiceAccount value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.ServiceAccount value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1.ServiceAccount.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.ServiceAccount.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount 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; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccount.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccountOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccount.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ServiceAccount.getDefaultInstance()); } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public io.kubernetes.client.proto.V1.ServiceAccount.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ServiceAccount.getDefaultInstance()); } /** * * *
       * List of ServiceAccounts.
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
       * 
* * repeated .k8s.io.api.core.v1.ServiceAccount items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceAccount, io.kubernetes.client.proto.V1.ServiceAccount.Builder, io.kubernetes.client.proto.V1.ServiceAccountOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceAccount, io.kubernetes.client.proto.V1.ServiceAccount.Builder, io.kubernetes.client.proto.V1.ServiceAccountOrBuilder>( 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.core.v1.ServiceAccountList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceAccountList) private static final io.kubernetes.client.proto.V1.ServiceAccountList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceAccountList(); } public static io.kubernetes.client.proto.V1.ServiceAccountList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceAccountList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceAccountList(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.V1.ServiceAccountList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceAccountTokenProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceAccountTokenProjection) com.google.protobuf.MessageOrBuilder { /** * * *
     * Audience is the intended audience of the token. A recipient of a token
     * must identify itself with an identifier specified in the audience of the
     * token, and otherwise should reject the token. The audience defaults to the
     * identifier of the apiserver.
     * +optional
     * 
* * optional string audience = 1; */ boolean hasAudience(); /** * * *
     * Audience is the intended audience of the token. A recipient of a token
     * must identify itself with an identifier specified in the audience of the
     * token, and otherwise should reject the token. The audience defaults to the
     * identifier of the apiserver.
     * +optional
     * 
* * optional string audience = 1; */ java.lang.String getAudience(); /** * * *
     * Audience is the intended audience of the token. A recipient of a token
     * must identify itself with an identifier specified in the audience of the
     * token, and otherwise should reject the token. The audience defaults to the
     * identifier of the apiserver.
     * +optional
     * 
* * optional string audience = 1; */ com.google.protobuf.ByteString getAudienceBytes(); /** * * *
     * ExpirationSeconds is the requested duration of validity of the service
     * account token. As the token approaches expiration, the kubelet volume
     * plugin will proactively rotate the service account token. The kubelet will
     * start trying to rotate the token if the token is older than 80 percent of
     * its time to live or if the token is older than 24 hours.Defaults to 1 hour
     * and must be at least 10 minutes.
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ boolean hasExpirationSeconds(); /** * * *
     * ExpirationSeconds is the requested duration of validity of the service
     * account token. As the token approaches expiration, the kubelet volume
     * plugin will proactively rotate the service account token. The kubelet will
     * start trying to rotate the token if the token is older than 80 percent of
     * its time to live or if the token is older than 24 hours.Defaults to 1 hour
     * and must be at least 10 minutes.
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ long getExpirationSeconds(); /** * * *
     * Path is the path relative to the mount point of the file to project the
     * token into.
     * 
* * optional string path = 3; */ boolean hasPath(); /** * * *
     * Path is the path relative to the mount point of the file to project the
     * token into.
     * 
* * optional string path = 3; */ java.lang.String getPath(); /** * * *
     * Path is the path relative to the mount point of the file to project the
     * token into.
     * 
* * optional string path = 3; */ com.google.protobuf.ByteString getPathBytes(); } /** * * *
   * ServiceAccountTokenProjection represents a projected service account token
   * volume. This projection can be used to insert a service account token into
   * the pods runtime filesystem for use against APIs (Kubernetes API Server or
   * otherwise).
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceAccountTokenProjection} */ public static final class ServiceAccountTokenProjection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceAccountTokenProjection) ServiceAccountTokenProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceAccountTokenProjection.newBuilder() to construct. private ServiceAccountTokenProjection( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceAccountTokenProjection() { audience_ = ""; expirationSeconds_ = 0L; path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceAccountTokenProjection( 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; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; path_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.class, io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.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. A recipient of a token
     * must identify itself with an identifier specified in the audience of the
     * token, and otherwise should reject the token. The audience defaults to the
     * identifier of the apiserver.
     * +optional
     * 
* * optional string audience = 1; */ public boolean hasAudience() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Audience is the intended audience of the token. A recipient of a token
     * must identify itself with an identifier specified in the audience of the
     * token, and otherwise should reject the token. The audience defaults to the
     * identifier of the apiserver.
     * +optional
     * 
* * 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. A recipient of a token
     * must identify itself with an identifier specified in the audience of the
     * token, and otherwise should reject the token. The audience defaults to the
     * identifier of the apiserver.
     * +optional
     * 
* * 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 requested duration of validity of the service
     * account token. As the token approaches expiration, the kubelet volume
     * plugin will proactively rotate the service account token. The kubelet will
     * start trying to rotate the token if the token is older than 80 percent of
     * its time to live or if the token is older than 24 hours.Defaults to 1 hour
     * and must be at least 10 minutes.
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ public boolean hasExpirationSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * ExpirationSeconds is the requested duration of validity of the service
     * account token. As the token approaches expiration, the kubelet volume
     * plugin will proactively rotate the service account token. The kubelet will
     * start trying to rotate the token if the token is older than 80 percent of
     * its time to live or if the token is older than 24 hours.Defaults to 1 hour
     * and must be at least 10 minutes.
     * +optional
     * 
* * optional int64 expirationSeconds = 2; */ public long getExpirationSeconds() { return expirationSeconds_; } public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** * * *
     * Path is the path relative to the mount point of the file to project the
     * token into.
     * 
* * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Path is the path relative to the mount point of the file to project the
     * token into.
     * 
* * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path is the path relative to the mount point of the file to project the
     * token into.
     * 
* * optional string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } 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_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } 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.V1.ServiceAccountTokenProjection)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceAccountTokenProjection other = (io.kubernetes.client.proto.V1.ServiceAccountTokenProjection) 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 && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } 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()); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection 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.V1.ServiceAccountTokenProjection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection 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.V1.ServiceAccountTokenProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection 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.V1.ServiceAccountTokenProjection parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection 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.V1.ServiceAccountTokenProjection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection 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.V1.ServiceAccountTokenProjection 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; } /** * * *
     * ServiceAccountTokenProjection represents a projected service account token
     * volume. This projection can be used to insert a service account token into
     * the pods runtime filesystem for use against APIs (Kubernetes API Server or
     * otherwise).
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceAccountTokenProjection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceAccountTokenProjection) io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.class, io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.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); path_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccountTokenProjection getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccountTokenProjection build() { io.kubernetes.client.proto.V1.ServiceAccountTokenProjection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceAccountTokenProjection buildPartial() { io.kubernetes.client.proto.V1.ServiceAccountTokenProjection result = new io.kubernetes.client.proto.V1.ServiceAccountTokenProjection(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_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.path_ = path_; 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.V1.ServiceAccountTokenProjection) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceAccountTokenProjection) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceAccountTokenProjection other) { if (other == io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.getDefaultInstance()) return this; if (other.hasAudience()) { bitField0_ |= 0x00000001; audience_ = other.audience_; onChanged(); } if (other.hasExpirationSeconds()) { setExpirationSeconds(other.getExpirationSeconds()); } if (other.hasPath()) { bitField0_ |= 0x00000004; path_ = other.path_; 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.V1.ServiceAccountTokenProjection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceAccountTokenProjection) 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. A recipient of a token
       * must identify itself with an identifier specified in the audience of the
       * token, and otherwise should reject the token. The audience defaults to the
       * identifier of the apiserver.
       * +optional
       * 
* * optional string audience = 1; */ public boolean hasAudience() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Audience is the intended audience of the token. A recipient of a token
       * must identify itself with an identifier specified in the audience of the
       * token, and otherwise should reject the token. The audience defaults to the
       * identifier of the apiserver.
       * +optional
       * 
* * 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. A recipient of a token
       * must identify itself with an identifier specified in the audience of the
       * token, and otherwise should reject the token. The audience defaults to the
       * identifier of the apiserver.
       * +optional
       * 
* * 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. A recipient of a token
       * must identify itself with an identifier specified in the audience of the
       * token, and otherwise should reject the token. The audience defaults to the
       * identifier of the apiserver.
       * +optional
       * 
* * 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. A recipient of a token
       * must identify itself with an identifier specified in the audience of the
       * token, and otherwise should reject the token. The audience defaults to the
       * identifier of the apiserver.
       * +optional
       * 
* * optional string audience = 1; */ public Builder clearAudience() { bitField0_ = (bitField0_ & ~0x00000001); audience_ = getDefaultInstance().getAudience(); onChanged(); return this; } /** * * *
       * Audience is the intended audience of the token. A recipient of a token
       * must identify itself with an identifier specified in the audience of the
       * token, and otherwise should reject the token. The audience defaults to the
       * identifier of the apiserver.
       * +optional
       * 
* * 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 requested duration of validity of the service
       * account token. As the token approaches expiration, the kubelet volume
       * plugin will proactively rotate the service account token. The kubelet will
       * start trying to rotate the token if the token is older than 80 percent of
       * its time to live or if the token is older than 24 hours.Defaults to 1 hour
       * and must be at least 10 minutes.
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public boolean hasExpirationSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * ExpirationSeconds is the requested duration of validity of the service
       * account token. As the token approaches expiration, the kubelet volume
       * plugin will proactively rotate the service account token. The kubelet will
       * start trying to rotate the token if the token is older than 80 percent of
       * its time to live or if the token is older than 24 hours.Defaults to 1 hour
       * and must be at least 10 minutes.
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public long getExpirationSeconds() { return expirationSeconds_; } /** * * *
       * ExpirationSeconds is the requested duration of validity of the service
       * account token. As the token approaches expiration, the kubelet volume
       * plugin will proactively rotate the service account token. The kubelet will
       * start trying to rotate the token if the token is older than 80 percent of
       * its time to live or if the token is older than 24 hours.Defaults to 1 hour
       * and must be at least 10 minutes.
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public Builder setExpirationSeconds(long value) { bitField0_ |= 0x00000002; expirationSeconds_ = value; onChanged(); return this; } /** * * *
       * ExpirationSeconds is the requested duration of validity of the service
       * account token. As the token approaches expiration, the kubelet volume
       * plugin will proactively rotate the service account token. The kubelet will
       * start trying to rotate the token if the token is older than 80 percent of
       * its time to live or if the token is older than 24 hours.Defaults to 1 hour
       * and must be at least 10 minutes.
       * +optional
       * 
* * optional int64 expirationSeconds = 2; */ public Builder clearExpirationSeconds() { bitField0_ = (bitField0_ & ~0x00000002); expirationSeconds_ = 0L; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * Path is the path relative to the mount point of the file to project the
       * token into.
       * 
* * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Path is the path relative to the mount point of the file to project the
       * token into.
       * 
* * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path is the path relative to the mount point of the file to project the
       * token into.
       * 
* * optional string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path is the path relative to the mount point of the file to project the
       * token into.
       * 
* * optional string path = 3; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } /** * * *
       * Path is the path relative to the mount point of the file to project the
       * token into.
       * 
* * optional string path = 3; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000004); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path is the path relative to the mount point of the file to project the
       * token into.
       * 
* * optional string path = 3; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } @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.core.v1.ServiceAccountTokenProjection) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceAccountTokenProjection) private static final io.kubernetes.client.proto.V1.ServiceAccountTokenProjection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceAccountTokenProjection(); } public static io.kubernetes.client.proto.V1.ServiceAccountTokenProjection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceAccountTokenProjection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceAccountTokenProjection(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.V1.ServiceAccountTokenProjection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ java.util.List getItemsList(); /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ io.kubernetes.client.proto.V1.Service getItems(int index); /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ int getItemsCount(); /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ io.kubernetes.client.proto.V1.ServiceOrBuilder getItemsOrBuilder(int index); } /** * * *
   * ServiceList holds a list of services.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceList} */ public static final class ServiceList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceList) ServiceListOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceList.newBuilder() to construct. private ServiceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceList( 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.V1.Service.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 .V1 .internal_static_k8s_io_api_core_v1_ServiceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceList.class, io.kubernetes.client.proto.V1.ServiceList.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#types-kinds
     * +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#types-kinds
     * +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#types-kinds
     * +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_; /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public java.util.List getItemsOrBuilderList() { return items_; } /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.Service getItems(int index) { return items_.get(index); } /** * * *
     * List of services
     * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.ServiceOrBuilder 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.V1.ServiceList)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceList other = (io.kubernetes.client.proto.V1.ServiceList) 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.V1.ServiceList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceList 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.V1.ServiceList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceList 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.V1.ServiceList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceList 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.V1.ServiceList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceList 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.V1.ServiceList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceList 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.V1.ServiceList 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; } /** * * *
     * ServiceList holds a list of services.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceList) io.kubernetes.client.proto.V1.ServiceListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceList.class, io.kubernetes.client.proto.V1.ServiceList.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceList.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 .V1 .internal_static_k8s_io_api_core_v1_ServiceList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceList build() { io.kubernetes.client.proto.V1.ServiceList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceList buildPartial() { io.kubernetes.client.proto.V1.ServiceList result = new io.kubernetes.client.proto.V1.ServiceList(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.V1.ServiceList) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceList other) { if (other == io.kubernetes.client.proto.V1.ServiceList.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.V1.ServiceList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceList) 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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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#types-kinds
       * +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.V1.Service, io.kubernetes.client.proto.V1.Service.Builder, io.kubernetes.client.proto.V1.ServiceOrBuilder> itemsBuilder_; /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.Service getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder setItems(int index, io.kubernetes.client.proto.V1.Service value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1.Service.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Service value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder addItems(int index, io.kubernetes.client.proto.V1.Service value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1.Service.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1.Service.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service 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; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.Service.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.ServiceOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public java.util.List getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.Service.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.Service.getDefaultInstance()); } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public io.kubernetes.client.proto.V1.Service.Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.Service.getDefaultInstance()); } /** * * *
       * List of services
       * 
* * repeated .k8s.io.api.core.v1.Service items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Service, io.kubernetes.client.proto.V1.Service.Builder, io.kubernetes.client.proto.V1.ServiceOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.Service, io.kubernetes.client.proto.V1.Service.Builder, io.kubernetes.client.proto.V1.ServiceOrBuilder>( 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.core.v1.ServiceList) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceList) private static final io.kubernetes.client.proto.V1.ServiceList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceList(); } public static io.kubernetes.client.proto.V1.ServiceList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceList(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.V1.ServiceList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServicePortOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServicePort) com.google.protobuf.MessageOrBuilder { /** * * *
     * The name of this port within the service. This must be a DNS_LABEL.
     * All ports within a ServiceSpec must have unique names. When considering
     * the endpoints for a Service, this must match the 'name' field in the
     * EndpointPort.
     * Optional if only one ServicePort is defined on this service.
     * +optional
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * The name of this port within the service. This must be a DNS_LABEL.
     * All ports within a ServiceSpec must have unique names. When considering
     * the endpoints for a Service, this must match the 'name' field in the
     * EndpointPort.
     * Optional if only one ServicePort is defined on this service.
     * +optional
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * The name of this port within the service. This must be a DNS_LABEL.
     * All ports within a ServiceSpec must have unique names. When considering
     * the endpoints for a Service, this must match the 'name' field in the
     * EndpointPort.
     * Optional if only one ServicePort is defined on this service.
     * +optional
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
     * Default is TCP.
     * +default="TCP"
     * +optional
     * 
* * optional string protocol = 2; */ boolean hasProtocol(); /** * * *
     * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
     * Default is TCP.
     * +default="TCP"
     * +optional
     * 
* * optional string protocol = 2; */ java.lang.String getProtocol(); /** * * *
     * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
     * Default is TCP.
     * +default="TCP"
     * +optional
     * 
* * optional string protocol = 2; */ com.google.protobuf.ByteString getProtocolBytes(); /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 6; */ boolean hasAppProtocol(); /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 6; */ java.lang.String getAppProtocol(); /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 6; */ com.google.protobuf.ByteString getAppProtocolBytes(); /** * * *
     * The port that will be exposed by this service.
     * 
* * optional int32 port = 3; */ boolean hasPort(); /** * * *
     * The port that will be exposed by this service.
     * 
* * optional int32 port = 3; */ int getPort(); /** * * *
     * Number or name of the port to access on the pods targeted by the service.
     * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
     * If this is a string, it will be looked up as a named port in the
     * target Pod's container ports. If this is not specified, the value
     * of the 'port' field is used (an identity map).
     * This field is ignored for services with clusterIP=None, and should be
     * omitted or set equal to the 'port' field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ boolean hasTargetPort(); /** * * *
     * Number or name of the port to access on the pods targeted by the service.
     * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
     * If this is a string, it will be looked up as a named port in the
     * target Pod's container ports. If this is not specified, the value
     * of the 'port' field is used (an identity map).
     * This field is ignored for services with clusterIP=None, and should be
     * omitted or set equal to the 'port' field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ io.kubernetes.client.proto.IntStr.IntOrString getTargetPort(); /** * * *
     * Number or name of the port to access on the pods targeted by the service.
     * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
     * If this is a string, it will be looked up as a named port in the
     * target Pod's container ports. If this is not specified, the value
     * of the 'port' field is used (an identity map).
     * This field is ignored for services with clusterIP=None, and should be
     * omitted or set equal to the 'port' field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getTargetPortOrBuilder(); /** * * *
     * The port on each node on which this service is exposed when type is
     * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
     * specified, in-range, and not in use it will be used, otherwise the
     * operation will fail.  If not specified, a port will be allocated if this
     * Service requires one.  If this field is specified when creating a
     * Service which does not need it, creation will fail. This field will be
     * wiped when updating a Service to no longer need it (e.g. changing type
     * from NodePort to ClusterIP).
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
     * +optional
     * 
* * optional int32 nodePort = 5; */ boolean hasNodePort(); /** * * *
     * The port on each node on which this service is exposed when type is
     * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
     * specified, in-range, and not in use it will be used, otherwise the
     * operation will fail.  If not specified, a port will be allocated if this
     * Service requires one.  If this field is specified when creating a
     * Service which does not need it, creation will fail. This field will be
     * wiped when updating a Service to no longer need it (e.g. changing type
     * from NodePort to ClusterIP).
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
     * +optional
     * 
* * optional int32 nodePort = 5; */ int getNodePort(); } /** * * *
   * ServicePort contains information on service's port.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServicePort} */ public static final class ServicePort extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServicePort) ServicePortOrBuilder { private static final long serialVersionUID = 0L; // Use ServicePort.newBuilder() to construct. private ServicePort(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServicePort() { name_ = ""; protocol_ = ""; appProtocol_ = ""; port_ = 0; nodePort_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServicePort( 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; protocol_ = bs; break; } case 24: { bitField0_ |= 0x00000008; port_ = input.readInt32(); break; } case 34: { io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = targetPort_.toBuilder(); } targetPort_ = input.readMessage( io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(targetPort_); targetPort_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 40: { bitField0_ |= 0x00000020; nodePort_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; appProtocol_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ServicePort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServicePort_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServicePort.class, io.kubernetes.client.proto.V1.ServicePort.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * The name of this port within the service. This must be a DNS_LABEL.
     * All ports within a ServiceSpec must have unique names. When considering
     * the endpoints for a Service, this must match the 'name' field in the
     * EndpointPort.
     * Optional if only one ServicePort is defined on this service.
     * +optional
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The name of this port within the service. This must be a DNS_LABEL.
     * All ports within a ServiceSpec must have unique names. When considering
     * the endpoints for a Service, this must match the 'name' field in the
     * EndpointPort.
     * Optional if only one ServicePort is defined on this service.
     * +optional
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * The name of this port within the service. This must be a DNS_LABEL.
     * All ports within a ServiceSpec must have unique names. When considering
     * the endpoints for a Service, this must match the 'name' field in the
     * EndpointPort.
     * Optional if only one ServicePort is defined on this service.
     * +optional
     * 
* * 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 PROTOCOL_FIELD_NUMBER = 2; private volatile java.lang.Object protocol_; /** * * *
     * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
     * Default is TCP.
     * +default="TCP"
     * +optional
     * 
* * optional string protocol = 2; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
     * Default is TCP.
     * +default="TCP"
     * +optional
     * 
* * optional string protocol = 2; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } } /** * * *
     * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
     * Default is TCP.
     * +default="TCP"
     * +optional
     * 
* * optional string protocol = 2; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APPPROTOCOL_FIELD_NUMBER = 6; private volatile java.lang.Object appProtocol_; /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 6; */ public boolean hasAppProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 6; */ public java.lang.String getAppProtocol() { java.lang.Object ref = appProtocol_; 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()) { appProtocol_ = s; } return s; } } /** * * *
     * The application protocol for this port.
     * This field follows standard Kubernetes label syntax.
     * Un-prefixed names are reserved for IANA standard service names (as per
     * RFC-6335 and http://www.iana.org/assignments/service-names).
     * Non-standard protocols should use prefixed names such as
     * mycompany.com/my-custom-protocol.
     * +optional
     * 
* * optional string appProtocol = 6; */ public com.google.protobuf.ByteString getAppProtocolBytes() { java.lang.Object ref = appProtocol_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); appProtocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 3; private int port_; /** * * *
     * The port that will be exposed by this service.
     * 
* * optional int32 port = 3; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * The port that will be exposed by this service.
     * 
* * optional int32 port = 3; */ public int getPort() { return port_; } public static final int TARGETPORT_FIELD_NUMBER = 4; private io.kubernetes.client.proto.IntStr.IntOrString targetPort_; /** * * *
     * Number or name of the port to access on the pods targeted by the service.
     * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
     * If this is a string, it will be looked up as a named port in the
     * target Pod's container ports. If this is not specified, the value
     * of the 'port' field is used (an identity map).
     * This field is ignored for services with clusterIP=None, and should be
     * omitted or set equal to the 'port' field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public boolean hasTargetPort() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * Number or name of the port to access on the pods targeted by the service.
     * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
     * If this is a string, it will be looked up as a named port in the
     * target Pod's container ports. If this is not specified, the value
     * of the 'port' field is used (an identity map).
     * This field is ignored for services with clusterIP=None, and should be
     * omitted or set equal to the 'port' field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public io.kubernetes.client.proto.IntStr.IntOrString getTargetPort() { return targetPort_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : targetPort_; } /** * * *
     * Number or name of the port to access on the pods targeted by the service.
     * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
     * If this is a string, it will be looked up as a named port in the
     * target Pod's container ports. If this is not specified, the value
     * of the 'port' field is used (an identity map).
     * This field is ignored for services with clusterIP=None, and should be
     * omitted or set equal to the 'port' field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getTargetPortOrBuilder() { return targetPort_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : targetPort_; } public static final int NODEPORT_FIELD_NUMBER = 5; private int nodePort_; /** * * *
     * The port on each node on which this service is exposed when type is
     * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
     * specified, in-range, and not in use it will be used, otherwise the
     * operation will fail.  If not specified, a port will be allocated if this
     * Service requires one.  If this field is specified when creating a
     * Service which does not need it, creation will fail. This field will be
     * wiped when updating a Service to no longer need it (e.g. changing type
     * from NodePort to ClusterIP).
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
     * +optional
     * 
* * optional int32 nodePort = 5; */ public boolean hasNodePort() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * The port on each node on which this service is exposed when type is
     * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
     * specified, in-range, and not in use it will be used, otherwise the
     * operation will fail.  If not specified, a port will be allocated if this
     * Service requires one.  If this field is specified when creating a
     * Service which does not need it, creation will fail. This field will be
     * wiped when updating a Service to no longer need it (e.g. changing type
     * from NodePort to ClusterIP).
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
     * +optional
     * 
* * optional int32 nodePort = 5; */ public int getNodePort() { return nodePort_; } 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, protocol_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(3, port_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(4, getTargetPort()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(5, nodePort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, appProtocol_); } 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, protocol_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTargetPort()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, nodePort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, appProtocol_); } 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.V1.ServicePort)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServicePort other = (io.kubernetes.client.proto.V1.ServicePort) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol().equals(other.getProtocol()); } result = result && (hasAppProtocol() == other.hasAppProtocol()); if (hasAppProtocol()) { result = result && getAppProtocol().equals(other.getAppProtocol()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasTargetPort() == other.hasTargetPort()); if (hasTargetPort()) { result = result && getTargetPort().equals(other.getTargetPort()); } result = result && (hasNodePort() == other.hasNodePort()); if (hasNodePort()) { result = result && (getNodePort() == other.getNodePort()); } 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 (hasProtocol()) { hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getProtocol().hashCode(); } if (hasAppProtocol()) { hash = (37 * hash) + APPPROTOCOL_FIELD_NUMBER; hash = (53 * hash) + getAppProtocol().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasTargetPort()) { hash = (37 * hash) + TARGETPORT_FIELD_NUMBER; hash = (53 * hash) + getTargetPort().hashCode(); } if (hasNodePort()) { hash = (37 * hash) + NODEPORT_FIELD_NUMBER; hash = (53 * hash) + getNodePort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ServicePort parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServicePort 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.V1.ServicePort parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServicePort 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.V1.ServicePort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServicePort parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServicePort parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServicePort 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.V1.ServicePort parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServicePort 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.V1.ServicePort parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServicePort 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.V1.ServicePort 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; } /** * * *
     * ServicePort contains information on service's port.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServicePort} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServicePort) io.kubernetes.client.proto.V1.ServicePortOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServicePort_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServicePort_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServicePort.class, io.kubernetes.client.proto.V1.ServicePort.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServicePort.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTargetPortFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); protocol_ = ""; bitField0_ = (bitField0_ & ~0x00000002); appProtocol_ = ""; bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (targetPortBuilder_ == null) { targetPort_ = null; } else { targetPortBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); nodePort_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServicePort_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServicePort getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServicePort.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServicePort build() { io.kubernetes.client.proto.V1.ServicePort result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServicePort buildPartial() { io.kubernetes.client.proto.V1.ServicePort result = new io.kubernetes.client.proto.V1.ServicePort(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.protocol_ = protocol_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.appProtocol_ = appProtocol_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.port_ = port_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (targetPortBuilder_ == null) { result.targetPort_ = targetPort_; } else { result.targetPort_ = targetPortBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.nodePort_ = nodePort_; 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.V1.ServicePort) { return mergeFrom((io.kubernetes.client.proto.V1.ServicePort) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServicePort other) { if (other == io.kubernetes.client.proto.V1.ServicePort.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasProtocol()) { bitField0_ |= 0x00000002; protocol_ = other.protocol_; onChanged(); } if (other.hasAppProtocol()) { bitField0_ |= 0x00000004; appProtocol_ = other.appProtocol_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasTargetPort()) { mergeTargetPort(other.getTargetPort()); } if (other.hasNodePort()) { setNodePort(other.getNodePort()); } 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.V1.ServicePort parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServicePort) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The name of this port within the service. This must be a DNS_LABEL.
       * All ports within a ServiceSpec must have unique names. When considering
       * the endpoints for a Service, this must match the 'name' field in the
       * EndpointPort.
       * Optional if only one ServicePort is defined on this service.
       * +optional
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The name of this port within the service. This must be a DNS_LABEL.
       * All ports within a ServiceSpec must have unique names. When considering
       * the endpoints for a Service, this must match the 'name' field in the
       * EndpointPort.
       * Optional if only one ServicePort is defined on this service.
       * +optional
       * 
* * 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; } } /** * * *
       * The name of this port within the service. This must be a DNS_LABEL.
       * All ports within a ServiceSpec must have unique names. When considering
       * the endpoints for a Service, this must match the 'name' field in the
       * EndpointPort.
       * Optional if only one ServicePort is defined on this service.
       * +optional
       * 
* * 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; } } /** * * *
       * The name of this port within the service. This must be a DNS_LABEL.
       * All ports within a ServiceSpec must have unique names. When considering
       * the endpoints for a Service, this must match the 'name' field in the
       * EndpointPort.
       * Optional if only one ServicePort is defined on this service.
       * +optional
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * The name of this port within the service. This must be a DNS_LABEL.
       * All ports within a ServiceSpec must have unique names. When considering
       * the endpoints for a Service, this must match the 'name' field in the
       * EndpointPort.
       * Optional if only one ServicePort is defined on this service.
       * +optional
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * The name of this port within the service. This must be a DNS_LABEL.
       * All ports within a ServiceSpec must have unique names. When considering
       * the endpoints for a Service, this must match the 'name' field in the
       * EndpointPort.
       * Optional if only one ServicePort is defined on this service.
       * +optional
       * 
* * 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 protocol_ = ""; /** * * *
       * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
       * Default is TCP.
       * +default="TCP"
       * +optional
       * 
* * optional string protocol = 2; */ public boolean hasProtocol() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
       * Default is TCP.
       * +default="TCP"
       * +optional
       * 
* * optional string protocol = 2; */ public java.lang.String getProtocol() { java.lang.Object ref = protocol_; 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()) { protocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
       * Default is TCP.
       * +default="TCP"
       * +optional
       * 
* * optional string protocol = 2; */ public com.google.protobuf.ByteString getProtocolBytes() { java.lang.Object ref = protocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); protocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
       * Default is TCP.
       * +default="TCP"
       * +optional
       * 
* * optional string protocol = 2; */ public Builder setProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; protocol_ = value; onChanged(); return this; } /** * * *
       * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
       * Default is TCP.
       * +default="TCP"
       * +optional
       * 
* * optional string protocol = 2; */ public Builder clearProtocol() { bitField0_ = (bitField0_ & ~0x00000002); protocol_ = getDefaultInstance().getProtocol(); onChanged(); return this; } /** * * *
       * The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
       * Default is TCP.
       * +default="TCP"
       * +optional
       * 
* * optional string protocol = 2; */ public Builder setProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; protocol_ = value; onChanged(); return this; } private java.lang.Object appProtocol_ = ""; /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 6; */ public boolean hasAppProtocol() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 6; */ public java.lang.String getAppProtocol() { java.lang.Object ref = appProtocol_; 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()) { appProtocol_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 6; */ public com.google.protobuf.ByteString getAppProtocolBytes() { java.lang.Object ref = appProtocol_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); appProtocol_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 6; */ public Builder setAppProtocol(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; appProtocol_ = value; onChanged(); return this; } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 6; */ public Builder clearAppProtocol() { bitField0_ = (bitField0_ & ~0x00000004); appProtocol_ = getDefaultInstance().getAppProtocol(); onChanged(); return this; } /** * * *
       * The application protocol for this port.
       * This field follows standard Kubernetes label syntax.
       * Un-prefixed names are reserved for IANA standard service names (as per
       * RFC-6335 and http://www.iana.org/assignments/service-names).
       * Non-standard protocols should use prefixed names such as
       * mycompany.com/my-custom-protocol.
       * +optional
       * 
* * optional string appProtocol = 6; */ public Builder setAppProtocolBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; appProtocol_ = value; onChanged(); return this; } private int port_; /** * * *
       * The port that will be exposed by this service.
       * 
* * optional int32 port = 3; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * The port that will be exposed by this service.
       * 
* * optional int32 port = 3; */ public int getPort() { return port_; } /** * * *
       * The port that will be exposed by this service.
       * 
* * optional int32 port = 3; */ public Builder setPort(int value) { bitField0_ |= 0x00000008; port_ = value; onChanged(); return this; } /** * * *
       * The port that will be exposed by this service.
       * 
* * optional int32 port = 3; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000008); port_ = 0; onChanged(); return this; } private io.kubernetes.client.proto.IntStr.IntOrString targetPort_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> targetPortBuilder_; /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public boolean hasTargetPort() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public io.kubernetes.client.proto.IntStr.IntOrString getTargetPort() { if (targetPortBuilder_ == null) { return targetPort_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : targetPort_; } else { return targetPortBuilder_.getMessage(); } } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public Builder setTargetPort(io.kubernetes.client.proto.IntStr.IntOrString value) { if (targetPortBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetPort_ = value; onChanged(); } else { targetPortBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public Builder setTargetPort( io.kubernetes.client.proto.IntStr.IntOrString.Builder builderForValue) { if (targetPortBuilder_ == null) { targetPort_ = builderForValue.build(); onChanged(); } else { targetPortBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public Builder mergeTargetPort(io.kubernetes.client.proto.IntStr.IntOrString value) { if (targetPortBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && targetPort_ != null && targetPort_ != io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) { targetPort_ = io.kubernetes.client.proto.IntStr.IntOrString.newBuilder(targetPort_) .mergeFrom(value) .buildPartial(); } else { targetPort_ = value; } onChanged(); } else { targetPortBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public Builder clearTargetPort() { if (targetPortBuilder_ == null) { targetPort_ = null; onChanged(); } else { targetPortBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public io.kubernetes.client.proto.IntStr.IntOrString.Builder getTargetPortBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTargetPortFieldBuilder().getBuilder(); } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getTargetPortOrBuilder() { if (targetPortBuilder_ != null) { return targetPortBuilder_.getMessageOrBuilder(); } else { return targetPort_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : targetPort_; } } /** * * *
       * Number or name of the port to access on the pods targeted by the service.
       * Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
       * If this is a string, it will be looked up as a named port in the
       * target Pod's container ports. If this is not specified, the value
       * of the 'port' field is used (an identity map).
       * This field is ignored for services with clusterIP=None, and should be
       * omitted or set equal to the 'port' field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> getTargetPortFieldBuilder() { if (targetPortBuilder_ == null) { targetPortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>( getTargetPort(), getParentForChildren(), isClean()); targetPort_ = null; } return targetPortBuilder_; } private int nodePort_; /** * * *
       * The port on each node on which this service is exposed when type is
       * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
       * specified, in-range, and not in use it will be used, otherwise the
       * operation will fail.  If not specified, a port will be allocated if this
       * Service requires one.  If this field is specified when creating a
       * Service which does not need it, creation will fail. This field will be
       * wiped when updating a Service to no longer need it (e.g. changing type
       * from NodePort to ClusterIP).
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
       * +optional
       * 
* * optional int32 nodePort = 5; */ public boolean hasNodePort() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * The port on each node on which this service is exposed when type is
       * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
       * specified, in-range, and not in use it will be used, otherwise the
       * operation will fail.  If not specified, a port will be allocated if this
       * Service requires one.  If this field is specified when creating a
       * Service which does not need it, creation will fail. This field will be
       * wiped when updating a Service to no longer need it (e.g. changing type
       * from NodePort to ClusterIP).
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
       * +optional
       * 
* * optional int32 nodePort = 5; */ public int getNodePort() { return nodePort_; } /** * * *
       * The port on each node on which this service is exposed when type is
       * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
       * specified, in-range, and not in use it will be used, otherwise the
       * operation will fail.  If not specified, a port will be allocated if this
       * Service requires one.  If this field is specified when creating a
       * Service which does not need it, creation will fail. This field will be
       * wiped when updating a Service to no longer need it (e.g. changing type
       * from NodePort to ClusterIP).
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
       * +optional
       * 
* * optional int32 nodePort = 5; */ public Builder setNodePort(int value) { bitField0_ |= 0x00000020; nodePort_ = value; onChanged(); return this; } /** * * *
       * The port on each node on which this service is exposed when type is
       * NodePort or LoadBalancer.  Usually assigned by the system. If a value is
       * specified, in-range, and not in use it will be used, otherwise the
       * operation will fail.  If not specified, a port will be allocated if this
       * Service requires one.  If this field is specified when creating a
       * Service which does not need it, creation will fail. This field will be
       * wiped when updating a Service to no longer need it (e.g. changing type
       * from NodePort to ClusterIP).
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
       * +optional
       * 
* * optional int32 nodePort = 5; */ public Builder clearNodePort() { bitField0_ = (bitField0_ & ~0x00000020); nodePort_ = 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.core.v1.ServicePort) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServicePort) private static final io.kubernetes.client.proto.V1.ServicePort DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServicePort(); } public static io.kubernetes.client.proto.V1.ServicePort getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServicePort parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServicePort(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.V1.ServicePort getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceProxyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceProxyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Path is the part of URLs that include service endpoints, suffixes,
     * and parameters to use for the current proxy request to service.
     * For example, the whole request URL is
     * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
     * Path is _search?q=user:kimchy.
     * +optional
     * 
* * optional string path = 1; */ boolean hasPath(); /** * * *
     * Path is the part of URLs that include service endpoints, suffixes,
     * and parameters to use for the current proxy request to service.
     * For example, the whole request URL is
     * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
     * Path is _search?q=user:kimchy.
     * +optional
     * 
* * optional string path = 1; */ java.lang.String getPath(); /** * * *
     * Path is the part of URLs that include service endpoints, suffixes,
     * and parameters to use for the current proxy request to service.
     * For example, the whole request URL is
     * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
     * Path is _search?q=user:kimchy.
     * +optional
     * 
* * optional string path = 1; */ com.google.protobuf.ByteString getPathBytes(); } /** * * *
   * ServiceProxyOptions is the query options to a Service's proxy call.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceProxyOptions} */ public static final class ServiceProxyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceProxyOptions) ServiceProxyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceProxyOptions.newBuilder() to construct. private ServiceProxyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceProxyOptions() { path_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceProxyOptions( 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; path_ = 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 .V1 .internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceProxyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceProxyOptions.class, io.kubernetes.client.proto.V1.ServiceProxyOptions.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** * * *
     * Path is the part of URLs that include service endpoints, suffixes,
     * and parameters to use for the current proxy request to service.
     * For example, the whole request URL is
     * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
     * Path is _search?q=user:kimchy.
     * +optional
     * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Path is the part of URLs that include service endpoints, suffixes,
     * and parameters to use for the current proxy request to service.
     * For example, the whole request URL is
     * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
     * Path is _search?q=user:kimchy.
     * +optional
     * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * Path is the part of URLs that include service endpoints, suffixes,
     * and parameters to use for the current proxy request to service.
     * For example, the whole request URL is
     * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
     * Path is _search?q=user:kimchy.
     * +optional
     * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, path_); } 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, path_); } 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.V1.ServiceProxyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceProxyOptions other = (io.kubernetes.client.proto.V1.ServiceProxyOptions) obj; boolean result = true; result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ServiceProxyOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions 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.V1.ServiceProxyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions 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.V1.ServiceProxyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions 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.V1.ServiceProxyOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions 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.V1.ServiceProxyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions 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.V1.ServiceProxyOptions 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; } /** * * *
     * ServiceProxyOptions is the query options to a Service's proxy call.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceProxyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceProxyOptions) io.kubernetes.client.proto.V1.ServiceProxyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceProxyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceProxyOptions.class, io.kubernetes.client.proto.V1.ServiceProxyOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceProxyOptions.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceProxyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceProxyOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceProxyOptions build() { io.kubernetes.client.proto.V1.ServiceProxyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceProxyOptions buildPartial() { io.kubernetes.client.proto.V1.ServiceProxyOptions result = new io.kubernetes.client.proto.V1.ServiceProxyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; 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.V1.ServiceProxyOptions) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceProxyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceProxyOptions other) { if (other == io.kubernetes.client.proto.V1.ServiceProxyOptions.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; 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.V1.ServiceProxyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceProxyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
       * Path is the part of URLs that include service endpoints, suffixes,
       * and parameters to use for the current proxy request to service.
       * For example, the whole request URL is
       * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
       * Path is _search?q=user:kimchy.
       * +optional
       * 
* * optional string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Path is the part of URLs that include service endpoints, suffixes,
       * and parameters to use for the current proxy request to service.
       * For example, the whole request URL is
       * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
       * Path is _search?q=user:kimchy.
       * +optional
       * 
* * optional string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path is the part of URLs that include service endpoints, suffixes,
       * and parameters to use for the current proxy request to service.
       * For example, the whole request URL is
       * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
       * Path is _search?q=user:kimchy.
       * +optional
       * 
* * optional string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path is the part of URLs that include service endpoints, suffixes,
       * and parameters to use for the current proxy request to service.
       * For example, the whole request URL is
       * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
       * Path is _search?q=user:kimchy.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * * *
       * Path is the part of URLs that include service endpoints, suffixes,
       * and parameters to use for the current proxy request to service.
       * For example, the whole request URL is
       * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
       * Path is _search?q=user:kimchy.
       * +optional
       * 
* * optional string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * Path is the part of URLs that include service endpoints, suffixes,
       * and parameters to use for the current proxy request to service.
       * For example, the whole request URL is
       * http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy.
       * Path is _search?q=user:kimchy.
       * +optional
       * 
* * optional string path = 1; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = 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.core.v1.ServiceProxyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceProxyOptions) private static final io.kubernetes.client.proto.V1.ServiceProxyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceProxyOptions(); } public static io.kubernetes.client.proto.V1.ServiceProxyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceProxyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceProxyOptions(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.V1.ServiceProxyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ java.util.List getPortsList(); /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ io.kubernetes.client.proto.V1.ServicePort getPorts(int index); /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ int getPortsCount(); /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ java.util.List getPortsOrBuilderList(); /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ io.kubernetes.client.proto.V1.ServicePortOrBuilder getPortsOrBuilder(int index); /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ int getSelectorCount(); /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ boolean containsSelector(java.lang.String key); /** Use {@link #getSelectorMap()} instead. */ @java.lang.Deprecated java.util.Map getSelector(); /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ java.util.Map getSelectorMap(); /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ java.lang.String getSelectorOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ java.lang.String getSelectorOrThrow(java.lang.String key); /** * * *
     * clusterIP is the IP address of the service and is usually assigned
     * randomly. If an address is specified manually, is in-range (as per
     * system configuration), and is not in use, it will be allocated to the
     * service; otherwise creation of the service will fail. This field may not
     * be changed through updates unless the type field is also being changed
     * to ExternalName (which requires this field to be blank) or the type
     * field is being changed from ExternalName (in which case this field may
     * optionally be specified, as describe above).  Valid values are "None",
     * empty string (""), or a valid IP address. Setting this to "None" makes a
     * "headless service" (no virtual IP), which is useful when direct endpoint
     * connections are preferred and proxying is not required.  Only applies to
     * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
     * when creating a Service of type ExternalName, creation will fail. This
     * field will be wiped when updating a Service to type ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string clusterIP = 3; */ boolean hasClusterIP(); /** * * *
     * clusterIP is the IP address of the service and is usually assigned
     * randomly. If an address is specified manually, is in-range (as per
     * system configuration), and is not in use, it will be allocated to the
     * service; otherwise creation of the service will fail. This field may not
     * be changed through updates unless the type field is also being changed
     * to ExternalName (which requires this field to be blank) or the type
     * field is being changed from ExternalName (in which case this field may
     * optionally be specified, as describe above).  Valid values are "None",
     * empty string (""), or a valid IP address. Setting this to "None" makes a
     * "headless service" (no virtual IP), which is useful when direct endpoint
     * connections are preferred and proxying is not required.  Only applies to
     * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
     * when creating a Service of type ExternalName, creation will fail. This
     * field will be wiped when updating a Service to type ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string clusterIP = 3; */ java.lang.String getClusterIP(); /** * * *
     * clusterIP is the IP address of the service and is usually assigned
     * randomly. If an address is specified manually, is in-range (as per
     * system configuration), and is not in use, it will be allocated to the
     * service; otherwise creation of the service will fail. This field may not
     * be changed through updates unless the type field is also being changed
     * to ExternalName (which requires this field to be blank) or the type
     * field is being changed from ExternalName (in which case this field may
     * optionally be specified, as describe above).  Valid values are "None",
     * empty string (""), or a valid IP address. Setting this to "None" makes a
     * "headless service" (no virtual IP), which is useful when direct endpoint
     * connections are preferred and proxying is not required.  Only applies to
     * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
     * when creating a Service of type ExternalName, creation will fail. This
     * field will be wiped when updating a Service to type ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string clusterIP = 3; */ com.google.protobuf.ByteString getClusterIPBytes(); /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ java.util.List getClusterIPsList(); /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ int getClusterIPsCount(); /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ java.lang.String getClusterIPs(int index); /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ com.google.protobuf.ByteString getClusterIPsBytes(int index); /** * * *
     * type determines how the Service is exposed. Defaults to ClusterIP. Valid
     * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
     * "ClusterIP" allocates a cluster-internal IP address for load-balancing
     * to endpoints. Endpoints are determined by the selector or if that is not
     * specified, by manual construction of an Endpoints object or
     * EndpointSlice objects. If clusterIP is "None", no virtual IP is
     * allocated and the endpoints are published as a set of endpoints rather
     * than a virtual IP.
     * "NodePort" builds on ClusterIP and allocates a port on every node which
     * routes to the same endpoints as the clusterIP.
     * "LoadBalancer" builds on NodePort and creates an external load-balancer
     * (if supported in the current cloud) which routes to the same endpoints
     * as the clusterIP.
     * "ExternalName" aliases this service to the specified externalName.
     * Several other fields do not apply to ExternalName services.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
     * +optional
     * 
* * optional string type = 4; */ boolean hasType(); /** * * *
     * type determines how the Service is exposed. Defaults to ClusterIP. Valid
     * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
     * "ClusterIP" allocates a cluster-internal IP address for load-balancing
     * to endpoints. Endpoints are determined by the selector or if that is not
     * specified, by manual construction of an Endpoints object or
     * EndpointSlice objects. If clusterIP is "None", no virtual IP is
     * allocated and the endpoints are published as a set of endpoints rather
     * than a virtual IP.
     * "NodePort" builds on ClusterIP and allocates a port on every node which
     * routes to the same endpoints as the clusterIP.
     * "LoadBalancer" builds on NodePort and creates an external load-balancer
     * (if supported in the current cloud) which routes to the same endpoints
     * as the clusterIP.
     * "ExternalName" aliases this service to the specified externalName.
     * Several other fields do not apply to ExternalName services.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
     * +optional
     * 
* * optional string type = 4; */ java.lang.String getType(); /** * * *
     * type determines how the Service is exposed. Defaults to ClusterIP. Valid
     * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
     * "ClusterIP" allocates a cluster-internal IP address for load-balancing
     * to endpoints. Endpoints are determined by the selector or if that is not
     * specified, by manual construction of an Endpoints object or
     * EndpointSlice objects. If clusterIP is "None", no virtual IP is
     * allocated and the endpoints are published as a set of endpoints rather
     * than a virtual IP.
     * "NodePort" builds on ClusterIP and allocates a port on every node which
     * routes to the same endpoints as the clusterIP.
     * "LoadBalancer" builds on NodePort and creates an external load-balancer
     * (if supported in the current cloud) which routes to the same endpoints
     * as the clusterIP.
     * "ExternalName" aliases this service to the specified externalName.
     * Several other fields do not apply to ExternalName services.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
     * +optional
     * 
* * optional string type = 4; */ com.google.protobuf.ByteString getTypeBytes(); /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ java.util.List getExternalIPsList(); /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ int getExternalIPsCount(); /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ java.lang.String getExternalIPs(int index); /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ com.google.protobuf.ByteString getExternalIPsBytes(int index); /** * * *
     * Supports "ClientIP" and "None". Used to maintain session affinity.
     * Enable client IP based session affinity.
     * Must be ClientIP or None.
     * Defaults to None.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string sessionAffinity = 7; */ boolean hasSessionAffinity(); /** * * *
     * Supports "ClientIP" and "None". Used to maintain session affinity.
     * Enable client IP based session affinity.
     * Must be ClientIP or None.
     * Defaults to None.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string sessionAffinity = 7; */ java.lang.String getSessionAffinity(); /** * * *
     * Supports "ClientIP" and "None". Used to maintain session affinity.
     * Enable client IP based session affinity.
     * Must be ClientIP or None.
     * Defaults to None.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string sessionAffinity = 7; */ com.google.protobuf.ByteString getSessionAffinityBytes(); /** * * *
     * Only applies to Service Type: LoadBalancer
     * LoadBalancer will get created with the IP specified in this field.
     * This feature depends on whether the underlying cloud-provider supports specifying
     * the loadBalancerIP when a load balancer is created.
     * This field will be ignored if the cloud-provider does not support the feature.
     * +optional
     * 
* * optional string loadBalancerIP = 8; */ boolean hasLoadBalancerIP(); /** * * *
     * Only applies to Service Type: LoadBalancer
     * LoadBalancer will get created with the IP specified in this field.
     * This feature depends on whether the underlying cloud-provider supports specifying
     * the loadBalancerIP when a load balancer is created.
     * This field will be ignored if the cloud-provider does not support the feature.
     * +optional
     * 
* * optional string loadBalancerIP = 8; */ java.lang.String getLoadBalancerIP(); /** * * *
     * Only applies to Service Type: LoadBalancer
     * LoadBalancer will get created with the IP specified in this field.
     * This feature depends on whether the underlying cloud-provider supports specifying
     * the loadBalancerIP when a load balancer is created.
     * This field will be ignored if the cloud-provider does not support the feature.
     * +optional
     * 
* * optional string loadBalancerIP = 8; */ com.google.protobuf.ByteString getLoadBalancerIPBytes(); /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ java.util.List getLoadBalancerSourceRangesList(); /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ int getLoadBalancerSourceRangesCount(); /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ java.lang.String getLoadBalancerSourceRanges(int index); /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ com.google.protobuf.ByteString getLoadBalancerSourceRangesBytes(int index); /** * * *
     * externalName is the external reference that discovery mechanisms will
     * return as an alias for this service (e.g. a DNS CNAME record). No
     * proxying will be involved.  Must be a lowercase RFC-1123 hostname
     * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
     * +optional
     * 
* * optional string externalName = 10; */ boolean hasExternalName(); /** * * *
     * externalName is the external reference that discovery mechanisms will
     * return as an alias for this service (e.g. a DNS CNAME record). No
     * proxying will be involved.  Must be a lowercase RFC-1123 hostname
     * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
     * +optional
     * 
* * optional string externalName = 10; */ java.lang.String getExternalName(); /** * * *
     * externalName is the external reference that discovery mechanisms will
     * return as an alias for this service (e.g. a DNS CNAME record). No
     * proxying will be involved.  Must be a lowercase RFC-1123 hostname
     * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
     * +optional
     * 
* * optional string externalName = 10; */ com.google.protobuf.ByteString getExternalNameBytes(); /** * * *
     * externalTrafficPolicy denotes if this Service desires to route external
     * traffic to node-local or cluster-wide endpoints. "Local" preserves the
     * client source IP and avoids a second hop for LoadBalancer and Nodeport
     * type services, but risks potentially imbalanced traffic spreading.
     * "Cluster" obscures the client source IP and may cause a second hop to
     * another node, but should have good overall load-spreading.
     * +optional
     * 
* * optional string externalTrafficPolicy = 11; */ boolean hasExternalTrafficPolicy(); /** * * *
     * externalTrafficPolicy denotes if this Service desires to route external
     * traffic to node-local or cluster-wide endpoints. "Local" preserves the
     * client source IP and avoids a second hop for LoadBalancer and Nodeport
     * type services, but risks potentially imbalanced traffic spreading.
     * "Cluster" obscures the client source IP and may cause a second hop to
     * another node, but should have good overall load-spreading.
     * +optional
     * 
* * optional string externalTrafficPolicy = 11; */ java.lang.String getExternalTrafficPolicy(); /** * * *
     * externalTrafficPolicy denotes if this Service desires to route external
     * traffic to node-local or cluster-wide endpoints. "Local" preserves the
     * client source IP and avoids a second hop for LoadBalancer and Nodeport
     * type services, but risks potentially imbalanced traffic spreading.
     * "Cluster" obscures the client source IP and may cause a second hop to
     * another node, but should have good overall load-spreading.
     * +optional
     * 
* * optional string externalTrafficPolicy = 11; */ com.google.protobuf.ByteString getExternalTrafficPolicyBytes(); /** * * *
     * healthCheckNodePort specifies the healthcheck nodePort for the service.
     * This only applies when type is set to LoadBalancer and
     * externalTrafficPolicy is set to Local. If a value is specified, is
     * in-range, and is not in use, it will be used.  If not specified, a value
     * will be automatically allocated.  External systems (e.g. load-balancers)
     * can use this port to determine if a given node holds endpoints for this
     * service or not.  If this field is specified when creating a Service
     * which does not need it, creation will fail. This field will be wiped
     * when updating a Service to no longer need it (e.g. changing type).
     * +optional
     * 
* * optional int32 healthCheckNodePort = 12; */ boolean hasHealthCheckNodePort(); /** * * *
     * healthCheckNodePort specifies the healthcheck nodePort for the service.
     * This only applies when type is set to LoadBalancer and
     * externalTrafficPolicy is set to Local. If a value is specified, is
     * in-range, and is not in use, it will be used.  If not specified, a value
     * will be automatically allocated.  External systems (e.g. load-balancers)
     * can use this port to determine if a given node holds endpoints for this
     * service or not.  If this field is specified when creating a Service
     * which does not need it, creation will fail. This field will be wiped
     * when updating a Service to no longer need it (e.g. changing type).
     * +optional
     * 
* * optional int32 healthCheckNodePort = 12; */ int getHealthCheckNodePort(); /** * * *
     * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
     * Service should disregard any indications of ready/not-ready.
     * The primary use case for setting this field is for a StatefulSet's Headless Service to
     * propagate SRV DNS records for its Pods for the purpose of peer discovery.
     * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
     * Services interpret this to mean that all endpoints are considered "ready" even if the
     * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
     * through the Endpoints or EndpointSlice resources can safely assume this behavior.
     * +optional
     * 
* * optional bool publishNotReadyAddresses = 13; */ boolean hasPublishNotReadyAddresses(); /** * * *
     * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
     * Service should disregard any indications of ready/not-ready.
     * The primary use case for setting this field is for a StatefulSet's Headless Service to
     * propagate SRV DNS records for its Pods for the purpose of peer discovery.
     * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
     * Services interpret this to mean that all endpoints are considered "ready" even if the
     * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
     * through the Endpoints or EndpointSlice resources can safely assume this behavior.
     * +optional
     * 
* * optional bool publishNotReadyAddresses = 13; */ boolean getPublishNotReadyAddresses(); /** * * *
     * sessionAffinityConfig contains the configurations of session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ boolean hasSessionAffinityConfig(); /** * * *
     * sessionAffinityConfig contains the configurations of session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ io.kubernetes.client.proto.V1.SessionAffinityConfig getSessionAffinityConfig(); /** * * *
     * sessionAffinityConfig contains the configurations of session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder getSessionAffinityConfigOrBuilder(); /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ java.util.List getIpFamiliesList(); /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ int getIpFamiliesCount(); /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ java.lang.String getIpFamilies(int index); /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ com.google.protobuf.ByteString getIpFamiliesBytes(int index); /** * * *
     * IPFamilyPolicy represents the dual-stack-ness requested or required by
     * this Service. If there is no value provided, then this field will be set
     * to SingleStack. Services can be "SingleStack" (a single IP family),
     * "PreferDualStack" (two IP families on dual-stack configured clusters or
     * a single IP family on single-stack clusters), or "RequireDualStack"
     * (two IP families on dual-stack configured clusters, otherwise fail). The
     * ipFamilies and clusterIPs fields depend on the value of this field. This
     * field will be wiped when updating a service to type ExternalName.
     * +optional
     * 
* * optional string ipFamilyPolicy = 17; */ boolean hasIpFamilyPolicy(); /** * * *
     * IPFamilyPolicy represents the dual-stack-ness requested or required by
     * this Service. If there is no value provided, then this field will be set
     * to SingleStack. Services can be "SingleStack" (a single IP family),
     * "PreferDualStack" (two IP families on dual-stack configured clusters or
     * a single IP family on single-stack clusters), or "RequireDualStack"
     * (two IP families on dual-stack configured clusters, otherwise fail). The
     * ipFamilies and clusterIPs fields depend on the value of this field. This
     * field will be wiped when updating a service to type ExternalName.
     * +optional
     * 
* * optional string ipFamilyPolicy = 17; */ java.lang.String getIpFamilyPolicy(); /** * * *
     * IPFamilyPolicy represents the dual-stack-ness requested or required by
     * this Service. If there is no value provided, then this field will be set
     * to SingleStack. Services can be "SingleStack" (a single IP family),
     * "PreferDualStack" (two IP families on dual-stack configured clusters or
     * a single IP family on single-stack clusters), or "RequireDualStack"
     * (two IP families on dual-stack configured clusters, otherwise fail). The
     * ipFamilies and clusterIPs fields depend on the value of this field. This
     * field will be wiped when updating a service to type ExternalName.
     * +optional
     * 
* * optional string ipFamilyPolicy = 17; */ com.google.protobuf.ByteString getIpFamilyPolicyBytes(); /** * * *
     * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
     * allocated for services with type LoadBalancer.  Default is "true". It
     * may be set to "false" if the cluster load-balancer does not rely on
     * NodePorts.  If the caller requests specific NodePorts (by specifying a
     * value), those requests will be respected, regardless of this field.
     * This field may only be set for services with type LoadBalancer and will
     * be cleared if the type is changed to any other type.
     * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
     * +featureGate=ServiceLBNodePortControl
     * +optional
     * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ boolean hasAllocateLoadBalancerNodePorts(); /** * * *
     * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
     * allocated for services with type LoadBalancer.  Default is "true". It
     * may be set to "false" if the cluster load-balancer does not rely on
     * NodePorts.  If the caller requests specific NodePorts (by specifying a
     * value), those requests will be respected, regardless of this field.
     * This field may only be set for services with type LoadBalancer and will
     * be cleared if the type is changed to any other type.
     * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
     * +featureGate=ServiceLBNodePortControl
     * +optional
     * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ boolean getAllocateLoadBalancerNodePorts(); /** * * *
     * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
     * If specified, the value of this field must be a label-style identifier, with an optional prefix,
     * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
     * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
     * balancer implementation is used, today this is typically done through the cloud provider integration,
     * but should apply for any default implementation. If set, it is assumed that a load balancer
     * implementation is watching for Services with a matching class. Any default load balancer
     * implementation (e.g. cloud providers) should ignore Services that set this field.
     * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
     * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
     * +featureGate=LoadBalancerClass
     * +optional
     * 
* * optional string loadBalancerClass = 21; */ boolean hasLoadBalancerClass(); /** * * *
     * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
     * If specified, the value of this field must be a label-style identifier, with an optional prefix,
     * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
     * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
     * balancer implementation is used, today this is typically done through the cloud provider integration,
     * but should apply for any default implementation. If set, it is assumed that a load balancer
     * implementation is watching for Services with a matching class. Any default load balancer
     * implementation (e.g. cloud providers) should ignore Services that set this field.
     * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
     * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
     * +featureGate=LoadBalancerClass
     * +optional
     * 
* * optional string loadBalancerClass = 21; */ java.lang.String getLoadBalancerClass(); /** * * *
     * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
     * If specified, the value of this field must be a label-style identifier, with an optional prefix,
     * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
     * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
     * balancer implementation is used, today this is typically done through the cloud provider integration,
     * but should apply for any default implementation. If set, it is assumed that a load balancer
     * implementation is watching for Services with a matching class. Any default load balancer
     * implementation (e.g. cloud providers) should ignore Services that set this field.
     * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
     * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
     * +featureGate=LoadBalancerClass
     * +optional
     * 
* * optional string loadBalancerClass = 21; */ com.google.protobuf.ByteString getLoadBalancerClassBytes(); /** * * *
     * InternalTrafficPolicy specifies if the cluster internal traffic
     * should be routed to all endpoints or node-local endpoints only.
     * "Cluster" routes internal traffic to a Service to all endpoints.
     * "Local" routes traffic to node-local endpoints only, traffic is
     * dropped if no node-local endpoints are ready.
     * The default value is "Cluster".
     * +featureGate=ServiceInternalTrafficPolicy
     * +optional
     * 
* * optional string internalTrafficPolicy = 22; */ boolean hasInternalTrafficPolicy(); /** * * *
     * InternalTrafficPolicy specifies if the cluster internal traffic
     * should be routed to all endpoints or node-local endpoints only.
     * "Cluster" routes internal traffic to a Service to all endpoints.
     * "Local" routes traffic to node-local endpoints only, traffic is
     * dropped if no node-local endpoints are ready.
     * The default value is "Cluster".
     * +featureGate=ServiceInternalTrafficPolicy
     * +optional
     * 
* * optional string internalTrafficPolicy = 22; */ java.lang.String getInternalTrafficPolicy(); /** * * *
     * InternalTrafficPolicy specifies if the cluster internal traffic
     * should be routed to all endpoints or node-local endpoints only.
     * "Cluster" routes internal traffic to a Service to all endpoints.
     * "Local" routes traffic to node-local endpoints only, traffic is
     * dropped if no node-local endpoints are ready.
     * The default value is "Cluster".
     * +featureGate=ServiceInternalTrafficPolicy
     * +optional
     * 
* * optional string internalTrafficPolicy = 22; */ com.google.protobuf.ByteString getInternalTrafficPolicyBytes(); } /** * * *
   * ServiceSpec describes the attributes that a user creates on a service.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceSpec} */ public static final class ServiceSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceSpec) ServiceSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceSpec.newBuilder() to construct. private ServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceSpec() { ports_ = java.util.Collections.emptyList(); clusterIP_ = ""; clusterIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = ""; externalIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; sessionAffinity_ = ""; loadBalancerIP_ = ""; loadBalancerSourceRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; externalName_ = ""; externalTrafficPolicy_ = ""; healthCheckNodePort_ = 0; publishNotReadyAddresses_ = false; ipFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; ipFamilyPolicy_ = ""; allocateLoadBalancerNodePorts_ = false; loadBalancerClass_ = ""; internalTrafficPolicy_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceSpec( 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)) { ports_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } ports_.add( input.readMessage( io.kubernetes.client.proto.V1.ServicePort.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { selector_ = com.google.protobuf.MapField.newMapField( SelectorDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry selector__ = input.readMessage( SelectorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); selector_.getMutableMap().put(selector__.getKey(), selector__.getValue()); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; clusterIP_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; type_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { externalIPs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } externalIPs_.add(bs); break; } case 58: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; sessionAffinity_ = bs; break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; loadBalancerIP_ = bs; break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { loadBalancerSourceRanges_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000100; } loadBalancerSourceRanges_.add(bs); break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; externalName_ = bs; break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; externalTrafficPolicy_ = bs; break; } case 96: { bitField0_ |= 0x00000040; healthCheckNodePort_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00000080; publishNotReadyAddresses_ = input.readBool(); break; } case 114: { io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = sessionAffinityConfig_.toBuilder(); } sessionAffinityConfig_ = input.readMessage( io.kubernetes.client.proto.V1.SessionAffinityConfig.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sessionAffinityConfig_); sessionAffinityConfig_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 138: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000200; ipFamilyPolicy_ = bs; break; } case 146: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { clusterIPs_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } clusterIPs_.add(bs); break; } case 154: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { ipFamilies_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00004000; } ipFamilies_.add(bs); break; } case 160: { bitField0_ |= 0x00000400; allocateLoadBalancerNodePorts_ = input.readBool(); break; } case 170: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000800; loadBalancerClass_ = bs; break; } case 178: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00001000; internalTrafficPolicy_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { ports_ = java.util.Collections.unmodifiableList(ports_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { externalIPs_ = externalIPs_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { loadBalancerSourceRanges_ = loadBalancerSourceRanges_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { clusterIPs_ = clusterIPs_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { ipFamilies_ = ipFamilies_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceSpec.class, io.kubernetes.client.proto.V1.ServiceSpec.Builder.class); } private int bitField0_; public static final int PORTS_FIELD_NUMBER = 1; private java.util.List ports_; /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public java.util.List getPortsList() { return ports_; } /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public java.util.List getPortsOrBuilderList() { return ports_; } /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public int getPortsCount() { return ports_.size(); } /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePort getPorts(int index) { return ports_.get(index); } /** * * *
     * The list of ports that are exposed by this service.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +patchMergeKey=port
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=port
     * +listMapKey=protocol
     * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePortOrBuilder getPortsOrBuilder(int index) { return ports_.get(index); } public static final int SELECTOR_FIELD_NUMBER = 2; private static final class SelectorDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField selector_; private com.google.protobuf.MapField internalGetSelector() { if (selector_ == null) { return com.google.protobuf.MapField.emptyMapField(SelectorDefaultEntryHolder.defaultEntry); } return selector_; } public int getSelectorCount() { return internalGetSelector().getMap().size(); } /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public boolean containsSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSelector().getMap().containsKey(key); } /** Use {@link #getSelectorMap()} instead. */ @java.lang.Deprecated public java.util.Map getSelector() { return getSelectorMap(); } /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public java.util.Map getSelectorMap() { return internalGetSelector().getMap(); } /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Route service traffic to pods with label keys and values matching this
     * selector. If empty or not present, the service is assumed to have an
     * external process managing its endpoints, which Kubernetes will not
     * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
     * Ignored if type is ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/
     * +optional
     * +mapType=atomic
     * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CLUSTERIP_FIELD_NUMBER = 3; private volatile java.lang.Object clusterIP_; /** * * *
     * clusterIP is the IP address of the service and is usually assigned
     * randomly. If an address is specified manually, is in-range (as per
     * system configuration), and is not in use, it will be allocated to the
     * service; otherwise creation of the service will fail. This field may not
     * be changed through updates unless the type field is also being changed
     * to ExternalName (which requires this field to be blank) or the type
     * field is being changed from ExternalName (in which case this field may
     * optionally be specified, as describe above).  Valid values are "None",
     * empty string (""), or a valid IP address. Setting this to "None" makes a
     * "headless service" (no virtual IP), which is useful when direct endpoint
     * connections are preferred and proxying is not required.  Only applies to
     * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
     * when creating a Service of type ExternalName, creation will fail. This
     * field will be wiped when updating a Service to type ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string clusterIP = 3; */ public boolean hasClusterIP() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * clusterIP is the IP address of the service and is usually assigned
     * randomly. If an address is specified manually, is in-range (as per
     * system configuration), and is not in use, it will be allocated to the
     * service; otherwise creation of the service will fail. This field may not
     * be changed through updates unless the type field is also being changed
     * to ExternalName (which requires this field to be blank) or the type
     * field is being changed from ExternalName (in which case this field may
     * optionally be specified, as describe above).  Valid values are "None",
     * empty string (""), or a valid IP address. Setting this to "None" makes a
     * "headless service" (no virtual IP), which is useful when direct endpoint
     * connections are preferred and proxying is not required.  Only applies to
     * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
     * when creating a Service of type ExternalName, creation will fail. This
     * field will be wiped when updating a Service to type ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string clusterIP = 3; */ public java.lang.String getClusterIP() { java.lang.Object ref = clusterIP_; 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()) { clusterIP_ = s; } return s; } } /** * * *
     * clusterIP is the IP address of the service and is usually assigned
     * randomly. If an address is specified manually, is in-range (as per
     * system configuration), and is not in use, it will be allocated to the
     * service; otherwise creation of the service will fail. This field may not
     * be changed through updates unless the type field is also being changed
     * to ExternalName (which requires this field to be blank) or the type
     * field is being changed from ExternalName (in which case this field may
     * optionally be specified, as describe above).  Valid values are "None",
     * empty string (""), or a valid IP address. Setting this to "None" makes a
     * "headless service" (no virtual IP), which is useful when direct endpoint
     * connections are preferred and proxying is not required.  Only applies to
     * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
     * when creating a Service of type ExternalName, creation will fail. This
     * field will be wiped when updating a Service to type ExternalName.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string clusterIP = 3; */ public com.google.protobuf.ByteString getClusterIPBytes() { java.lang.Object ref = clusterIP_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTERIPS_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList clusterIPs_; /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ public com.google.protobuf.ProtocolStringList getClusterIPsList() { return clusterIPs_; } /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ public int getClusterIPsCount() { return clusterIPs_.size(); } /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ public java.lang.String getClusterIPs(int index) { return clusterIPs_.get(index); } /** * * *
     * ClusterIPs is a list of IP addresses assigned to this service, and are
     * usually assigned randomly.  If an address is specified manually, is
     * in-range (as per system configuration), and is not in use, it will be
     * allocated to the service; otherwise creation of the service will fail.
     * This field may not be changed through updates unless the type field is
     * also being changed to ExternalName (which requires this field to be
     * empty) or the type field is being changed from ExternalName (in which
     * case this field may optionally be specified, as describe above).  Valid
     * values are "None", empty string (""), or a valid IP address.  Setting
     * this to "None" makes a "headless service" (no virtual IP), which is
     * useful when direct endpoint connections are preferred and proxying is
     * not required.  Only applies to types ClusterIP, NodePort, and
     * LoadBalancer. If this field is specified when creating a Service of type
     * ExternalName, creation will fail. This field will be wiped when updating
     * a Service to type ExternalName.  If this field is not specified, it will
     * be initialized from the clusterIP field.  If this field is specified,
     * clients must ensure that clusterIPs[0] and clusterIP have the same
     * value.
     * This field may hold a maximum of two entries (dual-stack IPs, in either order).
     * These IPs must correspond to the values of the ipFamilies field. Both
     * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +listType=atomic
     * +optional
     * 
* * repeated string clusterIPs = 18; */ public com.google.protobuf.ByteString getClusterIPsBytes(int index) { return clusterIPs_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object type_; /** * * *
     * type determines how the Service is exposed. Defaults to ClusterIP. Valid
     * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
     * "ClusterIP" allocates a cluster-internal IP address for load-balancing
     * to endpoints. Endpoints are determined by the selector or if that is not
     * specified, by manual construction of an Endpoints object or
     * EndpointSlice objects. If clusterIP is "None", no virtual IP is
     * allocated and the endpoints are published as a set of endpoints rather
     * than a virtual IP.
     * "NodePort" builds on ClusterIP and allocates a port on every node which
     * routes to the same endpoints as the clusterIP.
     * "LoadBalancer" builds on NodePort and creates an external load-balancer
     * (if supported in the current cloud) which routes to the same endpoints
     * as the clusterIP.
     * "ExternalName" aliases this service to the specified externalName.
     * Several other fields do not apply to ExternalName services.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
     * +optional
     * 
* * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * type determines how the Service is exposed. Defaults to ClusterIP. Valid
     * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
     * "ClusterIP" allocates a cluster-internal IP address for load-balancing
     * to endpoints. Endpoints are determined by the selector or if that is not
     * specified, by manual construction of an Endpoints object or
     * EndpointSlice objects. If clusterIP is "None", no virtual IP is
     * allocated and the endpoints are published as a set of endpoints rather
     * than a virtual IP.
     * "NodePort" builds on ClusterIP and allocates a port on every node which
     * routes to the same endpoints as the clusterIP.
     * "LoadBalancer" builds on NodePort and creates an external load-balancer
     * (if supported in the current cloud) which routes to the same endpoints
     * as the clusterIP.
     * "ExternalName" aliases this service to the specified externalName.
     * Several other fields do not apply to ExternalName services.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
     * +optional
     * 
* * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * * *
     * type determines how the Service is exposed. Defaults to ClusterIP. Valid
     * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
     * "ClusterIP" allocates a cluster-internal IP address for load-balancing
     * to endpoints. Endpoints are determined by the selector or if that is not
     * specified, by manual construction of an Endpoints object or
     * EndpointSlice objects. If clusterIP is "None", no virtual IP is
     * allocated and the endpoints are published as a set of endpoints rather
     * than a virtual IP.
     * "NodePort" builds on ClusterIP and allocates a port on every node which
     * routes to the same endpoints as the clusterIP.
     * "LoadBalancer" builds on NodePort and creates an external load-balancer
     * (if supported in the current cloud) which routes to the same endpoints
     * as the clusterIP.
     * "ExternalName" aliases this service to the specified externalName.
     * Several other fields do not apply to ExternalName services.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
     * +optional
     * 
* * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTERNALIPS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList externalIPs_; /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ public com.google.protobuf.ProtocolStringList getExternalIPsList() { return externalIPs_; } /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ public int getExternalIPsCount() { return externalIPs_.size(); } /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ public java.lang.String getExternalIPs(int index) { return externalIPs_.get(index); } /** * * *
     * externalIPs is a list of IP addresses for which nodes in the cluster
     * will also accept traffic for this service.  These IPs are not managed by
     * Kubernetes.  The user is responsible for ensuring that traffic arrives
     * at a node with this IP.  A common example is external load-balancers
     * that are not part of the Kubernetes system.
     * +optional
     * 
* * repeated string externalIPs = 5; */ public com.google.protobuf.ByteString getExternalIPsBytes(int index) { return externalIPs_.getByteString(index); } public static final int SESSIONAFFINITY_FIELD_NUMBER = 7; private volatile java.lang.Object sessionAffinity_; /** * * *
     * Supports "ClientIP" and "None". Used to maintain session affinity.
     * Enable client IP based session affinity.
     * Must be ClientIP or None.
     * Defaults to None.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string sessionAffinity = 7; */ public boolean hasSessionAffinity() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Supports "ClientIP" and "None". Used to maintain session affinity.
     * Enable client IP based session affinity.
     * Must be ClientIP or None.
     * Defaults to None.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string sessionAffinity = 7; */ public java.lang.String getSessionAffinity() { java.lang.Object ref = sessionAffinity_; 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()) { sessionAffinity_ = s; } return s; } } /** * * *
     * Supports "ClientIP" and "None". Used to maintain session affinity.
     * Enable client IP based session affinity.
     * Must be ClientIP or None.
     * Defaults to None.
     * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
     * +optional
     * 
* * optional string sessionAffinity = 7; */ public com.google.protobuf.ByteString getSessionAffinityBytes() { java.lang.Object ref = sessionAffinity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sessionAffinity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOADBALANCERIP_FIELD_NUMBER = 8; private volatile java.lang.Object loadBalancerIP_; /** * * *
     * Only applies to Service Type: LoadBalancer
     * LoadBalancer will get created with the IP specified in this field.
     * This feature depends on whether the underlying cloud-provider supports specifying
     * the loadBalancerIP when a load balancer is created.
     * This field will be ignored if the cloud-provider does not support the feature.
     * +optional
     * 
* * optional string loadBalancerIP = 8; */ public boolean hasLoadBalancerIP() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Only applies to Service Type: LoadBalancer
     * LoadBalancer will get created with the IP specified in this field.
     * This feature depends on whether the underlying cloud-provider supports specifying
     * the loadBalancerIP when a load balancer is created.
     * This field will be ignored if the cloud-provider does not support the feature.
     * +optional
     * 
* * optional string loadBalancerIP = 8; */ public java.lang.String getLoadBalancerIP() { java.lang.Object ref = loadBalancerIP_; 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()) { loadBalancerIP_ = s; } return s; } } /** * * *
     * Only applies to Service Type: LoadBalancer
     * LoadBalancer will get created with the IP specified in this field.
     * This feature depends on whether the underlying cloud-provider supports specifying
     * the loadBalancerIP when a load balancer is created.
     * This field will be ignored if the cloud-provider does not support the feature.
     * +optional
     * 
* * optional string loadBalancerIP = 8; */ public com.google.protobuf.ByteString getLoadBalancerIPBytes() { java.lang.Object ref = loadBalancerIP_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loadBalancerIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOADBALANCERSOURCERANGES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList loadBalancerSourceRanges_; /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ public com.google.protobuf.ProtocolStringList getLoadBalancerSourceRangesList() { return loadBalancerSourceRanges_; } /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ public int getLoadBalancerSourceRangesCount() { return loadBalancerSourceRanges_.size(); } /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ public java.lang.String getLoadBalancerSourceRanges(int index) { return loadBalancerSourceRanges_.get(index); } /** * * *
     * If specified and supported by the platform, this will restrict traffic through the cloud-provider
     * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
     * cloud-provider does not support the feature."
     * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
     * +optional
     * 
* * repeated string loadBalancerSourceRanges = 9; */ public com.google.protobuf.ByteString getLoadBalancerSourceRangesBytes(int index) { return loadBalancerSourceRanges_.getByteString(index); } public static final int EXTERNALNAME_FIELD_NUMBER = 10; private volatile java.lang.Object externalName_; /** * * *
     * externalName is the external reference that discovery mechanisms will
     * return as an alias for this service (e.g. a DNS CNAME record). No
     * proxying will be involved.  Must be a lowercase RFC-1123 hostname
     * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
     * +optional
     * 
* * optional string externalName = 10; */ public boolean hasExternalName() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * externalName is the external reference that discovery mechanisms will
     * return as an alias for this service (e.g. a DNS CNAME record). No
     * proxying will be involved.  Must be a lowercase RFC-1123 hostname
     * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
     * +optional
     * 
* * optional string externalName = 10; */ public java.lang.String getExternalName() { java.lang.Object ref = externalName_; 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()) { externalName_ = s; } return s; } } /** * * *
     * externalName is the external reference that discovery mechanisms will
     * return as an alias for this service (e.g. a DNS CNAME record). No
     * proxying will be involved.  Must be a lowercase RFC-1123 hostname
     * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
     * +optional
     * 
* * optional string externalName = 10; */ public com.google.protobuf.ByteString getExternalNameBytes() { java.lang.Object ref = externalName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTERNALTRAFFICPOLICY_FIELD_NUMBER = 11; private volatile java.lang.Object externalTrafficPolicy_; /** * * *
     * externalTrafficPolicy denotes if this Service desires to route external
     * traffic to node-local or cluster-wide endpoints. "Local" preserves the
     * client source IP and avoids a second hop for LoadBalancer and Nodeport
     * type services, but risks potentially imbalanced traffic spreading.
     * "Cluster" obscures the client source IP and may cause a second hop to
     * another node, but should have good overall load-spreading.
     * +optional
     * 
* * optional string externalTrafficPolicy = 11; */ public boolean hasExternalTrafficPolicy() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * externalTrafficPolicy denotes if this Service desires to route external
     * traffic to node-local or cluster-wide endpoints. "Local" preserves the
     * client source IP and avoids a second hop for LoadBalancer and Nodeport
     * type services, but risks potentially imbalanced traffic spreading.
     * "Cluster" obscures the client source IP and may cause a second hop to
     * another node, but should have good overall load-spreading.
     * +optional
     * 
* * optional string externalTrafficPolicy = 11; */ public java.lang.String getExternalTrafficPolicy() { java.lang.Object ref = externalTrafficPolicy_; 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()) { externalTrafficPolicy_ = s; } return s; } } /** * * *
     * externalTrafficPolicy denotes if this Service desires to route external
     * traffic to node-local or cluster-wide endpoints. "Local" preserves the
     * client source IP and avoids a second hop for LoadBalancer and Nodeport
     * type services, but risks potentially imbalanced traffic spreading.
     * "Cluster" obscures the client source IP and may cause a second hop to
     * another node, but should have good overall load-spreading.
     * +optional
     * 
* * optional string externalTrafficPolicy = 11; */ public com.google.protobuf.ByteString getExternalTrafficPolicyBytes() { java.lang.Object ref = externalTrafficPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalTrafficPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTHCHECKNODEPORT_FIELD_NUMBER = 12; private int healthCheckNodePort_; /** * * *
     * healthCheckNodePort specifies the healthcheck nodePort for the service.
     * This only applies when type is set to LoadBalancer and
     * externalTrafficPolicy is set to Local. If a value is specified, is
     * in-range, and is not in use, it will be used.  If not specified, a value
     * will be automatically allocated.  External systems (e.g. load-balancers)
     * can use this port to determine if a given node holds endpoints for this
     * service or not.  If this field is specified when creating a Service
     * which does not need it, creation will fail. This field will be wiped
     * when updating a Service to no longer need it (e.g. changing type).
     * +optional
     * 
* * optional int32 healthCheckNodePort = 12; */ public boolean hasHealthCheckNodePort() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * healthCheckNodePort specifies the healthcheck nodePort for the service.
     * This only applies when type is set to LoadBalancer and
     * externalTrafficPolicy is set to Local. If a value is specified, is
     * in-range, and is not in use, it will be used.  If not specified, a value
     * will be automatically allocated.  External systems (e.g. load-balancers)
     * can use this port to determine if a given node holds endpoints for this
     * service or not.  If this field is specified when creating a Service
     * which does not need it, creation will fail. This field will be wiped
     * when updating a Service to no longer need it (e.g. changing type).
     * +optional
     * 
* * optional int32 healthCheckNodePort = 12; */ public int getHealthCheckNodePort() { return healthCheckNodePort_; } public static final int PUBLISHNOTREADYADDRESSES_FIELD_NUMBER = 13; private boolean publishNotReadyAddresses_; /** * * *
     * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
     * Service should disregard any indications of ready/not-ready.
     * The primary use case for setting this field is for a StatefulSet's Headless Service to
     * propagate SRV DNS records for its Pods for the purpose of peer discovery.
     * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
     * Services interpret this to mean that all endpoints are considered "ready" even if the
     * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
     * through the Endpoints or EndpointSlice resources can safely assume this behavior.
     * +optional
     * 
* * optional bool publishNotReadyAddresses = 13; */ public boolean hasPublishNotReadyAddresses() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
     * Service should disregard any indications of ready/not-ready.
     * The primary use case for setting this field is for a StatefulSet's Headless Service to
     * propagate SRV DNS records for its Pods for the purpose of peer discovery.
     * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
     * Services interpret this to mean that all endpoints are considered "ready" even if the
     * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
     * through the Endpoints or EndpointSlice resources can safely assume this behavior.
     * +optional
     * 
* * optional bool publishNotReadyAddresses = 13; */ public boolean getPublishNotReadyAddresses() { return publishNotReadyAddresses_; } public static final int SESSIONAFFINITYCONFIG_FIELD_NUMBER = 14; private io.kubernetes.client.proto.V1.SessionAffinityConfig sessionAffinityConfig_; /** * * *
     * sessionAffinityConfig contains the configurations of session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public boolean hasSessionAffinityConfig() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * sessionAffinityConfig contains the configurations of session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public io.kubernetes.client.proto.V1.SessionAffinityConfig getSessionAffinityConfig() { return sessionAffinityConfig_ == null ? io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance() : sessionAffinityConfig_; } /** * * *
     * sessionAffinityConfig contains the configurations of session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder getSessionAffinityConfigOrBuilder() { return sessionAffinityConfig_ == null ? io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance() : sessionAffinityConfig_; } public static final int IPFAMILIES_FIELD_NUMBER = 19; private com.google.protobuf.LazyStringList ipFamilies_; /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ public com.google.protobuf.ProtocolStringList getIpFamiliesList() { return ipFamilies_; } /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ public int getIpFamiliesCount() { return ipFamilies_.size(); } /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ public java.lang.String getIpFamilies(int index) { return ipFamilies_.get(index); } /** * * *
     * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
     * service. This field is usually assigned automatically based on cluster
     * configuration and the ipFamilyPolicy field. If this field is specified
     * manually, the requested family is available in the cluster,
     * and ipFamilyPolicy allows it, it will be used; otherwise creation of
     * the service will fail. This field is conditionally mutable: it allows
     * for adding or removing a secondary IP family, but it does not allow
     * changing the primary IP family of the Service. Valid values are "IPv4"
     * and "IPv6".  This field only applies to Services of types ClusterIP,
     * NodePort, and LoadBalancer, and does apply to "headless" services.
     * This field will be wiped when updating a Service to type ExternalName.
     * This field may hold a maximum of two entries (dual-stack families, in
     * either order).  These families must correspond to the values of the
     * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
     * governed by the ipFamilyPolicy field.
     * +listType=atomic
     * +optional
     * 
* * repeated string ipFamilies = 19; */ public com.google.protobuf.ByteString getIpFamiliesBytes(int index) { return ipFamilies_.getByteString(index); } public static final int IPFAMILYPOLICY_FIELD_NUMBER = 17; private volatile java.lang.Object ipFamilyPolicy_; /** * * *
     * IPFamilyPolicy represents the dual-stack-ness requested or required by
     * this Service. If there is no value provided, then this field will be set
     * to SingleStack. Services can be "SingleStack" (a single IP family),
     * "PreferDualStack" (two IP families on dual-stack configured clusters or
     * a single IP family on single-stack clusters), or "RequireDualStack"
     * (two IP families on dual-stack configured clusters, otherwise fail). The
     * ipFamilies and clusterIPs fields depend on the value of this field. This
     * field will be wiped when updating a service to type ExternalName.
     * +optional
     * 
* * optional string ipFamilyPolicy = 17; */ public boolean hasIpFamilyPolicy() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * IPFamilyPolicy represents the dual-stack-ness requested or required by
     * this Service. If there is no value provided, then this field will be set
     * to SingleStack. Services can be "SingleStack" (a single IP family),
     * "PreferDualStack" (two IP families on dual-stack configured clusters or
     * a single IP family on single-stack clusters), or "RequireDualStack"
     * (two IP families on dual-stack configured clusters, otherwise fail). The
     * ipFamilies and clusterIPs fields depend on the value of this field. This
     * field will be wiped when updating a service to type ExternalName.
     * +optional
     * 
* * optional string ipFamilyPolicy = 17; */ public java.lang.String getIpFamilyPolicy() { java.lang.Object ref = ipFamilyPolicy_; 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()) { ipFamilyPolicy_ = s; } return s; } } /** * * *
     * IPFamilyPolicy represents the dual-stack-ness requested or required by
     * this Service. If there is no value provided, then this field will be set
     * to SingleStack. Services can be "SingleStack" (a single IP family),
     * "PreferDualStack" (two IP families on dual-stack configured clusters or
     * a single IP family on single-stack clusters), or "RequireDualStack"
     * (two IP families on dual-stack configured clusters, otherwise fail). The
     * ipFamilies and clusterIPs fields depend on the value of this field. This
     * field will be wiped when updating a service to type ExternalName.
     * +optional
     * 
* * optional string ipFamilyPolicy = 17; */ public com.google.protobuf.ByteString getIpFamilyPolicyBytes() { java.lang.Object ref = ipFamilyPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipFamilyPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALLOCATELOADBALANCERNODEPORTS_FIELD_NUMBER = 20; private boolean allocateLoadBalancerNodePorts_; /** * * *
     * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
     * allocated for services with type LoadBalancer.  Default is "true". It
     * may be set to "false" if the cluster load-balancer does not rely on
     * NodePorts.  If the caller requests specific NodePorts (by specifying a
     * value), those requests will be respected, regardless of this field.
     * This field may only be set for services with type LoadBalancer and will
     * be cleared if the type is changed to any other type.
     * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
     * +featureGate=ServiceLBNodePortControl
     * +optional
     * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ public boolean hasAllocateLoadBalancerNodePorts() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
     * allocated for services with type LoadBalancer.  Default is "true". It
     * may be set to "false" if the cluster load-balancer does not rely on
     * NodePorts.  If the caller requests specific NodePorts (by specifying a
     * value), those requests will be respected, regardless of this field.
     * This field may only be set for services with type LoadBalancer and will
     * be cleared if the type is changed to any other type.
     * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
     * +featureGate=ServiceLBNodePortControl
     * +optional
     * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ public boolean getAllocateLoadBalancerNodePorts() { return allocateLoadBalancerNodePorts_; } public static final int LOADBALANCERCLASS_FIELD_NUMBER = 21; private volatile java.lang.Object loadBalancerClass_; /** * * *
     * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
     * If specified, the value of this field must be a label-style identifier, with an optional prefix,
     * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
     * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
     * balancer implementation is used, today this is typically done through the cloud provider integration,
     * but should apply for any default implementation. If set, it is assumed that a load balancer
     * implementation is watching for Services with a matching class. Any default load balancer
     * implementation (e.g. cloud providers) should ignore Services that set this field.
     * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
     * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
     * +featureGate=LoadBalancerClass
     * +optional
     * 
* * optional string loadBalancerClass = 21; */ public boolean hasLoadBalancerClass() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
     * If specified, the value of this field must be a label-style identifier, with an optional prefix,
     * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
     * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
     * balancer implementation is used, today this is typically done through the cloud provider integration,
     * but should apply for any default implementation. If set, it is assumed that a load balancer
     * implementation is watching for Services with a matching class. Any default load balancer
     * implementation (e.g. cloud providers) should ignore Services that set this field.
     * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
     * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
     * +featureGate=LoadBalancerClass
     * +optional
     * 
* * optional string loadBalancerClass = 21; */ public java.lang.String getLoadBalancerClass() { java.lang.Object ref = loadBalancerClass_; 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()) { loadBalancerClass_ = s; } return s; } } /** * * *
     * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
     * If specified, the value of this field must be a label-style identifier, with an optional prefix,
     * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
     * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
     * balancer implementation is used, today this is typically done through the cloud provider integration,
     * but should apply for any default implementation. If set, it is assumed that a load balancer
     * implementation is watching for Services with a matching class. Any default load balancer
     * implementation (e.g. cloud providers) should ignore Services that set this field.
     * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
     * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
     * +featureGate=LoadBalancerClass
     * +optional
     * 
* * optional string loadBalancerClass = 21; */ public com.google.protobuf.ByteString getLoadBalancerClassBytes() { java.lang.Object ref = loadBalancerClass_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loadBalancerClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERNALTRAFFICPOLICY_FIELD_NUMBER = 22; private volatile java.lang.Object internalTrafficPolicy_; /** * * *
     * InternalTrafficPolicy specifies if the cluster internal traffic
     * should be routed to all endpoints or node-local endpoints only.
     * "Cluster" routes internal traffic to a Service to all endpoints.
     * "Local" routes traffic to node-local endpoints only, traffic is
     * dropped if no node-local endpoints are ready.
     * The default value is "Cluster".
     * +featureGate=ServiceInternalTrafficPolicy
     * +optional
     * 
* * optional string internalTrafficPolicy = 22; */ public boolean hasInternalTrafficPolicy() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * InternalTrafficPolicy specifies if the cluster internal traffic
     * should be routed to all endpoints or node-local endpoints only.
     * "Cluster" routes internal traffic to a Service to all endpoints.
     * "Local" routes traffic to node-local endpoints only, traffic is
     * dropped if no node-local endpoints are ready.
     * The default value is "Cluster".
     * +featureGate=ServiceInternalTrafficPolicy
     * +optional
     * 
* * optional string internalTrafficPolicy = 22; */ public java.lang.String getInternalTrafficPolicy() { java.lang.Object ref = internalTrafficPolicy_; 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()) { internalTrafficPolicy_ = s; } return s; } } /** * * *
     * InternalTrafficPolicy specifies if the cluster internal traffic
     * should be routed to all endpoints or node-local endpoints only.
     * "Cluster" routes internal traffic to a Service to all endpoints.
     * "Local" routes traffic to node-local endpoints only, traffic is
     * dropped if no node-local endpoints are ready.
     * The default value is "Cluster".
     * +featureGate=ServiceInternalTrafficPolicy
     * +optional
     * 
* * optional string internalTrafficPolicy = 22; */ public com.google.protobuf.ByteString getInternalTrafficPolicyBytes() { java.lang.Object ref = internalTrafficPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); internalTrafficPolicy_ = 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 { for (int i = 0; i < ports_.size(); i++) { output.writeMessage(1, ports_.get(i)); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSelector(), SelectorDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterIP_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } for (int i = 0; i < externalIPs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, externalIPs_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sessionAffinity_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, loadBalancerIP_); } for (int i = 0; i < loadBalancerSourceRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 9, loadBalancerSourceRanges_.getRaw(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, externalName_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, externalTrafficPolicy_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(12, healthCheckNodePort_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(13, publishNotReadyAddresses_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(14, getSessionAffinityConfig()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, ipFamilyPolicy_); } for (int i = 0; i < clusterIPs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, clusterIPs_.getRaw(i)); } for (int i = 0; i < ipFamilies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, ipFamilies_.getRaw(i)); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(20, allocateLoadBalancerNodePorts_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, loadBalancerClass_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 22, internalTrafficPolicy_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < ports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ports_.get(i)); } for (java.util.Map.Entry entry : internalGetSelector().getMap().entrySet()) { com.google.protobuf.MapEntry selector__ = SelectorDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, selector__); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterIP_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } { int dataSize = 0; for (int i = 0; i < externalIPs_.size(); i++) { dataSize += computeStringSizeNoTag(externalIPs_.getRaw(i)); } size += dataSize; size += 1 * getExternalIPsList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sessionAffinity_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, loadBalancerIP_); } { int dataSize = 0; for (int i = 0; i < loadBalancerSourceRanges_.size(); i++) { dataSize += computeStringSizeNoTag(loadBalancerSourceRanges_.getRaw(i)); } size += dataSize; size += 1 * getLoadBalancerSourceRangesList().size(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, externalName_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, externalTrafficPolicy_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, healthCheckNodePort_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, publishNotReadyAddresses_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 14, getSessionAffinityConfig()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, ipFamilyPolicy_); } { int dataSize = 0; for (int i = 0; i < clusterIPs_.size(); i++) { dataSize += computeStringSizeNoTag(clusterIPs_.getRaw(i)); } size += dataSize; size += 2 * getClusterIPsList().size(); } { int dataSize = 0; for (int i = 0; i < ipFamilies_.size(); i++) { dataSize += computeStringSizeNoTag(ipFamilies_.getRaw(i)); } size += dataSize; size += 2 * getIpFamiliesList().size(); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 20, allocateLoadBalancerNodePorts_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, loadBalancerClass_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, internalTrafficPolicy_); } 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.V1.ServiceSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceSpec other = (io.kubernetes.client.proto.V1.ServiceSpec) obj; boolean result = true; result = result && getPortsList().equals(other.getPortsList()); result = result && internalGetSelector().equals(other.internalGetSelector()); result = result && (hasClusterIP() == other.hasClusterIP()); if (hasClusterIP()) { result = result && getClusterIP().equals(other.getClusterIP()); } result = result && getClusterIPsList().equals(other.getClusterIPsList()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType().equals(other.getType()); } result = result && getExternalIPsList().equals(other.getExternalIPsList()); result = result && (hasSessionAffinity() == other.hasSessionAffinity()); if (hasSessionAffinity()) { result = result && getSessionAffinity().equals(other.getSessionAffinity()); } result = result && (hasLoadBalancerIP() == other.hasLoadBalancerIP()); if (hasLoadBalancerIP()) { result = result && getLoadBalancerIP().equals(other.getLoadBalancerIP()); } result = result && getLoadBalancerSourceRangesList().equals(other.getLoadBalancerSourceRangesList()); result = result && (hasExternalName() == other.hasExternalName()); if (hasExternalName()) { result = result && getExternalName().equals(other.getExternalName()); } result = result && (hasExternalTrafficPolicy() == other.hasExternalTrafficPolicy()); if (hasExternalTrafficPolicy()) { result = result && getExternalTrafficPolicy().equals(other.getExternalTrafficPolicy()); } result = result && (hasHealthCheckNodePort() == other.hasHealthCheckNodePort()); if (hasHealthCheckNodePort()) { result = result && (getHealthCheckNodePort() == other.getHealthCheckNodePort()); } result = result && (hasPublishNotReadyAddresses() == other.hasPublishNotReadyAddresses()); if (hasPublishNotReadyAddresses()) { result = result && (getPublishNotReadyAddresses() == other.getPublishNotReadyAddresses()); } result = result && (hasSessionAffinityConfig() == other.hasSessionAffinityConfig()); if (hasSessionAffinityConfig()) { result = result && getSessionAffinityConfig().equals(other.getSessionAffinityConfig()); } result = result && getIpFamiliesList().equals(other.getIpFamiliesList()); result = result && (hasIpFamilyPolicy() == other.hasIpFamilyPolicy()); if (hasIpFamilyPolicy()) { result = result && getIpFamilyPolicy().equals(other.getIpFamilyPolicy()); } result = result && (hasAllocateLoadBalancerNodePorts() == other.hasAllocateLoadBalancerNodePorts()); if (hasAllocateLoadBalancerNodePorts()) { result = result && (getAllocateLoadBalancerNodePorts() == other.getAllocateLoadBalancerNodePorts()); } result = result && (hasLoadBalancerClass() == other.hasLoadBalancerClass()); if (hasLoadBalancerClass()) { result = result && getLoadBalancerClass().equals(other.getLoadBalancerClass()); } result = result && (hasInternalTrafficPolicy() == other.hasInternalTrafficPolicy()); if (hasInternalTrafficPolicy()) { result = result && getInternalTrafficPolicy().equals(other.getInternalTrafficPolicy()); } 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 (getPortsCount() > 0) { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } if (!internalGetSelector().getMap().isEmpty()) { hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + internalGetSelector().hashCode(); } if (hasClusterIP()) { hash = (37 * hash) + CLUSTERIP_FIELD_NUMBER; hash = (53 * hash) + getClusterIP().hashCode(); } if (getClusterIPsCount() > 0) { hash = (37 * hash) + CLUSTERIPS_FIELD_NUMBER; hash = (53 * hash) + getClusterIPsList().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (getExternalIPsCount() > 0) { hash = (37 * hash) + EXTERNALIPS_FIELD_NUMBER; hash = (53 * hash) + getExternalIPsList().hashCode(); } if (hasSessionAffinity()) { hash = (37 * hash) + SESSIONAFFINITY_FIELD_NUMBER; hash = (53 * hash) + getSessionAffinity().hashCode(); } if (hasLoadBalancerIP()) { hash = (37 * hash) + LOADBALANCERIP_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancerIP().hashCode(); } if (getLoadBalancerSourceRangesCount() > 0) { hash = (37 * hash) + LOADBALANCERSOURCERANGES_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancerSourceRangesList().hashCode(); } if (hasExternalName()) { hash = (37 * hash) + EXTERNALNAME_FIELD_NUMBER; hash = (53 * hash) + getExternalName().hashCode(); } if (hasExternalTrafficPolicy()) { hash = (37 * hash) + EXTERNALTRAFFICPOLICY_FIELD_NUMBER; hash = (53 * hash) + getExternalTrafficPolicy().hashCode(); } if (hasHealthCheckNodePort()) { hash = (37 * hash) + HEALTHCHECKNODEPORT_FIELD_NUMBER; hash = (53 * hash) + getHealthCheckNodePort(); } if (hasPublishNotReadyAddresses()) { hash = (37 * hash) + PUBLISHNOTREADYADDRESSES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPublishNotReadyAddresses()); } if (hasSessionAffinityConfig()) { hash = (37 * hash) + SESSIONAFFINITYCONFIG_FIELD_NUMBER; hash = (53 * hash) + getSessionAffinityConfig().hashCode(); } if (getIpFamiliesCount() > 0) { hash = (37 * hash) + IPFAMILIES_FIELD_NUMBER; hash = (53 * hash) + getIpFamiliesList().hashCode(); } if (hasIpFamilyPolicy()) { hash = (37 * hash) + IPFAMILYPOLICY_FIELD_NUMBER; hash = (53 * hash) + getIpFamilyPolicy().hashCode(); } if (hasAllocateLoadBalancerNodePorts()) { hash = (37 * hash) + ALLOCATELOADBALANCERNODEPORTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllocateLoadBalancerNodePorts()); } if (hasLoadBalancerClass()) { hash = (37 * hash) + LOADBALANCERCLASS_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancerClass().hashCode(); } if (hasInternalTrafficPolicy()) { hash = (37 * hash) + INTERNALTRAFFICPOLICY_FIELD_NUMBER; hash = (53 * hash) + getInternalTrafficPolicy().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ServiceSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceSpec 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.V1.ServiceSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceSpec 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.V1.ServiceSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceSpec 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.V1.ServiceSpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceSpec 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.V1.ServiceSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceSpec 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.V1.ServiceSpec 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; } /** * * *
     * ServiceSpec describes the attributes that a user creates on a service.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceSpec) io.kubernetes.client.proto.V1.ServiceSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceSpec.class, io.kubernetes.client.proto.V1.ServiceSpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPortsFieldBuilder(); getSessionAffinityConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { portsBuilder_.clear(); } internalGetMutableSelector().clear(); clusterIP_ = ""; bitField0_ = (bitField0_ & ~0x00000004); clusterIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); type_ = ""; bitField0_ = (bitField0_ & ~0x00000010); externalIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); sessionAffinity_ = ""; bitField0_ = (bitField0_ & ~0x00000040); loadBalancerIP_ = ""; bitField0_ = (bitField0_ & ~0x00000080); loadBalancerSourceRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); externalName_ = ""; bitField0_ = (bitField0_ & ~0x00000200); externalTrafficPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000400); healthCheckNodePort_ = 0; bitField0_ = (bitField0_ & ~0x00000800); publishNotReadyAddresses_ = false; bitField0_ = (bitField0_ & ~0x00001000); if (sessionAffinityConfigBuilder_ == null) { sessionAffinityConfig_ = null; } else { sessionAffinityConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); ipFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); ipFamilyPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00008000); allocateLoadBalancerNodePorts_ = false; bitField0_ = (bitField0_ & ~0x00010000); loadBalancerClass_ = ""; bitField0_ = (bitField0_ & ~0x00020000); internalTrafficPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00040000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceSpec build() { io.kubernetes.client.proto.V1.ServiceSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceSpec buildPartial() { io.kubernetes.client.proto.V1.ServiceSpec result = new io.kubernetes.client.proto.V1.ServiceSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (portsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { ports_ = java.util.Collections.unmodifiableList(ports_); bitField0_ = (bitField0_ & ~0x00000001); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.build(); } result.selector_ = internalGetSelector(); result.selector_.makeImmutable(); if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.clusterIP_ = clusterIP_; if (((bitField0_ & 0x00000008) == 0x00000008)) { clusterIPs_ = clusterIPs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.clusterIPs_ = clusterIPs_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((bitField0_ & 0x00000020) == 0x00000020)) { externalIPs_ = externalIPs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000020); } result.externalIPs_ = externalIPs_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000004; } result.sessionAffinity_ = sessionAffinity_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000008; } result.loadBalancerIP_ = loadBalancerIP_; if (((bitField0_ & 0x00000100) == 0x00000100)) { loadBalancerSourceRanges_ = loadBalancerSourceRanges_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000100); } result.loadBalancerSourceRanges_ = loadBalancerSourceRanges_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000010; } result.externalName_ = externalName_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000020; } result.externalTrafficPolicy_ = externalTrafficPolicy_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000040; } result.healthCheckNodePort_ = healthCheckNodePort_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000080; } result.publishNotReadyAddresses_ = publishNotReadyAddresses_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000100; } if (sessionAffinityConfigBuilder_ == null) { result.sessionAffinityConfig_ = sessionAffinityConfig_; } else { result.sessionAffinityConfig_ = sessionAffinityConfigBuilder_.build(); } if (((bitField0_ & 0x00004000) == 0x00004000)) { ipFamilies_ = ipFamilies_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00004000); } result.ipFamilies_ = ipFamilies_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00000200; } result.ipFamilyPolicy_ = ipFamilyPolicy_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00000400; } result.allocateLoadBalancerNodePorts_ = allocateLoadBalancerNodePorts_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00000800; } result.loadBalancerClass_ = loadBalancerClass_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00001000; } result.internalTrafficPolicy_ = internalTrafficPolicy_; 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.V1.ServiceSpec) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceSpec other) { if (other == io.kubernetes.client.proto.V1.ServiceSpec.getDefaultInstance()) return this; if (portsBuilder_ == null) { if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); } onChanged(); } } else { if (!other.ports_.isEmpty()) { if (portsBuilder_.isEmpty()) { portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; bitField0_ = (bitField0_ & ~0x00000001); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() : null; } else { portsBuilder_.addAllMessages(other.ports_); } } } internalGetMutableSelector().mergeFrom(other.internalGetSelector()); if (other.hasClusterIP()) { bitField0_ |= 0x00000004; clusterIP_ = other.clusterIP_; onChanged(); } if (!other.clusterIPs_.isEmpty()) { if (clusterIPs_.isEmpty()) { clusterIPs_ = other.clusterIPs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureClusterIPsIsMutable(); clusterIPs_.addAll(other.clusterIPs_); } onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000010; type_ = other.type_; onChanged(); } if (!other.externalIPs_.isEmpty()) { if (externalIPs_.isEmpty()) { externalIPs_ = other.externalIPs_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureExternalIPsIsMutable(); externalIPs_.addAll(other.externalIPs_); } onChanged(); } if (other.hasSessionAffinity()) { bitField0_ |= 0x00000040; sessionAffinity_ = other.sessionAffinity_; onChanged(); } if (other.hasLoadBalancerIP()) { bitField0_ |= 0x00000080; loadBalancerIP_ = other.loadBalancerIP_; onChanged(); } if (!other.loadBalancerSourceRanges_.isEmpty()) { if (loadBalancerSourceRanges_.isEmpty()) { loadBalancerSourceRanges_ = other.loadBalancerSourceRanges_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureLoadBalancerSourceRangesIsMutable(); loadBalancerSourceRanges_.addAll(other.loadBalancerSourceRanges_); } onChanged(); } if (other.hasExternalName()) { bitField0_ |= 0x00000200; externalName_ = other.externalName_; onChanged(); } if (other.hasExternalTrafficPolicy()) { bitField0_ |= 0x00000400; externalTrafficPolicy_ = other.externalTrafficPolicy_; onChanged(); } if (other.hasHealthCheckNodePort()) { setHealthCheckNodePort(other.getHealthCheckNodePort()); } if (other.hasPublishNotReadyAddresses()) { setPublishNotReadyAddresses(other.getPublishNotReadyAddresses()); } if (other.hasSessionAffinityConfig()) { mergeSessionAffinityConfig(other.getSessionAffinityConfig()); } if (!other.ipFamilies_.isEmpty()) { if (ipFamilies_.isEmpty()) { ipFamilies_ = other.ipFamilies_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureIpFamiliesIsMutable(); ipFamilies_.addAll(other.ipFamilies_); } onChanged(); } if (other.hasIpFamilyPolicy()) { bitField0_ |= 0x00008000; ipFamilyPolicy_ = other.ipFamilyPolicy_; onChanged(); } if (other.hasAllocateLoadBalancerNodePorts()) { setAllocateLoadBalancerNodePorts(other.getAllocateLoadBalancerNodePorts()); } if (other.hasLoadBalancerClass()) { bitField0_ |= 0x00020000; loadBalancerClass_ = other.loadBalancerClass_; onChanged(); } if (other.hasInternalTrafficPolicy()) { bitField0_ |= 0x00040000; internalTrafficPolicy_ = other.internalTrafficPolicy_; 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.V1.ServiceSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List ports_ = java.util.Collections.emptyList(); private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { ports_ = new java.util.ArrayList(ports_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ServicePort, io.kubernetes.client.proto.V1.ServicePort.Builder, io.kubernetes.client.proto.V1.ServicePortOrBuilder> portsBuilder_; /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public java.util.List getPortsList() { if (portsBuilder_ == null) { return java.util.Collections.unmodifiableList(ports_); } else { return portsBuilder_.getMessageList(); } } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public int getPortsCount() { if (portsBuilder_ == null) { return ports_.size(); } else { return portsBuilder_.getCount(); } } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePort getPorts(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessage(index); } } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder setPorts(int index, io.kubernetes.client.proto.V1.ServicePort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.set(index, value); onChanged(); } else { portsBuilder_.setMessage(index, value); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder setPorts( int index, io.kubernetes.client.proto.V1.ServicePort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.set(index, builderForValue.build()); onChanged(); } else { portsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder addPorts(io.kubernetes.client.proto.V1.ServicePort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(value); onChanged(); } else { portsBuilder_.addMessage(value); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder addPorts(int index, io.kubernetes.client.proto.V1.ServicePort value) { if (portsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortsIsMutable(); ports_.add(index, value); onChanged(); } else { portsBuilder_.addMessage(index, value); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder addPorts(io.kubernetes.client.proto.V1.ServicePort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder addPorts( int index, io.kubernetes.client.proto.V1.ServicePort.Builder builderForValue) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.add(index, builderForValue.build()); onChanged(); } else { portsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder addAllPorts( java.lang.Iterable values) { if (portsBuilder_ == null) { ensurePortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); onChanged(); } else { portsBuilder_.addAllMessages(values); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { portsBuilder_.clear(); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public Builder removePorts(int index) { if (portsBuilder_ == null) { ensurePortsIsMutable(); ports_.remove(index); onChanged(); } else { portsBuilder_.remove(index); } return this; } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePort.Builder getPortsBuilder(int index) { return getPortsFieldBuilder().getBuilder(index); } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePortOrBuilder getPortsOrBuilder(int index) { if (portsBuilder_ == null) { return ports_.get(index); } else { return portsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public java.util.List getPortsOrBuilderList() { if (portsBuilder_ != null) { return portsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ports_); } } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePort.Builder addPortsBuilder() { return getPortsFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1.ServicePort.getDefaultInstance()); } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public io.kubernetes.client.proto.V1.ServicePort.Builder addPortsBuilder(int index) { return getPortsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.V1.ServicePort.getDefaultInstance()); } /** * * *
       * The list of ports that are exposed by this service.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +patchMergeKey=port
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=port
       * +listMapKey=protocol
       * 
* * repeated .k8s.io.api.core.v1.ServicePort ports = 1; */ public java.util.List getPortsBuilderList() { return getPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ServicePort, io.kubernetes.client.proto.V1.ServicePort.Builder, io.kubernetes.client.proto.V1.ServicePortOrBuilder> getPortsFieldBuilder() { if (portsBuilder_ == null) { portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.ServicePort, io.kubernetes.client.proto.V1.ServicePort.Builder, io.kubernetes.client.proto.V1.ServicePortOrBuilder>( ports_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; } private com.google.protobuf.MapField selector_; private com.google.protobuf.MapField internalGetSelector() { if (selector_ == null) { return com.google.protobuf.MapField.emptyMapField( SelectorDefaultEntryHolder.defaultEntry); } return selector_; } private com.google.protobuf.MapField internalGetMutableSelector() { onChanged(); ; if (selector_ == null) { selector_ = com.google.protobuf.MapField.newMapField(SelectorDefaultEntryHolder.defaultEntry); } if (!selector_.isMutable()) { selector_ = selector_.copy(); } return selector_; } public int getSelectorCount() { return internalGetSelector().getMap().size(); } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public boolean containsSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSelector().getMap().containsKey(key); } /** Use {@link #getSelectorMap()} instead. */ @java.lang.Deprecated public java.util.Map getSelector() { return getSelectorMap(); } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public java.util.Map getSelectorMap() { return internalGetSelector().getMap(); } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public java.lang.String getSelectorOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSelector() { internalGetMutableSelector().getMutableMap().clear(); return this; } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public Builder removeSelector(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSelector().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSelector() { return internalGetMutableSelector().getMutableMap(); } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public Builder putSelector(java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSelector().getMutableMap().put(key, value); return this; } /** * * *
       * Route service traffic to pods with label keys and values matching this
       * selector. If empty or not present, the service is assumed to have an
       * external process managing its endpoints, which Kubernetes will not
       * modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
       * Ignored if type is ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/
       * +optional
       * +mapType=atomic
       * 
* * map<string, string> selector = 2; */ public Builder putAllSelector(java.util.Map values) { internalGetMutableSelector().getMutableMap().putAll(values); return this; } private java.lang.Object clusterIP_ = ""; /** * * *
       * clusterIP is the IP address of the service and is usually assigned
       * randomly. If an address is specified manually, is in-range (as per
       * system configuration), and is not in use, it will be allocated to the
       * service; otherwise creation of the service will fail. This field may not
       * be changed through updates unless the type field is also being changed
       * to ExternalName (which requires this field to be blank) or the type
       * field is being changed from ExternalName (in which case this field may
       * optionally be specified, as describe above).  Valid values are "None",
       * empty string (""), or a valid IP address. Setting this to "None" makes a
       * "headless service" (no virtual IP), which is useful when direct endpoint
       * connections are preferred and proxying is not required.  Only applies to
       * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
       * when creating a Service of type ExternalName, creation will fail. This
       * field will be wiped when updating a Service to type ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string clusterIP = 3; */ public boolean hasClusterIP() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * clusterIP is the IP address of the service and is usually assigned
       * randomly. If an address is specified manually, is in-range (as per
       * system configuration), and is not in use, it will be allocated to the
       * service; otherwise creation of the service will fail. This field may not
       * be changed through updates unless the type field is also being changed
       * to ExternalName (which requires this field to be blank) or the type
       * field is being changed from ExternalName (in which case this field may
       * optionally be specified, as describe above).  Valid values are "None",
       * empty string (""), or a valid IP address. Setting this to "None" makes a
       * "headless service" (no virtual IP), which is useful when direct endpoint
       * connections are preferred and proxying is not required.  Only applies to
       * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
       * when creating a Service of type ExternalName, creation will fail. This
       * field will be wiped when updating a Service to type ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string clusterIP = 3; */ public java.lang.String getClusterIP() { java.lang.Object ref = clusterIP_; 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()) { clusterIP_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * clusterIP is the IP address of the service and is usually assigned
       * randomly. If an address is specified manually, is in-range (as per
       * system configuration), and is not in use, it will be allocated to the
       * service; otherwise creation of the service will fail. This field may not
       * be changed through updates unless the type field is also being changed
       * to ExternalName (which requires this field to be blank) or the type
       * field is being changed from ExternalName (in which case this field may
       * optionally be specified, as describe above).  Valid values are "None",
       * empty string (""), or a valid IP address. Setting this to "None" makes a
       * "headless service" (no virtual IP), which is useful when direct endpoint
       * connections are preferred and proxying is not required.  Only applies to
       * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
       * when creating a Service of type ExternalName, creation will fail. This
       * field will be wiped when updating a Service to type ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string clusterIP = 3; */ public com.google.protobuf.ByteString getClusterIPBytes() { java.lang.Object ref = clusterIP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * clusterIP is the IP address of the service and is usually assigned
       * randomly. If an address is specified manually, is in-range (as per
       * system configuration), and is not in use, it will be allocated to the
       * service; otherwise creation of the service will fail. This field may not
       * be changed through updates unless the type field is also being changed
       * to ExternalName (which requires this field to be blank) or the type
       * field is being changed from ExternalName (in which case this field may
       * optionally be specified, as describe above).  Valid values are "None",
       * empty string (""), or a valid IP address. Setting this to "None" makes a
       * "headless service" (no virtual IP), which is useful when direct endpoint
       * connections are preferred and proxying is not required.  Only applies to
       * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
       * when creating a Service of type ExternalName, creation will fail. This
       * field will be wiped when updating a Service to type ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string clusterIP = 3; */ public Builder setClusterIP(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; clusterIP_ = value; onChanged(); return this; } /** * * *
       * clusterIP is the IP address of the service and is usually assigned
       * randomly. If an address is specified manually, is in-range (as per
       * system configuration), and is not in use, it will be allocated to the
       * service; otherwise creation of the service will fail. This field may not
       * be changed through updates unless the type field is also being changed
       * to ExternalName (which requires this field to be blank) or the type
       * field is being changed from ExternalName (in which case this field may
       * optionally be specified, as describe above).  Valid values are "None",
       * empty string (""), or a valid IP address. Setting this to "None" makes a
       * "headless service" (no virtual IP), which is useful when direct endpoint
       * connections are preferred and proxying is not required.  Only applies to
       * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
       * when creating a Service of type ExternalName, creation will fail. This
       * field will be wiped when updating a Service to type ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string clusterIP = 3; */ public Builder clearClusterIP() { bitField0_ = (bitField0_ & ~0x00000004); clusterIP_ = getDefaultInstance().getClusterIP(); onChanged(); return this; } /** * * *
       * clusterIP is the IP address of the service and is usually assigned
       * randomly. If an address is specified manually, is in-range (as per
       * system configuration), and is not in use, it will be allocated to the
       * service; otherwise creation of the service will fail. This field may not
       * be changed through updates unless the type field is also being changed
       * to ExternalName (which requires this field to be blank) or the type
       * field is being changed from ExternalName (in which case this field may
       * optionally be specified, as describe above).  Valid values are "None",
       * empty string (""), or a valid IP address. Setting this to "None" makes a
       * "headless service" (no virtual IP), which is useful when direct endpoint
       * connections are preferred and proxying is not required.  Only applies to
       * types ClusterIP, NodePort, and LoadBalancer. If this field is specified
       * when creating a Service of type ExternalName, creation will fail. This
       * field will be wiped when updating a Service to type ExternalName.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string clusterIP = 3; */ public Builder setClusterIPBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; clusterIP_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList clusterIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClusterIPsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { clusterIPs_ = new com.google.protobuf.LazyStringArrayList(clusterIPs_); bitField0_ |= 0x00000008; } } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public com.google.protobuf.ProtocolStringList getClusterIPsList() { return clusterIPs_.getUnmodifiableView(); } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public int getClusterIPsCount() { return clusterIPs_.size(); } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public java.lang.String getClusterIPs(int index) { return clusterIPs_.get(index); } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public com.google.protobuf.ByteString getClusterIPsBytes(int index) { return clusterIPs_.getByteString(index); } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public Builder setClusterIPs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClusterIPsIsMutable(); clusterIPs_.set(index, value); onChanged(); return this; } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public Builder addClusterIPs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClusterIPsIsMutable(); clusterIPs_.add(value); onChanged(); return this; } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public Builder addAllClusterIPs(java.lang.Iterable values) { ensureClusterIPsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterIPs_); onChanged(); return this; } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public Builder clearClusterIPs() { clusterIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * ClusterIPs is a list of IP addresses assigned to this service, and are
       * usually assigned randomly.  If an address is specified manually, is
       * in-range (as per system configuration), and is not in use, it will be
       * allocated to the service; otherwise creation of the service will fail.
       * This field may not be changed through updates unless the type field is
       * also being changed to ExternalName (which requires this field to be
       * empty) or the type field is being changed from ExternalName (in which
       * case this field may optionally be specified, as describe above).  Valid
       * values are "None", empty string (""), or a valid IP address.  Setting
       * this to "None" makes a "headless service" (no virtual IP), which is
       * useful when direct endpoint connections are preferred and proxying is
       * not required.  Only applies to types ClusterIP, NodePort, and
       * LoadBalancer. If this field is specified when creating a Service of type
       * ExternalName, creation will fail. This field will be wiped when updating
       * a Service to type ExternalName.  If this field is not specified, it will
       * be initialized from the clusterIP field.  If this field is specified,
       * clients must ensure that clusterIPs[0] and clusterIP have the same
       * value.
       * This field may hold a maximum of two entries (dual-stack IPs, in either order).
       * These IPs must correspond to the values of the ipFamilies field. Both
       * clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +listType=atomic
       * +optional
       * 
* * repeated string clusterIPs = 18; */ public Builder addClusterIPsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureClusterIPsIsMutable(); clusterIPs_.add(value); onChanged(); return this; } private java.lang.Object type_ = ""; /** * * *
       * type determines how the Service is exposed. Defaults to ClusterIP. Valid
       * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
       * "ClusterIP" allocates a cluster-internal IP address for load-balancing
       * to endpoints. Endpoints are determined by the selector or if that is not
       * specified, by manual construction of an Endpoints object or
       * EndpointSlice objects. If clusterIP is "None", no virtual IP is
       * allocated and the endpoints are published as a set of endpoints rather
       * than a virtual IP.
       * "NodePort" builds on ClusterIP and allocates a port on every node which
       * routes to the same endpoints as the clusterIP.
       * "LoadBalancer" builds on NodePort and creates an external load-balancer
       * (if supported in the current cloud) which routes to the same endpoints
       * as the clusterIP.
       * "ExternalName" aliases this service to the specified externalName.
       * Several other fields do not apply to ExternalName services.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
       * +optional
       * 
* * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * type determines how the Service is exposed. Defaults to ClusterIP. Valid
       * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
       * "ClusterIP" allocates a cluster-internal IP address for load-balancing
       * to endpoints. Endpoints are determined by the selector or if that is not
       * specified, by manual construction of an Endpoints object or
       * EndpointSlice objects. If clusterIP is "None", no virtual IP is
       * allocated and the endpoints are published as a set of endpoints rather
       * than a virtual IP.
       * "NodePort" builds on ClusterIP and allocates a port on every node which
       * routes to the same endpoints as the clusterIP.
       * "LoadBalancer" builds on NodePort and creates an external load-balancer
       * (if supported in the current cloud) which routes to the same endpoints
       * as the clusterIP.
       * "ExternalName" aliases this service to the specified externalName.
       * Several other fields do not apply to ExternalName services.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
       * +optional
       * 
* * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * type determines how the Service is exposed. Defaults to ClusterIP. Valid
       * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
       * "ClusterIP" allocates a cluster-internal IP address for load-balancing
       * to endpoints. Endpoints are determined by the selector or if that is not
       * specified, by manual construction of an Endpoints object or
       * EndpointSlice objects. If clusterIP is "None", no virtual IP is
       * allocated and the endpoints are published as a set of endpoints rather
       * than a virtual IP.
       * "NodePort" builds on ClusterIP and allocates a port on every node which
       * routes to the same endpoints as the clusterIP.
       * "LoadBalancer" builds on NodePort and creates an external load-balancer
       * (if supported in the current cloud) which routes to the same endpoints
       * as the clusterIP.
       * "ExternalName" aliases this service to the specified externalName.
       * Several other fields do not apply to ExternalName services.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
       * +optional
       * 
* * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * type determines how the Service is exposed. Defaults to ClusterIP. Valid
       * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
       * "ClusterIP" allocates a cluster-internal IP address for load-balancing
       * to endpoints. Endpoints are determined by the selector or if that is not
       * specified, by manual construction of an Endpoints object or
       * EndpointSlice objects. If clusterIP is "None", no virtual IP is
       * allocated and the endpoints are published as a set of endpoints rather
       * than a virtual IP.
       * "NodePort" builds on ClusterIP and allocates a port on every node which
       * routes to the same endpoints as the clusterIP.
       * "LoadBalancer" builds on NodePort and creates an external load-balancer
       * (if supported in the current cloud) which routes to the same endpoints
       * as the clusterIP.
       * "ExternalName" aliases this service to the specified externalName.
       * Several other fields do not apply to ExternalName services.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
       * +optional
       * 
* * optional string type = 4; */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** * * *
       * type determines how the Service is exposed. Defaults to ClusterIP. Valid
       * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
       * "ClusterIP" allocates a cluster-internal IP address for load-balancing
       * to endpoints. Endpoints are determined by the selector or if that is not
       * specified, by manual construction of an Endpoints object or
       * EndpointSlice objects. If clusterIP is "None", no virtual IP is
       * allocated and the endpoints are published as a set of endpoints rather
       * than a virtual IP.
       * "NodePort" builds on ClusterIP and allocates a port on every node which
       * routes to the same endpoints as the clusterIP.
       * "LoadBalancer" builds on NodePort and creates an external load-balancer
       * (if supported in the current cloud) which routes to the same endpoints
       * as the clusterIP.
       * "ExternalName" aliases this service to the specified externalName.
       * Several other fields do not apply to ExternalName services.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
       * +optional
       * 
* * optional string type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * * *
       * type determines how the Service is exposed. Defaults to ClusterIP. Valid
       * options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
       * "ClusterIP" allocates a cluster-internal IP address for load-balancing
       * to endpoints. Endpoints are determined by the selector or if that is not
       * specified, by manual construction of an Endpoints object or
       * EndpointSlice objects. If clusterIP is "None", no virtual IP is
       * allocated and the endpoints are published as a set of endpoints rather
       * than a virtual IP.
       * "NodePort" builds on ClusterIP and allocates a port on every node which
       * routes to the same endpoints as the clusterIP.
       * "LoadBalancer" builds on NodePort and creates an external load-balancer
       * (if supported in the current cloud) which routes to the same endpoints
       * as the clusterIP.
       * "ExternalName" aliases this service to the specified externalName.
       * Several other fields do not apply to ExternalName services.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
       * +optional
       * 
* * optional string type = 4; */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList externalIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExternalIPsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { externalIPs_ = new com.google.protobuf.LazyStringArrayList(externalIPs_); bitField0_ |= 0x00000020; } } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public com.google.protobuf.ProtocolStringList getExternalIPsList() { return externalIPs_.getUnmodifiableView(); } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public int getExternalIPsCount() { return externalIPs_.size(); } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public java.lang.String getExternalIPs(int index) { return externalIPs_.get(index); } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public com.google.protobuf.ByteString getExternalIPsBytes(int index) { return externalIPs_.getByteString(index); } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public Builder setExternalIPs(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExternalIPsIsMutable(); externalIPs_.set(index, value); onChanged(); return this; } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public Builder addExternalIPs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExternalIPsIsMutable(); externalIPs_.add(value); onChanged(); return this; } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public Builder addAllExternalIPs(java.lang.Iterable values) { ensureExternalIPsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalIPs_); onChanged(); return this; } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public Builder clearExternalIPs() { externalIPs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
       * externalIPs is a list of IP addresses for which nodes in the cluster
       * will also accept traffic for this service.  These IPs are not managed by
       * Kubernetes.  The user is responsible for ensuring that traffic arrives
       * at a node with this IP.  A common example is external load-balancers
       * that are not part of the Kubernetes system.
       * +optional
       * 
* * repeated string externalIPs = 5; */ public Builder addExternalIPsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureExternalIPsIsMutable(); externalIPs_.add(value); onChanged(); return this; } private java.lang.Object sessionAffinity_ = ""; /** * * *
       * Supports "ClientIP" and "None". Used to maintain session affinity.
       * Enable client IP based session affinity.
       * Must be ClientIP or None.
       * Defaults to None.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string sessionAffinity = 7; */ public boolean hasSessionAffinity() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * Supports "ClientIP" and "None". Used to maintain session affinity.
       * Enable client IP based session affinity.
       * Must be ClientIP or None.
       * Defaults to None.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string sessionAffinity = 7; */ public java.lang.String getSessionAffinity() { java.lang.Object ref = sessionAffinity_; 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()) { sessionAffinity_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Supports "ClientIP" and "None". Used to maintain session affinity.
       * Enable client IP based session affinity.
       * Must be ClientIP or None.
       * Defaults to None.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string sessionAffinity = 7; */ public com.google.protobuf.ByteString getSessionAffinityBytes() { java.lang.Object ref = sessionAffinity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sessionAffinity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Supports "ClientIP" and "None". Used to maintain session affinity.
       * Enable client IP based session affinity.
       * Must be ClientIP or None.
       * Defaults to None.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string sessionAffinity = 7; */ public Builder setSessionAffinity(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; sessionAffinity_ = value; onChanged(); return this; } /** * * *
       * Supports "ClientIP" and "None". Used to maintain session affinity.
       * Enable client IP based session affinity.
       * Must be ClientIP or None.
       * Defaults to None.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string sessionAffinity = 7; */ public Builder clearSessionAffinity() { bitField0_ = (bitField0_ & ~0x00000040); sessionAffinity_ = getDefaultInstance().getSessionAffinity(); onChanged(); return this; } /** * * *
       * Supports "ClientIP" and "None". Used to maintain session affinity.
       * Enable client IP based session affinity.
       * Must be ClientIP or None.
       * Defaults to None.
       * More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
       * +optional
       * 
* * optional string sessionAffinity = 7; */ public Builder setSessionAffinityBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; sessionAffinity_ = value; onChanged(); return this; } private java.lang.Object loadBalancerIP_ = ""; /** * * *
       * Only applies to Service Type: LoadBalancer
       * LoadBalancer will get created with the IP specified in this field.
       * This feature depends on whether the underlying cloud-provider supports specifying
       * the loadBalancerIP when a load balancer is created.
       * This field will be ignored if the cloud-provider does not support the feature.
       * +optional
       * 
* * optional string loadBalancerIP = 8; */ public boolean hasLoadBalancerIP() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * Only applies to Service Type: LoadBalancer
       * LoadBalancer will get created with the IP specified in this field.
       * This feature depends on whether the underlying cloud-provider supports specifying
       * the loadBalancerIP when a load balancer is created.
       * This field will be ignored if the cloud-provider does not support the feature.
       * +optional
       * 
* * optional string loadBalancerIP = 8; */ public java.lang.String getLoadBalancerIP() { java.lang.Object ref = loadBalancerIP_; 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()) { loadBalancerIP_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Only applies to Service Type: LoadBalancer
       * LoadBalancer will get created with the IP specified in this field.
       * This feature depends on whether the underlying cloud-provider supports specifying
       * the loadBalancerIP when a load balancer is created.
       * This field will be ignored if the cloud-provider does not support the feature.
       * +optional
       * 
* * optional string loadBalancerIP = 8; */ public com.google.protobuf.ByteString getLoadBalancerIPBytes() { java.lang.Object ref = loadBalancerIP_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loadBalancerIP_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Only applies to Service Type: LoadBalancer
       * LoadBalancer will get created with the IP specified in this field.
       * This feature depends on whether the underlying cloud-provider supports specifying
       * the loadBalancerIP when a load balancer is created.
       * This field will be ignored if the cloud-provider does not support the feature.
       * +optional
       * 
* * optional string loadBalancerIP = 8; */ public Builder setLoadBalancerIP(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; loadBalancerIP_ = value; onChanged(); return this; } /** * * *
       * Only applies to Service Type: LoadBalancer
       * LoadBalancer will get created with the IP specified in this field.
       * This feature depends on whether the underlying cloud-provider supports specifying
       * the loadBalancerIP when a load balancer is created.
       * This field will be ignored if the cloud-provider does not support the feature.
       * +optional
       * 
* * optional string loadBalancerIP = 8; */ public Builder clearLoadBalancerIP() { bitField0_ = (bitField0_ & ~0x00000080); loadBalancerIP_ = getDefaultInstance().getLoadBalancerIP(); onChanged(); return this; } /** * * *
       * Only applies to Service Type: LoadBalancer
       * LoadBalancer will get created with the IP specified in this field.
       * This feature depends on whether the underlying cloud-provider supports specifying
       * the loadBalancerIP when a load balancer is created.
       * This field will be ignored if the cloud-provider does not support the feature.
       * +optional
       * 
* * optional string loadBalancerIP = 8; */ public Builder setLoadBalancerIPBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; loadBalancerIP_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList loadBalancerSourceRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLoadBalancerSourceRangesIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { loadBalancerSourceRanges_ = new com.google.protobuf.LazyStringArrayList(loadBalancerSourceRanges_); bitField0_ |= 0x00000100; } } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public com.google.protobuf.ProtocolStringList getLoadBalancerSourceRangesList() { return loadBalancerSourceRanges_.getUnmodifiableView(); } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public int getLoadBalancerSourceRangesCount() { return loadBalancerSourceRanges_.size(); } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public java.lang.String getLoadBalancerSourceRanges(int index) { return loadBalancerSourceRanges_.get(index); } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public com.google.protobuf.ByteString getLoadBalancerSourceRangesBytes(int index) { return loadBalancerSourceRanges_.getByteString(index); } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public Builder setLoadBalancerSourceRanges(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLoadBalancerSourceRangesIsMutable(); loadBalancerSourceRanges_.set(index, value); onChanged(); return this; } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public Builder addLoadBalancerSourceRanges(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLoadBalancerSourceRangesIsMutable(); loadBalancerSourceRanges_.add(value); onChanged(); return this; } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public Builder addAllLoadBalancerSourceRanges(java.lang.Iterable values) { ensureLoadBalancerSourceRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, loadBalancerSourceRanges_); onChanged(); return this; } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public Builder clearLoadBalancerSourceRanges() { loadBalancerSourceRanges_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
       * If specified and supported by the platform, this will restrict traffic through the cloud-provider
       * load-balancer will be restricted to the specified client IPs. This field will be ignored if the
       * cloud-provider does not support the feature."
       * More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
       * +optional
       * 
* * repeated string loadBalancerSourceRanges = 9; */ public Builder addLoadBalancerSourceRangesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureLoadBalancerSourceRangesIsMutable(); loadBalancerSourceRanges_.add(value); onChanged(); return this; } private java.lang.Object externalName_ = ""; /** * * *
       * externalName is the external reference that discovery mechanisms will
       * return as an alias for this service (e.g. a DNS CNAME record). No
       * proxying will be involved.  Must be a lowercase RFC-1123 hostname
       * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
       * +optional
       * 
* * optional string externalName = 10; */ public boolean hasExternalName() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * externalName is the external reference that discovery mechanisms will
       * return as an alias for this service (e.g. a DNS CNAME record). No
       * proxying will be involved.  Must be a lowercase RFC-1123 hostname
       * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
       * +optional
       * 
* * optional string externalName = 10; */ public java.lang.String getExternalName() { java.lang.Object ref = externalName_; 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()) { externalName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * externalName is the external reference that discovery mechanisms will
       * return as an alias for this service (e.g. a DNS CNAME record). No
       * proxying will be involved.  Must be a lowercase RFC-1123 hostname
       * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
       * +optional
       * 
* * optional string externalName = 10; */ public com.google.protobuf.ByteString getExternalNameBytes() { java.lang.Object ref = externalName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * externalName is the external reference that discovery mechanisms will
       * return as an alias for this service (e.g. a DNS CNAME record). No
       * proxying will be involved.  Must be a lowercase RFC-1123 hostname
       * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
       * +optional
       * 
* * optional string externalName = 10; */ public Builder setExternalName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; externalName_ = value; onChanged(); return this; } /** * * *
       * externalName is the external reference that discovery mechanisms will
       * return as an alias for this service (e.g. a DNS CNAME record). No
       * proxying will be involved.  Must be a lowercase RFC-1123 hostname
       * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
       * +optional
       * 
* * optional string externalName = 10; */ public Builder clearExternalName() { bitField0_ = (bitField0_ & ~0x00000200); externalName_ = getDefaultInstance().getExternalName(); onChanged(); return this; } /** * * *
       * externalName is the external reference that discovery mechanisms will
       * return as an alias for this service (e.g. a DNS CNAME record). No
       * proxying will be involved.  Must be a lowercase RFC-1123 hostname
       * (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
       * +optional
       * 
* * optional string externalName = 10; */ public Builder setExternalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; externalName_ = value; onChanged(); return this; } private java.lang.Object externalTrafficPolicy_ = ""; /** * * *
       * externalTrafficPolicy denotes if this Service desires to route external
       * traffic to node-local or cluster-wide endpoints. "Local" preserves the
       * client source IP and avoids a second hop for LoadBalancer and Nodeport
       * type services, but risks potentially imbalanced traffic spreading.
       * "Cluster" obscures the client source IP and may cause a second hop to
       * another node, but should have good overall load-spreading.
       * +optional
       * 
* * optional string externalTrafficPolicy = 11; */ public boolean hasExternalTrafficPolicy() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * externalTrafficPolicy denotes if this Service desires to route external
       * traffic to node-local or cluster-wide endpoints. "Local" preserves the
       * client source IP and avoids a second hop for LoadBalancer and Nodeport
       * type services, but risks potentially imbalanced traffic spreading.
       * "Cluster" obscures the client source IP and may cause a second hop to
       * another node, but should have good overall load-spreading.
       * +optional
       * 
* * optional string externalTrafficPolicy = 11; */ public java.lang.String getExternalTrafficPolicy() { java.lang.Object ref = externalTrafficPolicy_; 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()) { externalTrafficPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * externalTrafficPolicy denotes if this Service desires to route external
       * traffic to node-local or cluster-wide endpoints. "Local" preserves the
       * client source IP and avoids a second hop for LoadBalancer and Nodeport
       * type services, but risks potentially imbalanced traffic spreading.
       * "Cluster" obscures the client source IP and may cause a second hop to
       * another node, but should have good overall load-spreading.
       * +optional
       * 
* * optional string externalTrafficPolicy = 11; */ public com.google.protobuf.ByteString getExternalTrafficPolicyBytes() { java.lang.Object ref = externalTrafficPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalTrafficPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * externalTrafficPolicy denotes if this Service desires to route external
       * traffic to node-local or cluster-wide endpoints. "Local" preserves the
       * client source IP and avoids a second hop for LoadBalancer and Nodeport
       * type services, but risks potentially imbalanced traffic spreading.
       * "Cluster" obscures the client source IP and may cause a second hop to
       * another node, but should have good overall load-spreading.
       * +optional
       * 
* * optional string externalTrafficPolicy = 11; */ public Builder setExternalTrafficPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; externalTrafficPolicy_ = value; onChanged(); return this; } /** * * *
       * externalTrafficPolicy denotes if this Service desires to route external
       * traffic to node-local or cluster-wide endpoints. "Local" preserves the
       * client source IP and avoids a second hop for LoadBalancer and Nodeport
       * type services, but risks potentially imbalanced traffic spreading.
       * "Cluster" obscures the client source IP and may cause a second hop to
       * another node, but should have good overall load-spreading.
       * +optional
       * 
* * optional string externalTrafficPolicy = 11; */ public Builder clearExternalTrafficPolicy() { bitField0_ = (bitField0_ & ~0x00000400); externalTrafficPolicy_ = getDefaultInstance().getExternalTrafficPolicy(); onChanged(); return this; } /** * * *
       * externalTrafficPolicy denotes if this Service desires to route external
       * traffic to node-local or cluster-wide endpoints. "Local" preserves the
       * client source IP and avoids a second hop for LoadBalancer and Nodeport
       * type services, but risks potentially imbalanced traffic spreading.
       * "Cluster" obscures the client source IP and may cause a second hop to
       * another node, but should have good overall load-spreading.
       * +optional
       * 
* * optional string externalTrafficPolicy = 11; */ public Builder setExternalTrafficPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; externalTrafficPolicy_ = value; onChanged(); return this; } private int healthCheckNodePort_; /** * * *
       * healthCheckNodePort specifies the healthcheck nodePort for the service.
       * This only applies when type is set to LoadBalancer and
       * externalTrafficPolicy is set to Local. If a value is specified, is
       * in-range, and is not in use, it will be used.  If not specified, a value
       * will be automatically allocated.  External systems (e.g. load-balancers)
       * can use this port to determine if a given node holds endpoints for this
       * service or not.  If this field is specified when creating a Service
       * which does not need it, creation will fail. This field will be wiped
       * when updating a Service to no longer need it (e.g. changing type).
       * +optional
       * 
* * optional int32 healthCheckNodePort = 12; */ public boolean hasHealthCheckNodePort() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * healthCheckNodePort specifies the healthcheck nodePort for the service.
       * This only applies when type is set to LoadBalancer and
       * externalTrafficPolicy is set to Local. If a value is specified, is
       * in-range, and is not in use, it will be used.  If not specified, a value
       * will be automatically allocated.  External systems (e.g. load-balancers)
       * can use this port to determine if a given node holds endpoints for this
       * service or not.  If this field is specified when creating a Service
       * which does not need it, creation will fail. This field will be wiped
       * when updating a Service to no longer need it (e.g. changing type).
       * +optional
       * 
* * optional int32 healthCheckNodePort = 12; */ public int getHealthCheckNodePort() { return healthCheckNodePort_; } /** * * *
       * healthCheckNodePort specifies the healthcheck nodePort for the service.
       * This only applies when type is set to LoadBalancer and
       * externalTrafficPolicy is set to Local. If a value is specified, is
       * in-range, and is not in use, it will be used.  If not specified, a value
       * will be automatically allocated.  External systems (e.g. load-balancers)
       * can use this port to determine if a given node holds endpoints for this
       * service or not.  If this field is specified when creating a Service
       * which does not need it, creation will fail. This field will be wiped
       * when updating a Service to no longer need it (e.g. changing type).
       * +optional
       * 
* * optional int32 healthCheckNodePort = 12; */ public Builder setHealthCheckNodePort(int value) { bitField0_ |= 0x00000800; healthCheckNodePort_ = value; onChanged(); return this; } /** * * *
       * healthCheckNodePort specifies the healthcheck nodePort for the service.
       * This only applies when type is set to LoadBalancer and
       * externalTrafficPolicy is set to Local. If a value is specified, is
       * in-range, and is not in use, it will be used.  If not specified, a value
       * will be automatically allocated.  External systems (e.g. load-balancers)
       * can use this port to determine if a given node holds endpoints for this
       * service or not.  If this field is specified when creating a Service
       * which does not need it, creation will fail. This field will be wiped
       * when updating a Service to no longer need it (e.g. changing type).
       * +optional
       * 
* * optional int32 healthCheckNodePort = 12; */ public Builder clearHealthCheckNodePort() { bitField0_ = (bitField0_ & ~0x00000800); healthCheckNodePort_ = 0; onChanged(); return this; } private boolean publishNotReadyAddresses_; /** * * *
       * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
       * Service should disregard any indications of ready/not-ready.
       * The primary use case for setting this field is for a StatefulSet's Headless Service to
       * propagate SRV DNS records for its Pods for the purpose of peer discovery.
       * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
       * Services interpret this to mean that all endpoints are considered "ready" even if the
       * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
       * through the Endpoints or EndpointSlice resources can safely assume this behavior.
       * +optional
       * 
* * optional bool publishNotReadyAddresses = 13; */ public boolean hasPublishNotReadyAddresses() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
       * Service should disregard any indications of ready/not-ready.
       * The primary use case for setting this field is for a StatefulSet's Headless Service to
       * propagate SRV DNS records for its Pods for the purpose of peer discovery.
       * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
       * Services interpret this to mean that all endpoints are considered "ready" even if the
       * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
       * through the Endpoints or EndpointSlice resources can safely assume this behavior.
       * +optional
       * 
* * optional bool publishNotReadyAddresses = 13; */ public boolean getPublishNotReadyAddresses() { return publishNotReadyAddresses_; } /** * * *
       * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
       * Service should disregard any indications of ready/not-ready.
       * The primary use case for setting this field is for a StatefulSet's Headless Service to
       * propagate SRV DNS records for its Pods for the purpose of peer discovery.
       * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
       * Services interpret this to mean that all endpoints are considered "ready" even if the
       * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
       * through the Endpoints or EndpointSlice resources can safely assume this behavior.
       * +optional
       * 
* * optional bool publishNotReadyAddresses = 13; */ public Builder setPublishNotReadyAddresses(boolean value) { bitField0_ |= 0x00001000; publishNotReadyAddresses_ = value; onChanged(); return this; } /** * * *
       * publishNotReadyAddresses indicates that any agent which deals with endpoints for this
       * Service should disregard any indications of ready/not-ready.
       * The primary use case for setting this field is for a StatefulSet's Headless Service to
       * propagate SRV DNS records for its Pods for the purpose of peer discovery.
       * The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
       * Services interpret this to mean that all endpoints are considered "ready" even if the
       * Pods themselves are not. Agents which consume only Kubernetes generated endpoints
       * through the Endpoints or EndpointSlice resources can safely assume this behavior.
       * +optional
       * 
* * optional bool publishNotReadyAddresses = 13; */ public Builder clearPublishNotReadyAddresses() { bitField0_ = (bitField0_ & ~0x00001000); publishNotReadyAddresses_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.SessionAffinityConfig sessionAffinityConfig_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SessionAffinityConfig, io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder, io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder> sessionAffinityConfigBuilder_; /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public boolean hasSessionAffinityConfig() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public io.kubernetes.client.proto.V1.SessionAffinityConfig getSessionAffinityConfig() { if (sessionAffinityConfigBuilder_ == null) { return sessionAffinityConfig_ == null ? io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance() : sessionAffinityConfig_; } else { return sessionAffinityConfigBuilder_.getMessage(); } } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public Builder setSessionAffinityConfig( io.kubernetes.client.proto.V1.SessionAffinityConfig value) { if (sessionAffinityConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sessionAffinityConfig_ = value; onChanged(); } else { sessionAffinityConfigBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public Builder setSessionAffinityConfig( io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder builderForValue) { if (sessionAffinityConfigBuilder_ == null) { sessionAffinityConfig_ = builderForValue.build(); onChanged(); } else { sessionAffinityConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public Builder mergeSessionAffinityConfig( io.kubernetes.client.proto.V1.SessionAffinityConfig value) { if (sessionAffinityConfigBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && sessionAffinityConfig_ != null && sessionAffinityConfig_ != io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance()) { sessionAffinityConfig_ = io.kubernetes.client.proto.V1.SessionAffinityConfig.newBuilder( sessionAffinityConfig_) .mergeFrom(value) .buildPartial(); } else { sessionAffinityConfig_ = value; } onChanged(); } else { sessionAffinityConfigBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public Builder clearSessionAffinityConfig() { if (sessionAffinityConfigBuilder_ == null) { sessionAffinityConfig_ = null; onChanged(); } else { sessionAffinityConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder getSessionAffinityConfigBuilder() { bitField0_ |= 0x00002000; onChanged(); return getSessionAffinityConfigFieldBuilder().getBuilder(); } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ public io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder getSessionAffinityConfigOrBuilder() { if (sessionAffinityConfigBuilder_ != null) { return sessionAffinityConfigBuilder_.getMessageOrBuilder(); } else { return sessionAffinityConfig_ == null ? io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance() : sessionAffinityConfig_; } } /** * * *
       * sessionAffinityConfig contains the configurations of session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 14; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SessionAffinityConfig, io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder, io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder> getSessionAffinityConfigFieldBuilder() { if (sessionAffinityConfigBuilder_ == null) { sessionAffinityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SessionAffinityConfig, io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder, io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder>( getSessionAffinityConfig(), getParentForChildren(), isClean()); sessionAffinityConfig_ = null; } return sessionAffinityConfigBuilder_; } private com.google.protobuf.LazyStringList ipFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIpFamiliesIsMutable() { if (!((bitField0_ & 0x00004000) == 0x00004000)) { ipFamilies_ = new com.google.protobuf.LazyStringArrayList(ipFamilies_); bitField0_ |= 0x00004000; } } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public com.google.protobuf.ProtocolStringList getIpFamiliesList() { return ipFamilies_.getUnmodifiableView(); } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public int getIpFamiliesCount() { return ipFamilies_.size(); } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public java.lang.String getIpFamilies(int index) { return ipFamilies_.get(index); } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public com.google.protobuf.ByteString getIpFamiliesBytes(int index) { return ipFamilies_.getByteString(index); } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public Builder setIpFamilies(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpFamiliesIsMutable(); ipFamilies_.set(index, value); onChanged(); return this; } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public Builder addIpFamilies(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIpFamiliesIsMutable(); ipFamilies_.add(value); onChanged(); return this; } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public Builder addAllIpFamilies(java.lang.Iterable values) { ensureIpFamiliesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipFamilies_); onChanged(); return this; } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public Builder clearIpFamilies() { ipFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** * * *
       * IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
       * service. This field is usually assigned automatically based on cluster
       * configuration and the ipFamilyPolicy field. If this field is specified
       * manually, the requested family is available in the cluster,
       * and ipFamilyPolicy allows it, it will be used; otherwise creation of
       * the service will fail. This field is conditionally mutable: it allows
       * for adding or removing a secondary IP family, but it does not allow
       * changing the primary IP family of the Service. Valid values are "IPv4"
       * and "IPv6".  This field only applies to Services of types ClusterIP,
       * NodePort, and LoadBalancer, and does apply to "headless" services.
       * This field will be wiped when updating a Service to type ExternalName.
       * This field may hold a maximum of two entries (dual-stack families, in
       * either order).  These families must correspond to the values of the
       * clusterIPs field, if specified. Both clusterIPs and ipFamilies are
       * governed by the ipFamilyPolicy field.
       * +listType=atomic
       * +optional
       * 
* * repeated string ipFamilies = 19; */ public Builder addIpFamiliesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureIpFamiliesIsMutable(); ipFamilies_.add(value); onChanged(); return this; } private java.lang.Object ipFamilyPolicy_ = ""; /** * * *
       * IPFamilyPolicy represents the dual-stack-ness requested or required by
       * this Service. If there is no value provided, then this field will be set
       * to SingleStack. Services can be "SingleStack" (a single IP family),
       * "PreferDualStack" (two IP families on dual-stack configured clusters or
       * a single IP family on single-stack clusters), or "RequireDualStack"
       * (two IP families on dual-stack configured clusters, otherwise fail). The
       * ipFamilies and clusterIPs fields depend on the value of this field. This
       * field will be wiped when updating a service to type ExternalName.
       * +optional
       * 
* * optional string ipFamilyPolicy = 17; */ public boolean hasIpFamilyPolicy() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * IPFamilyPolicy represents the dual-stack-ness requested or required by
       * this Service. If there is no value provided, then this field will be set
       * to SingleStack. Services can be "SingleStack" (a single IP family),
       * "PreferDualStack" (two IP families on dual-stack configured clusters or
       * a single IP family on single-stack clusters), or "RequireDualStack"
       * (two IP families on dual-stack configured clusters, otherwise fail). The
       * ipFamilies and clusterIPs fields depend on the value of this field. This
       * field will be wiped when updating a service to type ExternalName.
       * +optional
       * 
* * optional string ipFamilyPolicy = 17; */ public java.lang.String getIpFamilyPolicy() { java.lang.Object ref = ipFamilyPolicy_; 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()) { ipFamilyPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * IPFamilyPolicy represents the dual-stack-ness requested or required by
       * this Service. If there is no value provided, then this field will be set
       * to SingleStack. Services can be "SingleStack" (a single IP family),
       * "PreferDualStack" (two IP families on dual-stack configured clusters or
       * a single IP family on single-stack clusters), or "RequireDualStack"
       * (two IP families on dual-stack configured clusters, otherwise fail). The
       * ipFamilies and clusterIPs fields depend on the value of this field. This
       * field will be wiped when updating a service to type ExternalName.
       * +optional
       * 
* * optional string ipFamilyPolicy = 17; */ public com.google.protobuf.ByteString getIpFamilyPolicyBytes() { java.lang.Object ref = ipFamilyPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ipFamilyPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * IPFamilyPolicy represents the dual-stack-ness requested or required by
       * this Service. If there is no value provided, then this field will be set
       * to SingleStack. Services can be "SingleStack" (a single IP family),
       * "PreferDualStack" (two IP families on dual-stack configured clusters or
       * a single IP family on single-stack clusters), or "RequireDualStack"
       * (two IP families on dual-stack configured clusters, otherwise fail). The
       * ipFamilies and clusterIPs fields depend on the value of this field. This
       * field will be wiped when updating a service to type ExternalName.
       * +optional
       * 
* * optional string ipFamilyPolicy = 17; */ public Builder setIpFamilyPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; ipFamilyPolicy_ = value; onChanged(); return this; } /** * * *
       * IPFamilyPolicy represents the dual-stack-ness requested or required by
       * this Service. If there is no value provided, then this field will be set
       * to SingleStack. Services can be "SingleStack" (a single IP family),
       * "PreferDualStack" (two IP families on dual-stack configured clusters or
       * a single IP family on single-stack clusters), or "RequireDualStack"
       * (two IP families on dual-stack configured clusters, otherwise fail). The
       * ipFamilies and clusterIPs fields depend on the value of this field. This
       * field will be wiped when updating a service to type ExternalName.
       * +optional
       * 
* * optional string ipFamilyPolicy = 17; */ public Builder clearIpFamilyPolicy() { bitField0_ = (bitField0_ & ~0x00008000); ipFamilyPolicy_ = getDefaultInstance().getIpFamilyPolicy(); onChanged(); return this; } /** * * *
       * IPFamilyPolicy represents the dual-stack-ness requested or required by
       * this Service. If there is no value provided, then this field will be set
       * to SingleStack. Services can be "SingleStack" (a single IP family),
       * "PreferDualStack" (two IP families on dual-stack configured clusters or
       * a single IP family on single-stack clusters), or "RequireDualStack"
       * (two IP families on dual-stack configured clusters, otherwise fail). The
       * ipFamilies and clusterIPs fields depend on the value of this field. This
       * field will be wiped when updating a service to type ExternalName.
       * +optional
       * 
* * optional string ipFamilyPolicy = 17; */ public Builder setIpFamilyPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; ipFamilyPolicy_ = value; onChanged(); return this; } private boolean allocateLoadBalancerNodePorts_; /** * * *
       * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
       * allocated for services with type LoadBalancer.  Default is "true". It
       * may be set to "false" if the cluster load-balancer does not rely on
       * NodePorts.  If the caller requests specific NodePorts (by specifying a
       * value), those requests will be respected, regardless of this field.
       * This field may only be set for services with type LoadBalancer and will
       * be cleared if the type is changed to any other type.
       * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
       * +featureGate=ServiceLBNodePortControl
       * +optional
       * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ public boolean hasAllocateLoadBalancerNodePorts() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
       * allocated for services with type LoadBalancer.  Default is "true". It
       * may be set to "false" if the cluster load-balancer does not rely on
       * NodePorts.  If the caller requests specific NodePorts (by specifying a
       * value), those requests will be respected, regardless of this field.
       * This field may only be set for services with type LoadBalancer and will
       * be cleared if the type is changed to any other type.
       * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
       * +featureGate=ServiceLBNodePortControl
       * +optional
       * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ public boolean getAllocateLoadBalancerNodePorts() { return allocateLoadBalancerNodePorts_; } /** * * *
       * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
       * allocated for services with type LoadBalancer.  Default is "true". It
       * may be set to "false" if the cluster load-balancer does not rely on
       * NodePorts.  If the caller requests specific NodePorts (by specifying a
       * value), those requests will be respected, regardless of this field.
       * This field may only be set for services with type LoadBalancer and will
       * be cleared if the type is changed to any other type.
       * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
       * +featureGate=ServiceLBNodePortControl
       * +optional
       * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ public Builder setAllocateLoadBalancerNodePorts(boolean value) { bitField0_ |= 0x00010000; allocateLoadBalancerNodePorts_ = value; onChanged(); return this; } /** * * *
       * allocateLoadBalancerNodePorts defines if NodePorts will be automatically
       * allocated for services with type LoadBalancer.  Default is "true". It
       * may be set to "false" if the cluster load-balancer does not rely on
       * NodePorts.  If the caller requests specific NodePorts (by specifying a
       * value), those requests will be respected, regardless of this field.
       * This field may only be set for services with type LoadBalancer and will
       * be cleared if the type is changed to any other type.
       * This field is beta-level and is only honored by servers that enable the ServiceLBNodePortControl feature.
       * +featureGate=ServiceLBNodePortControl
       * +optional
       * 
* * optional bool allocateLoadBalancerNodePorts = 20; */ public Builder clearAllocateLoadBalancerNodePorts() { bitField0_ = (bitField0_ & ~0x00010000); allocateLoadBalancerNodePorts_ = false; onChanged(); return this; } private java.lang.Object loadBalancerClass_ = ""; /** * * *
       * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
       * If specified, the value of this field must be a label-style identifier, with an optional prefix,
       * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
       * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
       * balancer implementation is used, today this is typically done through the cloud provider integration,
       * but should apply for any default implementation. If set, it is assumed that a load balancer
       * implementation is watching for Services with a matching class. Any default load balancer
       * implementation (e.g. cloud providers) should ignore Services that set this field.
       * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
       * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
       * +featureGate=LoadBalancerClass
       * +optional
       * 
* * optional string loadBalancerClass = 21; */ public boolean hasLoadBalancerClass() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
       * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
       * If specified, the value of this field must be a label-style identifier, with an optional prefix,
       * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
       * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
       * balancer implementation is used, today this is typically done through the cloud provider integration,
       * but should apply for any default implementation. If set, it is assumed that a load balancer
       * implementation is watching for Services with a matching class. Any default load balancer
       * implementation (e.g. cloud providers) should ignore Services that set this field.
       * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
       * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
       * +featureGate=LoadBalancerClass
       * +optional
       * 
* * optional string loadBalancerClass = 21; */ public java.lang.String getLoadBalancerClass() { java.lang.Object ref = loadBalancerClass_; 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()) { loadBalancerClass_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
       * If specified, the value of this field must be a label-style identifier, with an optional prefix,
       * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
       * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
       * balancer implementation is used, today this is typically done through the cloud provider integration,
       * but should apply for any default implementation. If set, it is assumed that a load balancer
       * implementation is watching for Services with a matching class. Any default load balancer
       * implementation (e.g. cloud providers) should ignore Services that set this field.
       * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
       * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
       * +featureGate=LoadBalancerClass
       * +optional
       * 
* * optional string loadBalancerClass = 21; */ public com.google.protobuf.ByteString getLoadBalancerClassBytes() { java.lang.Object ref = loadBalancerClass_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loadBalancerClass_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
       * If specified, the value of this field must be a label-style identifier, with an optional prefix,
       * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
       * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
       * balancer implementation is used, today this is typically done through the cloud provider integration,
       * but should apply for any default implementation. If set, it is assumed that a load balancer
       * implementation is watching for Services with a matching class. Any default load balancer
       * implementation (e.g. cloud providers) should ignore Services that set this field.
       * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
       * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
       * +featureGate=LoadBalancerClass
       * +optional
       * 
* * optional string loadBalancerClass = 21; */ public Builder setLoadBalancerClass(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; loadBalancerClass_ = value; onChanged(); return this; } /** * * *
       * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
       * If specified, the value of this field must be a label-style identifier, with an optional prefix,
       * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
       * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
       * balancer implementation is used, today this is typically done through the cloud provider integration,
       * but should apply for any default implementation. If set, it is assumed that a load balancer
       * implementation is watching for Services with a matching class. Any default load balancer
       * implementation (e.g. cloud providers) should ignore Services that set this field.
       * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
       * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
       * +featureGate=LoadBalancerClass
       * +optional
       * 
* * optional string loadBalancerClass = 21; */ public Builder clearLoadBalancerClass() { bitField0_ = (bitField0_ & ~0x00020000); loadBalancerClass_ = getDefaultInstance().getLoadBalancerClass(); onChanged(); return this; } /** * * *
       * loadBalancerClass is the class of the load balancer implementation this Service belongs to.
       * If specified, the value of this field must be a label-style identifier, with an optional prefix,
       * e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
       * This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
       * balancer implementation is used, today this is typically done through the cloud provider integration,
       * but should apply for any default implementation. If set, it is assumed that a load balancer
       * implementation is watching for Services with a matching class. Any default load balancer
       * implementation (e.g. cloud providers) should ignore Services that set this field.
       * This field can only be set when creating or updating a Service to type 'LoadBalancer'.
       * Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
       * +featureGate=LoadBalancerClass
       * +optional
       * 
* * optional string loadBalancerClass = 21; */ public Builder setLoadBalancerClassBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; loadBalancerClass_ = value; onChanged(); return this; } private java.lang.Object internalTrafficPolicy_ = ""; /** * * *
       * InternalTrafficPolicy specifies if the cluster internal traffic
       * should be routed to all endpoints or node-local endpoints only.
       * "Cluster" routes internal traffic to a Service to all endpoints.
       * "Local" routes traffic to node-local endpoints only, traffic is
       * dropped if no node-local endpoints are ready.
       * The default value is "Cluster".
       * +featureGate=ServiceInternalTrafficPolicy
       * +optional
       * 
* * optional string internalTrafficPolicy = 22; */ public boolean hasInternalTrafficPolicy() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
       * InternalTrafficPolicy specifies if the cluster internal traffic
       * should be routed to all endpoints or node-local endpoints only.
       * "Cluster" routes internal traffic to a Service to all endpoints.
       * "Local" routes traffic to node-local endpoints only, traffic is
       * dropped if no node-local endpoints are ready.
       * The default value is "Cluster".
       * +featureGate=ServiceInternalTrafficPolicy
       * +optional
       * 
* * optional string internalTrafficPolicy = 22; */ public java.lang.String getInternalTrafficPolicy() { java.lang.Object ref = internalTrafficPolicy_; 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()) { internalTrafficPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * InternalTrafficPolicy specifies if the cluster internal traffic
       * should be routed to all endpoints or node-local endpoints only.
       * "Cluster" routes internal traffic to a Service to all endpoints.
       * "Local" routes traffic to node-local endpoints only, traffic is
       * dropped if no node-local endpoints are ready.
       * The default value is "Cluster".
       * +featureGate=ServiceInternalTrafficPolicy
       * +optional
       * 
* * optional string internalTrafficPolicy = 22; */ public com.google.protobuf.ByteString getInternalTrafficPolicyBytes() { java.lang.Object ref = internalTrafficPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); internalTrafficPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * InternalTrafficPolicy specifies if the cluster internal traffic
       * should be routed to all endpoints or node-local endpoints only.
       * "Cluster" routes internal traffic to a Service to all endpoints.
       * "Local" routes traffic to node-local endpoints only, traffic is
       * dropped if no node-local endpoints are ready.
       * The default value is "Cluster".
       * +featureGate=ServiceInternalTrafficPolicy
       * +optional
       * 
* * optional string internalTrafficPolicy = 22; */ public Builder setInternalTrafficPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00040000; internalTrafficPolicy_ = value; onChanged(); return this; } /** * * *
       * InternalTrafficPolicy specifies if the cluster internal traffic
       * should be routed to all endpoints or node-local endpoints only.
       * "Cluster" routes internal traffic to a Service to all endpoints.
       * "Local" routes traffic to node-local endpoints only, traffic is
       * dropped if no node-local endpoints are ready.
       * The default value is "Cluster".
       * +featureGate=ServiceInternalTrafficPolicy
       * +optional
       * 
* * optional string internalTrafficPolicy = 22; */ public Builder clearInternalTrafficPolicy() { bitField0_ = (bitField0_ & ~0x00040000); internalTrafficPolicy_ = getDefaultInstance().getInternalTrafficPolicy(); onChanged(); return this; } /** * * *
       * InternalTrafficPolicy specifies if the cluster internal traffic
       * should be routed to all endpoints or node-local endpoints only.
       * "Cluster" routes internal traffic to a Service to all endpoints.
       * "Local" routes traffic to node-local endpoints only, traffic is
       * dropped if no node-local endpoints are ready.
       * The default value is "Cluster".
       * +featureGate=ServiceInternalTrafficPolicy
       * +optional
       * 
* * optional string internalTrafficPolicy = 22; */ public Builder setInternalTrafficPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00040000; internalTrafficPolicy_ = 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.core.v1.ServiceSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceSpec) private static final io.kubernetes.client.proto.V1.ServiceSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceSpec(); } public static io.kubernetes.client.proto.V1.ServiceSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceSpec(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.V1.ServiceSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.ServiceStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * LoadBalancer contains the current status of the load-balancer,
     * if one is present.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ boolean hasLoadBalancer(); /** * * *
     * LoadBalancer contains the current status of the load-balancer,
     * if one is present.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ io.kubernetes.client.proto.V1.LoadBalancerStatus getLoadBalancer(); /** * * *
     * LoadBalancer contains the current status of the load-balancer,
     * if one is present.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancerOrBuilder(); /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ java.util.List getConditionsList(); /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ io.kubernetes.client.proto.Meta.Condition getConditions(int index); /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ int getConditionsCount(); /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder(int index); } /** * * *
   * ServiceStatus represents the current status of a service.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceStatus} */ public static final class ServiceStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.ServiceStatus) ServiceStatusOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceStatus.newBuilder() to construct. private ServiceStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceStatus() { conditions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceStatus( 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.V1.LoadBalancerStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = loadBalancer_.toBuilder(); } loadBalancer_ = input.readMessage( io.kubernetes.client.proto.V1.LoadBalancerStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loadBalancer_); loadBalancer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } conditions_.add( input.readMessage( io.kubernetes.client.proto.Meta.Condition.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)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceStatus.class, io.kubernetes.client.proto.V1.ServiceStatus.Builder.class); } private int bitField0_; public static final int LOADBALANCER_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.LoadBalancerStatus loadBalancer_; /** * * *
     * LoadBalancer contains the current status of the load-balancer,
     * if one is present.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public boolean hasLoadBalancer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * LoadBalancer contains the current status of the load-balancer,
     * if one is present.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerStatus getLoadBalancer() { return loadBalancer_ == null ? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance() : loadBalancer_; } /** * * *
     * LoadBalancer contains the current status of the load-balancer,
     * if one is present.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancerOrBuilder() { return loadBalancer_ == null ? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance() : loadBalancer_; } public static final int CONDITIONS_FIELD_NUMBER = 2; private java.util.List conditions_; /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Current service state
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.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, getLoadBalancer()); } for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(2, conditions_.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, getLoadBalancer()); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, conditions_.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.V1.ServiceStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1.ServiceStatus other = (io.kubernetes.client.proto.V1.ServiceStatus) obj; boolean result = true; result = result && (hasLoadBalancer() == other.hasLoadBalancer()); if (hasLoadBalancer()) { result = result && getLoadBalancer().equals(other.getLoadBalancer()); } result = result && getConditionsList().equals(other.getConditionsList()); 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 (hasLoadBalancer()) { hash = (37 * hash) + LOADBALANCER_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancer().hashCode(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.ServiceStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceStatus 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.V1.ServiceStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceStatus 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.V1.ServiceStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.ServiceStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.ServiceStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceStatus 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.V1.ServiceStatus parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceStatus 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.V1.ServiceStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.ServiceStatus 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.V1.ServiceStatus 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; } /** * * *
     * ServiceStatus represents the current status of a service.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.ServiceStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.ServiceStatus) io.kubernetes.client.proto.V1.ServiceStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_ServiceStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.ServiceStatus.class, io.kubernetes.client.proto.V1.ServiceStatus.Builder.class); } // Construct using io.kubernetes.client.proto.V1.ServiceStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLoadBalancerFieldBuilder(); getConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (loadBalancerBuilder_ == null) { loadBalancer_ = null; } else { loadBalancerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { conditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.ServiceStatus.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceStatus build() { io.kubernetes.client.proto.V1.ServiceStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.ServiceStatus buildPartial() { io.kubernetes.client.proto.V1.ServiceStatus result = new io.kubernetes.client.proto.V1.ServiceStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (loadBalancerBuilder_ == null) { result.loadBalancer_ = loadBalancer_; } else { result.loadBalancer_ = loadBalancerBuilder_.build(); } if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000002); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.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.V1.ServiceStatus) { return mergeFrom((io.kubernetes.client.proto.V1.ServiceStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.ServiceStatus other) { if (other == io.kubernetes.client.proto.V1.ServiceStatus.getDefaultInstance()) return this; if (other.hasLoadBalancer()) { mergeLoadBalancer(other.getLoadBalancer()); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000002); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } 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.V1.ServiceStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.ServiceStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.LoadBalancerStatus loadBalancer_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LoadBalancerStatus, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder, io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder> loadBalancerBuilder_; /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public boolean hasLoadBalancer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerStatus getLoadBalancer() { if (loadBalancerBuilder_ == null) { return loadBalancer_ == null ? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance() : loadBalancer_; } else { return loadBalancerBuilder_.getMessage(); } } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public Builder setLoadBalancer(io.kubernetes.client.proto.V1.LoadBalancerStatus value) { if (loadBalancerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loadBalancer_ = value; onChanged(); } else { loadBalancerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public Builder setLoadBalancer( io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder builderForValue) { if (loadBalancerBuilder_ == null) { loadBalancer_ = builderForValue.build(); onChanged(); } else { loadBalancerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public Builder mergeLoadBalancer(io.kubernetes.client.proto.V1.LoadBalancerStatus value) { if (loadBalancerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && loadBalancer_ != null && loadBalancer_ != io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()) { loadBalancer_ = io.kubernetes.client.proto.V1.LoadBalancerStatus.newBuilder(loadBalancer_) .mergeFrom(value) .buildPartial(); } else { loadBalancer_ = value; } onChanged(); } else { loadBalancerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public Builder clearLoadBalancer() { if (loadBalancerBuilder_ == null) { loadBalancer_ = null; onChanged(); } else { loadBalancerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder getLoadBalancerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getLoadBalancerFieldBuilder().getBuilder(); } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ public io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancerOrBuilder() { if (loadBalancerBuilder_ != null) { return loadBalancerBuilder_.getMessageOrBuilder(); } else { return loadBalancer_ == null ? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance() : loadBalancer_; } } /** * * *
       * LoadBalancer contains the current status of the load-balancer,
       * if one is present.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LoadBalancerStatus, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder, io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder> getLoadBalancerFieldBuilder() { if (loadBalancerBuilder_ == null) { loadBalancerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LoadBalancerStatus, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder, io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder>( getLoadBalancer(), getParentForChildren(), isClean()); loadBalancer_ = null; } return loadBalancerBuilder_; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> conditionsBuilder_; /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder setConditions(int index, io.kubernetes.client.proto.Meta.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder setConditions( int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder addConditions(int index, io.kubernetes.client.proto.Meta.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder addConditions( io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder addConditions( int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); } /** * * *
       * Current service state
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } @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.core.v1.ServiceStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.ServiceStatus) private static final io.kubernetes.client.proto.V1.ServiceStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.ServiceStatus(); } public static io.kubernetes.client.proto.V1.ServiceStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceStatus(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.V1.ServiceStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SessionAffinityConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.SessionAffinityConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * clientIP contains the configurations of Client IP based session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ boolean hasClientIP(); /** * * *
     * clientIP contains the configurations of Client IP based session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ io.kubernetes.client.proto.V1.ClientIPConfig getClientIP(); /** * * *
     * clientIP contains the configurations of Client IP based session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder getClientIPOrBuilder(); } /** * * *
   * SessionAffinityConfig represents the configurations of session affinity.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.SessionAffinityConfig} */ public static final class SessionAffinityConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.SessionAffinityConfig) SessionAffinityConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SessionAffinityConfig.newBuilder() to construct. private SessionAffinityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SessionAffinityConfig() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SessionAffinityConfig( 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.V1.ClientIPConfig.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = clientIP_.toBuilder(); } clientIP_ = input.readMessage( io.kubernetes.client.proto.V1.ClientIPConfig.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientIP_); clientIP_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SessionAffinityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SessionAffinityConfig.class, io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder.class); } private int bitField0_; public static final int CLIENTIP_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.ClientIPConfig clientIP_; /** * * *
     * clientIP contains the configurations of Client IP based session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public boolean hasClientIP() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * clientIP contains the configurations of Client IP based session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public io.kubernetes.client.proto.V1.ClientIPConfig getClientIP() { return clientIP_ == null ? io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance() : clientIP_; } /** * * *
     * clientIP contains the configurations of Client IP based session affinity.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder getClientIPOrBuilder() { return clientIP_ == null ? io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance() : clientIP_; } 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, getClientIP()); } 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, getClientIP()); } 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.V1.SessionAffinityConfig)) { return super.equals(obj); } io.kubernetes.client.proto.V1.SessionAffinityConfig other = (io.kubernetes.client.proto.V1.SessionAffinityConfig) obj; boolean result = true; result = result && (hasClientIP() == other.hasClientIP()); if (hasClientIP()) { result = result && getClientIP().equals(other.getClientIP()); } 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 (hasClientIP()) { hash = (37 * hash) + CLIENTIP_FIELD_NUMBER; hash = (53 * hash) + getClientIP().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.SessionAffinityConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig 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.V1.SessionAffinityConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig 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.V1.SessionAffinityConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig 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.V1.SessionAffinityConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig 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.V1.SessionAffinityConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig 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.V1.SessionAffinityConfig 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; } /** * * *
     * SessionAffinityConfig represents the configurations of session affinity.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.SessionAffinityConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.SessionAffinityConfig) io.kubernetes.client.proto.V1.SessionAffinityConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_SessionAffinityConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.SessionAffinityConfig.class, io.kubernetes.client.proto.V1.SessionAffinityConfig.Builder.class); } // Construct using io.kubernetes.client.proto.V1.SessionAffinityConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getClientIPFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (clientIPBuilder_ == null) { clientIP_ = null; } else { clientIPBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.SessionAffinityConfig getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.SessionAffinityConfig build() { io.kubernetes.client.proto.V1.SessionAffinityConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.SessionAffinityConfig buildPartial() { io.kubernetes.client.proto.V1.SessionAffinityConfig result = new io.kubernetes.client.proto.V1.SessionAffinityConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (clientIPBuilder_ == null) { result.clientIP_ = clientIP_; } else { result.clientIP_ = clientIPBuilder_.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.V1.SessionAffinityConfig) { return mergeFrom((io.kubernetes.client.proto.V1.SessionAffinityConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.SessionAffinityConfig other) { if (other == io.kubernetes.client.proto.V1.SessionAffinityConfig.getDefaultInstance()) return this; if (other.hasClientIP()) { mergeClientIP(other.getClientIP()); } 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.V1.SessionAffinityConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.SessionAffinityConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.ClientIPConfig clientIP_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ClientIPConfig, io.kubernetes.client.proto.V1.ClientIPConfig.Builder, io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder> clientIPBuilder_; /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public boolean hasClientIP() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public io.kubernetes.client.proto.V1.ClientIPConfig getClientIP() { if (clientIPBuilder_ == null) { return clientIP_ == null ? io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance() : clientIP_; } else { return clientIPBuilder_.getMessage(); } } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public Builder setClientIP(io.kubernetes.client.proto.V1.ClientIPConfig value) { if (clientIPBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientIP_ = value; onChanged(); } else { clientIPBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public Builder setClientIP( io.kubernetes.client.proto.V1.ClientIPConfig.Builder builderForValue) { if (clientIPBuilder_ == null) { clientIP_ = builderForValue.build(); onChanged(); } else { clientIPBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public Builder mergeClientIP(io.kubernetes.client.proto.V1.ClientIPConfig value) { if (clientIPBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && clientIP_ != null && clientIP_ != io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance()) { clientIP_ = io.kubernetes.client.proto.V1.ClientIPConfig.newBuilder(clientIP_) .mergeFrom(value) .buildPartial(); } else { clientIP_ = value; } onChanged(); } else { clientIPBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public Builder clearClientIP() { if (clientIPBuilder_ == null) { clientIP_ = null; onChanged(); } else { clientIPBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public io.kubernetes.client.proto.V1.ClientIPConfig.Builder getClientIPBuilder() { bitField0_ |= 0x00000001; onChanged(); return getClientIPFieldBuilder().getBuilder(); } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ public io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder getClientIPOrBuilder() { if (clientIPBuilder_ != null) { return clientIPBuilder_.getMessageOrBuilder(); } else { return clientIP_ == null ? io.kubernetes.client.proto.V1.ClientIPConfig.getDefaultInstance() : clientIP_; } } /** * * *
       * clientIP contains the configurations of Client IP based session affinity.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ClientIPConfig clientIP = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ClientIPConfig, io.kubernetes.client.proto.V1.ClientIPConfig.Builder, io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder> getClientIPFieldBuilder() { if (clientIPBuilder_ == null) { clientIPBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ClientIPConfig, io.kubernetes.client.proto.V1.ClientIPConfig.Builder, io.kubernetes.client.proto.V1.ClientIPConfigOrBuilder>( getClientIP(), getParentForChildren(), isClean()); clientIP_ = null; } return clientIPBuilder_; } @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.core.v1.SessionAffinityConfig) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.SessionAffinityConfig) private static final io.kubernetes.client.proto.V1.SessionAffinityConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.SessionAffinityConfig(); } public static io.kubernetes.client.proto.V1.SessionAffinityConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SessionAffinityConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SessionAffinityConfig(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.V1.SessionAffinityConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StorageOSPersistentVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.StorageOSPersistentVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ boolean hasVolumeName(); /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ java.lang.String getVolumeName(); /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ com.google.protobuf.ByteString getVolumeNameBytes(); /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ boolean hasVolumeNamespace(); /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ java.lang.String getVolumeNamespace(); /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ com.google.protobuf.ByteString getVolumeNamespaceBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ boolean hasSecretRef(); /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ io.kubernetes.client.proto.V1.ObjectReference getSecretRef(); /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getSecretRefOrBuilder(); } /** * * *
   * Represents a StorageOS persistent volume resource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.StorageOSPersistentVolumeSource} */ public static final class StorageOSPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.StorageOSPersistentVolumeSource) StorageOSPersistentVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use StorageOSPersistentVolumeSource.newBuilder() to construct. private StorageOSPersistentVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StorageOSPersistentVolumeSource() { volumeName_ = ""; volumeNamespace_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StorageOSPersistentVolumeSource( 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; volumeName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; volumeNamespace_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; fsType_ = bs; break; } case 32: { bitField0_ |= 0x00000008; readOnly_ = input.readBool(); break; } case 42: { io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = 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 .V1 .internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.class, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMENAME_FIELD_NUMBER = 1; private volatile java.lang.Object volumeName_; /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } } /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMENAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object volumeNamespace_; /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ public boolean hasVolumeNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ public java.lang.String getVolumeNamespace() { java.lang.Object ref = volumeNamespace_; 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()) { volumeNamespace_ = s; } return s; } } /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ public com.google.protobuf.ByteString getVolumeNamespaceBytes() { java.lang.Object ref = volumeNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 3; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } public static final int SECRETREF_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.ObjectReference secretRef_; /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.ObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : secretRef_; } 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, volumeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, volumeNamespace_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fsType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, readOnly_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getSecretRef()); } 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, volumeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, volumeNamespace_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fsType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecretRef()); } 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.V1.StorageOSPersistentVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource other = (io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource) obj; boolean result = true; result = result && (hasVolumeName() == other.hasVolumeName()); if (hasVolumeName()) { result = result && getVolumeName().equals(other.getVolumeName()); } result = result && (hasVolumeNamespace() == other.hasVolumeNamespace()); if (hasVolumeNamespace()) { result = result && getVolumeNamespace().equals(other.getVolumeNamespace()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } 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 (hasVolumeName()) { hash = (37 * hash) + VOLUMENAME_FIELD_NUMBER; hash = (53 * hash) + getVolumeName().hashCode(); } if (hasVolumeNamespace()) { hash = (37 * hash) + VOLUMENAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getVolumeNamespace().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource 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.V1.StorageOSPersistentVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource 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.V1.StorageOSPersistentVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource 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.V1.StorageOSPersistentVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource 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.V1.StorageOSPersistentVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource 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.V1.StorageOSPersistentVolumeSource 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; } /** * * *
     * Represents a StorageOS persistent volume resource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.StorageOSPersistentVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.StorageOSPersistentVolumeSource) io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.class, io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); volumeName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); volumeNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00000002); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource build() { io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource buildPartial() { io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource result = new io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumeName_ = volumeName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.volumeNamespace_ = volumeNamespace_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.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.V1.StorageOSPersistentVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource other) { if (other == io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeName()) { bitField0_ |= 0x00000001; volumeName_ = other.volumeName_; onChanged(); } if (other.hasVolumeNamespace()) { bitField0_ |= 0x00000002; volumeNamespace_ = other.volumeNamespace_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000004; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } 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.V1.StorageOSPersistentVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumeName_ = ""; /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public Builder setVolumeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeName_ = value; onChanged(); return this; } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public Builder clearVolumeName() { bitField0_ = (bitField0_ & ~0x00000001); volumeName_ = getDefaultInstance().getVolumeName(); onChanged(); return this; } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public Builder setVolumeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeName_ = value; onChanged(); return this; } private java.lang.Object volumeNamespace_ = ""; /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public boolean hasVolumeNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public java.lang.String getVolumeNamespace() { java.lang.Object ref = volumeNamespace_; 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()) { volumeNamespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public com.google.protobuf.ByteString getVolumeNamespaceBytes() { java.lang.Object ref = volumeNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public Builder setVolumeNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volumeNamespace_ = value; onChanged(); return this; } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public Builder clearVolumeNamespace() { bitField0_ = (bitField0_ & ~0x00000002); volumeNamespace_ = getDefaultInstance().getVolumeNamespace(); onChanged(); return this; } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public Builder setVolumeNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volumeNamespace_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000004); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.ObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.ObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.ObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.ObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.ObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.ObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ObjectReference secretRef = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } @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.core.v1.StorageOSPersistentVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.StorageOSPersistentVolumeSource) private static final io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource(); } public static io.kubernetes.client.proto.V1.StorageOSPersistentVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StorageOSPersistentVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StorageOSPersistentVolumeSource(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.V1.StorageOSPersistentVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StorageOSVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.StorageOSVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ boolean hasVolumeName(); /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ java.lang.String getVolumeName(); /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ com.google.protobuf.ByteString getVolumeNameBytes(); /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ boolean hasVolumeNamespace(); /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ java.lang.String getVolumeNamespace(); /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ com.google.protobuf.ByteString getVolumeNamespaceBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean hasReadOnly(); /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ boolean getReadOnly(); /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ boolean hasSecretRef(); /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef(); /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder(); } /** * * *
   * Represents a StorageOS persistent volume resource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.StorageOSVolumeSource} */ public static final class StorageOSVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.StorageOSVolumeSource) StorageOSVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use StorageOSVolumeSource.newBuilder() to construct. private StorageOSVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StorageOSVolumeSource() { volumeName_ = ""; volumeNamespace_ = ""; fsType_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StorageOSVolumeSource( 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; volumeName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; volumeNamespace_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; fsType_ = bs; break; } case 32: { bitField0_ |= 0x00000008; readOnly_ = input.readBool(); break; } case 42: { io.kubernetes.client.proto.V1.LocalObjectReference.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = secretRef_.toBuilder(); } secretRef_ = input.readMessage( io.kubernetes.client.proto.V1.LocalObjectReference.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretRef_); secretRef_ = 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 .V1 .internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.StorageOSVolumeSource.class, io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMENAME_FIELD_NUMBER = 1; private volatile java.lang.Object volumeName_; /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } } /** * * *
     * VolumeName is the human-readable name of the StorageOS volume.  Volume
     * names are only unique within a namespace.
     * 
* * optional string volumeName = 1; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOLUMENAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object volumeNamespace_; /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ public boolean hasVolumeNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ public java.lang.String getVolumeNamespace() { java.lang.Object ref = volumeNamespace_; 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()) { volumeNamespace_ = s; } return s; } } /** * * *
     * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
     * namespace is specified then the Pod's namespace will be used.  This allows the
     * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
     * Set VolumeName to any name to override the default behaviour.
     * Set to "default" if you are not using namespaces within StorageOS.
     * Namespaces that do not pre-exist within StorageOS will be created.
     * +optional
     * 
* * optional string volumeNamespace = 2; */ public com.google.protobuf.ByteString getVolumeNamespaceBytes() { java.lang.Object ref = volumeNamespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 3; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Defaults to false (read/write). ReadOnly here will force
     * the ReadOnly setting in VolumeMounts.
     * +optional
     * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } public static final int SECRETREF_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_; /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } /** * * *
     * SecretRef specifies the secret to use for obtaining the StorageOS API
     * credentials.  If not specified, default values will be attempted.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } 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, volumeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, volumeNamespace_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fsType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, readOnly_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getSecretRef()); } 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, volumeName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, volumeNamespace_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fsType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSecretRef()); } 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.V1.StorageOSVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.StorageOSVolumeSource other = (io.kubernetes.client.proto.V1.StorageOSVolumeSource) obj; boolean result = true; result = result && (hasVolumeName() == other.hasVolumeName()); if (hasVolumeName()) { result = result && getVolumeName().equals(other.getVolumeName()); } result = result && (hasVolumeNamespace() == other.hasVolumeNamespace()); if (hasVolumeNamespace()) { result = result && getVolumeNamespace().equals(other.getVolumeNamespace()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasSecretRef() == other.hasSecretRef()); if (hasSecretRef()) { result = result && getSecretRef().equals(other.getSecretRef()); } 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 (hasVolumeName()) { hash = (37 * hash) + VOLUMENAME_FIELD_NUMBER; hash = (53 * hash) + getVolumeName().hashCode(); } if (hasVolumeNamespace()) { hash = (37 * hash) + VOLUMENAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getVolumeNamespace().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasSecretRef()) { hash = (37 * hash) + SECRETREF_FIELD_NUMBER; hash = (53 * hash) + getSecretRef().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource 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.V1.StorageOSVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource 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.V1.StorageOSVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource 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.V1.StorageOSVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource 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.V1.StorageOSVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource 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.V1.StorageOSVolumeSource 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; } /** * * *
     * Represents a StorageOS persistent volume resource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.StorageOSVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.StorageOSVolumeSource) io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.StorageOSVolumeSource.class, io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.StorageOSVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretRefFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); volumeName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); volumeNamespace_ = ""; bitField0_ = (bitField0_ & ~0x00000002); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); if (secretRefBuilder_ == null) { secretRef_ = null; } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.StorageOSVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.StorageOSVolumeSource build() { io.kubernetes.client.proto.V1.StorageOSVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.StorageOSVolumeSource buildPartial() { io.kubernetes.client.proto.V1.StorageOSVolumeSource result = new io.kubernetes.client.proto.V1.StorageOSVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumeName_ = volumeName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.volumeNamespace_ = volumeNamespace_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (secretRefBuilder_ == null) { result.secretRef_ = secretRef_; } else { result.secretRef_ = secretRefBuilder_.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.V1.StorageOSVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.StorageOSVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.StorageOSVolumeSource other) { if (other == io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance()) return this; if (other.hasVolumeName()) { bitField0_ |= 0x00000001; volumeName_ = other.volumeName_; onChanged(); } if (other.hasVolumeNamespace()) { bitField0_ |= 0x00000002; volumeNamespace_ = other.volumeNamespace_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000004; fsType_ = other.fsType_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasSecretRef()) { mergeSecretRef(other.getSecretRef()); } 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.V1.StorageOSVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.StorageOSVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumeName_ = ""; /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public boolean hasVolumeName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public java.lang.String getVolumeName() { java.lang.Object ref = volumeName_; 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()) { volumeName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public com.google.protobuf.ByteString getVolumeNameBytes() { java.lang.Object ref = volumeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public Builder setVolumeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeName_ = value; onChanged(); return this; } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public Builder clearVolumeName() { bitField0_ = (bitField0_ & ~0x00000001); volumeName_ = getDefaultInstance().getVolumeName(); onChanged(); return this; } /** * * *
       * VolumeName is the human-readable name of the StorageOS volume.  Volume
       * names are only unique within a namespace.
       * 
* * optional string volumeName = 1; */ public Builder setVolumeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumeName_ = value; onChanged(); return this; } private java.lang.Object volumeNamespace_ = ""; /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public boolean hasVolumeNamespace() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public java.lang.String getVolumeNamespace() { java.lang.Object ref = volumeNamespace_; 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()) { volumeNamespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public com.google.protobuf.ByteString getVolumeNamespaceBytes() { java.lang.Object ref = volumeNamespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumeNamespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public Builder setVolumeNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volumeNamespace_ = value; onChanged(); return this; } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public Builder clearVolumeNamespace() { bitField0_ = (bitField0_ & ~0x00000002); volumeNamespace_ = getDefaultInstance().getVolumeNamespace(); onChanged(); return this; } /** * * *
       * VolumeNamespace specifies the scope of the volume within StorageOS.  If no
       * namespace is specified then the Pod's namespace will be used.  This allows the
       * Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
       * Set VolumeName to any name to override the default behaviour.
       * Set to "default" if you are not using namespaces within StorageOS.
       * Namespaces that do not pre-exist within StorageOS will be created.
       * +optional
       * 
* * optional string volumeNamespace = 2; */ public Builder setVolumeNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; volumeNamespace_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public boolean hasFsType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000004); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 3; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; fsType_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000008; readOnly_ = value; onChanged(); return this; } /** * * *
       * Defaults to false (read/write). ReadOnly here will force
       * the ReadOnly setting in VolumeMounts.
       * +optional
       * 
* * optional bool readOnly = 4; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000008); readOnly_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1.LocalObjectReference secretRef_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> secretRefBuilder_; /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public boolean hasSecretRef() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference getSecretRef() { if (secretRefBuilder_ == null) { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } else { return secretRefBuilder_.getMessage(); } } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder setSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretRef_ = value; onChanged(); } else { secretRefBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder setSecretRef( io.kubernetes.client.proto.V1.LocalObjectReference.Builder builderForValue) { if (secretRefBuilder_ == null) { secretRef_ = builderForValue.build(); onChanged(); } else { secretRefBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder mergeSecretRef(io.kubernetes.client.proto.V1.LocalObjectReference value) { if (secretRefBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && secretRef_ != null && secretRef_ != io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance()) { secretRef_ = io.kubernetes.client.proto.V1.LocalObjectReference.newBuilder(secretRef_) .mergeFrom(value) .buildPartial(); } else { secretRef_ = value; } onChanged(); } else { secretRefBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public Builder clearSecretRef() { if (secretRefBuilder_ == null) { secretRef_ = null; onChanged(); } else { secretRefBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReference.Builder getSecretRefBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSecretRefFieldBuilder().getBuilder(); } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder() { if (secretRefBuilder_ != null) { return secretRefBuilder_.getMessageOrBuilder(); } else { return secretRef_ == null ? io.kubernetes.client.proto.V1.LocalObjectReference.getDefaultInstance() : secretRef_; } } /** * * *
       * SecretRef specifies the secret to use for obtaining the StorageOS API
       * credentials.  If not specified, default values will be attempted.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder> getSecretRefFieldBuilder() { if (secretRefBuilder_ == null) { secretRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.LocalObjectReference, io.kubernetes.client.proto.V1.LocalObjectReference.Builder, io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder>( getSecretRef(), getParentForChildren(), isClean()); secretRef_ = null; } return secretRefBuilder_; } @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.core.v1.StorageOSVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.StorageOSVolumeSource) private static final io.kubernetes.client.proto.V1.StorageOSVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.StorageOSVolumeSource(); } public static io.kubernetes.client.proto.V1.StorageOSVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StorageOSVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StorageOSVolumeSource(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.V1.StorageOSVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SysctlOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Sysctl) com.google.protobuf.MessageOrBuilder { /** * * *
     * Name of a property to set
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name of a property to set
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name of a property to set
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Value of a property to set
     * 
* * optional string value = 2; */ boolean hasValue(); /** * * *
     * Value of a property to set
     * 
* * optional string value = 2; */ java.lang.String getValue(); /** * * *
     * Value of a property to set
     * 
* * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * * *
   * Sysctl defines a kernel parameter to be set
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Sysctl} */ public static final class Sysctl extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Sysctl) SysctlOrBuilder { private static final long serialVersionUID = 0L; // Use Sysctl.newBuilder() to construct. private Sysctl(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sysctl() { name_ = ""; value_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Sysctl( 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; value_ = 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.V1.internal_static_k8s_io_api_core_v1_Sysctl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Sysctl_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Sysctl.class, io.kubernetes.client.proto.V1.Sysctl.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name of a property to set
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name of a property to set
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name of a property to set
     * 
* * 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 VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * * *
     * Value of a property to set
     * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Value of a property to set
     * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * * *
     * Value of a property to set
     * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } 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, value_); } 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.V1.Sysctl)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Sysctl other = (io.kubernetes.client.proto.V1.Sysctl) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } 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 (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Sysctl parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Sysctl 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.V1.Sysctl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Sysctl 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.V1.Sysctl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Sysctl parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Sysctl parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Sysctl 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.V1.Sysctl parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Sysctl 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.V1.Sysctl parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Sysctl 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.V1.Sysctl 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; } /** * * *
     * Sysctl defines a kernel parameter to be set
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Sysctl} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Sysctl) io.kubernetes.client.proto.V1.SysctlOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Sysctl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Sysctl_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Sysctl.class, io.kubernetes.client.proto.V1.Sysctl.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Sysctl.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Sysctl_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Sysctl getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Sysctl.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Sysctl build() { io.kubernetes.client.proto.V1.Sysctl result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Sysctl buildPartial() { io.kubernetes.client.proto.V1.Sysctl result = new io.kubernetes.client.proto.V1.Sysctl(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.value_ = value_; 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.V1.Sysctl) { return mergeFrom((io.kubernetes.client.proto.V1.Sysctl) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Sysctl other) { if (other == io.kubernetes.client.proto.V1.Sysctl.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; 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.V1.Sysctl parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Sysctl) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name of a property to set
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name of a property to set
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name of a property to set
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name of a property to set
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name of a property to set
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name of a property to set
       * 
* * 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 value_ = ""; /** * * *
       * Value of a property to set
       * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Value of a property to set
       * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Value of a property to set
       * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Value of a property to set
       * 
* * optional string value = 2; */ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * * *
       * Value of a property to set
       * 
* * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * * *
       * Value of a property to set
       * 
* * optional string value = 2; */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = 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.core.v1.Sysctl) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Sysctl) private static final io.kubernetes.client.proto.V1.Sysctl DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Sysctl(); } public static io.kubernetes.client.proto.V1.Sysctl getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sysctl parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Sysctl(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.V1.Sysctl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TCPSocketActionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.TCPSocketAction) com.google.protobuf.MessageOrBuilder { /** * * *
     * Number or name of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ boolean hasPort(); /** * * *
     * Number or name of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ io.kubernetes.client.proto.IntStr.IntOrString getPort(); /** * * *
     * Number or name of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder(); /** * * *
     * Optional: Host name to connect to, defaults to the pod IP.
     * +optional
     * 
* * optional string host = 2; */ boolean hasHost(); /** * * *
     * Optional: Host name to connect to, defaults to the pod IP.
     * +optional
     * 
* * optional string host = 2; */ java.lang.String getHost(); /** * * *
     * Optional: Host name to connect to, defaults to the pod IP.
     * +optional
     * 
* * optional string host = 2; */ com.google.protobuf.ByteString getHostBytes(); } /** * * *
   * TCPSocketAction describes an action based on opening a socket
   * 
* * Protobuf type {@code k8s.io.api.core.v1.TCPSocketAction} */ public static final class TCPSocketAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.TCPSocketAction) TCPSocketActionOrBuilder { private static final long serialVersionUID = 0L; // Use TCPSocketAction.newBuilder() to construct. private TCPSocketAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TCPSocketAction() { host_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TCPSocketAction( 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.IntStr.IntOrString.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = port_.toBuilder(); } port_ = input.readMessage( io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(port_); port_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; host_ = 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 .V1 .internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TCPSocketAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TCPSocketAction.class, io.kubernetes.client.proto.V1.TCPSocketAction.Builder.class); } private int bitField0_; public static final int PORT_FIELD_NUMBER = 1; private io.kubernetes.client.proto.IntStr.IntOrString port_; /** * * *
     * Number or name of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Number or name of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public io.kubernetes.client.proto.IntStr.IntOrString getPort() { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } /** * * *
     * Number or name of the port to access on the container.
     * Number must be in the range 1 to 65535.
     * Name must be an IANA_SVC_NAME.
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder() { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } public static final int HOST_FIELD_NUMBER = 2; private volatile java.lang.Object host_; /** * * *
     * Optional: Host name to connect to, defaults to the pod IP.
     * +optional
     * 
* * optional string host = 2; */ public boolean hasHost() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Optional: Host name to connect to, defaults to the pod IP.
     * +optional
     * 
* * optional string host = 2; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } } /** * * *
     * Optional: Host name to connect to, defaults to the pod IP.
     * +optional
     * 
* * optional string host = 2; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = 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, getPort()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_); } 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, getPort()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); } 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.V1.TCPSocketAction)) { return super.equals(obj); } io.kubernetes.client.proto.V1.TCPSocketAction other = (io.kubernetes.client.proto.V1.TCPSocketAction) obj; boolean result = true; result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && getPort().equals(other.getPort()); } result = result && (hasHost() == other.hasHost()); if (hasHost()) { result = result && getHost().equals(other.getHost()); } 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 (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort().hashCode(); } if (hasHost()) { hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.TCPSocketAction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TCPSocketAction 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.V1.TCPSocketAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TCPSocketAction 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.V1.TCPSocketAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TCPSocketAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.TCPSocketAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TCPSocketAction 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.V1.TCPSocketAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TCPSocketAction 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.V1.TCPSocketAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TCPSocketAction 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.V1.TCPSocketAction 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; } /** * * *
     * TCPSocketAction describes an action based on opening a socket
     * 
* * Protobuf type {@code k8s.io.api.core.v1.TCPSocketAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.TCPSocketAction) io.kubernetes.client.proto.V1.TCPSocketActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TCPSocketAction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TCPSocketAction.class, io.kubernetes.client.proto.V1.TCPSocketAction.Builder.class); } // Construct using io.kubernetes.client.proto.V1.TCPSocketAction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPortFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (portBuilder_ == null) { port_ = null; } else { portBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); host_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.TCPSocketAction getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.TCPSocketAction build() { io.kubernetes.client.proto.V1.TCPSocketAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.TCPSocketAction buildPartial() { io.kubernetes.client.proto.V1.TCPSocketAction result = new io.kubernetes.client.proto.V1.TCPSocketAction(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (portBuilder_ == null) { result.port_ = port_; } else { result.port_ = portBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.host_ = host_; 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.V1.TCPSocketAction) { return mergeFrom((io.kubernetes.client.proto.V1.TCPSocketAction) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.TCPSocketAction other) { if (other == io.kubernetes.client.proto.V1.TCPSocketAction.getDefaultInstance()) return this; if (other.hasPort()) { mergePort(other.getPort()); } if (other.hasHost()) { bitField0_ |= 0x00000002; host_ = other.host_; 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.V1.TCPSocketAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.TCPSocketAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.IntStr.IntOrString port_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> portBuilder_; /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public boolean hasPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public io.kubernetes.client.proto.IntStr.IntOrString getPort() { if (portBuilder_ == null) { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } else { return portBuilder_.getMessage(); } } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public Builder setPort(io.kubernetes.client.proto.IntStr.IntOrString value) { if (portBuilder_ == null) { if (value == null) { throw new NullPointerException(); } port_ = value; onChanged(); } else { portBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public Builder setPort( io.kubernetes.client.proto.IntStr.IntOrString.Builder builderForValue) { if (portBuilder_ == null) { port_ = builderForValue.build(); onChanged(); } else { portBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public Builder mergePort(io.kubernetes.client.proto.IntStr.IntOrString value) { if (portBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && port_ != null && port_ != io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) { port_ = io.kubernetes.client.proto.IntStr.IntOrString.newBuilder(port_) .mergeFrom(value) .buildPartial(); } else { port_ = value; } onChanged(); } else { portBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public Builder clearPort() { if (portBuilder_ == null) { port_ = null; onChanged(); } else { portBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public io.kubernetes.client.proto.IntStr.IntOrString.Builder getPortBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPortFieldBuilder().getBuilder(); } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder() { if (portBuilder_ != null) { return portBuilder_.getMessageOrBuilder(); } else { return port_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : port_; } } /** * * *
       * Number or name of the port to access on the container.
       * Number must be in the range 1 to 65535.
       * Name must be an IANA_SVC_NAME.
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> getPortFieldBuilder() { if (portBuilder_ == null) { portBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>( getPort(), getParentForChildren(), isClean()); port_ = null; } return portBuilder_; } private java.lang.Object host_ = ""; /** * * *
       * Optional: Host name to connect to, defaults to the pod IP.
       * +optional
       * 
* * optional string host = 2; */ public boolean hasHost() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Optional: Host name to connect to, defaults to the pod IP.
       * +optional
       * 
* * optional string host = 2; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Optional: Host name to connect to, defaults to the pod IP.
       * +optional
       * 
* * optional string host = 2; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Optional: Host name to connect to, defaults to the pod IP.
       * +optional
       * 
* * optional string host = 2; */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; host_ = value; onChanged(); return this; } /** * * *
       * Optional: Host name to connect to, defaults to the pod IP.
       * +optional
       * 
* * optional string host = 2; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000002); host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * * *
       * Optional: Host name to connect to, defaults to the pod IP.
       * +optional
       * 
* * optional string host = 2; */ public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; host_ = 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.core.v1.TCPSocketAction) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.TCPSocketAction) private static final io.kubernetes.client.proto.V1.TCPSocketAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.TCPSocketAction(); } public static io.kubernetes.client.proto.V1.TCPSocketAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TCPSocketAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TCPSocketAction(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.V1.TCPSocketAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaintOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Taint) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. The taint key to be applied to a node.
     * 
* * optional string key = 1; */ boolean hasKey(); /** * * *
     * Required. The taint key to be applied to a node.
     * 
* * optional string key = 1; */ java.lang.String getKey(); /** * * *
     * Required. The taint key to be applied to a node.
     * 
* * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * The taint value corresponding to the taint key.
     * +optional
     * 
* * optional string value = 2; */ boolean hasValue(); /** * * *
     * The taint value corresponding to the taint key.
     * +optional
     * 
* * optional string value = 2; */ java.lang.String getValue(); /** * * *
     * The taint value corresponding to the taint key.
     * +optional
     * 
* * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); /** * * *
     * Required. The effect of the taint on pods
     * that do not tolerate the taint.
     * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
     * 
* * optional string effect = 3; */ boolean hasEffect(); /** * * *
     * Required. The effect of the taint on pods
     * that do not tolerate the taint.
     * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
     * 
* * optional string effect = 3; */ java.lang.String getEffect(); /** * * *
     * Required. The effect of the taint on pods
     * that do not tolerate the taint.
     * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
     * 
* * optional string effect = 3; */ com.google.protobuf.ByteString getEffectBytes(); /** * * *
     * TimeAdded represents the time at which the taint was added.
     * It is only written for NoExecute taints.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ boolean hasTimeAdded(); /** * * *
     * TimeAdded represents the time at which the taint was added.
     * It is only written for NoExecute taints.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ io.kubernetes.client.proto.Meta.Time getTimeAdded(); /** * * *
     * TimeAdded represents the time at which the taint was added.
     * It is only written for NoExecute taints.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeAddedOrBuilder(); } /** * * *
   * The node this Taint is attached to has the "effect" on
   * any pod that does not tolerate the Taint.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Taint} */ public static final class Taint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Taint) TaintOrBuilder { private static final long serialVersionUID = 0L; // Use Taint.newBuilder() to construct. private Taint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Taint() { key_ = ""; value_ = ""; effect_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Taint( 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; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; value_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; effect_ = bs; break; } case 34: { io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = timeAdded_.toBuilder(); } timeAdded_ = input.readMessage( io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeAdded_); timeAdded_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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.V1.internal_static_k8s_io_api_core_v1_Taint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Taint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Taint.class, io.kubernetes.client.proto.V1.Taint.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * * *
     * Required. The taint key to be applied to a node.
     * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Required. The taint key to be applied to a node.
     * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * Required. The taint key to be applied to a node.
     * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * * *
     * The taint value corresponding to the taint key.
     * +optional
     * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * The taint value corresponding to the taint key.
     * +optional
     * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * * *
     * The taint value corresponding to the taint key.
     * +optional
     * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EFFECT_FIELD_NUMBER = 3; private volatile java.lang.Object effect_; /** * * *
     * Required. The effect of the taint on pods
     * that do not tolerate the taint.
     * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
     * 
* * optional string effect = 3; */ public boolean hasEffect() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Required. The effect of the taint on pods
     * that do not tolerate the taint.
     * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
     * 
* * optional string effect = 3; */ public java.lang.String getEffect() { java.lang.Object ref = effect_; 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()) { effect_ = s; } return s; } } /** * * *
     * Required. The effect of the taint on pods
     * that do not tolerate the taint.
     * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
     * 
* * optional string effect = 3; */ public com.google.protobuf.ByteString getEffectBytes() { java.lang.Object ref = effect_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); effect_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEADDED_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.Time timeAdded_; /** * * *
     * TimeAdded represents the time at which the taint was added.
     * It is only written for NoExecute taints.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public boolean hasTimeAdded() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * TimeAdded represents the time at which the taint was added.
     * It is only written for NoExecute taints.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public io.kubernetes.client.proto.Meta.Time getTimeAdded() { return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; } /** * * *
     * TimeAdded represents the time at which the taint was added.
     * It is only written for NoExecute taints.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeAddedOrBuilder() { return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; } 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, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, effect_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getTimeAdded()); } 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, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, effect_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTimeAdded()); } 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.V1.Taint)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Taint other = (io.kubernetes.client.proto.V1.Taint) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } result = result && (hasEffect() == other.hasEffect()); if (hasEffect()) { result = result && getEffect().equals(other.getEffect()); } result = result && (hasTimeAdded() == other.hasTimeAdded()); if (hasTimeAdded()) { result = result && getTimeAdded().equals(other.getTimeAdded()); } 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasEffect()) { hash = (37 * hash) + EFFECT_FIELD_NUMBER; hash = (53 * hash) + getEffect().hashCode(); } if (hasTimeAdded()) { hash = (37 * hash) + TIMEADDED_FIELD_NUMBER; hash = (53 * hash) + getTimeAdded().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Taint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Taint 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.V1.Taint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Taint 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.V1.Taint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Taint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Taint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Taint 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.V1.Taint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Taint 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.V1.Taint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Taint 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.V1.Taint 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; } /** * * *
     * The node this Taint is attached to has the "effect" on
     * any pod that does not tolerate the Taint.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Taint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Taint) io.kubernetes.client.proto.V1.TaintOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Taint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Taint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Taint.class, io.kubernetes.client.proto.V1.Taint.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Taint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTimeAddedFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); effect_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (timeAddedBuilder_ == null) { timeAdded_ = null; } else { timeAddedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Taint_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Taint getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Taint.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Taint build() { io.kubernetes.client.proto.V1.Taint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Taint buildPartial() { io.kubernetes.client.proto.V1.Taint result = new io.kubernetes.client.proto.V1.Taint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.effect_ = effect_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (timeAddedBuilder_ == null) { result.timeAdded_ = timeAdded_; } else { result.timeAdded_ = timeAddedBuilder_.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.V1.Taint) { return mergeFrom((io.kubernetes.client.proto.V1.Taint) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Taint other) { if (other == io.kubernetes.client.proto.V1.Taint.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } if (other.hasEffect()) { bitField0_ |= 0x00000004; effect_ = other.effect_; onChanged(); } if (other.hasTimeAdded()) { mergeTimeAdded(other.getTimeAdded()); } 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.V1.Taint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Taint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * * *
       * Required. The taint key to be applied to a node.
       * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Required. The taint key to be applied to a node.
       * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. The taint key to be applied to a node.
       * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. The taint key to be applied to a node.
       * 
* * optional string key = 1; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * * *
       * Required. The taint key to be applied to a node.
       * 
* * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * Required. The taint key to be applied to a node.
       * 
* * optional string key = 1; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * * *
       * The taint value corresponding to the taint key.
       * +optional
       * 
* * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * The taint value corresponding to the taint key.
       * +optional
       * 
* * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The taint value corresponding to the taint key.
       * +optional
       * 
* * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The taint value corresponding to the taint key.
       * +optional
       * 
* * optional string value = 2; */ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * * *
       * The taint value corresponding to the taint key.
       * +optional
       * 
* * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * * *
       * The taint value corresponding to the taint key.
       * +optional
       * 
* * optional string value = 2; */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } private java.lang.Object effect_ = ""; /** * * *
       * Required. The effect of the taint on pods
       * that do not tolerate the taint.
       * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
       * 
* * optional string effect = 3; */ public boolean hasEffect() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Required. The effect of the taint on pods
       * that do not tolerate the taint.
       * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
       * 
* * optional string effect = 3; */ public java.lang.String getEffect() { java.lang.Object ref = effect_; 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()) { effect_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Required. The effect of the taint on pods
       * that do not tolerate the taint.
       * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
       * 
* * optional string effect = 3; */ public com.google.protobuf.ByteString getEffectBytes() { java.lang.Object ref = effect_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); effect_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Required. The effect of the taint on pods
       * that do not tolerate the taint.
       * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
       * 
* * optional string effect = 3; */ public Builder setEffect(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; effect_ = value; onChanged(); return this; } /** * * *
       * Required. The effect of the taint on pods
       * that do not tolerate the taint.
       * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
       * 
* * optional string effect = 3; */ public Builder clearEffect() { bitField0_ = (bitField0_ & ~0x00000004); effect_ = getDefaultInstance().getEffect(); onChanged(); return this; } /** * * *
       * Required. The effect of the taint on pods
       * that do not tolerate the taint.
       * Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
       * 
* * optional string effect = 3; */ public Builder setEffectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; effect_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.Time timeAdded_ = 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> timeAddedBuilder_; /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public boolean hasTimeAdded() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public io.kubernetes.client.proto.Meta.Time getTimeAdded() { if (timeAddedBuilder_ == null) { return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; } else { return timeAddedBuilder_.getMessage(); } } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public Builder setTimeAdded(io.kubernetes.client.proto.Meta.Time value) { if (timeAddedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeAdded_ = value; onChanged(); } else { timeAddedBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public Builder setTimeAdded(io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { if (timeAddedBuilder_ == null) { timeAdded_ = builderForValue.build(); onChanged(); } else { timeAddedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public Builder mergeTimeAdded(io.kubernetes.client.proto.Meta.Time value) { if (timeAddedBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && timeAdded_ != null && timeAdded_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { timeAdded_ = io.kubernetes.client.proto.Meta.Time.newBuilder(timeAdded_) .mergeFrom(value) .buildPartial(); } else { timeAdded_ = value; } onChanged(); } else { timeAddedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public Builder clearTimeAdded() { if (timeAddedBuilder_ == null) { timeAdded_ = null; onChanged(); } else { timeAddedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public io.kubernetes.client.proto.Meta.Time.Builder getTimeAddedBuilder() { bitField0_ |= 0x00000008; onChanged(); return getTimeAddedFieldBuilder().getBuilder(); } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ public io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeAddedOrBuilder() { if (timeAddedBuilder_ != null) { return timeAddedBuilder_.getMessageOrBuilder(); } else { return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; } } /** * * *
       * TimeAdded represents the time at which the taint was added.
       * It is only written for NoExecute taints.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> getTimeAddedFieldBuilder() { if (timeAddedBuilder_ == null) { timeAddedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( getTimeAdded(), getParentForChildren(), isClean()); timeAdded_ = null; } return timeAddedBuilder_; } @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.core.v1.Taint) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Taint) private static final io.kubernetes.client.proto.V1.Taint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Taint(); } public static io.kubernetes.client.proto.V1.Taint getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Taint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Taint(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.V1.Taint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TolerationOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Toleration) com.google.protobuf.MessageOrBuilder { /** * * *
     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
     * +optional
     * 
* * optional string key = 1; */ boolean hasKey(); /** * * *
     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
     * +optional
     * 
* * optional string key = 1; */ java.lang.String getKey(); /** * * *
     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
     * +optional
     * 
* * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * Operator represents a key's relationship to the value.
     * Valid operators are Exists and Equal. Defaults to Equal.
     * Exists is equivalent to wildcard for value, so that a pod can
     * tolerate all taints of a particular category.
     * +optional
     * 
* * optional string operator = 2; */ boolean hasOperator(); /** * * *
     * Operator represents a key's relationship to the value.
     * Valid operators are Exists and Equal. Defaults to Equal.
     * Exists is equivalent to wildcard for value, so that a pod can
     * tolerate all taints of a particular category.
     * +optional
     * 
* * optional string operator = 2; */ java.lang.String getOperator(); /** * * *
     * Operator represents a key's relationship to the value.
     * Valid operators are Exists and Equal. Defaults to Equal.
     * Exists is equivalent to wildcard for value, so that a pod can
     * tolerate all taints of a particular category.
     * +optional
     * 
* * optional string operator = 2; */ com.google.protobuf.ByteString getOperatorBytes(); /** * * *
     * Value is the taint value the toleration matches to.
     * If the operator is Exists, the value should be empty, otherwise just a regular string.
     * +optional
     * 
* * optional string value = 3; */ boolean hasValue(); /** * * *
     * Value is the taint value the toleration matches to.
     * If the operator is Exists, the value should be empty, otherwise just a regular string.
     * +optional
     * 
* * optional string value = 3; */ java.lang.String getValue(); /** * * *
     * Value is the taint value the toleration matches to.
     * If the operator is Exists, the value should be empty, otherwise just a regular string.
     * +optional
     * 
* * optional string value = 3; */ com.google.protobuf.ByteString getValueBytes(); /** * * *
     * Effect indicates the taint effect to match. Empty means match all taint effects.
     * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
     * +optional
     * 
* * optional string effect = 4; */ boolean hasEffect(); /** * * *
     * Effect indicates the taint effect to match. Empty means match all taint effects.
     * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
     * +optional
     * 
* * optional string effect = 4; */ java.lang.String getEffect(); /** * * *
     * Effect indicates the taint effect to match. Empty means match all taint effects.
     * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
     * +optional
     * 
* * optional string effect = 4; */ com.google.protobuf.ByteString getEffectBytes(); /** * * *
     * TolerationSeconds represents the period of time the toleration (which must be
     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
     * it is not set, which means tolerate the taint forever (do not evict). Zero and
     * negative values will be treated as 0 (evict immediately) by the system.
     * +optional
     * 
* * optional int64 tolerationSeconds = 5; */ boolean hasTolerationSeconds(); /** * * *
     * TolerationSeconds represents the period of time the toleration (which must be
     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
     * it is not set, which means tolerate the taint forever (do not evict). Zero and
     * negative values will be treated as 0 (evict immediately) by the system.
     * +optional
     * 
* * optional int64 tolerationSeconds = 5; */ long getTolerationSeconds(); } /** * * *
   * The pod this Toleration is attached to tolerates any taint that matches
   * the triple <key,value,effect> using the matching operator <operator>.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Toleration} */ public static final class Toleration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Toleration) TolerationOrBuilder { private static final long serialVersionUID = 0L; // Use Toleration.newBuilder() to construct. private Toleration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Toleration() { key_ = ""; operator_ = ""; value_ = ""; effect_ = ""; tolerationSeconds_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Toleration( 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; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; operator_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; value_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; effect_ = bs; break; } case 40: { bitField0_ |= 0x00000010; tolerationSeconds_ = 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.V1.internal_static_k8s_io_api_core_v1_Toleration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Toleration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Toleration.class, io.kubernetes.client.proto.V1.Toleration.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * * *
     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
     * +optional
     * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
     * +optional
     * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
     * +optional
     * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPERATOR_FIELD_NUMBER = 2; private volatile java.lang.Object operator_; /** * * *
     * Operator represents a key's relationship to the value.
     * Valid operators are Exists and Equal. Defaults to Equal.
     * Exists is equivalent to wildcard for value, so that a pod can
     * tolerate all taints of a particular category.
     * +optional
     * 
* * optional string operator = 2; */ public boolean hasOperator() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Operator represents a key's relationship to the value.
     * Valid operators are Exists and Equal. Defaults to Equal.
     * Exists is equivalent to wildcard for value, so that a pod can
     * tolerate all taints of a particular category.
     * +optional
     * 
* * optional string operator = 2; */ public java.lang.String getOperator() { java.lang.Object ref = operator_; 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()) { operator_ = s; } return s; } } /** * * *
     * Operator represents a key's relationship to the value.
     * Valid operators are Exists and Equal. Defaults to Equal.
     * Exists is equivalent to wildcard for value, so that a pod can
     * tolerate all taints of a particular category.
     * +optional
     * 
* * optional string operator = 2; */ public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 3; private volatile java.lang.Object value_; /** * * *
     * Value is the taint value the toleration matches to.
     * If the operator is Exists, the value should be empty, otherwise just a regular string.
     * +optional
     * 
* * optional string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Value is the taint value the toleration matches to.
     * If the operator is Exists, the value should be empty, otherwise just a regular string.
     * +optional
     * 
* * optional string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * * *
     * Value is the taint value the toleration matches to.
     * If the operator is Exists, the value should be empty, otherwise just a regular string.
     * +optional
     * 
* * optional string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EFFECT_FIELD_NUMBER = 4; private volatile java.lang.Object effect_; /** * * *
     * Effect indicates the taint effect to match. Empty means match all taint effects.
     * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
     * +optional
     * 
* * optional string effect = 4; */ public boolean hasEffect() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Effect indicates the taint effect to match. Empty means match all taint effects.
     * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
     * +optional
     * 
* * optional string effect = 4; */ public java.lang.String getEffect() { java.lang.Object ref = effect_; 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()) { effect_ = s; } return s; } } /** * * *
     * Effect indicates the taint effect to match. Empty means match all taint effects.
     * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
     * +optional
     * 
* * optional string effect = 4; */ public com.google.protobuf.ByteString getEffectBytes() { java.lang.Object ref = effect_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); effect_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOLERATIONSECONDS_FIELD_NUMBER = 5; private long tolerationSeconds_; /** * * *
     * TolerationSeconds represents the period of time the toleration (which must be
     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
     * it is not set, which means tolerate the taint forever (do not evict). Zero and
     * negative values will be treated as 0 (evict immediately) by the system.
     * +optional
     * 
* * optional int64 tolerationSeconds = 5; */ public boolean hasTolerationSeconds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * TolerationSeconds represents the period of time the toleration (which must be
     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
     * it is not set, which means tolerate the taint forever (do not evict). Zero and
     * negative values will be treated as 0 (evict immediately) by the system.
     * +optional
     * 
* * optional int64 tolerationSeconds = 5; */ public long getTolerationSeconds() { return tolerationSeconds_; } 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, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operator_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, effect_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, tolerationSeconds_); } 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, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operator_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, effect_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, tolerationSeconds_); } 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.V1.Toleration)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Toleration other = (io.kubernetes.client.proto.V1.Toleration) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && (hasOperator() == other.hasOperator()); if (hasOperator()) { result = result && getOperator().equals(other.getOperator()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue().equals(other.getValue()); } result = result && (hasEffect() == other.hasEffect()); if (hasEffect()) { result = result && getEffect().equals(other.getEffect()); } result = result && (hasTolerationSeconds() == other.hasTolerationSeconds()); if (hasTolerationSeconds()) { result = result && (getTolerationSeconds() == other.getTolerationSeconds()); } 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasOperator()) { hash = (37 * hash) + OPERATOR_FIELD_NUMBER; hash = (53 * hash) + getOperator().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (hasEffect()) { hash = (37 * hash) + EFFECT_FIELD_NUMBER; hash = (53 * hash) + getEffect().hashCode(); } if (hasTolerationSeconds()) { hash = (37 * hash) + TOLERATIONSECONDS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTolerationSeconds()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Toleration parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Toleration 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.V1.Toleration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Toleration 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.V1.Toleration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Toleration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Toleration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Toleration 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.V1.Toleration parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Toleration 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.V1.Toleration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Toleration 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.V1.Toleration 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; } /** * * *
     * The pod this Toleration is attached to tolerates any taint that matches
     * the triple <key,value,effect> using the matching operator <operator>.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Toleration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Toleration) io.kubernetes.client.proto.V1.TolerationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Toleration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Toleration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Toleration.class, io.kubernetes.client.proto.V1.Toleration.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Toleration.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); operator_ = ""; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); effect_ = ""; bitField0_ = (bitField0_ & ~0x00000008); tolerationSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_Toleration_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Toleration getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Toleration.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Toleration build() { io.kubernetes.client.proto.V1.Toleration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Toleration buildPartial() { io.kubernetes.client.proto.V1.Toleration result = new io.kubernetes.client.proto.V1.Toleration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.operator_ = operator_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.effect_ = effect_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.tolerationSeconds_ = tolerationSeconds_; 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.V1.Toleration) { return mergeFrom((io.kubernetes.client.proto.V1.Toleration) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Toleration other) { if (other == io.kubernetes.client.proto.V1.Toleration.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasOperator()) { bitField0_ |= 0x00000002; operator_ = other.operator_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000004; value_ = other.value_; onChanged(); } if (other.hasEffect()) { bitField0_ |= 0x00000008; effect_ = other.effect_; onChanged(); } if (other.hasTolerationSeconds()) { setTolerationSeconds(other.getTolerationSeconds()); } 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.V1.Toleration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Toleration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * * *
       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
       * +optional
       * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
       * +optional
       * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
       * +optional
       * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
       * +optional
       * 
* * optional string key = 1; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * * *
       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
       * +optional
       * 
* * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
       * +optional
       * 
* * optional string key = 1; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object operator_ = ""; /** * * *
       * Operator represents a key's relationship to the value.
       * Valid operators are Exists and Equal. Defaults to Equal.
       * Exists is equivalent to wildcard for value, so that a pod can
       * tolerate all taints of a particular category.
       * +optional
       * 
* * optional string operator = 2; */ public boolean hasOperator() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Operator represents a key's relationship to the value.
       * Valid operators are Exists and Equal. Defaults to Equal.
       * Exists is equivalent to wildcard for value, so that a pod can
       * tolerate all taints of a particular category.
       * +optional
       * 
* * optional string operator = 2; */ public java.lang.String getOperator() { java.lang.Object ref = operator_; 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()) { operator_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Operator represents a key's relationship to the value.
       * Valid operators are Exists and Equal. Defaults to Equal.
       * Exists is equivalent to wildcard for value, so that a pod can
       * tolerate all taints of a particular category.
       * +optional
       * 
* * optional string operator = 2; */ public com.google.protobuf.ByteString getOperatorBytes() { java.lang.Object ref = operator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Operator represents a key's relationship to the value.
       * Valid operators are Exists and Equal. Defaults to Equal.
       * Exists is equivalent to wildcard for value, so that a pod can
       * tolerate all taints of a particular category.
       * +optional
       * 
* * optional string operator = 2; */ public Builder setOperator(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value; onChanged(); return this; } /** * * *
       * Operator represents a key's relationship to the value.
       * Valid operators are Exists and Equal. Defaults to Equal.
       * Exists is equivalent to wildcard for value, so that a pod can
       * tolerate all taints of a particular category.
       * +optional
       * 
* * optional string operator = 2; */ public Builder clearOperator() { bitField0_ = (bitField0_ & ~0x00000002); operator_ = getDefaultInstance().getOperator(); onChanged(); return this; } /** * * *
       * Operator represents a key's relationship to the value.
       * Valid operators are Exists and Equal. Defaults to Equal.
       * Exists is equivalent to wildcard for value, so that a pod can
       * tolerate all taints of a particular category.
       * +optional
       * 
* * optional string operator = 2; */ public Builder setOperatorBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operator_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * * *
       * Value is the taint value the toleration matches to.
       * If the operator is Exists, the value should be empty, otherwise just a regular string.
       * +optional
       * 
* * optional string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Value is the taint value the toleration matches to.
       * If the operator is Exists, the value should be empty, otherwise just a regular string.
       * +optional
       * 
* * optional string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Value is the taint value the toleration matches to.
       * If the operator is Exists, the value should be empty, otherwise just a regular string.
       * +optional
       * 
* * optional string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Value is the taint value the toleration matches to.
       * If the operator is Exists, the value should be empty, otherwise just a regular string.
       * +optional
       * 
* * optional string value = 3; */ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } /** * * *
       * Value is the taint value the toleration matches to.
       * If the operator is Exists, the value should be empty, otherwise just a regular string.
       * +optional
       * 
* * optional string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * * *
       * Value is the taint value the toleration matches to.
       * If the operator is Exists, the value should be empty, otherwise just a regular string.
       * +optional
       * 
* * optional string value = 3; */ public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } private java.lang.Object effect_ = ""; /** * * *
       * Effect indicates the taint effect to match. Empty means match all taint effects.
       * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
       * +optional
       * 
* * optional string effect = 4; */ public boolean hasEffect() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Effect indicates the taint effect to match. Empty means match all taint effects.
       * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
       * +optional
       * 
* * optional string effect = 4; */ public java.lang.String getEffect() { java.lang.Object ref = effect_; 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()) { effect_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Effect indicates the taint effect to match. Empty means match all taint effects.
       * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
       * +optional
       * 
* * optional string effect = 4; */ public com.google.protobuf.ByteString getEffectBytes() { java.lang.Object ref = effect_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); effect_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Effect indicates the taint effect to match. Empty means match all taint effects.
       * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
       * +optional
       * 
* * optional string effect = 4; */ public Builder setEffect(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; effect_ = value; onChanged(); return this; } /** * * *
       * Effect indicates the taint effect to match. Empty means match all taint effects.
       * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
       * +optional
       * 
* * optional string effect = 4; */ public Builder clearEffect() { bitField0_ = (bitField0_ & ~0x00000008); effect_ = getDefaultInstance().getEffect(); onChanged(); return this; } /** * * *
       * Effect indicates the taint effect to match. Empty means match all taint effects.
       * When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
       * +optional
       * 
* * optional string effect = 4; */ public Builder setEffectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; effect_ = value; onChanged(); return this; } private long tolerationSeconds_; /** * * *
       * TolerationSeconds represents the period of time the toleration (which must be
       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
       * it is not set, which means tolerate the taint forever (do not evict). Zero and
       * negative values will be treated as 0 (evict immediately) by the system.
       * +optional
       * 
* * optional int64 tolerationSeconds = 5; */ public boolean hasTolerationSeconds() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * TolerationSeconds represents the period of time the toleration (which must be
       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
       * it is not set, which means tolerate the taint forever (do not evict). Zero and
       * negative values will be treated as 0 (evict immediately) by the system.
       * +optional
       * 
* * optional int64 tolerationSeconds = 5; */ public long getTolerationSeconds() { return tolerationSeconds_; } /** * * *
       * TolerationSeconds represents the period of time the toleration (which must be
       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
       * it is not set, which means tolerate the taint forever (do not evict). Zero and
       * negative values will be treated as 0 (evict immediately) by the system.
       * +optional
       * 
* * optional int64 tolerationSeconds = 5; */ public Builder setTolerationSeconds(long value) { bitField0_ |= 0x00000010; tolerationSeconds_ = value; onChanged(); return this; } /** * * *
       * TolerationSeconds represents the period of time the toleration (which must be
       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
       * it is not set, which means tolerate the taint forever (do not evict). Zero and
       * negative values will be treated as 0 (evict immediately) by the system.
       * +optional
       * 
* * optional int64 tolerationSeconds = 5; */ public Builder clearTolerationSeconds() { bitField0_ = (bitField0_ & ~0x00000010); tolerationSeconds_ = 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.core.v1.Toleration) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Toleration) private static final io.kubernetes.client.proto.V1.Toleration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Toleration(); } public static io.kubernetes.client.proto.V1.Toleration getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Toleration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Toleration(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.V1.Toleration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopologySelectorLabelRequirementOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.TopologySelectorLabelRequirement) com.google.protobuf.MessageOrBuilder { /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ boolean hasKey(); /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ java.lang.String getKey(); /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ java.util.List getValuesList(); /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ int getValuesCount(); /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ java.lang.String getValues(int index); /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * * *
   * A topology selector requirement is a selector that matches given label.
   * This is an alpha feature and may change in the future.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.TopologySelectorLabelRequirement} */ public static final class TopologySelectorLabelRequirement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.TopologySelectorLabelRequirement) TopologySelectorLabelRequirementOrBuilder { private static final long serialVersionUID = 0L; // Use TopologySelectorLabelRequirement.newBuilder() to construct. private TopologySelectorLabelRequirement( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopologySelectorLabelRequirement() { key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopologySelectorLabelRequirement( 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; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } values_.add(bs); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.class, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder.class); } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * * *
     * The label key that the selector applies to.
     * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList values_; /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ public int getValuesCount() { return values_.size(); } /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ public java.lang.String getValues(int index) { return values_.get(index); } /** * * *
     * An array of string values. One value must match the label to be selected.
     * Each entry in Values is ORed.
     * 
* * repeated string values = 2; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, values_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement)) { return super.equals(obj); } io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement other = (io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement) obj; boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { result = result && getKey().equals(other.getKey()); } result = result && getValuesList().equals(other.getValuesList()); 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement 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.V1.TopologySelectorLabelRequirement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement 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.V1.TopologySelectorLabelRequirement parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement 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.V1.TopologySelectorLabelRequirement parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement 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.V1.TopologySelectorLabelRequirement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement 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.V1.TopologySelectorLabelRequirement 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; } /** * * *
     * A topology selector requirement is a selector that matches given label.
     * This is an alpha feature and may change in the future.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.TopologySelectorLabelRequirement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.TopologySelectorLabelRequirement) io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.class, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder.class); } // Construct using io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement build() { io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement buildPartial() { io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement result = new io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((bitField0_ & 0x00000002) == 0x00000002)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.values_ = values_; 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.V1.TopologySelectorLabelRequirement) { return mergeFrom((io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement other) { if (other == io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } 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.V1.TopologySelectorLabelRequirement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public Builder setKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * * *
       * The label key that the selector applies to.
       * 
* * optional string key = 1; */ public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000002; } } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public int getValuesCount() { return values_.size(); } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public java.lang.String getValues(int index) { return values_.get(index); } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public Builder setValues(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public Builder addValues(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * An array of string values. One value must match the label to be selected.
       * Each entry in Values is ORed.
       * 
* * repeated string values = 2; */ public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.TopologySelectorLabelRequirement) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.TopologySelectorLabelRequirement) private static final io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement(); } public static io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopologySelectorLabelRequirement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopologySelectorLabelRequirement(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.V1.TopologySelectorLabelRequirement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopologySelectorTermOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.TopologySelectorTerm) com.google.protobuf.MessageOrBuilder { /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ java.util.List getMatchLabelExpressionsList(); /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement getMatchLabelExpressions( int index); /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ int getMatchLabelExpressionsCount(); /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ java.util.List< ? extends io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder> getMatchLabelExpressionsOrBuilderList(); /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder getMatchLabelExpressionsOrBuilder(int index); } /** * * *
   * A topology selector term represents the result of label queries.
   * A null or empty topology selector term matches no objects.
   * The requirements of them are ANDed.
   * It provides a subset of functionality as NodeSelectorTerm.
   * This is an alpha feature and may change in the future.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.TopologySelectorTerm} */ public static final class TopologySelectorTerm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.TopologySelectorTerm) TopologySelectorTermOrBuilder { private static final long serialVersionUID = 0L; // Use TopologySelectorTerm.newBuilder() to construct. private TopologySelectorTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopologySelectorTerm() { matchLabelExpressions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopologySelectorTerm( 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)) { matchLabelExpressions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement>(); mutable_bitField0_ |= 0x00000001; } matchLabelExpressions_.add( input.readMessage( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.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)) { matchLabelExpressions_ = java.util.Collections.unmodifiableList(matchLabelExpressions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TopologySelectorTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TopologySelectorTerm.class, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder.class); } public static final int MATCHLABELEXPRESSIONS_FIELD_NUMBER = 1; private java.util.List matchLabelExpressions_; /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public java.util.List getMatchLabelExpressionsList() { return matchLabelExpressions_; } /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder> getMatchLabelExpressionsOrBuilderList() { return matchLabelExpressions_; } /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public int getMatchLabelExpressionsCount() { return matchLabelExpressions_.size(); } /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement getMatchLabelExpressions( int index) { return matchLabelExpressions_.get(index); } /** * * *
     * A list of topology selector requirements by labels.
     * +optional
     * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder getMatchLabelExpressionsOrBuilder(int index) { return matchLabelExpressions_.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 < matchLabelExpressions_.size(); i++) { output.writeMessage(1, matchLabelExpressions_.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 < matchLabelExpressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, matchLabelExpressions_.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.V1.TopologySelectorTerm)) { return super.equals(obj); } io.kubernetes.client.proto.V1.TopologySelectorTerm other = (io.kubernetes.client.proto.V1.TopologySelectorTerm) obj; boolean result = true; result = result && getMatchLabelExpressionsList().equals(other.getMatchLabelExpressionsList()); 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 (getMatchLabelExpressionsCount() > 0) { hash = (37 * hash) + MATCHLABELEXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getMatchLabelExpressionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.TopologySelectorTerm parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm 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.V1.TopologySelectorTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm 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.V1.TopologySelectorTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm 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.V1.TopologySelectorTerm parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm 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.V1.TopologySelectorTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm 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.V1.TopologySelectorTerm 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; } /** * * *
     * A topology selector term represents the result of label queries.
     * A null or empty topology selector term matches no objects.
     * The requirements of them are ANDed.
     * It provides a subset of functionality as NodeSelectorTerm.
     * This is an alpha feature and may change in the future.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.TopologySelectorTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.TopologySelectorTerm) io.kubernetes.client.proto.V1.TopologySelectorTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TopologySelectorTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TopologySelectorTerm.class, io.kubernetes.client.proto.V1.TopologySelectorTerm.Builder.class); } // Construct using io.kubernetes.client.proto.V1.TopologySelectorTerm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMatchLabelExpressionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (matchLabelExpressionsBuilder_ == null) { matchLabelExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { matchLabelExpressionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySelectorTerm getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.TopologySelectorTerm.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySelectorTerm build() { io.kubernetes.client.proto.V1.TopologySelectorTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySelectorTerm buildPartial() { io.kubernetes.client.proto.V1.TopologySelectorTerm result = new io.kubernetes.client.proto.V1.TopologySelectorTerm(this); int from_bitField0_ = bitField0_; if (matchLabelExpressionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { matchLabelExpressions_ = java.util.Collections.unmodifiableList(matchLabelExpressions_); bitField0_ = (bitField0_ & ~0x00000001); } result.matchLabelExpressions_ = matchLabelExpressions_; } else { result.matchLabelExpressions_ = matchLabelExpressionsBuilder_.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.V1.TopologySelectorTerm) { return mergeFrom((io.kubernetes.client.proto.V1.TopologySelectorTerm) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.TopologySelectorTerm other) { if (other == io.kubernetes.client.proto.V1.TopologySelectorTerm.getDefaultInstance()) return this; if (matchLabelExpressionsBuilder_ == null) { if (!other.matchLabelExpressions_.isEmpty()) { if (matchLabelExpressions_.isEmpty()) { matchLabelExpressions_ = other.matchLabelExpressions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.addAll(other.matchLabelExpressions_); } onChanged(); } } else { if (!other.matchLabelExpressions_.isEmpty()) { if (matchLabelExpressionsBuilder_.isEmpty()) { matchLabelExpressionsBuilder_.dispose(); matchLabelExpressionsBuilder_ = null; matchLabelExpressions_ = other.matchLabelExpressions_; bitField0_ = (bitField0_ & ~0x00000001); matchLabelExpressionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchLabelExpressionsFieldBuilder() : null; } else { matchLabelExpressionsBuilder_.addAllMessages(other.matchLabelExpressions_); } } } 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.V1.TopologySelectorTerm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.TopologySelectorTerm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List matchLabelExpressions_ = java.util.Collections.emptyList(); private void ensureMatchLabelExpressionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { matchLabelExpressions_ = new java.util.ArrayList< io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement>( matchLabelExpressions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder> matchLabelExpressionsBuilder_; /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public java.util.List getMatchLabelExpressionsList() { if (matchLabelExpressionsBuilder_ == null) { return java.util.Collections.unmodifiableList(matchLabelExpressions_); } else { return matchLabelExpressionsBuilder_.getMessageList(); } } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public int getMatchLabelExpressionsCount() { if (matchLabelExpressionsBuilder_ == null) { return matchLabelExpressions_.size(); } else { return matchLabelExpressionsBuilder_.getCount(); } } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement getMatchLabelExpressions(int index) { if (matchLabelExpressionsBuilder_ == null) { return matchLabelExpressions_.get(index); } else { return matchLabelExpressionsBuilder_.getMessage(index); } } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder setMatchLabelExpressions( int index, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement value) { if (matchLabelExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.set(index, value); onChanged(); } else { matchLabelExpressionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder setMatchLabelExpressions( int index, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder builderForValue) { if (matchLabelExpressionsBuilder_ == null) { ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.set(index, builderForValue.build()); onChanged(); } else { matchLabelExpressionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder addMatchLabelExpressions( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement value) { if (matchLabelExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.add(value); onChanged(); } else { matchLabelExpressionsBuilder_.addMessage(value); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder addMatchLabelExpressions( int index, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement value) { if (matchLabelExpressionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.add(index, value); onChanged(); } else { matchLabelExpressionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder addMatchLabelExpressions( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder builderForValue) { if (matchLabelExpressionsBuilder_ == null) { ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.add(builderForValue.build()); onChanged(); } else { matchLabelExpressionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder addMatchLabelExpressions( int index, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder builderForValue) { if (matchLabelExpressionsBuilder_ == null) { ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.add(index, builderForValue.build()); onChanged(); } else { matchLabelExpressionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder addAllMatchLabelExpressions( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement> values) { if (matchLabelExpressionsBuilder_ == null) { ensureMatchLabelExpressionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchLabelExpressions_); onChanged(); } else { matchLabelExpressionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder clearMatchLabelExpressions() { if (matchLabelExpressionsBuilder_ == null) { matchLabelExpressions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { matchLabelExpressionsBuilder_.clear(); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public Builder removeMatchLabelExpressions(int index) { if (matchLabelExpressionsBuilder_ == null) { ensureMatchLabelExpressionsIsMutable(); matchLabelExpressions_.remove(index); onChanged(); } else { matchLabelExpressionsBuilder_.remove(index); } return this; } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder getMatchLabelExpressionsBuilder(int index) { return getMatchLabelExpressionsFieldBuilder().getBuilder(index); } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder getMatchLabelExpressionsOrBuilder(int index) { if (matchLabelExpressionsBuilder_ == null) { return matchLabelExpressions_.get(index); } else { return matchLabelExpressionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder> getMatchLabelExpressionsOrBuilderList() { if (matchLabelExpressionsBuilder_ != null) { return matchLabelExpressionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(matchLabelExpressions_); } } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder addMatchLabelExpressionsBuilder() { return getMatchLabelExpressionsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement .getDefaultInstance()); } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder addMatchLabelExpressionsBuilder(int index) { return getMatchLabelExpressionsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement .getDefaultInstance()); } /** * * *
       * A list of topology selector requirements by labels.
       * +optional
       * 
* * * repeated .k8s.io.api.core.v1.TopologySelectorLabelRequirement matchLabelExpressions = 1; * */ public java.util.List getMatchLabelExpressionsBuilderList() { return getMatchLabelExpressionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder> getMatchLabelExpressionsFieldBuilder() { if (matchLabelExpressionsBuilder_ == null) { matchLabelExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirement.Builder, io.kubernetes.client.proto.V1.TopologySelectorLabelRequirementOrBuilder>( matchLabelExpressions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); matchLabelExpressions_ = null; } return matchLabelExpressionsBuilder_; } @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.core.v1.TopologySelectorTerm) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.TopologySelectorTerm) private static final io.kubernetes.client.proto.V1.TopologySelectorTerm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.TopologySelectorTerm(); } public static io.kubernetes.client.proto.V1.TopologySelectorTerm getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopologySelectorTerm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopologySelectorTerm(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.V1.TopologySelectorTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TopologySpreadConstraintOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.TopologySpreadConstraint) com.google.protobuf.MessageOrBuilder { /** * * *
     * MaxSkew describes the degree to which pods may be unevenly distributed.
     * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
     * between the number of matching pods in the target topology and the global minimum.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 1/1/0:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * |   P   |   P   |       |
     * +-------+-------+-------+
     * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
     * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
     * violate MaxSkew(1).
     * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
     * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
     * to topologies that satisfy it.
     * It's a required field. Default value is 1 and 0 is not allowed.
     * 
* * optional int32 maxSkew = 1; */ boolean hasMaxSkew(); /** * * *
     * MaxSkew describes the degree to which pods may be unevenly distributed.
     * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
     * between the number of matching pods in the target topology and the global minimum.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 1/1/0:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * |   P   |   P   |       |
     * +-------+-------+-------+
     * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
     * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
     * violate MaxSkew(1).
     * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
     * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
     * to topologies that satisfy it.
     * It's a required field. Default value is 1 and 0 is not allowed.
     * 
* * optional int32 maxSkew = 1; */ int getMaxSkew(); /** * * *
     * TopologyKey is the key of node labels. Nodes that have a label with this key
     * and identical values are considered to be in the same topology.
     * We consider each <key, value> as a "bucket", and try to put balanced number
     * of pods into each bucket.
     * It's a required field.
     * 
* * optional string topologyKey = 2; */ boolean hasTopologyKey(); /** * * *
     * TopologyKey is the key of node labels. Nodes that have a label with this key
     * and identical values are considered to be in the same topology.
     * We consider each <key, value> as a "bucket", and try to put balanced number
     * of pods into each bucket.
     * It's a required field.
     * 
* * optional string topologyKey = 2; */ java.lang.String getTopologyKey(); /** * * *
     * TopologyKey is the key of node labels. Nodes that have a label with this key
     * and identical values are considered to be in the same topology.
     * We consider each <key, value> as a "bucket", and try to put balanced number
     * of pods into each bucket.
     * It's a required field.
     * 
* * optional string topologyKey = 2; */ com.google.protobuf.ByteString getTopologyKeyBytes(); /** * * *
     * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
     * the spread constraint.
     * - DoNotSchedule (default) tells the scheduler not to schedule it.
     * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
     *   but giving higher precedence to topologies that would help reduce the
     *   skew.
     * A constraint is considered "Unsatisfiable" for an incoming pod
     * if and only if every possible node assignment for that pod would violate
     * "MaxSkew" on some topology.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 3/1/1:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * | P P P |   P   |   P   |
     * +-------+-------+-------+
     * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
     * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
     * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
     * won't make it *more* imbalanced.
     * It's a required field.
     * 
* * optional string whenUnsatisfiable = 3; */ boolean hasWhenUnsatisfiable(); /** * * *
     * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
     * the spread constraint.
     * - DoNotSchedule (default) tells the scheduler not to schedule it.
     * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
     *   but giving higher precedence to topologies that would help reduce the
     *   skew.
     * A constraint is considered "Unsatisfiable" for an incoming pod
     * if and only if every possible node assignment for that pod would violate
     * "MaxSkew" on some topology.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 3/1/1:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * | P P P |   P   |   P   |
     * +-------+-------+-------+
     * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
     * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
     * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
     * won't make it *more* imbalanced.
     * It's a required field.
     * 
* * optional string whenUnsatisfiable = 3; */ java.lang.String getWhenUnsatisfiable(); /** * * *
     * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
     * the spread constraint.
     * - DoNotSchedule (default) tells the scheduler not to schedule it.
     * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
     *   but giving higher precedence to topologies that would help reduce the
     *   skew.
     * A constraint is considered "Unsatisfiable" for an incoming pod
     * if and only if every possible node assignment for that pod would violate
     * "MaxSkew" on some topology.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 3/1/1:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * | P P P |   P   |   P   |
     * +-------+-------+-------+
     * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
     * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
     * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
     * won't make it *more* imbalanced.
     * It's a required field.
     * 
* * optional string whenUnsatisfiable = 3; */ com.google.protobuf.ByteString getWhenUnsatisfiableBytes(); /** * * *
     * LabelSelector is used to find matching pods.
     * Pods that match this label selector are counted to determine the number of pods
     * in their corresponding topology domain.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; */ boolean hasLabelSelector(); /** * * *
     * LabelSelector is used to find matching pods.
     * Pods that match this label selector are counted to determine the number of pods
     * in their corresponding topology domain.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; */ io.kubernetes.client.proto.Meta.LabelSelector getLabelSelector(); /** * * *
     * LabelSelector is used to find matching pods.
     * Pods that match this label selector are counted to determine the number of pods
     * in their corresponding topology domain.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder(); } /** * * *
   * TopologySpreadConstraint specifies how to spread matching pods among the given topology.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.TopologySpreadConstraint} */ public static final class TopologySpreadConstraint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.TopologySpreadConstraint) TopologySpreadConstraintOrBuilder { private static final long serialVersionUID = 0L; // Use TopologySpreadConstraint.newBuilder() to construct. private TopologySpreadConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TopologySpreadConstraint() { maxSkew_ = 0; topologyKey_ = ""; whenUnsatisfiable_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TopologySpreadConstraint( 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; maxSkew_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; topologyKey_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; whenUnsatisfiable_ = bs; break; } case 34: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = labelSelector_.toBuilder(); } labelSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(labelSelector_); labelSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TopologySpreadConstraint.class, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder.class); } private int bitField0_; public static final int MAXSKEW_FIELD_NUMBER = 1; private int maxSkew_; /** * * *
     * MaxSkew describes the degree to which pods may be unevenly distributed.
     * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
     * between the number of matching pods in the target topology and the global minimum.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 1/1/0:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * |   P   |   P   |       |
     * +-------+-------+-------+
     * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
     * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
     * violate MaxSkew(1).
     * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
     * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
     * to topologies that satisfy it.
     * It's a required field. Default value is 1 and 0 is not allowed.
     * 
* * optional int32 maxSkew = 1; */ public boolean hasMaxSkew() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * MaxSkew describes the degree to which pods may be unevenly distributed.
     * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
     * between the number of matching pods in the target topology and the global minimum.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 1/1/0:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * |   P   |   P   |       |
     * +-------+-------+-------+
     * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
     * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
     * violate MaxSkew(1).
     * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
     * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
     * to topologies that satisfy it.
     * It's a required field. Default value is 1 and 0 is not allowed.
     * 
* * optional int32 maxSkew = 1; */ public int getMaxSkew() { return maxSkew_; } public static final int TOPOLOGYKEY_FIELD_NUMBER = 2; private volatile java.lang.Object topologyKey_; /** * * *
     * TopologyKey is the key of node labels. Nodes that have a label with this key
     * and identical values are considered to be in the same topology.
     * We consider each <key, value> as a "bucket", and try to put balanced number
     * of pods into each bucket.
     * It's a required field.
     * 
* * optional string topologyKey = 2; */ public boolean hasTopologyKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * TopologyKey is the key of node labels. Nodes that have a label with this key
     * and identical values are considered to be in the same topology.
     * We consider each <key, value> as a "bucket", and try to put balanced number
     * of pods into each bucket.
     * It's a required field.
     * 
* * optional string topologyKey = 2; */ public java.lang.String getTopologyKey() { java.lang.Object ref = topologyKey_; 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()) { topologyKey_ = s; } return s; } } /** * * *
     * TopologyKey is the key of node labels. Nodes that have a label with this key
     * and identical values are considered to be in the same topology.
     * We consider each <key, value> as a "bucket", and try to put balanced number
     * of pods into each bucket.
     * It's a required field.
     * 
* * optional string topologyKey = 2; */ public com.google.protobuf.ByteString getTopologyKeyBytes() { java.lang.Object ref = topologyKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topologyKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WHENUNSATISFIABLE_FIELD_NUMBER = 3; private volatile java.lang.Object whenUnsatisfiable_; /** * * *
     * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
     * the spread constraint.
     * - DoNotSchedule (default) tells the scheduler not to schedule it.
     * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
     *   but giving higher precedence to topologies that would help reduce the
     *   skew.
     * A constraint is considered "Unsatisfiable" for an incoming pod
     * if and only if every possible node assignment for that pod would violate
     * "MaxSkew" on some topology.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 3/1/1:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * | P P P |   P   |   P   |
     * +-------+-------+-------+
     * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
     * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
     * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
     * won't make it *more* imbalanced.
     * It's a required field.
     * 
* * optional string whenUnsatisfiable = 3; */ public boolean hasWhenUnsatisfiable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
     * the spread constraint.
     * - DoNotSchedule (default) tells the scheduler not to schedule it.
     * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
     *   but giving higher precedence to topologies that would help reduce the
     *   skew.
     * A constraint is considered "Unsatisfiable" for an incoming pod
     * if and only if every possible node assignment for that pod would violate
     * "MaxSkew" on some topology.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 3/1/1:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * | P P P |   P   |   P   |
     * +-------+-------+-------+
     * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
     * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
     * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
     * won't make it *more* imbalanced.
     * It's a required field.
     * 
* * optional string whenUnsatisfiable = 3; */ public java.lang.String getWhenUnsatisfiable() { java.lang.Object ref = whenUnsatisfiable_; 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()) { whenUnsatisfiable_ = s; } return s; } } /** * * *
     * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
     * the spread constraint.
     * - DoNotSchedule (default) tells the scheduler not to schedule it.
     * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
     *   but giving higher precedence to topologies that would help reduce the
     *   skew.
     * A constraint is considered "Unsatisfiable" for an incoming pod
     * if and only if every possible node assignment for that pod would violate
     * "MaxSkew" on some topology.
     * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
     * labelSelector spread as 3/1/1:
     * +-------+-------+-------+
     * | zone1 | zone2 | zone3 |
     * +-------+-------+-------+
     * | P P P |   P   |   P   |
     * +-------+-------+-------+
     * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
     * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
     * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
     * won't make it *more* imbalanced.
     * It's a required field.
     * 
* * optional string whenUnsatisfiable = 3; */ public com.google.protobuf.ByteString getWhenUnsatisfiableBytes() { java.lang.Object ref = whenUnsatisfiable_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); whenUnsatisfiable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELSELECTOR_FIELD_NUMBER = 4; private io.kubernetes.client.proto.Meta.LabelSelector labelSelector_; /** * * *
     * LabelSelector is used to find matching pods.
     * Pods that match this label selector are counted to determine the number of pods
     * in their corresponding topology domain.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; */ public boolean hasLabelSelector() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * LabelSelector is used to find matching pods.
     * Pods that match this label selector are counted to determine the number of pods
     * in their corresponding topology domain.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelector getLabelSelector() { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } /** * * *
     * LabelSelector is used to find matching pods.
     * Pods that match this label selector are counted to determine the number of pods
     * in their corresponding topology domain.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder() { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } 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, maxSkew_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topologyKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, whenUnsatisfiable_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getLabelSelector()); } 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, maxSkew_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topologyKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, whenUnsatisfiable_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLabelSelector()); } 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.V1.TopologySpreadConstraint)) { return super.equals(obj); } io.kubernetes.client.proto.V1.TopologySpreadConstraint other = (io.kubernetes.client.proto.V1.TopologySpreadConstraint) obj; boolean result = true; result = result && (hasMaxSkew() == other.hasMaxSkew()); if (hasMaxSkew()) { result = result && (getMaxSkew() == other.getMaxSkew()); } result = result && (hasTopologyKey() == other.hasTopologyKey()); if (hasTopologyKey()) { result = result && getTopologyKey().equals(other.getTopologyKey()); } result = result && (hasWhenUnsatisfiable() == other.hasWhenUnsatisfiable()); if (hasWhenUnsatisfiable()) { result = result && getWhenUnsatisfiable().equals(other.getWhenUnsatisfiable()); } result = result && (hasLabelSelector() == other.hasLabelSelector()); if (hasLabelSelector()) { result = result && getLabelSelector().equals(other.getLabelSelector()); } 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 (hasMaxSkew()) { hash = (37 * hash) + MAXSKEW_FIELD_NUMBER; hash = (53 * hash) + getMaxSkew(); } if (hasTopologyKey()) { hash = (37 * hash) + TOPOLOGYKEY_FIELD_NUMBER; hash = (53 * hash) + getTopologyKey().hashCode(); } if (hasWhenUnsatisfiable()) { hash = (37 * hash) + WHENUNSATISFIABLE_FIELD_NUMBER; hash = (53 * hash) + getWhenUnsatisfiable().hashCode(); } if (hasLabelSelector()) { hash = (37 * hash) + LABELSELECTOR_FIELD_NUMBER; hash = (53 * hash) + getLabelSelector().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint 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.V1.TopologySpreadConstraint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint 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.V1.TopologySpreadConstraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint 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.V1.TopologySpreadConstraint parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint 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.V1.TopologySpreadConstraint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint 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.V1.TopologySpreadConstraint 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; } /** * * *
     * TopologySpreadConstraint specifies how to spread matching pods among the given topology.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.TopologySpreadConstraint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.TopologySpreadConstraint) io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TopologySpreadConstraint.class, io.kubernetes.client.proto.V1.TopologySpreadConstraint.Builder.class); } // Construct using io.kubernetes.client.proto.V1.TopologySpreadConstraint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getLabelSelectorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); maxSkew_ = 0; bitField0_ = (bitField0_ & ~0x00000001); topologyKey_ = ""; bitField0_ = (bitField0_ & ~0x00000002); whenUnsatisfiable_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (labelSelectorBuilder_ == null) { labelSelector_ = null; } else { labelSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySpreadConstraint getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.TopologySpreadConstraint.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySpreadConstraint build() { io.kubernetes.client.proto.V1.TopologySpreadConstraint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.TopologySpreadConstraint buildPartial() { io.kubernetes.client.proto.V1.TopologySpreadConstraint result = new io.kubernetes.client.proto.V1.TopologySpreadConstraint(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.maxSkew_ = maxSkew_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.topologyKey_ = topologyKey_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.whenUnsatisfiable_ = whenUnsatisfiable_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (labelSelectorBuilder_ == null) { result.labelSelector_ = labelSelector_; } else { result.labelSelector_ = labelSelectorBuilder_.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.V1.TopologySpreadConstraint) { return mergeFrom((io.kubernetes.client.proto.V1.TopologySpreadConstraint) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.TopologySpreadConstraint other) { if (other == io.kubernetes.client.proto.V1.TopologySpreadConstraint.getDefaultInstance()) return this; if (other.hasMaxSkew()) { setMaxSkew(other.getMaxSkew()); } if (other.hasTopologyKey()) { bitField0_ |= 0x00000002; topologyKey_ = other.topologyKey_; onChanged(); } if (other.hasWhenUnsatisfiable()) { bitField0_ |= 0x00000004; whenUnsatisfiable_ = other.whenUnsatisfiable_; onChanged(); } if (other.hasLabelSelector()) { mergeLabelSelector(other.getLabelSelector()); } 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.V1.TopologySpreadConstraint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.TopologySpreadConstraint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int maxSkew_; /** * * *
       * MaxSkew describes the degree to which pods may be unevenly distributed.
       * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
       * between the number of matching pods in the target topology and the global minimum.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 1/1/0:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * |   P   |   P   |       |
       * +-------+-------+-------+
       * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
       * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
       * violate MaxSkew(1).
       * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
       * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
       * to topologies that satisfy it.
       * It's a required field. Default value is 1 and 0 is not allowed.
       * 
* * optional int32 maxSkew = 1; */ public boolean hasMaxSkew() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * MaxSkew describes the degree to which pods may be unevenly distributed.
       * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
       * between the number of matching pods in the target topology and the global minimum.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 1/1/0:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * |   P   |   P   |       |
       * +-------+-------+-------+
       * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
       * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
       * violate MaxSkew(1).
       * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
       * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
       * to topologies that satisfy it.
       * It's a required field. Default value is 1 and 0 is not allowed.
       * 
* * optional int32 maxSkew = 1; */ public int getMaxSkew() { return maxSkew_; } /** * * *
       * MaxSkew describes the degree to which pods may be unevenly distributed.
       * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
       * between the number of matching pods in the target topology and the global minimum.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 1/1/0:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * |   P   |   P   |       |
       * +-------+-------+-------+
       * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
       * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
       * violate MaxSkew(1).
       * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
       * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
       * to topologies that satisfy it.
       * It's a required field. Default value is 1 and 0 is not allowed.
       * 
* * optional int32 maxSkew = 1; */ public Builder setMaxSkew(int value) { bitField0_ |= 0x00000001; maxSkew_ = value; onChanged(); return this; } /** * * *
       * MaxSkew describes the degree to which pods may be unevenly distributed.
       * When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
       * between the number of matching pods in the target topology and the global minimum.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 1/1/0:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * |   P   |   P   |       |
       * +-------+-------+-------+
       * - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1;
       * scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2)
       * violate MaxSkew(1).
       * - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
       * When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
       * to topologies that satisfy it.
       * It's a required field. Default value is 1 and 0 is not allowed.
       * 
* * optional int32 maxSkew = 1; */ public Builder clearMaxSkew() { bitField0_ = (bitField0_ & ~0x00000001); maxSkew_ = 0; onChanged(); return this; } private java.lang.Object topologyKey_ = ""; /** * * *
       * TopologyKey is the key of node labels. Nodes that have a label with this key
       * and identical values are considered to be in the same topology.
       * We consider each <key, value> as a "bucket", and try to put balanced number
       * of pods into each bucket.
       * It's a required field.
       * 
* * optional string topologyKey = 2; */ public boolean hasTopologyKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * TopologyKey is the key of node labels. Nodes that have a label with this key
       * and identical values are considered to be in the same topology.
       * We consider each <key, value> as a "bucket", and try to put balanced number
       * of pods into each bucket.
       * It's a required field.
       * 
* * optional string topologyKey = 2; */ public java.lang.String getTopologyKey() { java.lang.Object ref = topologyKey_; 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()) { topologyKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * TopologyKey is the key of node labels. Nodes that have a label with this key
       * and identical values are considered to be in the same topology.
       * We consider each <key, value> as a "bucket", and try to put balanced number
       * of pods into each bucket.
       * It's a required field.
       * 
* * optional string topologyKey = 2; */ public com.google.protobuf.ByteString getTopologyKeyBytes() { java.lang.Object ref = topologyKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topologyKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * TopologyKey is the key of node labels. Nodes that have a label with this key
       * and identical values are considered to be in the same topology.
       * We consider each <key, value> as a "bucket", and try to put balanced number
       * of pods into each bucket.
       * It's a required field.
       * 
* * optional string topologyKey = 2; */ public Builder setTopologyKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; topologyKey_ = value; onChanged(); return this; } /** * * *
       * TopologyKey is the key of node labels. Nodes that have a label with this key
       * and identical values are considered to be in the same topology.
       * We consider each <key, value> as a "bucket", and try to put balanced number
       * of pods into each bucket.
       * It's a required field.
       * 
* * optional string topologyKey = 2; */ public Builder clearTopologyKey() { bitField0_ = (bitField0_ & ~0x00000002); topologyKey_ = getDefaultInstance().getTopologyKey(); onChanged(); return this; } /** * * *
       * TopologyKey is the key of node labels. Nodes that have a label with this key
       * and identical values are considered to be in the same topology.
       * We consider each <key, value> as a "bucket", and try to put balanced number
       * of pods into each bucket.
       * It's a required field.
       * 
* * optional string topologyKey = 2; */ public Builder setTopologyKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; topologyKey_ = value; onChanged(); return this; } private java.lang.Object whenUnsatisfiable_ = ""; /** * * *
       * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
       * the spread constraint.
       * - DoNotSchedule (default) tells the scheduler not to schedule it.
       * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
       *   but giving higher precedence to topologies that would help reduce the
       *   skew.
       * A constraint is considered "Unsatisfiable" for an incoming pod
       * if and only if every possible node assignment for that pod would violate
       * "MaxSkew" on some topology.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 3/1/1:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * | P P P |   P   |   P   |
       * +-------+-------+-------+
       * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
       * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
       * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
       * won't make it *more* imbalanced.
       * It's a required field.
       * 
* * optional string whenUnsatisfiable = 3; */ public boolean hasWhenUnsatisfiable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
       * the spread constraint.
       * - DoNotSchedule (default) tells the scheduler not to schedule it.
       * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
       *   but giving higher precedence to topologies that would help reduce the
       *   skew.
       * A constraint is considered "Unsatisfiable" for an incoming pod
       * if and only if every possible node assignment for that pod would violate
       * "MaxSkew" on some topology.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 3/1/1:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * | P P P |   P   |   P   |
       * +-------+-------+-------+
       * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
       * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
       * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
       * won't make it *more* imbalanced.
       * It's a required field.
       * 
* * optional string whenUnsatisfiable = 3; */ public java.lang.String getWhenUnsatisfiable() { java.lang.Object ref = whenUnsatisfiable_; 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()) { whenUnsatisfiable_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
       * the spread constraint.
       * - DoNotSchedule (default) tells the scheduler not to schedule it.
       * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
       *   but giving higher precedence to topologies that would help reduce the
       *   skew.
       * A constraint is considered "Unsatisfiable" for an incoming pod
       * if and only if every possible node assignment for that pod would violate
       * "MaxSkew" on some topology.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 3/1/1:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * | P P P |   P   |   P   |
       * +-------+-------+-------+
       * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
       * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
       * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
       * won't make it *more* imbalanced.
       * It's a required field.
       * 
* * optional string whenUnsatisfiable = 3; */ public com.google.protobuf.ByteString getWhenUnsatisfiableBytes() { java.lang.Object ref = whenUnsatisfiable_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); whenUnsatisfiable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
       * the spread constraint.
       * - DoNotSchedule (default) tells the scheduler not to schedule it.
       * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
       *   but giving higher precedence to topologies that would help reduce the
       *   skew.
       * A constraint is considered "Unsatisfiable" for an incoming pod
       * if and only if every possible node assignment for that pod would violate
       * "MaxSkew" on some topology.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 3/1/1:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * | P P P |   P   |   P   |
       * +-------+-------+-------+
       * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
       * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
       * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
       * won't make it *more* imbalanced.
       * It's a required field.
       * 
* * optional string whenUnsatisfiable = 3; */ public Builder setWhenUnsatisfiable(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; whenUnsatisfiable_ = value; onChanged(); return this; } /** * * *
       * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
       * the spread constraint.
       * - DoNotSchedule (default) tells the scheduler not to schedule it.
       * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
       *   but giving higher precedence to topologies that would help reduce the
       *   skew.
       * A constraint is considered "Unsatisfiable" for an incoming pod
       * if and only if every possible node assignment for that pod would violate
       * "MaxSkew" on some topology.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 3/1/1:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * | P P P |   P   |   P   |
       * +-------+-------+-------+
       * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
       * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
       * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
       * won't make it *more* imbalanced.
       * It's a required field.
       * 
* * optional string whenUnsatisfiable = 3; */ public Builder clearWhenUnsatisfiable() { bitField0_ = (bitField0_ & ~0x00000004); whenUnsatisfiable_ = getDefaultInstance().getWhenUnsatisfiable(); onChanged(); return this; } /** * * *
       * WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
       * the spread constraint.
       * - DoNotSchedule (default) tells the scheduler not to schedule it.
       * - ScheduleAnyway tells the scheduler to schedule the pod in any location,
       *   but giving higher precedence to topologies that would help reduce the
       *   skew.
       * A constraint is considered "Unsatisfiable" for an incoming pod
       * if and only if every possible node assignment for that pod would violate
       * "MaxSkew" on some topology.
       * For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
       * labelSelector spread as 3/1/1:
       * +-------+-------+-------+
       * | zone1 | zone2 | zone3 |
       * +-------+-------+-------+
       * | P P P |   P   |   P   |
       * +-------+-------+-------+
       * If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
       * to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
       * MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
       * won't make it *more* imbalanced.
       * It's a required field.
       * 
* * optional string whenUnsatisfiable = 3; */ public Builder setWhenUnsatisfiableBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; whenUnsatisfiable_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.LabelSelector labelSelector_ = 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> labelSelectorBuilder_; /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public boolean hasLabelSelector() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelector getLabelSelector() { if (labelSelectorBuilder_ == null) { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } else { return labelSelectorBuilder_.getMessage(); } } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public Builder setLabelSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (labelSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } labelSelector_ = value; onChanged(); } else { labelSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public Builder setLabelSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (labelSelectorBuilder_ == null) { labelSelector_ = builderForValue.build(); onChanged(); } else { labelSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public Builder mergeLabelSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (labelSelectorBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && labelSelector_ != null && labelSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { labelSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(labelSelector_) .mergeFrom(value) .buildPartial(); } else { labelSelector_ = value; } onChanged(); } else { labelSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public Builder clearLabelSelector() { if (labelSelectorBuilder_ == null) { labelSelector_ = null; onChanged(); } else { labelSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getLabelSelectorBuilder() { bitField0_ |= 0x00000008; onChanged(); return getLabelSelectorFieldBuilder().getBuilder(); } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder() { if (labelSelectorBuilder_ != null) { return labelSelectorBuilder_.getMessageOrBuilder(); } else { return labelSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : labelSelector_; } } /** * * *
       * LabelSelector is used to find matching pods.
       * Pods that match this label selector are counted to determine the number of pods
       * in their corresponding topology domain.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getLabelSelectorFieldBuilder() { if (labelSelectorBuilder_ == null) { labelSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getLabelSelector(), getParentForChildren(), isClean()); labelSelector_ = null; } return labelSelectorBuilder_; } @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.core.v1.TopologySpreadConstraint) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.TopologySpreadConstraint) private static final io.kubernetes.client.proto.V1.TopologySpreadConstraint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.TopologySpreadConstraint(); } public static io.kubernetes.client.proto.V1.TopologySpreadConstraint getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TopologySpreadConstraint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TopologySpreadConstraint(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.V1.TopologySpreadConstraint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TypedLocalObjectReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.TypedLocalObjectReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * APIGroup is the group for the resource being referenced.
     * If APIGroup is not specified, the specified Kind must be in the core API group.
     * For any other third-party types, APIGroup is required.
     * +optional
     * 
* * optional string apiGroup = 1; */ boolean hasApiGroup(); /** * * *
     * APIGroup is the group for the resource being referenced.
     * If APIGroup is not specified, the specified Kind must be in the core API group.
     * For any other third-party types, APIGroup is required.
     * +optional
     * 
* * optional string apiGroup = 1; */ java.lang.String getApiGroup(); /** * * *
     * APIGroup is the group for the resource being referenced.
     * If APIGroup is not specified, the specified Kind must be in the core API group.
     * For any other third-party types, APIGroup is required.
     * +optional
     * 
* * optional string apiGroup = 1; */ com.google.protobuf.ByteString getApiGroupBytes(); /** * * *
     * Kind is the type of resource being referenced
     * 
* * optional string kind = 2; */ boolean hasKind(); /** * * *
     * Kind is the type of resource being referenced
     * 
* * optional string kind = 2; */ java.lang.String getKind(); /** * * *
     * Kind is the type of resource being referenced
     * 
* * optional string kind = 2; */ com.google.protobuf.ByteString getKindBytes(); /** * * *
     * Name is the name of resource being referenced
     * 
* * optional string name = 3; */ boolean hasName(); /** * * *
     * Name is the name of resource being referenced
     * 
* * optional string name = 3; */ java.lang.String getName(); /** * * *
     * Name is the name of resource being referenced
     * 
* * optional string name = 3; */ com.google.protobuf.ByteString getNameBytes(); } /** * * *
   * TypedLocalObjectReference contains enough information to let you locate the
   * typed referenced object inside the same namespace.
   * +structType=atomic
   * 
* * Protobuf type {@code k8s.io.api.core.v1.TypedLocalObjectReference} */ public static final class TypedLocalObjectReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.TypedLocalObjectReference) TypedLocalObjectReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use TypedLocalObjectReference.newBuilder() to construct. private TypedLocalObjectReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TypedLocalObjectReference() { apiGroup_ = ""; kind_ = ""; name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TypedLocalObjectReference( 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; apiGroup_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; kind_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; name_ = 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 .V1 .internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TypedLocalObjectReference.class, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder.class); } private int bitField0_; public static final int APIGROUP_FIELD_NUMBER = 1; private volatile java.lang.Object apiGroup_; /** * * *
     * APIGroup is the group for the resource being referenced.
     * If APIGroup is not specified, the specified Kind must be in the core API group.
     * For any other third-party types, APIGroup is required.
     * +optional
     * 
* * optional string apiGroup = 1; */ public boolean hasApiGroup() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * APIGroup is the group for the resource being referenced.
     * If APIGroup is not specified, the specified Kind must be in the core API group.
     * For any other third-party types, APIGroup is required.
     * +optional
     * 
* * optional string apiGroup = 1; */ public java.lang.String getApiGroup() { java.lang.Object ref = apiGroup_; 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()) { apiGroup_ = s; } return s; } } /** * * *
     * APIGroup is the group for the resource being referenced.
     * If APIGroup is not specified, the specified Kind must be in the core API group.
     * For any other third-party types, APIGroup is required.
     * +optional
     * 
* * optional string apiGroup = 1; */ public com.google.protobuf.ByteString getApiGroupBytes() { java.lang.Object ref = apiGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KIND_FIELD_NUMBER = 2; private volatile java.lang.Object kind_; /** * * *
     * Kind is the type of resource being referenced
     * 
* * optional string kind = 2; */ public boolean hasKind() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Kind is the type of resource being referenced
     * 
* * optional string kind = 2; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } } /** * * *
     * Kind is the type of resource being referenced
     * 
* * optional string kind = 2; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * * *
     * Name is the name of resource being referenced
     * 
* * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Name is the name of resource being referenced
     * 
* * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * Name is the name of resource being referenced
     * 
* * optional string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, apiGroup_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } 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, apiGroup_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } 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.V1.TypedLocalObjectReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1.TypedLocalObjectReference other = (io.kubernetes.client.proto.V1.TypedLocalObjectReference) obj; boolean result = true; result = result && (hasApiGroup() == other.hasApiGroup()); if (hasApiGroup()) { result = result && getApiGroup().equals(other.getApiGroup()); } result = result && (hasKind() == other.hasKind()); if (hasKind()) { result = result && getKind().equals(other.getKind()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } 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 (hasApiGroup()) { hash = (37 * hash) + APIGROUP_FIELD_NUMBER; hash = (53 * hash) + getApiGroup().hashCode(); } if (hasKind()) { hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference 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.V1.TypedLocalObjectReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference 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.V1.TypedLocalObjectReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference 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.V1.TypedLocalObjectReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference 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.V1.TypedLocalObjectReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference 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.V1.TypedLocalObjectReference 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; } /** * * *
     * TypedLocalObjectReference contains enough information to let you locate the
     * typed referenced object inside the same namespace.
     * +structType=atomic
     * 
* * Protobuf type {@code k8s.io.api.core.v1.TypedLocalObjectReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.TypedLocalObjectReference) io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.TypedLocalObjectReference.class, io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder.class); } // Construct using io.kubernetes.client.proto.V1.TypedLocalObjectReference.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(); apiGroup_ = ""; bitField0_ = (bitField0_ & ~0x00000001); kind_ = ""; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.TypedLocalObjectReference build() { io.kubernetes.client.proto.V1.TypedLocalObjectReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.TypedLocalObjectReference buildPartial() { io.kubernetes.client.proto.V1.TypedLocalObjectReference result = new io.kubernetes.client.proto.V1.TypedLocalObjectReference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.apiGroup_ = apiGroup_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.kind_ = kind_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; 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.V1.TypedLocalObjectReference) { return mergeFrom((io.kubernetes.client.proto.V1.TypedLocalObjectReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.TypedLocalObjectReference other) { if (other == io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()) return this; if (other.hasApiGroup()) { bitField0_ |= 0x00000001; apiGroup_ = other.apiGroup_; onChanged(); } if (other.hasKind()) { bitField0_ |= 0x00000002; kind_ = other.kind_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; 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.V1.TypedLocalObjectReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.TypedLocalObjectReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object apiGroup_ = ""; /** * * *
       * APIGroup is the group for the resource being referenced.
       * If APIGroup is not specified, the specified Kind must be in the core API group.
       * For any other third-party types, APIGroup is required.
       * +optional
       * 
* * optional string apiGroup = 1; */ public boolean hasApiGroup() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * APIGroup is the group for the resource being referenced.
       * If APIGroup is not specified, the specified Kind must be in the core API group.
       * For any other third-party types, APIGroup is required.
       * +optional
       * 
* * optional string apiGroup = 1; */ public java.lang.String getApiGroup() { java.lang.Object ref = apiGroup_; 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()) { apiGroup_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * APIGroup is the group for the resource being referenced.
       * If APIGroup is not specified, the specified Kind must be in the core API group.
       * For any other third-party types, APIGroup is required.
       * +optional
       * 
* * optional string apiGroup = 1; */ public com.google.protobuf.ByteString getApiGroupBytes() { java.lang.Object ref = apiGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * APIGroup is the group for the resource being referenced.
       * If APIGroup is not specified, the specified Kind must be in the core API group.
       * For any other third-party types, APIGroup is required.
       * +optional
       * 
* * optional string apiGroup = 1; */ public Builder setApiGroup(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; apiGroup_ = value; onChanged(); return this; } /** * * *
       * APIGroup is the group for the resource being referenced.
       * If APIGroup is not specified, the specified Kind must be in the core API group.
       * For any other third-party types, APIGroup is required.
       * +optional
       * 
* * optional string apiGroup = 1; */ public Builder clearApiGroup() { bitField0_ = (bitField0_ & ~0x00000001); apiGroup_ = getDefaultInstance().getApiGroup(); onChanged(); return this; } /** * * *
       * APIGroup is the group for the resource being referenced.
       * If APIGroup is not specified, the specified Kind must be in the core API group.
       * For any other third-party types, APIGroup is required.
       * +optional
       * 
* * optional string apiGroup = 1; */ public Builder setApiGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; apiGroup_ = value; onChanged(); return this; } private java.lang.Object kind_ = ""; /** * * *
       * Kind is the type of resource being referenced
       * 
* * optional string kind = 2; */ public boolean hasKind() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Kind is the type of resource being referenced
       * 
* * optional string kind = 2; */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Kind is the type of resource being referenced
       * 
* * optional string kind = 2; */ public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Kind is the type of resource being referenced
       * 
* * optional string kind = 2; */ public Builder setKind(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; kind_ = value; onChanged(); return this; } /** * * *
       * Kind is the type of resource being referenced
       * 
* * optional string kind = 2; */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000002); kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** * * *
       * Kind is the type of resource being referenced
       * 
* * optional string kind = 2; */ public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; kind_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
       * Name is the name of resource being referenced
       * 
* * optional string name = 3; */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Name is the name of resource being referenced
       * 
* * optional string name = 3; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Name is the name of resource being referenced
       * 
* * optional string name = 3; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Name is the name of resource being referenced
       * 
* * optional string name = 3; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** * * *
       * Name is the name of resource being referenced
       * 
* * optional string name = 3; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name is the name of resource being referenced
       * 
* * optional string name = 3; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } @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.core.v1.TypedLocalObjectReference) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.TypedLocalObjectReference) private static final io.kubernetes.client.proto.V1.TypedLocalObjectReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.TypedLocalObjectReference(); } public static io.kubernetes.client.proto.V1.TypedLocalObjectReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TypedLocalObjectReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TypedLocalObjectReference(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.V1.TypedLocalObjectReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.Volume) com.google.protobuf.MessageOrBuilder { /** * * *
     * Volume's name.
     * Must be a DNS_LABEL and unique within the pod.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Volume's name.
     * Must be a DNS_LABEL and unique within the pod.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Volume's name.
     * Must be a DNS_LABEL and unique within the pod.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * VolumeSource represents the location and type of the mounted volume.
     * If not specified, the Volume is implied to be an EmptyDir.
     * This implied behavior is deprecated and will be removed in a future version.
     * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ boolean hasVolumeSource(); /** * * *
     * VolumeSource represents the location and type of the mounted volume.
     * If not specified, the Volume is implied to be an EmptyDir.
     * This implied behavior is deprecated and will be removed in a future version.
     * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ io.kubernetes.client.proto.V1.VolumeSource getVolumeSource(); /** * * *
     * VolumeSource represents the location and type of the mounted volume.
     * If not specified, the Volume is implied to be an EmptyDir.
     * This implied behavior is deprecated and will be removed in a future version.
     * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ io.kubernetes.client.proto.V1.VolumeSourceOrBuilder getVolumeSourceOrBuilder(); } /** * * *
   * Volume represents a named volume in a pod that may be accessed by any container in the pod.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.Volume} */ public static final class Volume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.Volume) VolumeOrBuilder { private static final long serialVersionUID = 0L; // Use Volume.newBuilder() to construct. private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Volume() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Volume( 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: { io.kubernetes.client.proto.V1.VolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = volumeSource_.toBuilder(); } volumeSource_ = input.readMessage( io.kubernetes.client.proto.V1.VolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(volumeSource_); volumeSource_ = 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.V1.internal_static_k8s_io_api_core_v1_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Volume.class, io.kubernetes.client.proto.V1.Volume.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Volume's name.
     * Must be a DNS_LABEL and unique within the pod.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Volume's name.
     * Must be a DNS_LABEL and unique within the pod.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * 
* * 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; } } /** * * *
     * Volume's name.
     * Must be a DNS_LABEL and unique within the pod.
     * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
     * 
* * 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 VOLUMESOURCE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.VolumeSource volumeSource_; /** * * *
     * VolumeSource represents the location and type of the mounted volume.
     * If not specified, the Volume is implied to be an EmptyDir.
     * This implied behavior is deprecated and will be removed in a future version.
     * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public boolean hasVolumeSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * VolumeSource represents the location and type of the mounted volume.
     * If not specified, the Volume is implied to be an EmptyDir.
     * This implied behavior is deprecated and will be removed in a future version.
     * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public io.kubernetes.client.proto.V1.VolumeSource getVolumeSource() { return volumeSource_ == null ? io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance() : volumeSource_; } /** * * *
     * VolumeSource represents the location and type of the mounted volume.
     * If not specified, the Volume is implied to be an EmptyDir.
     * This implied behavior is deprecated and will be removed in a future version.
     * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public io.kubernetes.client.proto.V1.VolumeSourceOrBuilder getVolumeSourceOrBuilder() { return volumeSource_ == null ? io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance() : volumeSource_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getVolumeSource()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVolumeSource()); } 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.V1.Volume)) { return super.equals(obj); } io.kubernetes.client.proto.V1.Volume other = (io.kubernetes.client.proto.V1.Volume) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasVolumeSource() == other.hasVolumeSource()); if (hasVolumeSource()) { result = result && getVolumeSource().equals(other.getVolumeSource()); } 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 (hasVolumeSource()) { hash = (37 * hash) + VOLUMESOURCE_FIELD_NUMBER; hash = (53 * hash) + getVolumeSource().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.Volume parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Volume 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.V1.Volume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Volume 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.V1.Volume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.Volume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.Volume parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Volume 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.V1.Volume parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Volume 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.V1.Volume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.Volume 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.V1.Volume 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; } /** * * *
     * Volume represents a named volume in a pod that may be accessed by any container in the pod.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.Volume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.Volume) io.kubernetes.client.proto.V1.VolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Volume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_Volume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.Volume.class, io.kubernetes.client.proto.V1.Volume.Builder.class); } // Construct using io.kubernetes.client.proto.V1.Volume.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVolumeSourceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (volumeSourceBuilder_ == null) { volumeSource_ = null; } else { volumeSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_Volume_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.Volume getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.Volume.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.Volume build() { io.kubernetes.client.proto.V1.Volume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.Volume buildPartial() { io.kubernetes.client.proto.V1.Volume result = new io.kubernetes.client.proto.V1.Volume(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; } if (volumeSourceBuilder_ == null) { result.volumeSource_ = volumeSource_; } else { result.volumeSource_ = volumeSourceBuilder_.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.V1.Volume) { return mergeFrom((io.kubernetes.client.proto.V1.Volume) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.Volume other) { if (other == io.kubernetes.client.proto.V1.Volume.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasVolumeSource()) { mergeVolumeSource(other.getVolumeSource()); } 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.V1.Volume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.Volume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Volume's name.
       * Must be a DNS_LABEL and unique within the pod.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Volume's name.
       * Must be a DNS_LABEL and unique within the pod.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * 
* * 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; } } /** * * *
       * Volume's name.
       * Must be a DNS_LABEL and unique within the pod.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * 
* * 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; } } /** * * *
       * Volume's name.
       * Must be a DNS_LABEL and unique within the pod.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Volume's name.
       * Must be a DNS_LABEL and unique within the pod.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Volume's name.
       * Must be a DNS_LABEL and unique within the pod.
       * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       * 
* * 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 io.kubernetes.client.proto.V1.VolumeSource volumeSource_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeSource, io.kubernetes.client.proto.V1.VolumeSource.Builder, io.kubernetes.client.proto.V1.VolumeSourceOrBuilder> volumeSourceBuilder_; /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public boolean hasVolumeSource() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public io.kubernetes.client.proto.V1.VolumeSource getVolumeSource() { if (volumeSourceBuilder_ == null) { return volumeSource_ == null ? io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance() : volumeSource_; } else { return volumeSourceBuilder_.getMessage(); } } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public Builder setVolumeSource(io.kubernetes.client.proto.V1.VolumeSource value) { if (volumeSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } volumeSource_ = value; onChanged(); } else { volumeSourceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public Builder setVolumeSource( io.kubernetes.client.proto.V1.VolumeSource.Builder builderForValue) { if (volumeSourceBuilder_ == null) { volumeSource_ = builderForValue.build(); onChanged(); } else { volumeSourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public Builder mergeVolumeSource(io.kubernetes.client.proto.V1.VolumeSource value) { if (volumeSourceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && volumeSource_ != null && volumeSource_ != io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance()) { volumeSource_ = io.kubernetes.client.proto.V1.VolumeSource.newBuilder(volumeSource_) .mergeFrom(value) .buildPartial(); } else { volumeSource_ = value; } onChanged(); } else { volumeSourceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public Builder clearVolumeSource() { if (volumeSourceBuilder_ == null) { volumeSource_ = null; onChanged(); } else { volumeSourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public io.kubernetes.client.proto.V1.VolumeSource.Builder getVolumeSourceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getVolumeSourceFieldBuilder().getBuilder(); } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ public io.kubernetes.client.proto.V1.VolumeSourceOrBuilder getVolumeSourceOrBuilder() { if (volumeSourceBuilder_ != null) { return volumeSourceBuilder_.getMessageOrBuilder(); } else { return volumeSource_ == null ? io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance() : volumeSource_; } } /** * * *
       * VolumeSource represents the location and type of the mounted volume.
       * If not specified, the Volume is implied to be an EmptyDir.
       * This implied behavior is deprecated and will be removed in a future version.
       * 
* * optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeSource, io.kubernetes.client.proto.V1.VolumeSource.Builder, io.kubernetes.client.proto.V1.VolumeSourceOrBuilder> getVolumeSourceFieldBuilder() { if (volumeSourceBuilder_ == null) { volumeSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VolumeSource, io.kubernetes.client.proto.V1.VolumeSource.Builder, io.kubernetes.client.proto.V1.VolumeSourceOrBuilder>( getVolumeSource(), getParentForChildren(), isClean()); volumeSource_ = null; } return volumeSourceBuilder_; } @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.core.v1.Volume) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.Volume) private static final io.kubernetes.client.proto.V1.Volume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.Volume(); } public static io.kubernetes.client.proto.V1.Volume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Volume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Volume(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.V1.Volume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeDeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VolumeDevice) com.google.protobuf.MessageOrBuilder { /** * * *
     * name must match the name of a persistentVolumeClaim in the pod
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * name must match the name of a persistentVolumeClaim in the pod
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * name must match the name of a persistentVolumeClaim in the pod
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
* * optional string devicePath = 2; */ boolean hasDevicePath(); /** * * *
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
* * optional string devicePath = 2; */ java.lang.String getDevicePath(); /** * * *
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
* * optional string devicePath = 2; */ com.google.protobuf.ByteString getDevicePathBytes(); } /** * * *
   * volumeDevice describes a mapping of a raw block device within a container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeDevice} */ public static final class VolumeDevice extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VolumeDevice) VolumeDeviceOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeDevice.newBuilder() to construct. private VolumeDevice(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeDevice() { name_ = ""; devicePath_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeDevice( 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; devicePath_ = 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 .V1 .internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeDevice_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeDevice.class, io.kubernetes.client.proto.V1.VolumeDevice.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * name must match the name of a persistentVolumeClaim in the pod
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * name must match the name of a persistentVolumeClaim in the pod
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * name must match the name of a persistentVolumeClaim in the pod
     * 
* * 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 DEVICEPATH_FIELD_NUMBER = 2; private volatile java.lang.Object devicePath_; /** * * *
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
* * optional string devicePath = 2; */ public boolean hasDevicePath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
* * optional string devicePath = 2; */ public java.lang.String getDevicePath() { java.lang.Object ref = devicePath_; 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()) { devicePath_ = s; } return s; } } /** * * *
     * devicePath is the path inside of the container that the device will be mapped to.
     * 
* * optional string devicePath = 2; */ public com.google.protobuf.ByteString getDevicePathBytes() { java.lang.Object ref = devicePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); devicePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, devicePath_); } 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, devicePath_); } 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.V1.VolumeDevice)) { return super.equals(obj); } io.kubernetes.client.proto.V1.VolumeDevice other = (io.kubernetes.client.proto.V1.VolumeDevice) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasDevicePath() == other.hasDevicePath()); if (hasDevicePath()) { result = result && getDevicePath().equals(other.getDevicePath()); } 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 (hasDevicePath()) { hash = (37 * hash) + DEVICEPATH_FIELD_NUMBER; hash = (53 * hash) + getDevicePath().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.VolumeDevice parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeDevice 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.V1.VolumeDevice parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeDevice 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.V1.VolumeDevice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeDevice parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.VolumeDevice parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeDevice 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.V1.VolumeDevice parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeDevice 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.V1.VolumeDevice parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeDevice 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.V1.VolumeDevice 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; } /** * * *
     * volumeDevice describes a mapping of a raw block device within a container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeDevice} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeDevice) io.kubernetes.client.proto.V1.VolumeDeviceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeDevice_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeDevice.class, io.kubernetes.client.proto.V1.VolumeDevice.Builder.class); } // Construct using io.kubernetes.client.proto.V1.VolumeDevice.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); devicePath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeDevice getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.VolumeDevice.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeDevice build() { io.kubernetes.client.proto.V1.VolumeDevice result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeDevice buildPartial() { io.kubernetes.client.proto.V1.VolumeDevice result = new io.kubernetes.client.proto.V1.VolumeDevice(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.devicePath_ = devicePath_; 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.V1.VolumeDevice) { return mergeFrom((io.kubernetes.client.proto.V1.VolumeDevice) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeDevice other) { if (other == io.kubernetes.client.proto.V1.VolumeDevice.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasDevicePath()) { bitField0_ |= 0x00000002; devicePath_ = other.devicePath_; 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.V1.VolumeDevice parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.VolumeDevice) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * name must match the name of a persistentVolumeClaim in the pod
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * name must match the name of a persistentVolumeClaim in the pod
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * name must match the name of a persistentVolumeClaim in the pod
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * name must match the name of a persistentVolumeClaim in the pod
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * name must match the name of a persistentVolumeClaim in the pod
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * name must match the name of a persistentVolumeClaim in the pod
       * 
* * 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 devicePath_ = ""; /** * * *
       * devicePath is the path inside of the container that the device will be mapped to.
       * 
* * optional string devicePath = 2; */ public boolean hasDevicePath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * devicePath is the path inside of the container that the device will be mapped to.
       * 
* * optional string devicePath = 2; */ public java.lang.String getDevicePath() { java.lang.Object ref = devicePath_; 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()) { devicePath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * devicePath is the path inside of the container that the device will be mapped to.
       * 
* * optional string devicePath = 2; */ public com.google.protobuf.ByteString getDevicePathBytes() { java.lang.Object ref = devicePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); devicePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * devicePath is the path inside of the container that the device will be mapped to.
       * 
* * optional string devicePath = 2; */ public Builder setDevicePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; devicePath_ = value; onChanged(); return this; } /** * * *
       * devicePath is the path inside of the container that the device will be mapped to.
       * 
* * optional string devicePath = 2; */ public Builder clearDevicePath() { bitField0_ = (bitField0_ & ~0x00000002); devicePath_ = getDefaultInstance().getDevicePath(); onChanged(); return this; } /** * * *
       * devicePath is the path inside of the container that the device will be mapped to.
       * 
* * optional string devicePath = 2; */ public Builder setDevicePathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; devicePath_ = 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.core.v1.VolumeDevice) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeDevice) private static final io.kubernetes.client.proto.V1.VolumeDevice DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeDevice(); } public static io.kubernetes.client.proto.V1.VolumeDevice getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeDevice parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeDevice(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.V1.VolumeDevice getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeMountOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VolumeMount) com.google.protobuf.MessageOrBuilder { /** * * *
     * This must match the Name of a Volume.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * This must match the Name of a Volume.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * This must match the Name of a Volume.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * Mounted read-only if true, read-write otherwise (false or unspecified).
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean hasReadOnly(); /** * * *
     * Mounted read-only if true, read-write otherwise (false or unspecified).
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean getReadOnly(); /** * * *
     * Path within the container at which the volume should be mounted.  Must
     * not contain ':'.
     * 
* * optional string mountPath = 3; */ boolean hasMountPath(); /** * * *
     * Path within the container at which the volume should be mounted.  Must
     * not contain ':'.
     * 
* * optional string mountPath = 3; */ java.lang.String getMountPath(); /** * * *
     * Path within the container at which the volume should be mounted.  Must
     * not contain ':'.
     * 
* * optional string mountPath = 3; */ com.google.protobuf.ByteString getMountPathBytes(); /** * * *
     * Path within the volume from which the container's volume should be mounted.
     * Defaults to "" (volume's root).
     * +optional
     * 
* * optional string subPath = 4; */ boolean hasSubPath(); /** * * *
     * Path within the volume from which the container's volume should be mounted.
     * Defaults to "" (volume's root).
     * +optional
     * 
* * optional string subPath = 4; */ java.lang.String getSubPath(); /** * * *
     * Path within the volume from which the container's volume should be mounted.
     * Defaults to "" (volume's root).
     * +optional
     * 
* * optional string subPath = 4; */ com.google.protobuf.ByteString getSubPathBytes(); /** * * *
     * mountPropagation determines how mounts are propagated from the host
     * to container and the other way around.
     * When not set, MountPropagationNone is used.
     * This field is beta in 1.10.
     * +optional
     * 
* * optional string mountPropagation = 5; */ boolean hasMountPropagation(); /** * * *
     * mountPropagation determines how mounts are propagated from the host
     * to container and the other way around.
     * When not set, MountPropagationNone is used.
     * This field is beta in 1.10.
     * +optional
     * 
* * optional string mountPropagation = 5; */ java.lang.String getMountPropagation(); /** * * *
     * mountPropagation determines how mounts are propagated from the host
     * to container and the other way around.
     * When not set, MountPropagationNone is used.
     * This field is beta in 1.10.
     * +optional
     * 
* * optional string mountPropagation = 5; */ com.google.protobuf.ByteString getMountPropagationBytes(); /** * * *
     * Expanded path within the volume from which the container's volume should be mounted.
     * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
     * Defaults to "" (volume's root).
     * SubPathExpr and SubPath are mutually exclusive.
     * +optional
     * 
* * optional string subPathExpr = 6; */ boolean hasSubPathExpr(); /** * * *
     * Expanded path within the volume from which the container's volume should be mounted.
     * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
     * Defaults to "" (volume's root).
     * SubPathExpr and SubPath are mutually exclusive.
     * +optional
     * 
* * optional string subPathExpr = 6; */ java.lang.String getSubPathExpr(); /** * * *
     * Expanded path within the volume from which the container's volume should be mounted.
     * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
     * Defaults to "" (volume's root).
     * SubPathExpr and SubPath are mutually exclusive.
     * +optional
     * 
* * optional string subPathExpr = 6; */ com.google.protobuf.ByteString getSubPathExprBytes(); } /** * * *
   * VolumeMount describes a mounting of a Volume within a container.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeMount} */ public static final class VolumeMount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VolumeMount) VolumeMountOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeMount.newBuilder() to construct. private VolumeMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeMount() { name_ = ""; readOnly_ = false; mountPath_ = ""; subPath_ = ""; mountPropagation_ = ""; subPathExpr_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeMount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 16: { bitField0_ |= 0x00000002; readOnly_ = input.readBool(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; mountPath_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; subPath_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; mountPropagation_ = bs; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; subPathExpr_ = 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 .V1 .internal_static_k8s_io_api_core_v1_VolumeMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeMount_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeMount.class, io.kubernetes.client.proto.V1.VolumeMount.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * This must match the Name of a Volume.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * This must match the Name of a Volume.
     * 
* * 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 must match the Name of a Volume.
     * 
* * 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 READONLY_FIELD_NUMBER = 2; private boolean readOnly_; /** * * *
     * Mounted read-only if true, read-write otherwise (false or unspecified).
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Mounted read-only if true, read-write otherwise (false or unspecified).
     * Defaults to false.
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } public static final int MOUNTPATH_FIELD_NUMBER = 3; private volatile java.lang.Object mountPath_; /** * * *
     * Path within the container at which the volume should be mounted.  Must
     * not contain ':'.
     * 
* * optional string mountPath = 3; */ public boolean hasMountPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Path within the container at which the volume should be mounted.  Must
     * not contain ':'.
     * 
* * optional string mountPath = 3; */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; 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()) { mountPath_ = s; } return s; } } /** * * *
     * Path within the container at which the volume should be mounted.  Must
     * not contain ':'.
     * 
* * optional string mountPath = 3; */ public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBPATH_FIELD_NUMBER = 4; private volatile java.lang.Object subPath_; /** * * *
     * Path within the volume from which the container's volume should be mounted.
     * Defaults to "" (volume's root).
     * +optional
     * 
* * optional string subPath = 4; */ public boolean hasSubPath() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Path within the volume from which the container's volume should be mounted.
     * Defaults to "" (volume's root).
     * +optional
     * 
* * optional string subPath = 4; */ public java.lang.String getSubPath() { java.lang.Object ref = subPath_; 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()) { subPath_ = s; } return s; } } /** * * *
     * Path within the volume from which the container's volume should be mounted.
     * Defaults to "" (volume's root).
     * +optional
     * 
* * optional string subPath = 4; */ public com.google.protobuf.ByteString getSubPathBytes() { java.lang.Object ref = subPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MOUNTPROPAGATION_FIELD_NUMBER = 5; private volatile java.lang.Object mountPropagation_; /** * * *
     * mountPropagation determines how mounts are propagated from the host
     * to container and the other way around.
     * When not set, MountPropagationNone is used.
     * This field is beta in 1.10.
     * +optional
     * 
* * optional string mountPropagation = 5; */ public boolean hasMountPropagation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * mountPropagation determines how mounts are propagated from the host
     * to container and the other way around.
     * When not set, MountPropagationNone is used.
     * This field is beta in 1.10.
     * +optional
     * 
* * optional string mountPropagation = 5; */ public java.lang.String getMountPropagation() { java.lang.Object ref = mountPropagation_; 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()) { mountPropagation_ = s; } return s; } } /** * * *
     * mountPropagation determines how mounts are propagated from the host
     * to container and the other way around.
     * When not set, MountPropagationNone is used.
     * This field is beta in 1.10.
     * +optional
     * 
* * optional string mountPropagation = 5; */ public com.google.protobuf.ByteString getMountPropagationBytes() { java.lang.Object ref = mountPropagation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPropagation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBPATHEXPR_FIELD_NUMBER = 6; private volatile java.lang.Object subPathExpr_; /** * * *
     * Expanded path within the volume from which the container's volume should be mounted.
     * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
     * Defaults to "" (volume's root).
     * SubPathExpr and SubPath are mutually exclusive.
     * +optional
     * 
* * optional string subPathExpr = 6; */ public boolean hasSubPathExpr() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Expanded path within the volume from which the container's volume should be mounted.
     * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
     * Defaults to "" (volume's root).
     * SubPathExpr and SubPath are mutually exclusive.
     * +optional
     * 
* * optional string subPathExpr = 6; */ public java.lang.String getSubPathExpr() { java.lang.Object ref = subPathExpr_; 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()) { subPathExpr_ = s; } return s; } } /** * * *
     * Expanded path within the volume from which the container's volume should be mounted.
     * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
     * Defaults to "" (volume's root).
     * SubPathExpr and SubPath are mutually exclusive.
     * +optional
     * 
* * optional string subPathExpr = 6; */ public com.google.protobuf.ByteString getSubPathExprBytes() { java.lang.Object ref = subPathExpr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subPathExpr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, readOnly_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mountPath_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subPath_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mountPropagation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, subPathExpr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, readOnly_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mountPath_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subPath_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mountPropagation_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, subPathExpr_); } 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.V1.VolumeMount)) { return super.equals(obj); } io.kubernetes.client.proto.V1.VolumeMount other = (io.kubernetes.client.proto.V1.VolumeMount) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } result = result && (hasMountPath() == other.hasMountPath()); if (hasMountPath()) { result = result && getMountPath().equals(other.getMountPath()); } result = result && (hasSubPath() == other.hasSubPath()); if (hasSubPath()) { result = result && getSubPath().equals(other.getSubPath()); } result = result && (hasMountPropagation() == other.hasMountPropagation()); if (hasMountPropagation()) { result = result && getMountPropagation().equals(other.getMountPropagation()); } result = result && (hasSubPathExpr() == other.hasSubPathExpr()); if (hasSubPathExpr()) { result = result && getSubPathExpr().equals(other.getSubPathExpr()); } 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 (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } if (hasMountPath()) { hash = (37 * hash) + MOUNTPATH_FIELD_NUMBER; hash = (53 * hash) + getMountPath().hashCode(); } if (hasSubPath()) { hash = (37 * hash) + SUBPATH_FIELD_NUMBER; hash = (53 * hash) + getSubPath().hashCode(); } if (hasMountPropagation()) { hash = (37 * hash) + MOUNTPROPAGATION_FIELD_NUMBER; hash = (53 * hash) + getMountPropagation().hashCode(); } if (hasSubPathExpr()) { hash = (37 * hash) + SUBPATHEXPR_FIELD_NUMBER; hash = (53 * hash) + getSubPathExpr().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.VolumeMount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeMount 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.V1.VolumeMount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeMount 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.V1.VolumeMount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeMount parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.VolumeMount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeMount 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.V1.VolumeMount parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeMount 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.V1.VolumeMount parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeMount 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.V1.VolumeMount 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; } /** * * *
     * VolumeMount describes a mounting of a Volume within a container.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeMount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeMount) io.kubernetes.client.proto.V1.VolumeMountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeMount_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeMount.class, io.kubernetes.client.proto.V1.VolumeMount.Builder.class); } // Construct using io.kubernetes.client.proto.V1.VolumeMount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000002); mountPath_ = ""; bitField0_ = (bitField0_ & ~0x00000004); subPath_ = ""; bitField0_ = (bitField0_ & ~0x00000008); mountPropagation_ = ""; bitField0_ = (bitField0_ & ~0x00000010); subPathExpr_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeMount_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeMount getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeMount build() { io.kubernetes.client.proto.V1.VolumeMount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeMount buildPartial() { io.kubernetes.client.proto.V1.VolumeMount result = new io.kubernetes.client.proto.V1.VolumeMount(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.readOnly_ = readOnly_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.mountPath_ = mountPath_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.subPath_ = subPath_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.mountPropagation_ = mountPropagation_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.subPathExpr_ = subPathExpr_; 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.V1.VolumeMount) { return mergeFrom((io.kubernetes.client.proto.V1.VolumeMount) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeMount other) { if (other == io.kubernetes.client.proto.V1.VolumeMount.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasMountPath()) { bitField0_ |= 0x00000004; mountPath_ = other.mountPath_; onChanged(); } if (other.hasSubPath()) { bitField0_ |= 0x00000008; subPath_ = other.subPath_; onChanged(); } if (other.hasMountPropagation()) { bitField0_ |= 0x00000010; mountPropagation_ = other.mountPropagation_; onChanged(); } if (other.hasSubPathExpr()) { bitField0_ |= 0x00000020; subPathExpr_ = other.subPathExpr_; 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.V1.VolumeMount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.VolumeMount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * This must match the Name of a Volume.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * This must match the Name of a Volume.
       * 
* * 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 must match the Name of a Volume.
       * 
* * 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 must match the Name of a Volume.
       * 
* * 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 must match the Name of a Volume.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * This must match the Name of a Volume.
       * 
* * optional string name = 1; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * Mounted read-only if true, read-write otherwise (false or unspecified).
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Mounted read-only if true, read-write otherwise (false or unspecified).
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * Mounted read-only if true, read-write otherwise (false or unspecified).
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000002; readOnly_ = value; onChanged(); return this; } /** * * *
       * Mounted read-only if true, read-write otherwise (false or unspecified).
       * Defaults to false.
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; onChanged(); return this; } private java.lang.Object mountPath_ = ""; /** * * *
       * Path within the container at which the volume should be mounted.  Must
       * not contain ':'.
       * 
* * optional string mountPath = 3; */ public boolean hasMountPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Path within the container at which the volume should be mounted.  Must
       * not contain ':'.
       * 
* * optional string mountPath = 3; */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; 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()) { mountPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path within the container at which the volume should be mounted.  Must
       * not contain ':'.
       * 
* * optional string mountPath = 3; */ public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path within the container at which the volume should be mounted.  Must
       * not contain ':'.
       * 
* * optional string mountPath = 3; */ public Builder setMountPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mountPath_ = value; onChanged(); return this; } /** * * *
       * Path within the container at which the volume should be mounted.  Must
       * not contain ':'.
       * 
* * optional string mountPath = 3; */ public Builder clearMountPath() { bitField0_ = (bitField0_ & ~0x00000004); mountPath_ = getDefaultInstance().getMountPath(); onChanged(); return this; } /** * * *
       * Path within the container at which the volume should be mounted.  Must
       * not contain ':'.
       * 
* * optional string mountPath = 3; */ public Builder setMountPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mountPath_ = value; onChanged(); return this; } private java.lang.Object subPath_ = ""; /** * * *
       * Path within the volume from which the container's volume should be mounted.
       * Defaults to "" (volume's root).
       * +optional
       * 
* * optional string subPath = 4; */ public boolean hasSubPath() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Path within the volume from which the container's volume should be mounted.
       * Defaults to "" (volume's root).
       * +optional
       * 
* * optional string subPath = 4; */ public java.lang.String getSubPath() { java.lang.Object ref = subPath_; 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()) { subPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path within the volume from which the container's volume should be mounted.
       * Defaults to "" (volume's root).
       * +optional
       * 
* * optional string subPath = 4; */ public com.google.protobuf.ByteString getSubPathBytes() { java.lang.Object ref = subPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path within the volume from which the container's volume should be mounted.
       * Defaults to "" (volume's root).
       * +optional
       * 
* * optional string subPath = 4; */ public Builder setSubPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; subPath_ = value; onChanged(); return this; } /** * * *
       * Path within the volume from which the container's volume should be mounted.
       * Defaults to "" (volume's root).
       * +optional
       * 
* * optional string subPath = 4; */ public Builder clearSubPath() { bitField0_ = (bitField0_ & ~0x00000008); subPath_ = getDefaultInstance().getSubPath(); onChanged(); return this; } /** * * *
       * Path within the volume from which the container's volume should be mounted.
       * Defaults to "" (volume's root).
       * +optional
       * 
* * optional string subPath = 4; */ public Builder setSubPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; subPath_ = value; onChanged(); return this; } private java.lang.Object mountPropagation_ = ""; /** * * *
       * mountPropagation determines how mounts are propagated from the host
       * to container and the other way around.
       * When not set, MountPropagationNone is used.
       * This field is beta in 1.10.
       * +optional
       * 
* * optional string mountPropagation = 5; */ public boolean hasMountPropagation() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * mountPropagation determines how mounts are propagated from the host
       * to container and the other way around.
       * When not set, MountPropagationNone is used.
       * This field is beta in 1.10.
       * +optional
       * 
* * optional string mountPropagation = 5; */ public java.lang.String getMountPropagation() { java.lang.Object ref = mountPropagation_; 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()) { mountPropagation_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * mountPropagation determines how mounts are propagated from the host
       * to container and the other way around.
       * When not set, MountPropagationNone is used.
       * This field is beta in 1.10.
       * +optional
       * 
* * optional string mountPropagation = 5; */ public com.google.protobuf.ByteString getMountPropagationBytes() { java.lang.Object ref = mountPropagation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPropagation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * mountPropagation determines how mounts are propagated from the host
       * to container and the other way around.
       * When not set, MountPropagationNone is used.
       * This field is beta in 1.10.
       * +optional
       * 
* * optional string mountPropagation = 5; */ public Builder setMountPropagation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mountPropagation_ = value; onChanged(); return this; } /** * * *
       * mountPropagation determines how mounts are propagated from the host
       * to container and the other way around.
       * When not set, MountPropagationNone is used.
       * This field is beta in 1.10.
       * +optional
       * 
* * optional string mountPropagation = 5; */ public Builder clearMountPropagation() { bitField0_ = (bitField0_ & ~0x00000010); mountPropagation_ = getDefaultInstance().getMountPropagation(); onChanged(); return this; } /** * * *
       * mountPropagation determines how mounts are propagated from the host
       * to container and the other way around.
       * When not set, MountPropagationNone is used.
       * This field is beta in 1.10.
       * +optional
       * 
* * optional string mountPropagation = 5; */ public Builder setMountPropagationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mountPropagation_ = value; onChanged(); return this; } private java.lang.Object subPathExpr_ = ""; /** * * *
       * Expanded path within the volume from which the container's volume should be mounted.
       * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       * Defaults to "" (volume's root).
       * SubPathExpr and SubPath are mutually exclusive.
       * +optional
       * 
* * optional string subPathExpr = 6; */ public boolean hasSubPathExpr() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Expanded path within the volume from which the container's volume should be mounted.
       * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       * Defaults to "" (volume's root).
       * SubPathExpr and SubPath are mutually exclusive.
       * +optional
       * 
* * optional string subPathExpr = 6; */ public java.lang.String getSubPathExpr() { java.lang.Object ref = subPathExpr_; 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()) { subPathExpr_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Expanded path within the volume from which the container's volume should be mounted.
       * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       * Defaults to "" (volume's root).
       * SubPathExpr and SubPath are mutually exclusive.
       * +optional
       * 
* * optional string subPathExpr = 6; */ public com.google.protobuf.ByteString getSubPathExprBytes() { java.lang.Object ref = subPathExpr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subPathExpr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Expanded path within the volume from which the container's volume should be mounted.
       * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       * Defaults to "" (volume's root).
       * SubPathExpr and SubPath are mutually exclusive.
       * +optional
       * 
* * optional string subPathExpr = 6; */ public Builder setSubPathExpr(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; subPathExpr_ = value; onChanged(); return this; } /** * * *
       * Expanded path within the volume from which the container's volume should be mounted.
       * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       * Defaults to "" (volume's root).
       * SubPathExpr and SubPath are mutually exclusive.
       * +optional
       * 
* * optional string subPathExpr = 6; */ public Builder clearSubPathExpr() { bitField0_ = (bitField0_ & ~0x00000020); subPathExpr_ = getDefaultInstance().getSubPathExpr(); onChanged(); return this; } /** * * *
       * Expanded path within the volume from which the container's volume should be mounted.
       * Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
       * Defaults to "" (volume's root).
       * SubPathExpr and SubPath are mutually exclusive.
       * +optional
       * 
* * optional string subPathExpr = 6; */ public Builder setSubPathExprBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; subPathExpr_ = 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.core.v1.VolumeMount) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeMount) private static final io.kubernetes.client.proto.V1.VolumeMount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeMount(); } public static io.kubernetes.client.proto.V1.VolumeMount getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeMount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeMount(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.V1.VolumeMount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeNodeAffinityOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VolumeNodeAffinity) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required specifies hard node constraints that must be met.
     * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ boolean hasRequired(); /** * * *
     * Required specifies hard node constraints that must be met.
     * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ io.kubernetes.client.proto.V1.NodeSelector getRequired(); /** * * *
     * Required specifies hard node constraints that must be met.
     * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getRequiredOrBuilder(); } /** * * *
   * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeNodeAffinity} */ public static final class VolumeNodeAffinity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VolumeNodeAffinity) VolumeNodeAffinityOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeNodeAffinity.newBuilder() to construct. private VolumeNodeAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeNodeAffinity() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeNodeAffinity( 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.V1.NodeSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = required_.toBuilder(); } required_ = input.readMessage( io.kubernetes.client.proto.V1.NodeSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(required_); required_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeNodeAffinity.class, io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder.class); } private int bitField0_; public static final int REQUIRED_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.NodeSelector required_; /** * * *
     * Required specifies hard node constraints that must be met.
     * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public boolean hasRequired() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Required specifies hard node constraints that must be met.
     * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public io.kubernetes.client.proto.V1.NodeSelector getRequired() { return required_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : required_; } /** * * *
     * Required specifies hard node constraints that must be met.
     * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getRequiredOrBuilder() { return required_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : required_; } 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, getRequired()); } 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, getRequired()); } 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.V1.VolumeNodeAffinity)) { return super.equals(obj); } io.kubernetes.client.proto.V1.VolumeNodeAffinity other = (io.kubernetes.client.proto.V1.VolumeNodeAffinity) obj; boolean result = true; result = result && (hasRequired() == other.hasRequired()); if (hasRequired()) { result = result && getRequired().equals(other.getRequired()); } 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 (hasRequired()) { hash = (37 * hash) + REQUIRED_FIELD_NUMBER; hash = (53 * hash) + getRequired().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity 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.V1.VolumeNodeAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity 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.V1.VolumeNodeAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity 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.V1.VolumeNodeAffinity parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity 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.V1.VolumeNodeAffinity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity 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.V1.VolumeNodeAffinity 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; } /** * * *
     * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeNodeAffinity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeNodeAffinity) io.kubernetes.client.proto.V1.VolumeNodeAffinityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeNodeAffinity.class, io.kubernetes.client.proto.V1.VolumeNodeAffinity.Builder.class); } // Construct using io.kubernetes.client.proto.V1.VolumeNodeAffinity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequiredFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (requiredBuilder_ == null) { required_ = null; } else { requiredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeNodeAffinity getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeNodeAffinity build() { io.kubernetes.client.proto.V1.VolumeNodeAffinity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeNodeAffinity buildPartial() { io.kubernetes.client.proto.V1.VolumeNodeAffinity result = new io.kubernetes.client.proto.V1.VolumeNodeAffinity(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (requiredBuilder_ == null) { result.required_ = required_; } else { result.required_ = requiredBuilder_.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.V1.VolumeNodeAffinity) { return mergeFrom((io.kubernetes.client.proto.V1.VolumeNodeAffinity) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeNodeAffinity other) { if (other == io.kubernetes.client.proto.V1.VolumeNodeAffinity.getDefaultInstance()) return this; if (other.hasRequired()) { mergeRequired(other.getRequired()); } 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.V1.VolumeNodeAffinity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.VolumeNodeAffinity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.NodeSelector required_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> requiredBuilder_; /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public boolean hasRequired() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public io.kubernetes.client.proto.V1.NodeSelector getRequired() { if (requiredBuilder_ == null) { return required_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : required_; } else { return requiredBuilder_.getMessage(); } } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public Builder setRequired(io.kubernetes.client.proto.V1.NodeSelector value) { if (requiredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } required_ = value; onChanged(); } else { requiredBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public Builder setRequired( io.kubernetes.client.proto.V1.NodeSelector.Builder builderForValue) { if (requiredBuilder_ == null) { required_ = builderForValue.build(); onChanged(); } else { requiredBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public Builder mergeRequired(io.kubernetes.client.proto.V1.NodeSelector value) { if (requiredBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && required_ != null && required_ != io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance()) { required_ = io.kubernetes.client.proto.V1.NodeSelector.newBuilder(required_) .mergeFrom(value) .buildPartial(); } else { required_ = value; } onChanged(); } else { requiredBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public Builder clearRequired() { if (requiredBuilder_ == null) { required_ = null; onChanged(); } else { requiredBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public io.kubernetes.client.proto.V1.NodeSelector.Builder getRequiredBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequiredFieldBuilder().getBuilder(); } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getRequiredOrBuilder() { if (requiredBuilder_ != null) { return requiredBuilder_.getMessageOrBuilder(); } else { return required_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : required_; } } /** * * *
       * Required specifies hard node constraints that must be met.
       * 
* * optional .k8s.io.api.core.v1.NodeSelector required = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> getRequiredFieldBuilder() { if (requiredBuilder_ == null) { requiredBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder>( getRequired(), getParentForChildren(), isClean()); required_ = null; } return requiredBuilder_; } @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.core.v1.VolumeNodeAffinity) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeNodeAffinity) private static final io.kubernetes.client.proto.V1.VolumeNodeAffinity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeNodeAffinity(); } public static io.kubernetes.client.proto.V1.VolumeNodeAffinity getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeNodeAffinity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeNodeAffinity(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.V1.VolumeNodeAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeProjectionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VolumeProjection) com.google.protobuf.MessageOrBuilder { /** * * *
     * information about the secret data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ boolean hasSecret(); /** * * *
     * information about the secret data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ io.kubernetes.client.proto.V1.SecretProjection getSecret(); /** * * *
     * information about the secret data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ io.kubernetes.client.proto.V1.SecretProjectionOrBuilder getSecretOrBuilder(); /** * * *
     * information about the downwardAPI data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ boolean hasDownwardAPI(); /** * * *
     * information about the downwardAPI data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ io.kubernetes.client.proto.V1.DownwardAPIProjection getDownwardAPI(); /** * * *
     * information about the downwardAPI data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder getDownwardAPIOrBuilder(); /** * * *
     * information about the configMap data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ boolean hasConfigMap(); /** * * *
     * information about the configMap data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ io.kubernetes.client.proto.V1.ConfigMapProjection getConfigMap(); /** * * *
     * information about the configMap data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder getConfigMapOrBuilder(); /** * * *
     * information about the serviceAccountToken data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ boolean hasServiceAccountToken(); /** * * *
     * information about the serviceAccountToken data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ io.kubernetes.client.proto.V1.ServiceAccountTokenProjection getServiceAccountToken(); /** * * *
     * information about the serviceAccountToken data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder getServiceAccountTokenOrBuilder(); } /** * * *
   * Projection that may be projected along with other supported volume types
   * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeProjection} */ public static final class VolumeProjection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VolumeProjection) VolumeProjectionOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeProjection.newBuilder() to construct. private VolumeProjection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeProjection() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeProjection( 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.V1.SecretProjection.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = secret_.toBuilder(); } secret_ = input.readMessage( io.kubernetes.client.proto.V1.SecretProjection.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secret_); secret_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = downwardAPI_.toBuilder(); } downwardAPI_ = input.readMessage( io.kubernetes.client.proto.V1.DownwardAPIProjection.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(downwardAPI_); downwardAPI_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.ConfigMapProjection.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = configMap_.toBuilder(); } configMap_ = input.readMessage( io.kubernetes.client.proto.V1.ConfigMapProjection.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configMap_); configMap_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = serviceAccountToken_.toBuilder(); } serviceAccountToken_ = input.readMessage( io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serviceAccountToken_); serviceAccountToken_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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 .V1 .internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeProjection.class, io.kubernetes.client.proto.V1.VolumeProjection.Builder.class); } private int bitField0_; public static final int SECRET_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.SecretProjection secret_; /** * * *
     * information about the secret data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public boolean hasSecret() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * information about the secret data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public io.kubernetes.client.proto.V1.SecretProjection getSecret() { return secret_ == null ? io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance() : secret_; } /** * * *
     * information about the secret data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public io.kubernetes.client.proto.V1.SecretProjectionOrBuilder getSecretOrBuilder() { return secret_ == null ? io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance() : secret_; } public static final int DOWNWARDAPI_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.DownwardAPIProjection downwardAPI_; /** * * *
     * information about the downwardAPI data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public boolean hasDownwardAPI() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * information about the downwardAPI data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public io.kubernetes.client.proto.V1.DownwardAPIProjection getDownwardAPI() { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance() : downwardAPI_; } /** * * *
     * information about the downwardAPI data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder getDownwardAPIOrBuilder() { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance() : downwardAPI_; } public static final int CONFIGMAP_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.ConfigMapProjection configMap_; /** * * *
     * information about the configMap data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public boolean hasConfigMap() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * information about the configMap data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public io.kubernetes.client.proto.V1.ConfigMapProjection getConfigMap() { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance() : configMap_; } /** * * *
     * information about the configMap data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder getConfigMapOrBuilder() { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance() : configMap_; } public static final int SERVICEACCOUNTTOKEN_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.ServiceAccountTokenProjection serviceAccountToken_; /** * * *
     * information about the serviceAccountToken data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public boolean hasServiceAccountToken() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * information about the serviceAccountToken data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public io.kubernetes.client.proto.V1.ServiceAccountTokenProjection getServiceAccountToken() { return serviceAccountToken_ == null ? io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.getDefaultInstance() : serviceAccountToken_; } /** * * *
     * information about the serviceAccountToken data to project
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder getServiceAccountTokenOrBuilder() { return serviceAccountToken_ == null ? io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.getDefaultInstance() : serviceAccountToken_; } 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, getSecret()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getDownwardAPI()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getConfigMap()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getServiceAccountToken()); } 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, getSecret()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDownwardAPI()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfigMap()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceAccountToken()); } 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.V1.VolumeProjection)) { return super.equals(obj); } io.kubernetes.client.proto.V1.VolumeProjection other = (io.kubernetes.client.proto.V1.VolumeProjection) obj; boolean result = true; result = result && (hasSecret() == other.hasSecret()); if (hasSecret()) { result = result && getSecret().equals(other.getSecret()); } result = result && (hasDownwardAPI() == other.hasDownwardAPI()); if (hasDownwardAPI()) { result = result && getDownwardAPI().equals(other.getDownwardAPI()); } result = result && (hasConfigMap() == other.hasConfigMap()); if (hasConfigMap()) { result = result && getConfigMap().equals(other.getConfigMap()); } result = result && (hasServiceAccountToken() == other.hasServiceAccountToken()); if (hasServiceAccountToken()) { result = result && getServiceAccountToken().equals(other.getServiceAccountToken()); } 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 (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + getSecret().hashCode(); } if (hasDownwardAPI()) { hash = (37 * hash) + DOWNWARDAPI_FIELD_NUMBER; hash = (53 * hash) + getDownwardAPI().hashCode(); } if (hasConfigMap()) { hash = (37 * hash) + CONFIGMAP_FIELD_NUMBER; hash = (53 * hash) + getConfigMap().hashCode(); } if (hasServiceAccountToken()) { hash = (37 * hash) + SERVICEACCOUNTTOKEN_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountToken().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.VolumeProjection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeProjection 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.V1.VolumeProjection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeProjection 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.V1.VolumeProjection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeProjection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.VolumeProjection parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeProjection 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.V1.VolumeProjection parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeProjection 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.V1.VolumeProjection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeProjection 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.V1.VolumeProjection 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; } /** * * *
     * Projection that may be projected along with other supported volume types
     * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeProjection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeProjection) io.kubernetes.client.proto.V1.VolumeProjectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeProjection_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeProjection.class, io.kubernetes.client.proto.V1.VolumeProjection.Builder.class); } // Construct using io.kubernetes.client.proto.V1.VolumeProjection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecretFieldBuilder(); getDownwardAPIFieldBuilder(); getConfigMapFieldBuilder(); getServiceAccountTokenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (secretBuilder_ == null) { secret_ = null; } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (downwardAPIBuilder_ == null) { downwardAPI_ = null; } else { downwardAPIBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (configMapBuilder_ == null) { configMap_ = null; } else { configMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (serviceAccountTokenBuilder_ == null) { serviceAccountToken_ = null; } else { serviceAccountTokenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeProjection getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.VolumeProjection.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeProjection build() { io.kubernetes.client.proto.V1.VolumeProjection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeProjection buildPartial() { io.kubernetes.client.proto.V1.VolumeProjection result = new io.kubernetes.client.proto.V1.VolumeProjection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (secretBuilder_ == null) { result.secret_ = secret_; } else { result.secret_ = secretBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (downwardAPIBuilder_ == null) { result.downwardAPI_ = downwardAPI_; } else { result.downwardAPI_ = downwardAPIBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (configMapBuilder_ == null) { result.configMap_ = configMap_; } else { result.configMap_ = configMapBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (serviceAccountTokenBuilder_ == null) { result.serviceAccountToken_ = serviceAccountToken_; } else { result.serviceAccountToken_ = serviceAccountTokenBuilder_.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.V1.VolumeProjection) { return mergeFrom((io.kubernetes.client.proto.V1.VolumeProjection) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeProjection other) { if (other == io.kubernetes.client.proto.V1.VolumeProjection.getDefaultInstance()) return this; if (other.hasSecret()) { mergeSecret(other.getSecret()); } if (other.hasDownwardAPI()) { mergeDownwardAPI(other.getDownwardAPI()); } if (other.hasConfigMap()) { mergeConfigMap(other.getConfigMap()); } if (other.hasServiceAccountToken()) { mergeServiceAccountToken(other.getServiceAccountToken()); } 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.V1.VolumeProjection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.VolumeProjection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.SecretProjection secret_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretProjection, io.kubernetes.client.proto.V1.SecretProjection.Builder, io.kubernetes.client.proto.V1.SecretProjectionOrBuilder> secretBuilder_; /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public boolean hasSecret() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public io.kubernetes.client.proto.V1.SecretProjection getSecret() { if (secretBuilder_ == null) { return secret_ == null ? io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public Builder setSecret(io.kubernetes.client.proto.V1.SecretProjection value) { if (secretBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secret_ = value; onChanged(); } else { secretBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public Builder setSecret( io.kubernetes.client.proto.V1.SecretProjection.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); } else { secretBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public Builder mergeSecret(io.kubernetes.client.proto.V1.SecretProjection value) { if (secretBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && secret_ != null && secret_ != io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance()) { secret_ = io.kubernetes.client.proto.V1.SecretProjection.newBuilder(secret_) .mergeFrom(value) .buildPartial(); } else { secret_ = value; } onChanged(); } else { secretBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public Builder clearSecret() { if (secretBuilder_ == null) { secret_ = null; onChanged(); } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public io.kubernetes.client.proto.V1.SecretProjection.Builder getSecretBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSecretFieldBuilder().getBuilder(); } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ public io.kubernetes.client.proto.V1.SecretProjectionOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { return secret_ == null ? io.kubernetes.client.proto.V1.SecretProjection.getDefaultInstance() : secret_; } } /** * * *
       * information about the secret data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretProjection secret = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretProjection, io.kubernetes.client.proto.V1.SecretProjection.Builder, io.kubernetes.client.proto.V1.SecretProjectionOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretProjection, io.kubernetes.client.proto.V1.SecretProjection.Builder, io.kubernetes.client.proto.V1.SecretProjectionOrBuilder>( getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; } private io.kubernetes.client.proto.V1.DownwardAPIProjection downwardAPI_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIProjection, io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder, io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder> downwardAPIBuilder_; /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public boolean hasDownwardAPI() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public io.kubernetes.client.proto.V1.DownwardAPIProjection getDownwardAPI() { if (downwardAPIBuilder_ == null) { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance() : downwardAPI_; } else { return downwardAPIBuilder_.getMessage(); } } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public Builder setDownwardAPI(io.kubernetes.client.proto.V1.DownwardAPIProjection value) { if (downwardAPIBuilder_ == null) { if (value == null) { throw new NullPointerException(); } downwardAPI_ = value; onChanged(); } else { downwardAPIBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public Builder setDownwardAPI( io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder builderForValue) { if (downwardAPIBuilder_ == null) { downwardAPI_ = builderForValue.build(); onChanged(); } else { downwardAPIBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public Builder mergeDownwardAPI(io.kubernetes.client.proto.V1.DownwardAPIProjection value) { if (downwardAPIBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && downwardAPI_ != null && downwardAPI_ != io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance()) { downwardAPI_ = io.kubernetes.client.proto.V1.DownwardAPIProjection.newBuilder(downwardAPI_) .mergeFrom(value) .buildPartial(); } else { downwardAPI_ = value; } onChanged(); } else { downwardAPIBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public Builder clearDownwardAPI() { if (downwardAPIBuilder_ == null) { downwardAPI_ = null; onChanged(); } else { downwardAPIBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder getDownwardAPIBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDownwardAPIFieldBuilder().getBuilder(); } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ public io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder getDownwardAPIOrBuilder() { if (downwardAPIBuilder_ != null) { return downwardAPIBuilder_.getMessageOrBuilder(); } else { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIProjection.getDefaultInstance() : downwardAPI_; } } /** * * *
       * information about the downwardAPI data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIProjection downwardAPI = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIProjection, io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder, io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder> getDownwardAPIFieldBuilder() { if (downwardAPIBuilder_ == null) { downwardAPIBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIProjection, io.kubernetes.client.proto.V1.DownwardAPIProjection.Builder, io.kubernetes.client.proto.V1.DownwardAPIProjectionOrBuilder>( getDownwardAPI(), getParentForChildren(), isClean()); downwardAPI_ = null; } return downwardAPIBuilder_; } private io.kubernetes.client.proto.V1.ConfigMapProjection configMap_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapProjection, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder, io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder> configMapBuilder_; /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public boolean hasConfigMap() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public io.kubernetes.client.proto.V1.ConfigMapProjection getConfigMap() { if (configMapBuilder_ == null) { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance() : configMap_; } else { return configMapBuilder_.getMessage(); } } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public Builder setConfigMap(io.kubernetes.client.proto.V1.ConfigMapProjection value) { if (configMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configMap_ = value; onChanged(); } else { configMapBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public Builder setConfigMap( io.kubernetes.client.proto.V1.ConfigMapProjection.Builder builderForValue) { if (configMapBuilder_ == null) { configMap_ = builderForValue.build(); onChanged(); } else { configMapBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public Builder mergeConfigMap(io.kubernetes.client.proto.V1.ConfigMapProjection value) { if (configMapBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && configMap_ != null && configMap_ != io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance()) { configMap_ = io.kubernetes.client.proto.V1.ConfigMapProjection.newBuilder(configMap_) .mergeFrom(value) .buildPartial(); } else { configMap_ = value; } onChanged(); } else { configMapBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public Builder clearConfigMap() { if (configMapBuilder_ == null) { configMap_ = null; onChanged(); } else { configMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public io.kubernetes.client.proto.V1.ConfigMapProjection.Builder getConfigMapBuilder() { bitField0_ |= 0x00000004; onChanged(); return getConfigMapFieldBuilder().getBuilder(); } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ public io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder getConfigMapOrBuilder() { if (configMapBuilder_ != null) { return configMapBuilder_.getMessageOrBuilder(); } else { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance() : configMap_; } } /** * * *
       * information about the configMap data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapProjection configMap = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapProjection, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder, io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder> getConfigMapFieldBuilder() { if (configMapBuilder_ == null) { configMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapProjection, io.kubernetes.client.proto.V1.ConfigMapProjection.Builder, io.kubernetes.client.proto.V1.ConfigMapProjectionOrBuilder>( getConfigMap(), getParentForChildren(), isClean()); configMap_ = null; } return configMapBuilder_; } private io.kubernetes.client.proto.V1.ServiceAccountTokenProjection serviceAccountToken_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceAccountTokenProjection, io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder, io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder> serviceAccountTokenBuilder_; /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public boolean hasServiceAccountToken() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public io.kubernetes.client.proto.V1.ServiceAccountTokenProjection getServiceAccountToken() { if (serviceAccountTokenBuilder_ == null) { return serviceAccountToken_ == null ? io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.getDefaultInstance() : serviceAccountToken_; } else { return serviceAccountTokenBuilder_.getMessage(); } } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public Builder setServiceAccountToken( io.kubernetes.client.proto.V1.ServiceAccountTokenProjection value) { if (serviceAccountTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceAccountToken_ = value; onChanged(); } else { serviceAccountTokenBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public Builder setServiceAccountToken( io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder builderForValue) { if (serviceAccountTokenBuilder_ == null) { serviceAccountToken_ = builderForValue.build(); onChanged(); } else { serviceAccountTokenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public Builder mergeServiceAccountToken( io.kubernetes.client.proto.V1.ServiceAccountTokenProjection value) { if (serviceAccountTokenBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && serviceAccountToken_ != null && serviceAccountToken_ != io.kubernetes.client.proto.V1.ServiceAccountTokenProjection .getDefaultInstance()) { serviceAccountToken_ = io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.newBuilder( serviceAccountToken_) .mergeFrom(value) .buildPartial(); } else { serviceAccountToken_ = value; } onChanged(); } else { serviceAccountTokenBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public Builder clearServiceAccountToken() { if (serviceAccountTokenBuilder_ == null) { serviceAccountToken_ = null; onChanged(); } else { serviceAccountTokenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder getServiceAccountTokenBuilder() { bitField0_ |= 0x00000008; onChanged(); return getServiceAccountTokenFieldBuilder().getBuilder(); } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ public io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder getServiceAccountTokenOrBuilder() { if (serviceAccountTokenBuilder_ != null) { return serviceAccountTokenBuilder_.getMessageOrBuilder(); } else { return serviceAccountToken_ == null ? io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.getDefaultInstance() : serviceAccountToken_; } } /** * * *
       * information about the serviceAccountToken data to project
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ServiceAccountTokenProjection serviceAccountToken = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceAccountTokenProjection, io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder, io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder> getServiceAccountTokenFieldBuilder() { if (serviceAccountTokenBuilder_ == null) { serviceAccountTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ServiceAccountTokenProjection, io.kubernetes.client.proto.V1.ServiceAccountTokenProjection.Builder, io.kubernetes.client.proto.V1.ServiceAccountTokenProjectionOrBuilder>( getServiceAccountToken(), getParentForChildren(), isClean()); serviceAccountToken_ = null; } return serviceAccountTokenBuilder_; } @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.core.v1.VolumeProjection) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeProjection) private static final io.kubernetes.client.proto.V1.VolumeProjection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeProjection(); } public static io.kubernetes.client.proto.V1.VolumeProjection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeProjection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeProjection(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.V1.VolumeProjection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * HostPath represents a pre-existing file or directory on the host
     * machine that is directly exposed to the container. This is generally
     * used for system agents or other privileged things that are allowed
     * to see the host machine. Most containers will NOT need this.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * ---
     * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
     * mount host directories as read/write.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ boolean hasHostPath(); /** * * *
     * HostPath represents a pre-existing file or directory on the host
     * machine that is directly exposed to the container. This is generally
     * used for system agents or other privileged things that are allowed
     * to see the host machine. Most containers will NOT need this.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * ---
     * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
     * mount host directories as read/write.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ io.kubernetes.client.proto.V1.HostPathVolumeSource getHostPath(); /** * * *
     * HostPath represents a pre-existing file or directory on the host
     * machine that is directly exposed to the container. This is generally
     * used for system agents or other privileged things that are allowed
     * to see the host machine. Most containers will NOT need this.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * ---
     * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
     * mount host directories as read/write.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder getHostPathOrBuilder(); /** * * *
     * EmptyDir represents a temporary directory that shares a pod's lifetime.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ boolean hasEmptyDir(); /** * * *
     * EmptyDir represents a temporary directory that shares a pod's lifetime.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ io.kubernetes.client.proto.V1.EmptyDirVolumeSource getEmptyDir(); /** * * *
     * EmptyDir represents a temporary directory that shares a pod's lifetime.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder(); /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ boolean hasGcePersistentDisk(); /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getGcePersistentDisk(); /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder(); /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ boolean hasAwsElasticBlockStore(); /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore(); /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder(); /** * * *
     * GitRepo represents a git repository at a particular revision.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ boolean hasGitRepo(); /** * * *
     * GitRepo represents a git repository at a particular revision.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ io.kubernetes.client.proto.V1.GitRepoVolumeSource getGitRepo(); /** * * *
     * GitRepo represents a git repository at a particular revision.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder getGitRepoOrBuilder(); /** * * *
     * Secret represents a secret that should populate this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ boolean hasSecret(); /** * * *
     * Secret represents a secret that should populate this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ io.kubernetes.client.proto.V1.SecretVolumeSource getSecret(); /** * * *
     * Secret represents a secret that should populate this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder getSecretOrBuilder(); /** * * *
     * NFS represents an NFS mount on the host that shares a pod's lifetime
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ boolean hasNfs(); /** * * *
     * NFS represents an NFS mount on the host that shares a pod's lifetime
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ io.kubernetes.client.proto.V1.NFSVolumeSource getNfs(); /** * * *
     * NFS represents an NFS mount on the host that shares a pod's lifetime
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder getNfsOrBuilder(); /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://examples.k8s.io/volumes/iscsi/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ boolean hasIscsi(); /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://examples.k8s.io/volumes/iscsi/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ io.kubernetes.client.proto.V1.ISCSIVolumeSource getIscsi(); /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://examples.k8s.io/volumes/iscsi/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder getIscsiOrBuilder(); /** * * *
     * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ boolean hasGlusterfs(); /** * * *
     * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ io.kubernetes.client.proto.V1.GlusterfsVolumeSource getGlusterfs(); /** * * *
     * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder getGlusterfsOrBuilder(); /** * * *
     * PersistentVolumeClaimVolumeSource represents a reference to a
     * PersistentVolumeClaim in the same namespace.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ boolean hasPersistentVolumeClaim(); /** * * *
     * PersistentVolumeClaimVolumeSource represents a reference to a
     * PersistentVolumeClaim in the same namespace.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource getPersistentVolumeClaim(); /** * * *
     * PersistentVolumeClaimVolumeSource represents a reference to a
     * PersistentVolumeClaim in the same namespace.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder getPersistentVolumeClaimOrBuilder(); /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ boolean hasRbd(); /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ io.kubernetes.client.proto.V1.RBDVolumeSource getRbd(); /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder getRbdOrBuilder(); /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ boolean hasFlexVolume(); /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ io.kubernetes.client.proto.V1.FlexVolumeSource getFlexVolume(); /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder getFlexVolumeOrBuilder(); /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ boolean hasCinder(); /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ io.kubernetes.client.proto.V1.CinderVolumeSource getCinder(); /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder getCinderOrBuilder(); /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ boolean hasCephfs(); /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ io.kubernetes.client.proto.V1.CephFSVolumeSource getCephfs(); /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder getCephfsOrBuilder(); /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ boolean hasFlocker(); /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ io.kubernetes.client.proto.V1.FlockerVolumeSource getFlocker(); /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder(); /** * * *
     * DownwardAPI represents downward API about the pod that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ boolean hasDownwardAPI(); /** * * *
     * DownwardAPI represents downward API about the pod that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ io.kubernetes.client.proto.V1.DownwardAPIVolumeSource getDownwardAPI(); /** * * *
     * DownwardAPI represents downward API about the pod that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder getDownwardAPIOrBuilder(); /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ boolean hasFc(); /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ io.kubernetes.client.proto.V1.FCVolumeSource getFc(); /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder getFcOrBuilder(); /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ boolean hasAzureFile(); /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ io.kubernetes.client.proto.V1.AzureFileVolumeSource getAzureFile(); /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder getAzureFileOrBuilder(); /** * * *
     * ConfigMap represents a configMap that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ boolean hasConfigMap(); /** * * *
     * ConfigMap represents a configMap that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ io.kubernetes.client.proto.V1.ConfigMapVolumeSource getConfigMap(); /** * * *
     * ConfigMap represents a configMap that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder getConfigMapOrBuilder(); /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; */ boolean hasVsphereVolume(); /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; */ io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getVsphereVolume(); /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; */ io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder(); /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ boolean hasQuobyte(); /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ io.kubernetes.client.proto.V1.QuobyteVolumeSource getQuobyte(); /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder(); /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ boolean hasAzureDisk(); /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ io.kubernetes.client.proto.V1.AzureDiskVolumeSource getAzureDisk(); /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder(); /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ boolean hasPhotonPersistentDisk(); /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk(); /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder(); /** * * *
     * Items for all in one resources secrets, configmaps, and downward API
     * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ boolean hasProjected(); /** * * *
     * Items for all in one resources secrets, configmaps, and downward API
     * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ io.kubernetes.client.proto.V1.ProjectedVolumeSource getProjected(); /** * * *
     * Items for all in one resources secrets, configmaps, and downward API
     * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder getProjectedOrBuilder(); /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ boolean hasPortworxVolume(); /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ io.kubernetes.client.proto.V1.PortworxVolumeSource getPortworxVolume(); /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder(); /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ boolean hasScaleIO(); /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ io.kubernetes.client.proto.V1.ScaleIOVolumeSource getScaleIO(); /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder getScaleIOOrBuilder(); /** * * *
     * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ boolean hasStorageos(); /** * * *
     * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ io.kubernetes.client.proto.V1.StorageOSVolumeSource getStorageos(); /** * * *
     * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder getStorageosOrBuilder(); /** * * *
     * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ boolean hasCsi(); /** * * *
     * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ io.kubernetes.client.proto.V1.CSIVolumeSource getCsi(); /** * * *
     * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder getCsiOrBuilder(); /** * * *
     * Ephemeral represents a volume that is handled by a cluster storage driver.
     * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
     * and deleted when the pod is removed.
     * Use this if:
     * a) the volume is only needed while the pod runs,
     * b) features of normal volumes like restoring from snapshot or capacity
     *    tracking are needed,
     * c) the storage driver is specified through a storage class, and
     * d) the storage driver supports dynamic volume provisioning through
     *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
     *    information on the connection between this volume type
     *    and PersistentVolumeClaim).
     * Use PersistentVolumeClaim or one of the vendor-specific
     * APIs for volumes that persist for longer than the lifecycle
     * of an individual pod.
     * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
     * be used that way - see the documentation of the driver for
     * more information.
     * A pod can use both types of ephemeral volumes and
     * persistent volumes at the same time.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ boolean hasEphemeral(); /** * * *
     * Ephemeral represents a volume that is handled by a cluster storage driver.
     * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
     * and deleted when the pod is removed.
     * Use this if:
     * a) the volume is only needed while the pod runs,
     * b) features of normal volumes like restoring from snapshot or capacity
     *    tracking are needed,
     * c) the storage driver is specified through a storage class, and
     * d) the storage driver supports dynamic volume provisioning through
     *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
     *    information on the connection between this volume type
     *    and PersistentVolumeClaim).
     * Use PersistentVolumeClaim or one of the vendor-specific
     * APIs for volumes that persist for longer than the lifecycle
     * of an individual pod.
     * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
     * be used that way - see the documentation of the driver for
     * more information.
     * A pod can use both types of ephemeral volumes and
     * persistent volumes at the same time.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ io.kubernetes.client.proto.V1.EphemeralVolumeSource getEphemeral(); /** * * *
     * Ephemeral represents a volume that is handled by a cluster storage driver.
     * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
     * and deleted when the pod is removed.
     * Use this if:
     * a) the volume is only needed while the pod runs,
     * b) features of normal volumes like restoring from snapshot or capacity
     *    tracking are needed,
     * c) the storage driver is specified through a storage class, and
     * d) the storage driver supports dynamic volume provisioning through
     *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
     *    information on the connection between this volume type
     *    and PersistentVolumeClaim).
     * Use PersistentVolumeClaim or one of the vendor-specific
     * APIs for volumes that persist for longer than the lifecycle
     * of an individual pod.
     * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
     * be used that way - see the documentation of the driver for
     * more information.
     * A pod can use both types of ephemeral volumes and
     * persistent volumes at the same time.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder getEphemeralOrBuilder(); } /** * * *
   * Represents the source of a volume to mount.
   * Only one of its members may be specified.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeSource} */ public static final class VolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VolumeSource) VolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeSource.newBuilder() to construct. private VolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeSource() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeSource( 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.V1.HostPathVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = hostPath_.toBuilder(); } hostPath_ = input.readMessage( io.kubernetes.client.proto.V1.HostPathVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hostPath_); hostPath_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = emptyDir_.toBuilder(); } emptyDir_ = input.readMessage( io.kubernetes.client.proto.V1.EmptyDirVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(emptyDir_); emptyDir_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = gcePersistentDisk_.toBuilder(); } gcePersistentDisk_ = input.readMessage( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(gcePersistentDisk_); gcePersistentDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = awsElasticBlockStore_.toBuilder(); } awsElasticBlockStore_ = input.readMessage( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(awsElasticBlockStore_); awsElasticBlockStore_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = gitRepo_.toBuilder(); } gitRepo_ = input.readMessage( io.kubernetes.client.proto.V1.GitRepoVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(gitRepo_); gitRepo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { io.kubernetes.client.proto.V1.SecretVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = secret_.toBuilder(); } secret_ = input.readMessage( io.kubernetes.client.proto.V1.SecretVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secret_); secret_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { io.kubernetes.client.proto.V1.NFSVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = nfs_.toBuilder(); } nfs_ = input.readMessage( io.kubernetes.client.proto.V1.NFSVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nfs_); nfs_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = iscsi_.toBuilder(); } iscsi_ = input.readMessage( io.kubernetes.client.proto.V1.ISCSIVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(iscsi_); iscsi_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 74: { io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = glusterfs_.toBuilder(); } glusterfs_ = input.readMessage( io.kubernetes.client.proto.V1.GlusterfsVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(glusterfs_); glusterfs_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 82: { io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = persistentVolumeClaim_.toBuilder(); } persistentVolumeClaim_ = input.readMessage( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(persistentVolumeClaim_); persistentVolumeClaim_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 90: { io.kubernetes.client.proto.V1.RBDVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = rbd_.toBuilder(); } rbd_ = input.readMessage( io.kubernetes.client.proto.V1.RBDVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rbd_); rbd_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 98: { io.kubernetes.client.proto.V1.FlexVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = flexVolume_.toBuilder(); } flexVolume_ = input.readMessage( io.kubernetes.client.proto.V1.FlexVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flexVolume_); flexVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 106: { io.kubernetes.client.proto.V1.CinderVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = cinder_.toBuilder(); } cinder_ = input.readMessage( io.kubernetes.client.proto.V1.CinderVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cinder_); cinder_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 114: { io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00002000) == 0x00002000)) { subBuilder = cephfs_.toBuilder(); } cephfs_ = input.readMessage( io.kubernetes.client.proto.V1.CephFSVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cephfs_); cephfs_ = subBuilder.buildPartial(); } bitField0_ |= 0x00002000; break; } case 122: { io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00004000) == 0x00004000)) { subBuilder = flocker_.toBuilder(); } flocker_ = input.readMessage( io.kubernetes.client.proto.V1.FlockerVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(flocker_); flocker_ = subBuilder.buildPartial(); } bitField0_ |= 0x00004000; break; } case 130: { io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00008000) == 0x00008000)) { subBuilder = downwardAPI_.toBuilder(); } downwardAPI_ = input.readMessage( io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(downwardAPI_); downwardAPI_ = subBuilder.buildPartial(); } bitField0_ |= 0x00008000; break; } case 138: { io.kubernetes.client.proto.V1.FCVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00010000) == 0x00010000)) { subBuilder = fc_.toBuilder(); } fc_ = input.readMessage( io.kubernetes.client.proto.V1.FCVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fc_); fc_ = subBuilder.buildPartial(); } bitField0_ |= 0x00010000; break; } case 146: { io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00020000) == 0x00020000)) { subBuilder = azureFile_.toBuilder(); } azureFile_ = input.readMessage( io.kubernetes.client.proto.V1.AzureFileVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(azureFile_); azureFile_ = subBuilder.buildPartial(); } bitField0_ |= 0x00020000; break; } case 154: { io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00040000) == 0x00040000)) { subBuilder = configMap_.toBuilder(); } configMap_ = input.readMessage( io.kubernetes.client.proto.V1.ConfigMapVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(configMap_); configMap_ = subBuilder.buildPartial(); } bitField0_ |= 0x00040000; break; } case 162: { io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00080000) == 0x00080000)) { subBuilder = vsphereVolume_.toBuilder(); } vsphereVolume_ = input.readMessage( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vsphereVolume_); vsphereVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x00080000; break; } case 170: { io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00100000) == 0x00100000)) { subBuilder = quobyte_.toBuilder(); } quobyte_ = input.readMessage( io.kubernetes.client.proto.V1.QuobyteVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(quobyte_); quobyte_ = subBuilder.buildPartial(); } bitField0_ |= 0x00100000; break; } case 178: { io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00200000) == 0x00200000)) { subBuilder = azureDisk_.toBuilder(); } azureDisk_ = input.readMessage( io.kubernetes.client.proto.V1.AzureDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(azureDisk_); azureDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00200000; break; } case 186: { io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00400000) == 0x00400000)) { subBuilder = photonPersistentDisk_.toBuilder(); } photonPersistentDisk_ = input.readMessage( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(photonPersistentDisk_); photonPersistentDisk_ = subBuilder.buildPartial(); } bitField0_ |= 0x00400000; break; } case 194: { io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x01000000) == 0x01000000)) { subBuilder = portworxVolume_.toBuilder(); } portworxVolume_ = input.readMessage( io.kubernetes.client.proto.V1.PortworxVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(portworxVolume_); portworxVolume_ = subBuilder.buildPartial(); } bitField0_ |= 0x01000000; break; } case 202: { io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x02000000) == 0x02000000)) { subBuilder = scaleIO_.toBuilder(); } scaleIO_ = input.readMessage( io.kubernetes.client.proto.V1.ScaleIOVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scaleIO_); scaleIO_ = subBuilder.buildPartial(); } bitField0_ |= 0x02000000; break; } case 210: { io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x00800000) == 0x00800000)) { subBuilder = projected_.toBuilder(); } projected_ = input.readMessage( io.kubernetes.client.proto.V1.ProjectedVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(projected_); projected_ = subBuilder.buildPartial(); } bitField0_ |= 0x00800000; break; } case 218: { io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x04000000) == 0x04000000)) { subBuilder = storageos_.toBuilder(); } storageos_ = input.readMessage( io.kubernetes.client.proto.V1.StorageOSVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storageos_); storageos_ = subBuilder.buildPartial(); } bitField0_ |= 0x04000000; break; } case 226: { io.kubernetes.client.proto.V1.CSIVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x08000000) == 0x08000000)) { subBuilder = csi_.toBuilder(); } csi_ = input.readMessage( io.kubernetes.client.proto.V1.CSIVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(csi_); csi_ = subBuilder.buildPartial(); } bitField0_ |= 0x08000000; break; } case 234: { io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder subBuilder = null; if (((bitField0_ & 0x10000000) == 0x10000000)) { subBuilder = ephemeral_.toBuilder(); } ephemeral_ = input.readMessage( io.kubernetes.client.proto.V1.EphemeralVolumeSource.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ephemeral_); ephemeral_ = subBuilder.buildPartial(); } bitField0_ |= 0x10000000; 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 .V1 .internal_static_k8s_io_api_core_v1_VolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeSource.class, io.kubernetes.client.proto.V1.VolumeSource.Builder.class); } private int bitField0_; public static final int HOSTPATH_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1.HostPathVolumeSource hostPath_; /** * * *
     * HostPath represents a pre-existing file or directory on the host
     * machine that is directly exposed to the container. This is generally
     * used for system agents or other privileged things that are allowed
     * to see the host machine. Most containers will NOT need this.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * ---
     * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
     * mount host directories as read/write.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * HostPath represents a pre-existing file or directory on the host
     * machine that is directly exposed to the container. This is generally
     * used for system agents or other privileged things that are allowed
     * to see the host machine. Most containers will NOT need this.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * ---
     * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
     * mount host directories as read/write.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public io.kubernetes.client.proto.V1.HostPathVolumeSource getHostPath() { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } /** * * *
     * HostPath represents a pre-existing file or directory on the host
     * machine that is directly exposed to the container. This is generally
     * used for system agents or other privileged things that are allowed
     * to see the host machine. Most containers will NOT need this.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
     * ---
     * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
     * mount host directories as read/write.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder getHostPathOrBuilder() { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } public static final int EMPTYDIR_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.EmptyDirVolumeSource emptyDir_; /** * * *
     * EmptyDir represents a temporary directory that shares a pod's lifetime.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public boolean hasEmptyDir() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * EmptyDir represents a temporary directory that shares a pod's lifetime.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public io.kubernetes.client.proto.V1.EmptyDirVolumeSource getEmptyDir() { return emptyDir_ == null ? io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance() : emptyDir_; } /** * * *
     * EmptyDir represents a temporary directory that shares a pod's lifetime.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder() { return emptyDir_ == null ? io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance() : emptyDir_; } public static final int GCEPERSISTENTDISK_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource gcePersistentDisk_; /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public boolean hasGcePersistentDisk() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } /** * * *
     * GCEPersistentDisk represents a GCE Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder() { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } public static final int AWSELASTICBLOCKSTORE_FIELD_NUMBER = 4; private io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore_; /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public boolean hasAwsElasticBlockStore() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } /** * * *
     * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder() { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } public static final int GITREPO_FIELD_NUMBER = 5; private io.kubernetes.client.proto.V1.GitRepoVolumeSource gitRepo_; /** * * *
     * GitRepo represents a git repository at a particular revision.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public boolean hasGitRepo() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * GitRepo represents a git repository at a particular revision.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public io.kubernetes.client.proto.V1.GitRepoVolumeSource getGitRepo() { return gitRepo_ == null ? io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance() : gitRepo_; } /** * * *
     * GitRepo represents a git repository at a particular revision.
     * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
     * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
     * into the Pod's container.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder getGitRepoOrBuilder() { return gitRepo_ == null ? io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance() : gitRepo_; } public static final int SECRET_FIELD_NUMBER = 6; private io.kubernetes.client.proto.V1.SecretVolumeSource secret_; /** * * *
     * Secret represents a secret that should populate this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public boolean hasSecret() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * Secret represents a secret that should populate this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public io.kubernetes.client.proto.V1.SecretVolumeSource getSecret() { return secret_ == null ? io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance() : secret_; } /** * * *
     * Secret represents a secret that should populate this volume.
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder getSecretOrBuilder() { return secret_ == null ? io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance() : secret_; } public static final int NFS_FIELD_NUMBER = 7; private io.kubernetes.client.proto.V1.NFSVolumeSource nfs_; /** * * *
     * NFS represents an NFS mount on the host that shares a pod's lifetime
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public boolean hasNfs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * NFS represents an NFS mount on the host that shares a pod's lifetime
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public io.kubernetes.client.proto.V1.NFSVolumeSource getNfs() { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } /** * * *
     * NFS represents an NFS mount on the host that shares a pod's lifetime
     * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
     * +optional
     * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder getNfsOrBuilder() { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } public static final int ISCSI_FIELD_NUMBER = 8; private io.kubernetes.client.proto.V1.ISCSIVolumeSource iscsi_; /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://examples.k8s.io/volumes/iscsi/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public boolean hasIscsi() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://examples.k8s.io/volumes/iscsi/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public io.kubernetes.client.proto.V1.ISCSIVolumeSource getIscsi() { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance() : iscsi_; } /** * * *
     * ISCSI represents an ISCSI Disk resource that is attached to a
     * kubelet's host machine and then exposed to the pod.
     * More info: https://examples.k8s.io/volumes/iscsi/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder getIscsiOrBuilder() { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance() : iscsi_; } public static final int GLUSTERFS_FIELD_NUMBER = 9; private io.kubernetes.client.proto.V1.GlusterfsVolumeSource glusterfs_; /** * * *
     * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public boolean hasGlusterfs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public io.kubernetes.client.proto.V1.GlusterfsVolumeSource getGlusterfs() { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance() : glusterfs_; } /** * * *
     * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/glusterfs/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder getGlusterfsOrBuilder() { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance() : glusterfs_; } public static final int PERSISTENTVOLUMECLAIM_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource persistentVolumeClaim_; /** * * *
     * PersistentVolumeClaimVolumeSource represents a reference to a
     * PersistentVolumeClaim in the same namespace.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public boolean hasPersistentVolumeClaim() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * PersistentVolumeClaimVolumeSource represents a reference to a
     * PersistentVolumeClaim in the same namespace.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { return persistentVolumeClaim_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.getDefaultInstance() : persistentVolumeClaim_; } /** * * *
     * PersistentVolumeClaimVolumeSource represents a reference to a
     * PersistentVolumeClaim in the same namespace.
     * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
     * +optional
     * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder getPersistentVolumeClaimOrBuilder() { return persistentVolumeClaim_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.getDefaultInstance() : persistentVolumeClaim_; } public static final int RBD_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1.RBDVolumeSource rbd_; /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public boolean hasRbd() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public io.kubernetes.client.proto.V1.RBDVolumeSource getRbd() { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance() : rbd_; } /** * * *
     * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
     * More info: https://examples.k8s.io/volumes/rbd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder getRbdOrBuilder() { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance() : rbd_; } public static final int FLEXVOLUME_FIELD_NUMBER = 12; private io.kubernetes.client.proto.V1.FlexVolumeSource flexVolume_; /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public boolean hasFlexVolume() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexVolumeSource getFlexVolume() { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance() : flexVolume_; } /** * * *
     * FlexVolume represents a generic volume resource that is
     * provisioned/attached using an exec based plugin.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder getFlexVolumeOrBuilder() { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance() : flexVolume_; } public static final int CINDER_FIELD_NUMBER = 13; private io.kubernetes.client.proto.V1.CinderVolumeSource cinder_; /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public boolean hasCinder() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public io.kubernetes.client.proto.V1.CinderVolumeSource getCinder() { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance() : cinder_; } /** * * *
     * Cinder represents a cinder volume attached and mounted on kubelets host machine.
     * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder getCinderOrBuilder() { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance() : cinder_; } public static final int CEPHFS_FIELD_NUMBER = 14; private io.kubernetes.client.proto.V1.CephFSVolumeSource cephfs_; /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public boolean hasCephfs() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public io.kubernetes.client.proto.V1.CephFSVolumeSource getCephfs() { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance() : cephfs_; } /** * * *
     * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder getCephfsOrBuilder() { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance() : cephfs_; } public static final int FLOCKER_FIELD_NUMBER = 15; private io.kubernetes.client.proto.V1.FlockerVolumeSource flocker_; /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public boolean hasFlocker() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public io.kubernetes.client.proto.V1.FlockerVolumeSource getFlocker() { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } /** * * *
     * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder() { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } public static final int DOWNWARDAPI_FIELD_NUMBER = 16; private io.kubernetes.client.proto.V1.DownwardAPIVolumeSource downwardAPI_; /** * * *
     * DownwardAPI represents downward API about the pod that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public boolean hasDownwardAPI() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
     * DownwardAPI represents downward API about the pod that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeSource getDownwardAPI() { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance() : downwardAPI_; } /** * * *
     * DownwardAPI represents downward API about the pod that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder getDownwardAPIOrBuilder() { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance() : downwardAPI_; } public static final int FC_FIELD_NUMBER = 17; private io.kubernetes.client.proto.V1.FCVolumeSource fc_; /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public boolean hasFc() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public io.kubernetes.client.proto.V1.FCVolumeSource getFc() { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } /** * * *
     * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder getFcOrBuilder() { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } public static final int AZUREFILE_FIELD_NUMBER = 18; private io.kubernetes.client.proto.V1.AzureFileVolumeSource azureFile_; /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public boolean hasAzureFile() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public io.kubernetes.client.proto.V1.AzureFileVolumeSource getAzureFile() { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance() : azureFile_; } /** * * *
     * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder getAzureFileOrBuilder() { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance() : azureFile_; } public static final int CONFIGMAP_FIELD_NUMBER = 19; private io.kubernetes.client.proto.V1.ConfigMapVolumeSource configMap_; /** * * *
     * ConfigMap represents a configMap that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public boolean hasConfigMap() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
     * ConfigMap represents a configMap that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public io.kubernetes.client.proto.V1.ConfigMapVolumeSource getConfigMap() { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance() : configMap_; } /** * * *
     * ConfigMap represents a configMap that should populate this volume
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder getConfigMapOrBuilder() { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance() : configMap_; } public static final int VSPHEREVOLUME_FIELD_NUMBER = 20; private io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource vsphereVolume_; /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; */ public boolean hasVsphereVolume() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } /** * * *
     * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder() { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } public static final int QUOBYTE_FIELD_NUMBER = 21; private io.kubernetes.client.proto.V1.QuobyteVolumeSource quobyte_; /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public boolean hasQuobyte() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSource getQuobyte() { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } /** * * *
     * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
     * +optional
     * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder() { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } public static final int AZUREDISK_FIELD_NUMBER = 22; private io.kubernetes.client.proto.V1.AzureDiskVolumeSource azureDisk_; /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public boolean hasAzureDisk() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getAzureDisk() { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } /** * * *
     * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder() { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } public static final int PHOTONPERSISTENTDISK_FIELD_NUMBER = 23; private io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource photonPersistentDisk_; /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public boolean hasPhotonPersistentDisk() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } /** * * *
     * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
     * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder() { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } public static final int PROJECTED_FIELD_NUMBER = 26; private io.kubernetes.client.proto.V1.ProjectedVolumeSource projected_; /** * * *
     * Items for all in one resources secrets, configmaps, and downward API
     * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public boolean hasProjected() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * * *
     * Items for all in one resources secrets, configmaps, and downward API
     * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public io.kubernetes.client.proto.V1.ProjectedVolumeSource getProjected() { return projected_ == null ? io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance() : projected_; } /** * * *
     * Items for all in one resources secrets, configmaps, and downward API
     * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder getProjectedOrBuilder() { return projected_ == null ? io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance() : projected_; } public static final int PORTWORXVOLUME_FIELD_NUMBER = 24; private io.kubernetes.client.proto.V1.PortworxVolumeSource portworxVolume_; /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public boolean hasPortworxVolume() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public io.kubernetes.client.proto.V1.PortworxVolumeSource getPortworxVolume() { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } /** * * *
     * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
     * +optional
     * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder() { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } public static final int SCALEIO_FIELD_NUMBER = 25; private io.kubernetes.client.proto.V1.ScaleIOVolumeSource scaleIO_; /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public boolean hasScaleIO() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public io.kubernetes.client.proto.V1.ScaleIOVolumeSource getScaleIO() { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance() : scaleIO_; } /** * * *
     * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder getScaleIOOrBuilder() { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance() : scaleIO_; } public static final int STORAGEOS_FIELD_NUMBER = 27; private io.kubernetes.client.proto.V1.StorageOSVolumeSource storageos_; /** * * *
     * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public boolean hasStorageos() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * * *
     * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public io.kubernetes.client.proto.V1.StorageOSVolumeSource getStorageos() { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance() : storageos_; } /** * * *
     * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder getStorageosOrBuilder() { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance() : storageos_; } public static final int CSI_FIELD_NUMBER = 28; private io.kubernetes.client.proto.V1.CSIVolumeSource csi_; /** * * *
     * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public boolean hasCsi() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * * *
     * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public io.kubernetes.client.proto.V1.CSIVolumeSource getCsi() { return csi_ == null ? io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance() : csi_; } /** * * *
     * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
     * +optional
     * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder getCsiOrBuilder() { return csi_ == null ? io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance() : csi_; } public static final int EPHEMERAL_FIELD_NUMBER = 29; private io.kubernetes.client.proto.V1.EphemeralVolumeSource ephemeral_; /** * * *
     * Ephemeral represents a volume that is handled by a cluster storage driver.
     * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
     * and deleted when the pod is removed.
     * Use this if:
     * a) the volume is only needed while the pod runs,
     * b) features of normal volumes like restoring from snapshot or capacity
     *    tracking are needed,
     * c) the storage driver is specified through a storage class, and
     * d) the storage driver supports dynamic volume provisioning through
     *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
     *    information on the connection between this volume type
     *    and PersistentVolumeClaim).
     * Use PersistentVolumeClaim or one of the vendor-specific
     * APIs for volumes that persist for longer than the lifecycle
     * of an individual pod.
     * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
     * be used that way - see the documentation of the driver for
     * more information.
     * A pod can use both types of ephemeral volumes and
     * persistent volumes at the same time.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public boolean hasEphemeral() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * * *
     * Ephemeral represents a volume that is handled by a cluster storage driver.
     * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
     * and deleted when the pod is removed.
     * Use this if:
     * a) the volume is only needed while the pod runs,
     * b) features of normal volumes like restoring from snapshot or capacity
     *    tracking are needed,
     * c) the storage driver is specified through a storage class, and
     * d) the storage driver supports dynamic volume provisioning through
     *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
     *    information on the connection between this volume type
     *    and PersistentVolumeClaim).
     * Use PersistentVolumeClaim or one of the vendor-specific
     * APIs for volumes that persist for longer than the lifecycle
     * of an individual pod.
     * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
     * be used that way - see the documentation of the driver for
     * more information.
     * A pod can use both types of ephemeral volumes and
     * persistent volumes at the same time.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public io.kubernetes.client.proto.V1.EphemeralVolumeSource getEphemeral() { return ephemeral_ == null ? io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance() : ephemeral_; } /** * * *
     * Ephemeral represents a volume that is handled by a cluster storage driver.
     * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
     * and deleted when the pod is removed.
     * Use this if:
     * a) the volume is only needed while the pod runs,
     * b) features of normal volumes like restoring from snapshot or capacity
     *    tracking are needed,
     * c) the storage driver is specified through a storage class, and
     * d) the storage driver supports dynamic volume provisioning through
     *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
     *    information on the connection between this volume type
     *    and PersistentVolumeClaim).
     * Use PersistentVolumeClaim or one of the vendor-specific
     * APIs for volumes that persist for longer than the lifecycle
     * of an individual pod.
     * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
     * be used that way - see the documentation of the driver for
     * more information.
     * A pod can use both types of ephemeral volumes and
     * persistent volumes at the same time.
     * +optional
     * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder getEphemeralOrBuilder() { return ephemeral_ == null ? io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance() : ephemeral_; } 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, getHostPath()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getEmptyDir()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getGcePersistentDisk()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getAwsElasticBlockStore()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getGitRepo()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getSecret()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, getNfs()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, getIscsi()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(9, getGlusterfs()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(10, getPersistentVolumeClaim()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(11, getRbd()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(12, getFlexVolume()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(13, getCinder()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeMessage(14, getCephfs()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeMessage(15, getFlocker()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeMessage(16, getDownwardAPI()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeMessage(17, getFc()); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeMessage(18, getAzureFile()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeMessage(19, getConfigMap()); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeMessage(20, getVsphereVolume()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeMessage(21, getQuobyte()); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeMessage(22, getAzureDisk()); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeMessage(23, getPhotonPersistentDisk()); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeMessage(24, getPortworxVolume()); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeMessage(25, getScaleIO()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeMessage(26, getProjected()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeMessage(27, getStorageos()); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeMessage(28, getCsi()); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeMessage(29, getEphemeral()); } 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, getHostPath()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEmptyDir()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGcePersistentDisk()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAwsElasticBlockStore()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getGitRepo()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSecret()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getNfs()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIscsi()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getGlusterfs()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getPersistentVolumeClaim()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRbd()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getFlexVolume()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCinder()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCephfs()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getFlocker()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getDownwardAPI()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getFc()); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getAzureFile()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getConfigMap()); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getVsphereVolume()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getQuobyte()); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getAzureDisk()); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getPhotonPersistentDisk()); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getPortworxVolume()); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getScaleIO()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getProjected()); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getStorageos()); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getCsi()); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getEphemeral()); } 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.V1.VolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.VolumeSource other = (io.kubernetes.client.proto.V1.VolumeSource) obj; boolean result = true; result = result && (hasHostPath() == other.hasHostPath()); if (hasHostPath()) { result = result && getHostPath().equals(other.getHostPath()); } result = result && (hasEmptyDir() == other.hasEmptyDir()); if (hasEmptyDir()) { result = result && getEmptyDir().equals(other.getEmptyDir()); } result = result && (hasGcePersistentDisk() == other.hasGcePersistentDisk()); if (hasGcePersistentDisk()) { result = result && getGcePersistentDisk().equals(other.getGcePersistentDisk()); } result = result && (hasAwsElasticBlockStore() == other.hasAwsElasticBlockStore()); if (hasAwsElasticBlockStore()) { result = result && getAwsElasticBlockStore().equals(other.getAwsElasticBlockStore()); } result = result && (hasGitRepo() == other.hasGitRepo()); if (hasGitRepo()) { result = result && getGitRepo().equals(other.getGitRepo()); } result = result && (hasSecret() == other.hasSecret()); if (hasSecret()) { result = result && getSecret().equals(other.getSecret()); } result = result && (hasNfs() == other.hasNfs()); if (hasNfs()) { result = result && getNfs().equals(other.getNfs()); } result = result && (hasIscsi() == other.hasIscsi()); if (hasIscsi()) { result = result && getIscsi().equals(other.getIscsi()); } result = result && (hasGlusterfs() == other.hasGlusterfs()); if (hasGlusterfs()) { result = result && getGlusterfs().equals(other.getGlusterfs()); } result = result && (hasPersistentVolumeClaim() == other.hasPersistentVolumeClaim()); if (hasPersistentVolumeClaim()) { result = result && getPersistentVolumeClaim().equals(other.getPersistentVolumeClaim()); } result = result && (hasRbd() == other.hasRbd()); if (hasRbd()) { result = result && getRbd().equals(other.getRbd()); } result = result && (hasFlexVolume() == other.hasFlexVolume()); if (hasFlexVolume()) { result = result && getFlexVolume().equals(other.getFlexVolume()); } result = result && (hasCinder() == other.hasCinder()); if (hasCinder()) { result = result && getCinder().equals(other.getCinder()); } result = result && (hasCephfs() == other.hasCephfs()); if (hasCephfs()) { result = result && getCephfs().equals(other.getCephfs()); } result = result && (hasFlocker() == other.hasFlocker()); if (hasFlocker()) { result = result && getFlocker().equals(other.getFlocker()); } result = result && (hasDownwardAPI() == other.hasDownwardAPI()); if (hasDownwardAPI()) { result = result && getDownwardAPI().equals(other.getDownwardAPI()); } result = result && (hasFc() == other.hasFc()); if (hasFc()) { result = result && getFc().equals(other.getFc()); } result = result && (hasAzureFile() == other.hasAzureFile()); if (hasAzureFile()) { result = result && getAzureFile().equals(other.getAzureFile()); } result = result && (hasConfigMap() == other.hasConfigMap()); if (hasConfigMap()) { result = result && getConfigMap().equals(other.getConfigMap()); } result = result && (hasVsphereVolume() == other.hasVsphereVolume()); if (hasVsphereVolume()) { result = result && getVsphereVolume().equals(other.getVsphereVolume()); } result = result && (hasQuobyte() == other.hasQuobyte()); if (hasQuobyte()) { result = result && getQuobyte().equals(other.getQuobyte()); } result = result && (hasAzureDisk() == other.hasAzureDisk()); if (hasAzureDisk()) { result = result && getAzureDisk().equals(other.getAzureDisk()); } result = result && (hasPhotonPersistentDisk() == other.hasPhotonPersistentDisk()); if (hasPhotonPersistentDisk()) { result = result && getPhotonPersistentDisk().equals(other.getPhotonPersistentDisk()); } result = result && (hasProjected() == other.hasProjected()); if (hasProjected()) { result = result && getProjected().equals(other.getProjected()); } result = result && (hasPortworxVolume() == other.hasPortworxVolume()); if (hasPortworxVolume()) { result = result && getPortworxVolume().equals(other.getPortworxVolume()); } result = result && (hasScaleIO() == other.hasScaleIO()); if (hasScaleIO()) { result = result && getScaleIO().equals(other.getScaleIO()); } result = result && (hasStorageos() == other.hasStorageos()); if (hasStorageos()) { result = result && getStorageos().equals(other.getStorageos()); } result = result && (hasCsi() == other.hasCsi()); if (hasCsi()) { result = result && getCsi().equals(other.getCsi()); } result = result && (hasEphemeral() == other.hasEphemeral()); if (hasEphemeral()) { result = result && getEphemeral().equals(other.getEphemeral()); } 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 (hasHostPath()) { hash = (37 * hash) + HOSTPATH_FIELD_NUMBER; hash = (53 * hash) + getHostPath().hashCode(); } if (hasEmptyDir()) { hash = (37 * hash) + EMPTYDIR_FIELD_NUMBER; hash = (53 * hash) + getEmptyDir().hashCode(); } if (hasGcePersistentDisk()) { hash = (37 * hash) + GCEPERSISTENTDISK_FIELD_NUMBER; hash = (53 * hash) + getGcePersistentDisk().hashCode(); } if (hasAwsElasticBlockStore()) { hash = (37 * hash) + AWSELASTICBLOCKSTORE_FIELD_NUMBER; hash = (53 * hash) + getAwsElasticBlockStore().hashCode(); } if (hasGitRepo()) { hash = (37 * hash) + GITREPO_FIELD_NUMBER; hash = (53 * hash) + getGitRepo().hashCode(); } if (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + getSecret().hashCode(); } if (hasNfs()) { hash = (37 * hash) + NFS_FIELD_NUMBER; hash = (53 * hash) + getNfs().hashCode(); } if (hasIscsi()) { hash = (37 * hash) + ISCSI_FIELD_NUMBER; hash = (53 * hash) + getIscsi().hashCode(); } if (hasGlusterfs()) { hash = (37 * hash) + GLUSTERFS_FIELD_NUMBER; hash = (53 * hash) + getGlusterfs().hashCode(); } if (hasPersistentVolumeClaim()) { hash = (37 * hash) + PERSISTENTVOLUMECLAIM_FIELD_NUMBER; hash = (53 * hash) + getPersistentVolumeClaim().hashCode(); } if (hasRbd()) { hash = (37 * hash) + RBD_FIELD_NUMBER; hash = (53 * hash) + getRbd().hashCode(); } if (hasFlexVolume()) { hash = (37 * hash) + FLEXVOLUME_FIELD_NUMBER; hash = (53 * hash) + getFlexVolume().hashCode(); } if (hasCinder()) { hash = (37 * hash) + CINDER_FIELD_NUMBER; hash = (53 * hash) + getCinder().hashCode(); } if (hasCephfs()) { hash = (37 * hash) + CEPHFS_FIELD_NUMBER; hash = (53 * hash) + getCephfs().hashCode(); } if (hasFlocker()) { hash = (37 * hash) + FLOCKER_FIELD_NUMBER; hash = (53 * hash) + getFlocker().hashCode(); } if (hasDownwardAPI()) { hash = (37 * hash) + DOWNWARDAPI_FIELD_NUMBER; hash = (53 * hash) + getDownwardAPI().hashCode(); } if (hasFc()) { hash = (37 * hash) + FC_FIELD_NUMBER; hash = (53 * hash) + getFc().hashCode(); } if (hasAzureFile()) { hash = (37 * hash) + AZUREFILE_FIELD_NUMBER; hash = (53 * hash) + getAzureFile().hashCode(); } if (hasConfigMap()) { hash = (37 * hash) + CONFIGMAP_FIELD_NUMBER; hash = (53 * hash) + getConfigMap().hashCode(); } if (hasVsphereVolume()) { hash = (37 * hash) + VSPHEREVOLUME_FIELD_NUMBER; hash = (53 * hash) + getVsphereVolume().hashCode(); } if (hasQuobyte()) { hash = (37 * hash) + QUOBYTE_FIELD_NUMBER; hash = (53 * hash) + getQuobyte().hashCode(); } if (hasAzureDisk()) { hash = (37 * hash) + AZUREDISK_FIELD_NUMBER; hash = (53 * hash) + getAzureDisk().hashCode(); } if (hasPhotonPersistentDisk()) { hash = (37 * hash) + PHOTONPERSISTENTDISK_FIELD_NUMBER; hash = (53 * hash) + getPhotonPersistentDisk().hashCode(); } if (hasProjected()) { hash = (37 * hash) + PROJECTED_FIELD_NUMBER; hash = (53 * hash) + getProjected().hashCode(); } if (hasPortworxVolume()) { hash = (37 * hash) + PORTWORXVOLUME_FIELD_NUMBER; hash = (53 * hash) + getPortworxVolume().hashCode(); } if (hasScaleIO()) { hash = (37 * hash) + SCALEIO_FIELD_NUMBER; hash = (53 * hash) + getScaleIO().hashCode(); } if (hasStorageos()) { hash = (37 * hash) + STORAGEOS_FIELD_NUMBER; hash = (53 * hash) + getStorageos().hashCode(); } if (hasCsi()) { hash = (37 * hash) + CSI_FIELD_NUMBER; hash = (53 * hash) + getCsi().hashCode(); } if (hasEphemeral()) { hash = (37 * hash) + EPHEMERAL_FIELD_NUMBER; hash = (53 * hash) + getEphemeral().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.VolumeSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeSource 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.V1.VolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeSource 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.V1.VolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.VolumeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeSource 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.V1.VolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeSource 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.V1.VolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VolumeSource 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.V1.VolumeSource 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; } /** * * *
     * Represents the source of a volume to mount.
     * Only one of its members may be specified.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.VolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeSource) io.kubernetes.client.proto.V1.VolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VolumeSource.class, io.kubernetes.client.proto.V1.VolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.VolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHostPathFieldBuilder(); getEmptyDirFieldBuilder(); getGcePersistentDiskFieldBuilder(); getAwsElasticBlockStoreFieldBuilder(); getGitRepoFieldBuilder(); getSecretFieldBuilder(); getNfsFieldBuilder(); getIscsiFieldBuilder(); getGlusterfsFieldBuilder(); getPersistentVolumeClaimFieldBuilder(); getRbdFieldBuilder(); getFlexVolumeFieldBuilder(); getCinderFieldBuilder(); getCephfsFieldBuilder(); getFlockerFieldBuilder(); getDownwardAPIFieldBuilder(); getFcFieldBuilder(); getAzureFileFieldBuilder(); getConfigMapFieldBuilder(); getVsphereVolumeFieldBuilder(); getQuobyteFieldBuilder(); getAzureDiskFieldBuilder(); getPhotonPersistentDiskFieldBuilder(); getProjectedFieldBuilder(); getPortworxVolumeFieldBuilder(); getScaleIOFieldBuilder(); getStorageosFieldBuilder(); getCsiFieldBuilder(); getEphemeralFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (hostPathBuilder_ == null) { hostPath_ = null; } else { hostPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (emptyDirBuilder_ == null) { emptyDir_ = null; } else { emptyDirBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (gcePersistentDiskBuilder_ == null) { gcePersistentDisk_ = null; } else { gcePersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStore_ = null; } else { awsElasticBlockStoreBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (gitRepoBuilder_ == null) { gitRepo_ = null; } else { gitRepoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (secretBuilder_ == null) { secret_ = null; } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (nfsBuilder_ == null) { nfs_ = null; } else { nfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (iscsiBuilder_ == null) { iscsi_ = null; } else { iscsiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (glusterfsBuilder_ == null) { glusterfs_ = null; } else { glusterfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (persistentVolumeClaimBuilder_ == null) { persistentVolumeClaim_ = null; } else { persistentVolumeClaimBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (rbdBuilder_ == null) { rbd_ = null; } else { rbdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (flexVolumeBuilder_ == null) { flexVolume_ = null; } else { flexVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (cinderBuilder_ == null) { cinder_ = null; } else { cinderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (cephfsBuilder_ == null) { cephfs_ = null; } else { cephfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (flockerBuilder_ == null) { flocker_ = null; } else { flockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); if (downwardAPIBuilder_ == null) { downwardAPI_ = null; } else { downwardAPIBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); if (fcBuilder_ == null) { fc_ = null; } else { fcBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); if (azureFileBuilder_ == null) { azureFile_ = null; } else { azureFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); if (configMapBuilder_ == null) { configMap_ = null; } else { configMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); if (vsphereVolumeBuilder_ == null) { vsphereVolume_ = null; } else { vsphereVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); if (quobyteBuilder_ == null) { quobyte_ = null; } else { quobyteBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); if (azureDiskBuilder_ == null) { azureDisk_ = null; } else { azureDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); if (photonPersistentDiskBuilder_ == null) { photonPersistentDisk_ = null; } else { photonPersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00400000); if (projectedBuilder_ == null) { projected_ = null; } else { projectedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00800000); if (portworxVolumeBuilder_ == null) { portworxVolume_ = null; } else { portworxVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); if (scaleIOBuilder_ == null) { scaleIO_ = null; } else { scaleIOBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); if (storageosBuilder_ == null) { storageos_ = null; } else { storageosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); if (csiBuilder_ == null) { csi_ = null; } else { csiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); if (ephemeralBuilder_ == null) { ephemeral_ = null; } else { ephemeralBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeSource build() { io.kubernetes.client.proto.V1.VolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.VolumeSource buildPartial() { io.kubernetes.client.proto.V1.VolumeSource result = new io.kubernetes.client.proto.V1.VolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (hostPathBuilder_ == null) { result.hostPath_ = hostPath_; } else { result.hostPath_ = hostPathBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (emptyDirBuilder_ == null) { result.emptyDir_ = emptyDir_; } else { result.emptyDir_ = emptyDirBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (gcePersistentDiskBuilder_ == null) { result.gcePersistentDisk_ = gcePersistentDisk_; } else { result.gcePersistentDisk_ = gcePersistentDiskBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (awsElasticBlockStoreBuilder_ == null) { result.awsElasticBlockStore_ = awsElasticBlockStore_; } else { result.awsElasticBlockStore_ = awsElasticBlockStoreBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (gitRepoBuilder_ == null) { result.gitRepo_ = gitRepo_; } else { result.gitRepo_ = gitRepoBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (secretBuilder_ == null) { result.secret_ = secret_; } else { result.secret_ = secretBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (nfsBuilder_ == null) { result.nfs_ = nfs_; } else { result.nfs_ = nfsBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (iscsiBuilder_ == null) { result.iscsi_ = iscsi_; } else { result.iscsi_ = iscsiBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (glusterfsBuilder_ == null) { result.glusterfs_ = glusterfs_; } else { result.glusterfs_ = glusterfsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (persistentVolumeClaimBuilder_ == null) { result.persistentVolumeClaim_ = persistentVolumeClaim_; } else { result.persistentVolumeClaim_ = persistentVolumeClaimBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (rbdBuilder_ == null) { result.rbd_ = rbd_; } else { result.rbd_ = rbdBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } if (flexVolumeBuilder_ == null) { result.flexVolume_ = flexVolume_; } else { result.flexVolume_ = flexVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } if (cinderBuilder_ == null) { result.cinder_ = cinder_; } else { result.cinder_ = cinderBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } if (cephfsBuilder_ == null) { result.cephfs_ = cephfs_; } else { result.cephfs_ = cephfsBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } if (flockerBuilder_ == null) { result.flocker_ = flocker_; } else { result.flocker_ = flockerBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } if (downwardAPIBuilder_ == null) { result.downwardAPI_ = downwardAPI_; } else { result.downwardAPI_ = downwardAPIBuilder_.build(); } if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } if (fcBuilder_ == null) { result.fc_ = fc_; } else { result.fc_ = fcBuilder_.build(); } if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } if (azureFileBuilder_ == null) { result.azureFile_ = azureFile_; } else { result.azureFile_ = azureFileBuilder_.build(); } if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } if (configMapBuilder_ == null) { result.configMap_ = configMap_; } else { result.configMap_ = configMapBuilder_.build(); } if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00080000; } if (vsphereVolumeBuilder_ == null) { result.vsphereVolume_ = vsphereVolume_; } else { result.vsphereVolume_ = vsphereVolumeBuilder_.build(); } if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00100000; } if (quobyteBuilder_ == null) { result.quobyte_ = quobyte_; } else { result.quobyte_ = quobyteBuilder_.build(); } if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00200000; } if (azureDiskBuilder_ == null) { result.azureDisk_ = azureDisk_; } else { result.azureDisk_ = azureDiskBuilder_.build(); } if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00400000; } if (photonPersistentDiskBuilder_ == null) { result.photonPersistentDisk_ = photonPersistentDisk_; } else { result.photonPersistentDisk_ = photonPersistentDiskBuilder_.build(); } if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00800000; } if (projectedBuilder_ == null) { result.projected_ = projected_; } else { result.projected_ = projectedBuilder_.build(); } if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x01000000; } if (portworxVolumeBuilder_ == null) { result.portworxVolume_ = portworxVolume_; } else { result.portworxVolume_ = portworxVolumeBuilder_.build(); } if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x02000000; } if (scaleIOBuilder_ == null) { result.scaleIO_ = scaleIO_; } else { result.scaleIO_ = scaleIOBuilder_.build(); } if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x04000000; } if (storageosBuilder_ == null) { result.storageos_ = storageos_; } else { result.storageos_ = storageosBuilder_.build(); } if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x08000000; } if (csiBuilder_ == null) { result.csi_ = csi_; } else { result.csi_ = csiBuilder_.build(); } if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x10000000; } if (ephemeralBuilder_ == null) { result.ephemeral_ = ephemeral_; } else { result.ephemeral_ = ephemeralBuilder_.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.V1.VolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.VolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeSource other) { if (other == io.kubernetes.client.proto.V1.VolumeSource.getDefaultInstance()) return this; if (other.hasHostPath()) { mergeHostPath(other.getHostPath()); } if (other.hasEmptyDir()) { mergeEmptyDir(other.getEmptyDir()); } if (other.hasGcePersistentDisk()) { mergeGcePersistentDisk(other.getGcePersistentDisk()); } if (other.hasAwsElasticBlockStore()) { mergeAwsElasticBlockStore(other.getAwsElasticBlockStore()); } if (other.hasGitRepo()) { mergeGitRepo(other.getGitRepo()); } if (other.hasSecret()) { mergeSecret(other.getSecret()); } if (other.hasNfs()) { mergeNfs(other.getNfs()); } if (other.hasIscsi()) { mergeIscsi(other.getIscsi()); } if (other.hasGlusterfs()) { mergeGlusterfs(other.getGlusterfs()); } if (other.hasPersistentVolumeClaim()) { mergePersistentVolumeClaim(other.getPersistentVolumeClaim()); } if (other.hasRbd()) { mergeRbd(other.getRbd()); } if (other.hasFlexVolume()) { mergeFlexVolume(other.getFlexVolume()); } if (other.hasCinder()) { mergeCinder(other.getCinder()); } if (other.hasCephfs()) { mergeCephfs(other.getCephfs()); } if (other.hasFlocker()) { mergeFlocker(other.getFlocker()); } if (other.hasDownwardAPI()) { mergeDownwardAPI(other.getDownwardAPI()); } if (other.hasFc()) { mergeFc(other.getFc()); } if (other.hasAzureFile()) { mergeAzureFile(other.getAzureFile()); } if (other.hasConfigMap()) { mergeConfigMap(other.getConfigMap()); } if (other.hasVsphereVolume()) { mergeVsphereVolume(other.getVsphereVolume()); } if (other.hasQuobyte()) { mergeQuobyte(other.getQuobyte()); } if (other.hasAzureDisk()) { mergeAzureDisk(other.getAzureDisk()); } if (other.hasPhotonPersistentDisk()) { mergePhotonPersistentDisk(other.getPhotonPersistentDisk()); } if (other.hasProjected()) { mergeProjected(other.getProjected()); } if (other.hasPortworxVolume()) { mergePortworxVolume(other.getPortworxVolume()); } if (other.hasScaleIO()) { mergeScaleIO(other.getScaleIO()); } if (other.hasStorageos()) { mergeStorageos(other.getStorageos()); } if (other.hasCsi()) { mergeCsi(other.getCsi()); } if (other.hasEphemeral()) { mergeEphemeral(other.getEphemeral()); } 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.V1.VolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.VolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.V1.HostPathVolumeSource hostPath_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HostPathVolumeSource, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder, io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder> hostPathBuilder_; /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public boolean hasHostPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public io.kubernetes.client.proto.V1.HostPathVolumeSource getHostPath() { if (hostPathBuilder_ == null) { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } else { return hostPathBuilder_.getMessage(); } } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public Builder setHostPath(io.kubernetes.client.proto.V1.HostPathVolumeSource value) { if (hostPathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hostPath_ = value; onChanged(); } else { hostPathBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public Builder setHostPath( io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder builderForValue) { if (hostPathBuilder_ == null) { hostPath_ = builderForValue.build(); onChanged(); } else { hostPathBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public Builder mergeHostPath(io.kubernetes.client.proto.V1.HostPathVolumeSource value) { if (hostPathBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && hostPath_ != null && hostPath_ != io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance()) { hostPath_ = io.kubernetes.client.proto.V1.HostPathVolumeSource.newBuilder(hostPath_) .mergeFrom(value) .buildPartial(); } else { hostPath_ = value; } onChanged(); } else { hostPathBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public Builder clearHostPath() { if (hostPathBuilder_ == null) { hostPath_ = null; onChanged(); } else { hostPathBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder getHostPathBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHostPathFieldBuilder().getBuilder(); } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ public io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder getHostPathOrBuilder() { if (hostPathBuilder_ != null) { return hostPathBuilder_.getMessageOrBuilder(); } else { return hostPath_ == null ? io.kubernetes.client.proto.V1.HostPathVolumeSource.getDefaultInstance() : hostPath_; } } /** * * *
       * HostPath represents a pre-existing file or directory on the host
       * machine that is directly exposed to the container. This is generally
       * used for system agents or other privileged things that are allowed
       * to see the host machine. Most containers will NOT need this.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
       * ---
       * TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
       * mount host directories as read/write.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.HostPathVolumeSource hostPath = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HostPathVolumeSource, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder, io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder> getHostPathFieldBuilder() { if (hostPathBuilder_ == null) { hostPathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.HostPathVolumeSource, io.kubernetes.client.proto.V1.HostPathVolumeSource.Builder, io.kubernetes.client.proto.V1.HostPathVolumeSourceOrBuilder>( getHostPath(), getParentForChildren(), isClean()); hostPath_ = null; } return hostPathBuilder_; } private io.kubernetes.client.proto.V1.EmptyDirVolumeSource emptyDir_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EmptyDirVolumeSource, io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder, io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder> emptyDirBuilder_; /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public boolean hasEmptyDir() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public io.kubernetes.client.proto.V1.EmptyDirVolumeSource getEmptyDir() { if (emptyDirBuilder_ == null) { return emptyDir_ == null ? io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance() : emptyDir_; } else { return emptyDirBuilder_.getMessage(); } } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public Builder setEmptyDir(io.kubernetes.client.proto.V1.EmptyDirVolumeSource value) { if (emptyDirBuilder_ == null) { if (value == null) { throw new NullPointerException(); } emptyDir_ = value; onChanged(); } else { emptyDirBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public Builder setEmptyDir( io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder builderForValue) { if (emptyDirBuilder_ == null) { emptyDir_ = builderForValue.build(); onChanged(); } else { emptyDirBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public Builder mergeEmptyDir(io.kubernetes.client.proto.V1.EmptyDirVolumeSource value) { if (emptyDirBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && emptyDir_ != null && emptyDir_ != io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance()) { emptyDir_ = io.kubernetes.client.proto.V1.EmptyDirVolumeSource.newBuilder(emptyDir_) .mergeFrom(value) .buildPartial(); } else { emptyDir_ = value; } onChanged(); } else { emptyDirBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public Builder clearEmptyDir() { if (emptyDirBuilder_ == null) { emptyDir_ = null; onChanged(); } else { emptyDirBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder getEmptyDirBuilder() { bitField0_ |= 0x00000002; onChanged(); return getEmptyDirFieldBuilder().getBuilder(); } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ public io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder getEmptyDirOrBuilder() { if (emptyDirBuilder_ != null) { return emptyDirBuilder_.getMessageOrBuilder(); } else { return emptyDir_ == null ? io.kubernetes.client.proto.V1.EmptyDirVolumeSource.getDefaultInstance() : emptyDir_; } } /** * * *
       * EmptyDir represents a temporary directory that shares a pod's lifetime.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EmptyDirVolumeSource emptyDir = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EmptyDirVolumeSource, io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder, io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder> getEmptyDirFieldBuilder() { if (emptyDirBuilder_ == null) { emptyDirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EmptyDirVolumeSource, io.kubernetes.client.proto.V1.EmptyDirVolumeSource.Builder, io.kubernetes.client.proto.V1.EmptyDirVolumeSourceOrBuilder>( getEmptyDir(), getParentForChildren(), isClean()); emptyDir_ = null; } return emptyDirBuilder_; } private io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource gcePersistentDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder> gcePersistentDiskBuilder_; /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public boolean hasGcePersistentDisk() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource getGcePersistentDisk() { if (gcePersistentDiskBuilder_ == null) { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } else { return gcePersistentDiskBuilder_.getMessage(); } } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public Builder setGcePersistentDisk( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource value) { if (gcePersistentDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gcePersistentDisk_ = value; onChanged(); } else { gcePersistentDiskBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public Builder setGcePersistentDisk( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder builderForValue) { if (gcePersistentDiskBuilder_ == null) { gcePersistentDisk_ = builderForValue.build(); onChanged(); } else { gcePersistentDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public Builder mergeGcePersistentDisk( io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource value) { if (gcePersistentDiskBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && gcePersistentDisk_ != null && gcePersistentDisk_ != io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource .getDefaultInstance()) { gcePersistentDisk_ = io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.newBuilder( gcePersistentDisk_) .mergeFrom(value) .buildPartial(); } else { gcePersistentDisk_ = value; } onChanged(); } else { gcePersistentDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public Builder clearGcePersistentDisk() { if (gcePersistentDiskBuilder_ == null) { gcePersistentDisk_ = null; onChanged(); } else { gcePersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder getGcePersistentDiskBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGcePersistentDiskFieldBuilder().getBuilder(); } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ public io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder getGcePersistentDiskOrBuilder() { if (gcePersistentDiskBuilder_ != null) { return gcePersistentDiskBuilder_.getMessageOrBuilder(); } else { return gcePersistentDisk_ == null ? io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.getDefaultInstance() : gcePersistentDisk_; } } /** * * *
       * GCEPersistentDisk represents a GCE Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GCEPersistentDiskVolumeSource gcePersistentDisk = 3; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder> getGcePersistentDiskFieldBuilder() { if (gcePersistentDiskBuilder_ == null) { gcePersistentDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.GCEPersistentDiskVolumeSourceOrBuilder>( getGcePersistentDisk(), getParentForChildren(), isClean()); gcePersistentDisk_ = null; } return gcePersistentDiskBuilder_; } private io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder> awsElasticBlockStoreBuilder_; /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public boolean hasAwsElasticBlockStore() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { if (awsElasticBlockStoreBuilder_ == null) { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } else { return awsElasticBlockStoreBuilder_.getMessage(); } } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public Builder setAwsElasticBlockStore( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource value) { if (awsElasticBlockStoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } awsElasticBlockStore_ = value; onChanged(); } else { awsElasticBlockStoreBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public Builder setAwsElasticBlockStore( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder builderForValue) { if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStore_ = builderForValue.build(); onChanged(); } else { awsElasticBlockStoreBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public Builder mergeAwsElasticBlockStore( io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource value) { if (awsElasticBlockStoreBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && awsElasticBlockStore_ != null && awsElasticBlockStore_ != io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource .getDefaultInstance()) { awsElasticBlockStore_ = io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.newBuilder( awsElasticBlockStore_) .mergeFrom(value) .buildPartial(); } else { awsElasticBlockStore_ = value; } onChanged(); } else { awsElasticBlockStoreBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public Builder clearAwsElasticBlockStore() { if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStore_ = null; onChanged(); } else { awsElasticBlockStoreBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder getAwsElasticBlockStoreBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAwsElasticBlockStoreFieldBuilder().getBuilder(); } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ public io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder getAwsElasticBlockStoreOrBuilder() { if (awsElasticBlockStoreBuilder_ != null) { return awsElasticBlockStoreBuilder_.getMessageOrBuilder(); } else { return awsElasticBlockStore_ == null ? io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.getDefaultInstance() : awsElasticBlockStore_; } } /** * * *
       * AWSElasticBlockStore represents an AWS Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource awsElasticBlockStore = 4; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder> getAwsElasticBlockStoreFieldBuilder() { if (awsElasticBlockStoreBuilder_ == null) { awsElasticBlockStoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSource.Builder, io.kubernetes.client.proto.V1.AWSElasticBlockStoreVolumeSourceOrBuilder>( getAwsElasticBlockStore(), getParentForChildren(), isClean()); awsElasticBlockStore_ = null; } return awsElasticBlockStoreBuilder_; } private io.kubernetes.client.proto.V1.GitRepoVolumeSource gitRepo_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GitRepoVolumeSource, io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder, io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder> gitRepoBuilder_; /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public boolean hasGitRepo() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public io.kubernetes.client.proto.V1.GitRepoVolumeSource getGitRepo() { if (gitRepoBuilder_ == null) { return gitRepo_ == null ? io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance() : gitRepo_; } else { return gitRepoBuilder_.getMessage(); } } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public Builder setGitRepo(io.kubernetes.client.proto.V1.GitRepoVolumeSource value) { if (gitRepoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gitRepo_ = value; onChanged(); } else { gitRepoBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public Builder setGitRepo( io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder builderForValue) { if (gitRepoBuilder_ == null) { gitRepo_ = builderForValue.build(); onChanged(); } else { gitRepoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public Builder mergeGitRepo(io.kubernetes.client.proto.V1.GitRepoVolumeSource value) { if (gitRepoBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && gitRepo_ != null && gitRepo_ != io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance()) { gitRepo_ = io.kubernetes.client.proto.V1.GitRepoVolumeSource.newBuilder(gitRepo_) .mergeFrom(value) .buildPartial(); } else { gitRepo_ = value; } onChanged(); } else { gitRepoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public Builder clearGitRepo() { if (gitRepoBuilder_ == null) { gitRepo_ = null; onChanged(); } else { gitRepoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder getGitRepoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getGitRepoFieldBuilder().getBuilder(); } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ public io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder getGitRepoOrBuilder() { if (gitRepoBuilder_ != null) { return gitRepoBuilder_.getMessageOrBuilder(); } else { return gitRepo_ == null ? io.kubernetes.client.proto.V1.GitRepoVolumeSource.getDefaultInstance() : gitRepo_; } } /** * * *
       * GitRepo represents a git repository at a particular revision.
       * DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an
       * EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
       * into the Pod's container.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GitRepoVolumeSource gitRepo = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GitRepoVolumeSource, io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder, io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder> getGitRepoFieldBuilder() { if (gitRepoBuilder_ == null) { gitRepoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GitRepoVolumeSource, io.kubernetes.client.proto.V1.GitRepoVolumeSource.Builder, io.kubernetes.client.proto.V1.GitRepoVolumeSourceOrBuilder>( getGitRepo(), getParentForChildren(), isClean()); gitRepo_ = null; } return gitRepoBuilder_; } private io.kubernetes.client.proto.V1.SecretVolumeSource secret_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretVolumeSource, io.kubernetes.client.proto.V1.SecretVolumeSource.Builder, io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder> secretBuilder_; /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public boolean hasSecret() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public io.kubernetes.client.proto.V1.SecretVolumeSource getSecret() { if (secretBuilder_ == null) { return secret_ == null ? io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance() : secret_; } else { return secretBuilder_.getMessage(); } } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public Builder setSecret(io.kubernetes.client.proto.V1.SecretVolumeSource value) { if (secretBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secret_ = value; onChanged(); } else { secretBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public Builder setSecret( io.kubernetes.client.proto.V1.SecretVolumeSource.Builder builderForValue) { if (secretBuilder_ == null) { secret_ = builderForValue.build(); onChanged(); } else { secretBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public Builder mergeSecret(io.kubernetes.client.proto.V1.SecretVolumeSource value) { if (secretBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && secret_ != null && secret_ != io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance()) { secret_ = io.kubernetes.client.proto.V1.SecretVolumeSource.newBuilder(secret_) .mergeFrom(value) .buildPartial(); } else { secret_ = value; } onChanged(); } else { secretBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public Builder clearSecret() { if (secretBuilder_ == null) { secret_ = null; onChanged(); } else { secretBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public io.kubernetes.client.proto.V1.SecretVolumeSource.Builder getSecretBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSecretFieldBuilder().getBuilder(); } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ public io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder getSecretOrBuilder() { if (secretBuilder_ != null) { return secretBuilder_.getMessageOrBuilder(); } else { return secret_ == null ? io.kubernetes.client.proto.V1.SecretVolumeSource.getDefaultInstance() : secret_; } } /** * * *
       * Secret represents a secret that should populate this volume.
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SecretVolumeSource secret = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretVolumeSource, io.kubernetes.client.proto.V1.SecretVolumeSource.Builder, io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder> getSecretFieldBuilder() { if (secretBuilder_ == null) { secretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SecretVolumeSource, io.kubernetes.client.proto.V1.SecretVolumeSource.Builder, io.kubernetes.client.proto.V1.SecretVolumeSourceOrBuilder>( getSecret(), getParentForChildren(), isClean()); secret_ = null; } return secretBuilder_; } private io.kubernetes.client.proto.V1.NFSVolumeSource nfs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NFSVolumeSource, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder, io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder> nfsBuilder_; /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public boolean hasNfs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public io.kubernetes.client.proto.V1.NFSVolumeSource getNfs() { if (nfsBuilder_ == null) { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } else { return nfsBuilder_.getMessage(); } } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public Builder setNfs(io.kubernetes.client.proto.V1.NFSVolumeSource value) { if (nfsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nfs_ = value; onChanged(); } else { nfsBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public Builder setNfs(io.kubernetes.client.proto.V1.NFSVolumeSource.Builder builderForValue) { if (nfsBuilder_ == null) { nfs_ = builderForValue.build(); onChanged(); } else { nfsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public Builder mergeNfs(io.kubernetes.client.proto.V1.NFSVolumeSource value) { if (nfsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && nfs_ != null && nfs_ != io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance()) { nfs_ = io.kubernetes.client.proto.V1.NFSVolumeSource.newBuilder(nfs_) .mergeFrom(value) .buildPartial(); } else { nfs_ = value; } onChanged(); } else { nfsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public Builder clearNfs() { if (nfsBuilder_ == null) { nfs_ = null; onChanged(); } else { nfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public io.kubernetes.client.proto.V1.NFSVolumeSource.Builder getNfsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getNfsFieldBuilder().getBuilder(); } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ public io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder getNfsOrBuilder() { if (nfsBuilder_ != null) { return nfsBuilder_.getMessageOrBuilder(); } else { return nfs_ == null ? io.kubernetes.client.proto.V1.NFSVolumeSource.getDefaultInstance() : nfs_; } } /** * * *
       * NFS represents an NFS mount on the host that shares a pod's lifetime
       * More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
       * +optional
       * 
* * optional .k8s.io.api.core.v1.NFSVolumeSource nfs = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NFSVolumeSource, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder, io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder> getNfsFieldBuilder() { if (nfsBuilder_ == null) { nfsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.NFSVolumeSource, io.kubernetes.client.proto.V1.NFSVolumeSource.Builder, io.kubernetes.client.proto.V1.NFSVolumeSourceOrBuilder>( getNfs(), getParentForChildren(), isClean()); nfs_ = null; } return nfsBuilder_; } private io.kubernetes.client.proto.V1.ISCSIVolumeSource iscsi_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ISCSIVolumeSource, io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder, io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder> iscsiBuilder_; /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public boolean hasIscsi() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public io.kubernetes.client.proto.V1.ISCSIVolumeSource getIscsi() { if (iscsiBuilder_ == null) { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance() : iscsi_; } else { return iscsiBuilder_.getMessage(); } } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public Builder setIscsi(io.kubernetes.client.proto.V1.ISCSIVolumeSource value) { if (iscsiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } iscsi_ = value; onChanged(); } else { iscsiBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public Builder setIscsi( io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder builderForValue) { if (iscsiBuilder_ == null) { iscsi_ = builderForValue.build(); onChanged(); } else { iscsiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public Builder mergeIscsi(io.kubernetes.client.proto.V1.ISCSIVolumeSource value) { if (iscsiBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && iscsi_ != null && iscsi_ != io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance()) { iscsi_ = io.kubernetes.client.proto.V1.ISCSIVolumeSource.newBuilder(iscsi_) .mergeFrom(value) .buildPartial(); } else { iscsi_ = value; } onChanged(); } else { iscsiBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public Builder clearIscsi() { if (iscsiBuilder_ == null) { iscsi_ = null; onChanged(); } else { iscsiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder getIscsiBuilder() { bitField0_ |= 0x00000080; onChanged(); return getIscsiFieldBuilder().getBuilder(); } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ public io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder getIscsiOrBuilder() { if (iscsiBuilder_ != null) { return iscsiBuilder_.getMessageOrBuilder(); } else { return iscsi_ == null ? io.kubernetes.client.proto.V1.ISCSIVolumeSource.getDefaultInstance() : iscsi_; } } /** * * *
       * ISCSI represents an ISCSI Disk resource that is attached to a
       * kubelet's host machine and then exposed to the pod.
       * More info: https://examples.k8s.io/volumes/iscsi/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ISCSIVolumeSource iscsi = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ISCSIVolumeSource, io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder, io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder> getIscsiFieldBuilder() { if (iscsiBuilder_ == null) { iscsiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ISCSIVolumeSource, io.kubernetes.client.proto.V1.ISCSIVolumeSource.Builder, io.kubernetes.client.proto.V1.ISCSIVolumeSourceOrBuilder>( getIscsi(), getParentForChildren(), isClean()); iscsi_ = null; } return iscsiBuilder_; } private io.kubernetes.client.proto.V1.GlusterfsVolumeSource glusterfs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GlusterfsVolumeSource, io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder, io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder> glusterfsBuilder_; /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public boolean hasGlusterfs() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public io.kubernetes.client.proto.V1.GlusterfsVolumeSource getGlusterfs() { if (glusterfsBuilder_ == null) { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance() : glusterfs_; } else { return glusterfsBuilder_.getMessage(); } } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public Builder setGlusterfs(io.kubernetes.client.proto.V1.GlusterfsVolumeSource value) { if (glusterfsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } glusterfs_ = value; onChanged(); } else { glusterfsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public Builder setGlusterfs( io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder builderForValue) { if (glusterfsBuilder_ == null) { glusterfs_ = builderForValue.build(); onChanged(); } else { glusterfsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public Builder mergeGlusterfs(io.kubernetes.client.proto.V1.GlusterfsVolumeSource value) { if (glusterfsBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && glusterfs_ != null && glusterfs_ != io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance()) { glusterfs_ = io.kubernetes.client.proto.V1.GlusterfsVolumeSource.newBuilder(glusterfs_) .mergeFrom(value) .buildPartial(); } else { glusterfs_ = value; } onChanged(); } else { glusterfsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public Builder clearGlusterfs() { if (glusterfsBuilder_ == null) { glusterfs_ = null; onChanged(); } else { glusterfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder getGlusterfsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getGlusterfsFieldBuilder().getBuilder(); } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ public io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder getGlusterfsOrBuilder() { if (glusterfsBuilder_ != null) { return glusterfsBuilder_.getMessageOrBuilder(); } else { return glusterfs_ == null ? io.kubernetes.client.proto.V1.GlusterfsVolumeSource.getDefaultInstance() : glusterfs_; } } /** * * *
       * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/glusterfs/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.GlusterfsVolumeSource glusterfs = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GlusterfsVolumeSource, io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder, io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder> getGlusterfsFieldBuilder() { if (glusterfsBuilder_ == null) { glusterfsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.GlusterfsVolumeSource, io.kubernetes.client.proto.V1.GlusterfsVolumeSource.Builder, io.kubernetes.client.proto.V1.GlusterfsVolumeSourceOrBuilder>( getGlusterfs(), getParentForChildren(), isClean()); glusterfs_ = null; } return glusterfsBuilder_; } private io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource persistentVolumeClaim_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder> persistentVolumeClaimBuilder_; /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public boolean hasPersistentVolumeClaim() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { if (persistentVolumeClaimBuilder_ == null) { return persistentVolumeClaim_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.getDefaultInstance() : persistentVolumeClaim_; } else { return persistentVolumeClaimBuilder_.getMessage(); } } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public Builder setPersistentVolumeClaim( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource value) { if (persistentVolumeClaimBuilder_ == null) { if (value == null) { throw new NullPointerException(); } persistentVolumeClaim_ = value; onChanged(); } else { persistentVolumeClaimBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public Builder setPersistentVolumeClaim( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder builderForValue) { if (persistentVolumeClaimBuilder_ == null) { persistentVolumeClaim_ = builderForValue.build(); onChanged(); } else { persistentVolumeClaimBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public Builder mergePersistentVolumeClaim( io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource value) { if (persistentVolumeClaimBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && persistentVolumeClaim_ != null && persistentVolumeClaim_ != io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource .getDefaultInstance()) { persistentVolumeClaim_ = io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.newBuilder( persistentVolumeClaim_) .mergeFrom(value) .buildPartial(); } else { persistentVolumeClaim_ = value; } onChanged(); } else { persistentVolumeClaimBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public Builder clearPersistentVolumeClaim() { if (persistentVolumeClaimBuilder_ == null) { persistentVolumeClaim_ = null; onChanged(); } else { persistentVolumeClaimBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder getPersistentVolumeClaimBuilder() { bitField0_ |= 0x00000200; onChanged(); return getPersistentVolumeClaimFieldBuilder().getBuilder(); } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ public io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder getPersistentVolumeClaimOrBuilder() { if (persistentVolumeClaimBuilder_ != null) { return persistentVolumeClaimBuilder_.getMessageOrBuilder(); } else { return persistentVolumeClaim_ == null ? io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.getDefaultInstance() : persistentVolumeClaim_; } } /** * * *
       * PersistentVolumeClaimVolumeSource represents a reference to a
       * PersistentVolumeClaim in the same namespace.
       * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
       * +optional
       * 
* * * optional .k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource persistentVolumeClaim = 10; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder> getPersistentVolumeClaimFieldBuilder() { if (persistentVolumeClaimBuilder_ == null) { persistentVolumeClaimBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSource.Builder, io.kubernetes.client.proto.V1.PersistentVolumeClaimVolumeSourceOrBuilder>( getPersistentVolumeClaim(), getParentForChildren(), isClean()); persistentVolumeClaim_ = null; } return persistentVolumeClaimBuilder_; } private io.kubernetes.client.proto.V1.RBDVolumeSource rbd_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.RBDVolumeSource, io.kubernetes.client.proto.V1.RBDVolumeSource.Builder, io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder> rbdBuilder_; /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public boolean hasRbd() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public io.kubernetes.client.proto.V1.RBDVolumeSource getRbd() { if (rbdBuilder_ == null) { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance() : rbd_; } else { return rbdBuilder_.getMessage(); } } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public Builder setRbd(io.kubernetes.client.proto.V1.RBDVolumeSource value) { if (rbdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rbd_ = value; onChanged(); } else { rbdBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public Builder setRbd(io.kubernetes.client.proto.V1.RBDVolumeSource.Builder builderForValue) { if (rbdBuilder_ == null) { rbd_ = builderForValue.build(); onChanged(); } else { rbdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public Builder mergeRbd(io.kubernetes.client.proto.V1.RBDVolumeSource value) { if (rbdBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && rbd_ != null && rbd_ != io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance()) { rbd_ = io.kubernetes.client.proto.V1.RBDVolumeSource.newBuilder(rbd_) .mergeFrom(value) .buildPartial(); } else { rbd_ = value; } onChanged(); } else { rbdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public Builder clearRbd() { if (rbdBuilder_ == null) { rbd_ = null; onChanged(); } else { rbdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public io.kubernetes.client.proto.V1.RBDVolumeSource.Builder getRbdBuilder() { bitField0_ |= 0x00000400; onChanged(); return getRbdFieldBuilder().getBuilder(); } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ public io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder getRbdOrBuilder() { if (rbdBuilder_ != null) { return rbdBuilder_.getMessageOrBuilder(); } else { return rbd_ == null ? io.kubernetes.client.proto.V1.RBDVolumeSource.getDefaultInstance() : rbd_; } } /** * * *
       * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime.
       * More info: https://examples.k8s.io/volumes/rbd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.RBDVolumeSource rbd = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.RBDVolumeSource, io.kubernetes.client.proto.V1.RBDVolumeSource.Builder, io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder> getRbdFieldBuilder() { if (rbdBuilder_ == null) { rbdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.RBDVolumeSource, io.kubernetes.client.proto.V1.RBDVolumeSource.Builder, io.kubernetes.client.proto.V1.RBDVolumeSourceOrBuilder>( getRbd(), getParentForChildren(), isClean()); rbd_ = null; } return rbdBuilder_; } private io.kubernetes.client.proto.V1.FlexVolumeSource flexVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlexVolumeSource, io.kubernetes.client.proto.V1.FlexVolumeSource.Builder, io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder> flexVolumeBuilder_; /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public boolean hasFlexVolume() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexVolumeSource getFlexVolume() { if (flexVolumeBuilder_ == null) { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance() : flexVolume_; } else { return flexVolumeBuilder_.getMessage(); } } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public Builder setFlexVolume(io.kubernetes.client.proto.V1.FlexVolumeSource value) { if (flexVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flexVolume_ = value; onChanged(); } else { flexVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public Builder setFlexVolume( io.kubernetes.client.proto.V1.FlexVolumeSource.Builder builderForValue) { if (flexVolumeBuilder_ == null) { flexVolume_ = builderForValue.build(); onChanged(); } else { flexVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public Builder mergeFlexVolume(io.kubernetes.client.proto.V1.FlexVolumeSource value) { if (flexVolumeBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && flexVolume_ != null && flexVolume_ != io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance()) { flexVolume_ = io.kubernetes.client.proto.V1.FlexVolumeSource.newBuilder(flexVolume_) .mergeFrom(value) .buildPartial(); } else { flexVolume_ = value; } onChanged(); } else { flexVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public Builder clearFlexVolume() { if (flexVolumeBuilder_ == null) { flexVolume_ = null; onChanged(); } else { flexVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexVolumeSource.Builder getFlexVolumeBuilder() { bitField0_ |= 0x00000800; onChanged(); return getFlexVolumeFieldBuilder().getBuilder(); } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ public io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder getFlexVolumeOrBuilder() { if (flexVolumeBuilder_ != null) { return flexVolumeBuilder_.getMessageOrBuilder(); } else { return flexVolume_ == null ? io.kubernetes.client.proto.V1.FlexVolumeSource.getDefaultInstance() : flexVolume_; } } /** * * *
       * FlexVolume represents a generic volume resource that is
       * provisioned/attached using an exec based plugin.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlexVolumeSource flexVolume = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlexVolumeSource, io.kubernetes.client.proto.V1.FlexVolumeSource.Builder, io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder> getFlexVolumeFieldBuilder() { if (flexVolumeBuilder_ == null) { flexVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlexVolumeSource, io.kubernetes.client.proto.V1.FlexVolumeSource.Builder, io.kubernetes.client.proto.V1.FlexVolumeSourceOrBuilder>( getFlexVolume(), getParentForChildren(), isClean()); flexVolume_ = null; } return flexVolumeBuilder_; } private io.kubernetes.client.proto.V1.CinderVolumeSource cinder_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CinderVolumeSource, io.kubernetes.client.proto.V1.CinderVolumeSource.Builder, io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder> cinderBuilder_; /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public boolean hasCinder() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public io.kubernetes.client.proto.V1.CinderVolumeSource getCinder() { if (cinderBuilder_ == null) { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance() : cinder_; } else { return cinderBuilder_.getMessage(); } } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public Builder setCinder(io.kubernetes.client.proto.V1.CinderVolumeSource value) { if (cinderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cinder_ = value; onChanged(); } else { cinderBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public Builder setCinder( io.kubernetes.client.proto.V1.CinderVolumeSource.Builder builderForValue) { if (cinderBuilder_ == null) { cinder_ = builderForValue.build(); onChanged(); } else { cinderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public Builder mergeCinder(io.kubernetes.client.proto.V1.CinderVolumeSource value) { if (cinderBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && cinder_ != null && cinder_ != io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance()) { cinder_ = io.kubernetes.client.proto.V1.CinderVolumeSource.newBuilder(cinder_) .mergeFrom(value) .buildPartial(); } else { cinder_ = value; } onChanged(); } else { cinderBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public Builder clearCinder() { if (cinderBuilder_ == null) { cinder_ = null; onChanged(); } else { cinderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public io.kubernetes.client.proto.V1.CinderVolumeSource.Builder getCinderBuilder() { bitField0_ |= 0x00001000; onChanged(); return getCinderFieldBuilder().getBuilder(); } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ public io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder getCinderOrBuilder() { if (cinderBuilder_ != null) { return cinderBuilder_.getMessageOrBuilder(); } else { return cinder_ == null ? io.kubernetes.client.proto.V1.CinderVolumeSource.getDefaultInstance() : cinder_; } } /** * * *
       * Cinder represents a cinder volume attached and mounted on kubelets host machine.
       * More info: https://examples.k8s.io/mysql-cinder-pd/README.md
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CinderVolumeSource cinder = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CinderVolumeSource, io.kubernetes.client.proto.V1.CinderVolumeSource.Builder, io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder> getCinderFieldBuilder() { if (cinderBuilder_ == null) { cinderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CinderVolumeSource, io.kubernetes.client.proto.V1.CinderVolumeSource.Builder, io.kubernetes.client.proto.V1.CinderVolumeSourceOrBuilder>( getCinder(), getParentForChildren(), isClean()); cinder_ = null; } return cinderBuilder_; } private io.kubernetes.client.proto.V1.CephFSVolumeSource cephfs_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CephFSVolumeSource, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder, io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder> cephfsBuilder_; /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public boolean hasCephfs() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public io.kubernetes.client.proto.V1.CephFSVolumeSource getCephfs() { if (cephfsBuilder_ == null) { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance() : cephfs_; } else { return cephfsBuilder_.getMessage(); } } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public Builder setCephfs(io.kubernetes.client.proto.V1.CephFSVolumeSource value) { if (cephfsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cephfs_ = value; onChanged(); } else { cephfsBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public Builder setCephfs( io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder builderForValue) { if (cephfsBuilder_ == null) { cephfs_ = builderForValue.build(); onChanged(); } else { cephfsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public Builder mergeCephfs(io.kubernetes.client.proto.V1.CephFSVolumeSource value) { if (cephfsBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && cephfs_ != null && cephfs_ != io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance()) { cephfs_ = io.kubernetes.client.proto.V1.CephFSVolumeSource.newBuilder(cephfs_) .mergeFrom(value) .buildPartial(); } else { cephfs_ = value; } onChanged(); } else { cephfsBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public Builder clearCephfs() { if (cephfsBuilder_ == null) { cephfs_ = null; onChanged(); } else { cephfsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder getCephfsBuilder() { bitField0_ |= 0x00002000; onChanged(); return getCephfsFieldBuilder().getBuilder(); } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ public io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder getCephfsOrBuilder() { if (cephfsBuilder_ != null) { return cephfsBuilder_.getMessageOrBuilder(); } else { return cephfs_ == null ? io.kubernetes.client.proto.V1.CephFSVolumeSource.getDefaultInstance() : cephfs_; } } /** * * *
       * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CephFSVolumeSource cephfs = 14; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CephFSVolumeSource, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder, io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder> getCephfsFieldBuilder() { if (cephfsBuilder_ == null) { cephfsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CephFSVolumeSource, io.kubernetes.client.proto.V1.CephFSVolumeSource.Builder, io.kubernetes.client.proto.V1.CephFSVolumeSourceOrBuilder>( getCephfs(), getParentForChildren(), isClean()); cephfs_ = null; } return cephfsBuilder_; } private io.kubernetes.client.proto.V1.FlockerVolumeSource flocker_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlockerVolumeSource, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder, io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder> flockerBuilder_; /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public boolean hasFlocker() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public io.kubernetes.client.proto.V1.FlockerVolumeSource getFlocker() { if (flockerBuilder_ == null) { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } else { return flockerBuilder_.getMessage(); } } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public Builder setFlocker(io.kubernetes.client.proto.V1.FlockerVolumeSource value) { if (flockerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } flocker_ = value; onChanged(); } else { flockerBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public Builder setFlocker( io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder builderForValue) { if (flockerBuilder_ == null) { flocker_ = builderForValue.build(); onChanged(); } else { flockerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public Builder mergeFlocker(io.kubernetes.client.proto.V1.FlockerVolumeSource value) { if (flockerBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && flocker_ != null && flocker_ != io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance()) { flocker_ = io.kubernetes.client.proto.V1.FlockerVolumeSource.newBuilder(flocker_) .mergeFrom(value) .buildPartial(); } else { flocker_ = value; } onChanged(); } else { flockerBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public Builder clearFlocker() { if (flockerBuilder_ == null) { flocker_ = null; onChanged(); } else { flockerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder getFlockerBuilder() { bitField0_ |= 0x00004000; onChanged(); return getFlockerFieldBuilder().getBuilder(); } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ public io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder getFlockerOrBuilder() { if (flockerBuilder_ != null) { return flockerBuilder_.getMessageOrBuilder(); } else { return flocker_ == null ? io.kubernetes.client.proto.V1.FlockerVolumeSource.getDefaultInstance() : flocker_; } } /** * * *
       * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FlockerVolumeSource flocker = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlockerVolumeSource, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder, io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder> getFlockerFieldBuilder() { if (flockerBuilder_ == null) { flockerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FlockerVolumeSource, io.kubernetes.client.proto.V1.FlockerVolumeSource.Builder, io.kubernetes.client.proto.V1.FlockerVolumeSourceOrBuilder>( getFlocker(), getParentForChildren(), isClean()); flocker_ = null; } return flockerBuilder_; } private io.kubernetes.client.proto.V1.DownwardAPIVolumeSource downwardAPI_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeSource, io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder> downwardAPIBuilder_; /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public boolean hasDownwardAPI() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeSource getDownwardAPI() { if (downwardAPIBuilder_ == null) { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance() : downwardAPI_; } else { return downwardAPIBuilder_.getMessage(); } } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public Builder setDownwardAPI(io.kubernetes.client.proto.V1.DownwardAPIVolumeSource value) { if (downwardAPIBuilder_ == null) { if (value == null) { throw new NullPointerException(); } downwardAPI_ = value; onChanged(); } else { downwardAPIBuilder_.setMessage(value); } bitField0_ |= 0x00008000; return this; } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public Builder setDownwardAPI( io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder builderForValue) { if (downwardAPIBuilder_ == null) { downwardAPI_ = builderForValue.build(); onChanged(); } else { downwardAPIBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; return this; } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public Builder mergeDownwardAPI(io.kubernetes.client.proto.V1.DownwardAPIVolumeSource value) { if (downwardAPIBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000) && downwardAPI_ != null && downwardAPI_ != io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance()) { downwardAPI_ = io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.newBuilder(downwardAPI_) .mergeFrom(value) .buildPartial(); } else { downwardAPI_ = value; } onChanged(); } else { downwardAPIBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public Builder clearDownwardAPI() { if (downwardAPIBuilder_ == null) { downwardAPI_ = null; onChanged(); } else { downwardAPIBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder getDownwardAPIBuilder() { bitField0_ |= 0x00008000; onChanged(); return getDownwardAPIFieldBuilder().getBuilder(); } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ public io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder getDownwardAPIOrBuilder() { if (downwardAPIBuilder_ != null) { return downwardAPIBuilder_.getMessageOrBuilder(); } else { return downwardAPI_ == null ? io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.getDefaultInstance() : downwardAPI_; } } /** * * *
       * DownwardAPI represents downward API about the pod that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.DownwardAPIVolumeSource downwardAPI = 16; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeSource, io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder> getDownwardAPIFieldBuilder() { if (downwardAPIBuilder_ == null) { downwardAPIBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.DownwardAPIVolumeSource, io.kubernetes.client.proto.V1.DownwardAPIVolumeSource.Builder, io.kubernetes.client.proto.V1.DownwardAPIVolumeSourceOrBuilder>( getDownwardAPI(), getParentForChildren(), isClean()); downwardAPI_ = null; } return downwardAPIBuilder_; } private io.kubernetes.client.proto.V1.FCVolumeSource fc_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FCVolumeSource, io.kubernetes.client.proto.V1.FCVolumeSource.Builder, io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder> fcBuilder_; /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public boolean hasFc() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public io.kubernetes.client.proto.V1.FCVolumeSource getFc() { if (fcBuilder_ == null) { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } else { return fcBuilder_.getMessage(); } } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public Builder setFc(io.kubernetes.client.proto.V1.FCVolumeSource value) { if (fcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fc_ = value; onChanged(); } else { fcBuilder_.setMessage(value); } bitField0_ |= 0x00010000; return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public Builder setFc(io.kubernetes.client.proto.V1.FCVolumeSource.Builder builderForValue) { if (fcBuilder_ == null) { fc_ = builderForValue.build(); onChanged(); } else { fcBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public Builder mergeFc(io.kubernetes.client.proto.V1.FCVolumeSource value) { if (fcBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000) && fc_ != null && fc_ != io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance()) { fc_ = io.kubernetes.client.proto.V1.FCVolumeSource.newBuilder(fc_) .mergeFrom(value) .buildPartial(); } else { fc_ = value; } onChanged(); } else { fcBuilder_.mergeFrom(value); } bitField0_ |= 0x00010000; return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public Builder clearFc() { if (fcBuilder_ == null) { fc_ = null; onChanged(); } else { fcBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); return this; } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public io.kubernetes.client.proto.V1.FCVolumeSource.Builder getFcBuilder() { bitField0_ |= 0x00010000; onChanged(); return getFcFieldBuilder().getBuilder(); } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ public io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder getFcOrBuilder() { if (fcBuilder_ != null) { return fcBuilder_.getMessageOrBuilder(); } else { return fc_ == null ? io.kubernetes.client.proto.V1.FCVolumeSource.getDefaultInstance() : fc_; } } /** * * *
       * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.FCVolumeSource fc = 17; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FCVolumeSource, io.kubernetes.client.proto.V1.FCVolumeSource.Builder, io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder> getFcFieldBuilder() { if (fcBuilder_ == null) { fcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.FCVolumeSource, io.kubernetes.client.proto.V1.FCVolumeSource.Builder, io.kubernetes.client.proto.V1.FCVolumeSourceOrBuilder>( getFc(), getParentForChildren(), isClean()); fc_ = null; } return fcBuilder_; } private io.kubernetes.client.proto.V1.AzureFileVolumeSource azureFile_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureFileVolumeSource, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder> azureFileBuilder_; /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public boolean hasAzureFile() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public io.kubernetes.client.proto.V1.AzureFileVolumeSource getAzureFile() { if (azureFileBuilder_ == null) { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance() : azureFile_; } else { return azureFileBuilder_.getMessage(); } } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public Builder setAzureFile(io.kubernetes.client.proto.V1.AzureFileVolumeSource value) { if (azureFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } azureFile_ = value; onChanged(); } else { azureFileBuilder_.setMessage(value); } bitField0_ |= 0x00020000; return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public Builder setAzureFile( io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder builderForValue) { if (azureFileBuilder_ == null) { azureFile_ = builderForValue.build(); onChanged(); } else { azureFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public Builder mergeAzureFile(io.kubernetes.client.proto.V1.AzureFileVolumeSource value) { if (azureFileBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000) && azureFile_ != null && azureFile_ != io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance()) { azureFile_ = io.kubernetes.client.proto.V1.AzureFileVolumeSource.newBuilder(azureFile_) .mergeFrom(value) .buildPartial(); } else { azureFile_ = value; } onChanged(); } else { azureFileBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public Builder clearAzureFile() { if (azureFileBuilder_ == null) { azureFile_ = null; onChanged(); } else { azureFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); return this; } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder getAzureFileBuilder() { bitField0_ |= 0x00020000; onChanged(); return getAzureFileFieldBuilder().getBuilder(); } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ public io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder getAzureFileOrBuilder() { if (azureFileBuilder_ != null) { return azureFileBuilder_.getMessageOrBuilder(); } else { return azureFile_ == null ? io.kubernetes.client.proto.V1.AzureFileVolumeSource.getDefaultInstance() : azureFile_; } } /** * * *
       * AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureFileVolumeSource azureFile = 18; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureFileVolumeSource, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder> getAzureFileFieldBuilder() { if (azureFileBuilder_ == null) { azureFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureFileVolumeSource, io.kubernetes.client.proto.V1.AzureFileVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureFileVolumeSourceOrBuilder>( getAzureFile(), getParentForChildren(), isClean()); azureFile_ = null; } return azureFileBuilder_; } private io.kubernetes.client.proto.V1.ConfigMapVolumeSource configMap_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapVolumeSource, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder, io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder> configMapBuilder_; /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public boolean hasConfigMap() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public io.kubernetes.client.proto.V1.ConfigMapVolumeSource getConfigMap() { if (configMapBuilder_ == null) { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance() : configMap_; } else { return configMapBuilder_.getMessage(); } } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public Builder setConfigMap(io.kubernetes.client.proto.V1.ConfigMapVolumeSource value) { if (configMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } configMap_ = value; onChanged(); } else { configMapBuilder_.setMessage(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public Builder setConfigMap( io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder builderForValue) { if (configMapBuilder_ == null) { configMap_ = builderForValue.build(); onChanged(); } else { configMapBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; return this; } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public Builder mergeConfigMap(io.kubernetes.client.proto.V1.ConfigMapVolumeSource value) { if (configMapBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000) && configMap_ != null && configMap_ != io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance()) { configMap_ = io.kubernetes.client.proto.V1.ConfigMapVolumeSource.newBuilder(configMap_) .mergeFrom(value) .buildPartial(); } else { configMap_ = value; } onChanged(); } else { configMapBuilder_.mergeFrom(value); } bitField0_ |= 0x00040000; return this; } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public Builder clearConfigMap() { if (configMapBuilder_ == null) { configMap_ = null; onChanged(); } else { configMapBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00040000); return this; } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder getConfigMapBuilder() { bitField0_ |= 0x00040000; onChanged(); return getConfigMapFieldBuilder().getBuilder(); } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ public io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder getConfigMapOrBuilder() { if (configMapBuilder_ != null) { return configMapBuilder_.getMessageOrBuilder(); } else { return configMap_ == null ? io.kubernetes.client.proto.V1.ConfigMapVolumeSource.getDefaultInstance() : configMap_; } } /** * * *
       * ConfigMap represents a configMap that should populate this volume
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ConfigMapVolumeSource configMap = 19; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapVolumeSource, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder, io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder> getConfigMapFieldBuilder() { if (configMapBuilder_ == null) { configMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ConfigMapVolumeSource, io.kubernetes.client.proto.V1.ConfigMapVolumeSource.Builder, io.kubernetes.client.proto.V1.ConfigMapVolumeSourceOrBuilder>( getConfigMap(), getParentForChildren(), isClean()); configMap_ = null; } return configMapBuilder_; } private io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource vsphereVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder> vsphereVolumeBuilder_; /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public boolean hasVsphereVolume() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getVsphereVolume() { if (vsphereVolumeBuilder_ == null) { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } else { return vsphereVolumeBuilder_.getMessage(); } } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public Builder setVsphereVolume( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource value) { if (vsphereVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } vsphereVolume_ = value; onChanged(); } else { vsphereVolumeBuilder_.setMessage(value); } bitField0_ |= 0x00080000; return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public Builder setVsphereVolume( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder builderForValue) { if (vsphereVolumeBuilder_ == null) { vsphereVolume_ = builderForValue.build(); onChanged(); } else { vsphereVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00080000; return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public Builder mergeVsphereVolume( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource value) { if (vsphereVolumeBuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000) && vsphereVolume_ != null && vsphereVolume_ != io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource .getDefaultInstance()) { vsphereVolume_ = io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.newBuilder( vsphereVolume_) .mergeFrom(value) .buildPartial(); } else { vsphereVolume_ = value; } onChanged(); } else { vsphereVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x00080000; return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public Builder clearVsphereVolume() { if (vsphereVolumeBuilder_ == null) { vsphereVolume_ = null; onChanged(); } else { vsphereVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); return this; } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder getVsphereVolumeBuilder() { bitField0_ |= 0x00080000; onChanged(); return getVsphereVolumeFieldBuilder().getBuilder(); } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder getVsphereVolumeOrBuilder() { if (vsphereVolumeBuilder_ != null) { return vsphereVolumeBuilder_.getMessageOrBuilder(); } else { return vsphereVolume_ == null ? io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance() : vsphereVolume_; } } /** * * *
       * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource vsphereVolume = 20; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder> getVsphereVolumeFieldBuilder() { if (vsphereVolumeBuilder_ == null) { vsphereVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder>( getVsphereVolume(), getParentForChildren(), isClean()); vsphereVolume_ = null; } return vsphereVolumeBuilder_; } private io.kubernetes.client.proto.V1.QuobyteVolumeSource quobyte_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.QuobyteVolumeSource, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder, io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder> quobyteBuilder_; /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public boolean hasQuobyte() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSource getQuobyte() { if (quobyteBuilder_ == null) { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } else { return quobyteBuilder_.getMessage(); } } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public Builder setQuobyte(io.kubernetes.client.proto.V1.QuobyteVolumeSource value) { if (quobyteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } quobyte_ = value; onChanged(); } else { quobyteBuilder_.setMessage(value); } bitField0_ |= 0x00100000; return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public Builder setQuobyte( io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder builderForValue) { if (quobyteBuilder_ == null) { quobyte_ = builderForValue.build(); onChanged(); } else { quobyteBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00100000; return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public Builder mergeQuobyte(io.kubernetes.client.proto.V1.QuobyteVolumeSource value) { if (quobyteBuilder_ == null) { if (((bitField0_ & 0x00100000) == 0x00100000) && quobyte_ != null && quobyte_ != io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance()) { quobyte_ = io.kubernetes.client.proto.V1.QuobyteVolumeSource.newBuilder(quobyte_) .mergeFrom(value) .buildPartial(); } else { quobyte_ = value; } onChanged(); } else { quobyteBuilder_.mergeFrom(value); } bitField0_ |= 0x00100000; return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public Builder clearQuobyte() { if (quobyteBuilder_ == null) { quobyte_ = null; onChanged(); } else { quobyteBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00100000); return this; } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder getQuobyteBuilder() { bitField0_ |= 0x00100000; onChanged(); return getQuobyteFieldBuilder().getBuilder(); } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ public io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder getQuobyteOrBuilder() { if (quobyteBuilder_ != null) { return quobyteBuilder_.getMessageOrBuilder(); } else { return quobyte_ == null ? io.kubernetes.client.proto.V1.QuobyteVolumeSource.getDefaultInstance() : quobyte_; } } /** * * *
       * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
       * +optional
       * 
* * optional .k8s.io.api.core.v1.QuobyteVolumeSource quobyte = 21; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.QuobyteVolumeSource, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder, io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder> getQuobyteFieldBuilder() { if (quobyteBuilder_ == null) { quobyteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.QuobyteVolumeSource, io.kubernetes.client.proto.V1.QuobyteVolumeSource.Builder, io.kubernetes.client.proto.V1.QuobyteVolumeSourceOrBuilder>( getQuobyte(), getParentForChildren(), isClean()); quobyte_ = null; } return quobyteBuilder_; } private io.kubernetes.client.proto.V1.AzureDiskVolumeSource azureDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureDiskVolumeSource, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder> azureDiskBuilder_; /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public boolean hasAzureDisk() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSource getAzureDisk() { if (azureDiskBuilder_ == null) { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } else { return azureDiskBuilder_.getMessage(); } } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public Builder setAzureDisk(io.kubernetes.client.proto.V1.AzureDiskVolumeSource value) { if (azureDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } azureDisk_ = value; onChanged(); } else { azureDiskBuilder_.setMessage(value); } bitField0_ |= 0x00200000; return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public Builder setAzureDisk( io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder builderForValue) { if (azureDiskBuilder_ == null) { azureDisk_ = builderForValue.build(); onChanged(); } else { azureDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00200000; return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public Builder mergeAzureDisk(io.kubernetes.client.proto.V1.AzureDiskVolumeSource value) { if (azureDiskBuilder_ == null) { if (((bitField0_ & 0x00200000) == 0x00200000) && azureDisk_ != null && azureDisk_ != io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance()) { azureDisk_ = io.kubernetes.client.proto.V1.AzureDiskVolumeSource.newBuilder(azureDisk_) .mergeFrom(value) .buildPartial(); } else { azureDisk_ = value; } onChanged(); } else { azureDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00200000; return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public Builder clearAzureDisk() { if (azureDiskBuilder_ == null) { azureDisk_ = null; onChanged(); } else { azureDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); return this; } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder getAzureDiskBuilder() { bitField0_ |= 0x00200000; onChanged(); return getAzureDiskFieldBuilder().getBuilder(); } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ public io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder getAzureDiskOrBuilder() { if (azureDiskBuilder_ != null) { return azureDiskBuilder_.getMessageOrBuilder(); } else { return azureDisk_ == null ? io.kubernetes.client.proto.V1.AzureDiskVolumeSource.getDefaultInstance() : azureDisk_; } } /** * * *
       * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.AzureDiskVolumeSource azureDisk = 22; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureDiskVolumeSource, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder> getAzureDiskFieldBuilder() { if (azureDiskBuilder_ == null) { azureDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.AzureDiskVolumeSource, io.kubernetes.client.proto.V1.AzureDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.AzureDiskVolumeSourceOrBuilder>( getAzureDisk(), getParentForChildren(), isClean()); azureDisk_ = null; } return azureDiskBuilder_; } private io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource photonPersistentDisk_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder> photonPersistentDiskBuilder_; /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public boolean hasPhotonPersistentDisk() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { if (photonPersistentDiskBuilder_ == null) { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } else { return photonPersistentDiskBuilder_.getMessage(); } } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public Builder setPhotonPersistentDisk( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource value) { if (photonPersistentDiskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } photonPersistentDisk_ = value; onChanged(); } else { photonPersistentDiskBuilder_.setMessage(value); } bitField0_ |= 0x00400000; return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public Builder setPhotonPersistentDisk( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder builderForValue) { if (photonPersistentDiskBuilder_ == null) { photonPersistentDisk_ = builderForValue.build(); onChanged(); } else { photonPersistentDiskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00400000; return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public Builder mergePhotonPersistentDisk( io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource value) { if (photonPersistentDiskBuilder_ == null) { if (((bitField0_ & 0x00400000) == 0x00400000) && photonPersistentDisk_ != null && photonPersistentDisk_ != io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource .getDefaultInstance()) { photonPersistentDisk_ = io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.newBuilder( photonPersistentDisk_) .mergeFrom(value) .buildPartial(); } else { photonPersistentDisk_ = value; } onChanged(); } else { photonPersistentDiskBuilder_.mergeFrom(value); } bitField0_ |= 0x00400000; return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public Builder clearPhotonPersistentDisk() { if (photonPersistentDiskBuilder_ == null) { photonPersistentDisk_ = null; onChanged(); } else { photonPersistentDiskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00400000); return this; } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder getPhotonPersistentDiskBuilder() { bitField0_ |= 0x00400000; onChanged(); return getPhotonPersistentDiskFieldBuilder().getBuilder(); } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ public io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder getPhotonPersistentDiskOrBuilder() { if (photonPersistentDiskBuilder_ != null) { return photonPersistentDiskBuilder_.getMessageOrBuilder(); } else { return photonPersistentDisk_ == null ? io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.getDefaultInstance() : photonPersistentDisk_; } } /** * * *
       * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
       * 
* * * optional .k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource photonPersistentDisk = 23; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder> getPhotonPersistentDiskFieldBuilder() { if (photonPersistentDiskBuilder_ == null) { photonPersistentDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSource.Builder, io.kubernetes.client.proto.V1.PhotonPersistentDiskVolumeSourceOrBuilder>( getPhotonPersistentDisk(), getParentForChildren(), isClean()); photonPersistentDisk_ = null; } return photonPersistentDiskBuilder_; } private io.kubernetes.client.proto.V1.ProjectedVolumeSource projected_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ProjectedVolumeSource, io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder, io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder> projectedBuilder_; /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public boolean hasProjected() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public io.kubernetes.client.proto.V1.ProjectedVolumeSource getProjected() { if (projectedBuilder_ == null) { return projected_ == null ? io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance() : projected_; } else { return projectedBuilder_.getMessage(); } } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public Builder setProjected(io.kubernetes.client.proto.V1.ProjectedVolumeSource value) { if (projectedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } projected_ = value; onChanged(); } else { projectedBuilder_.setMessage(value); } bitField0_ |= 0x00800000; return this; } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public Builder setProjected( io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder builderForValue) { if (projectedBuilder_ == null) { projected_ = builderForValue.build(); onChanged(); } else { projectedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; return this; } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public Builder mergeProjected(io.kubernetes.client.proto.V1.ProjectedVolumeSource value) { if (projectedBuilder_ == null) { if (((bitField0_ & 0x00800000) == 0x00800000) && projected_ != null && projected_ != io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance()) { projected_ = io.kubernetes.client.proto.V1.ProjectedVolumeSource.newBuilder(projected_) .mergeFrom(value) .buildPartial(); } else { projected_ = value; } onChanged(); } else { projectedBuilder_.mergeFrom(value); } bitField0_ |= 0x00800000; return this; } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public Builder clearProjected() { if (projectedBuilder_ == null) { projected_ = null; onChanged(); } else { projectedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00800000); return this; } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder getProjectedBuilder() { bitField0_ |= 0x00800000; onChanged(); return getProjectedFieldBuilder().getBuilder(); } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ public io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder getProjectedOrBuilder() { if (projectedBuilder_ != null) { return projectedBuilder_.getMessageOrBuilder(); } else { return projected_ == null ? io.kubernetes.client.proto.V1.ProjectedVolumeSource.getDefaultInstance() : projected_; } } /** * * *
       * Items for all in one resources secrets, configmaps, and downward API
       * 
* * optional .k8s.io.api.core.v1.ProjectedVolumeSource projected = 26; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ProjectedVolumeSource, io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder, io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder> getProjectedFieldBuilder() { if (projectedBuilder_ == null) { projectedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ProjectedVolumeSource, io.kubernetes.client.proto.V1.ProjectedVolumeSource.Builder, io.kubernetes.client.proto.V1.ProjectedVolumeSourceOrBuilder>( getProjected(), getParentForChildren(), isClean()); projected_ = null; } return projectedBuilder_; } private io.kubernetes.client.proto.V1.PortworxVolumeSource portworxVolume_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PortworxVolumeSource, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder, io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder> portworxVolumeBuilder_; /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public boolean hasPortworxVolume() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public io.kubernetes.client.proto.V1.PortworxVolumeSource getPortworxVolume() { if (portworxVolumeBuilder_ == null) { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } else { return portworxVolumeBuilder_.getMessage(); } } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public Builder setPortworxVolume(io.kubernetes.client.proto.V1.PortworxVolumeSource value) { if (portworxVolumeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } portworxVolume_ = value; onChanged(); } else { portworxVolumeBuilder_.setMessage(value); } bitField0_ |= 0x01000000; return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public Builder setPortworxVolume( io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder builderForValue) { if (portworxVolumeBuilder_ == null) { portworxVolume_ = builderForValue.build(); onChanged(); } else { portworxVolumeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public Builder mergePortworxVolume(io.kubernetes.client.proto.V1.PortworxVolumeSource value) { if (portworxVolumeBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000) && portworxVolume_ != null && portworxVolume_ != io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance()) { portworxVolume_ = io.kubernetes.client.proto.V1.PortworxVolumeSource.newBuilder(portworxVolume_) .mergeFrom(value) .buildPartial(); } else { portworxVolume_ = value; } onChanged(); } else { portworxVolumeBuilder_.mergeFrom(value); } bitField0_ |= 0x01000000; return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public Builder clearPortworxVolume() { if (portworxVolumeBuilder_ == null) { portworxVolume_ = null; onChanged(); } else { portworxVolumeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); return this; } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder getPortworxVolumeBuilder() { bitField0_ |= 0x01000000; onChanged(); return getPortworxVolumeFieldBuilder().getBuilder(); } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ public io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder getPortworxVolumeOrBuilder() { if (portworxVolumeBuilder_ != null) { return portworxVolumeBuilder_.getMessageOrBuilder(); } else { return portworxVolume_ == null ? io.kubernetes.client.proto.V1.PortworxVolumeSource.getDefaultInstance() : portworxVolume_; } } /** * * *
       * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
       * +optional
       * 
* * optional .k8s.io.api.core.v1.PortworxVolumeSource portworxVolume = 24; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PortworxVolumeSource, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder, io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder> getPortworxVolumeFieldBuilder() { if (portworxVolumeBuilder_ == null) { portworxVolumeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PortworxVolumeSource, io.kubernetes.client.proto.V1.PortworxVolumeSource.Builder, io.kubernetes.client.proto.V1.PortworxVolumeSourceOrBuilder>( getPortworxVolume(), getParentForChildren(), isClean()); portworxVolume_ = null; } return portworxVolumeBuilder_; } private io.kubernetes.client.proto.V1.ScaleIOVolumeSource scaleIO_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScaleIOVolumeSource, io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder, io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder> scaleIOBuilder_; /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public boolean hasScaleIO() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public io.kubernetes.client.proto.V1.ScaleIOVolumeSource getScaleIO() { if (scaleIOBuilder_ == null) { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance() : scaleIO_; } else { return scaleIOBuilder_.getMessage(); } } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public Builder setScaleIO(io.kubernetes.client.proto.V1.ScaleIOVolumeSource value) { if (scaleIOBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scaleIO_ = value; onChanged(); } else { scaleIOBuilder_.setMessage(value); } bitField0_ |= 0x02000000; return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public Builder setScaleIO( io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder builderForValue) { if (scaleIOBuilder_ == null) { scaleIO_ = builderForValue.build(); onChanged(); } else { scaleIOBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x02000000; return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public Builder mergeScaleIO(io.kubernetes.client.proto.V1.ScaleIOVolumeSource value) { if (scaleIOBuilder_ == null) { if (((bitField0_ & 0x02000000) == 0x02000000) && scaleIO_ != null && scaleIO_ != io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance()) { scaleIO_ = io.kubernetes.client.proto.V1.ScaleIOVolumeSource.newBuilder(scaleIO_) .mergeFrom(value) .buildPartial(); } else { scaleIO_ = value; } onChanged(); } else { scaleIOBuilder_.mergeFrom(value); } bitField0_ |= 0x02000000; return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public Builder clearScaleIO() { if (scaleIOBuilder_ == null) { scaleIO_ = null; onChanged(); } else { scaleIOBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); return this; } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder getScaleIOBuilder() { bitField0_ |= 0x02000000; onChanged(); return getScaleIOFieldBuilder().getBuilder(); } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ public io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder getScaleIOOrBuilder() { if (scaleIOBuilder_ != null) { return scaleIOBuilder_.getMessageOrBuilder(); } else { return scaleIO_ == null ? io.kubernetes.client.proto.V1.ScaleIOVolumeSource.getDefaultInstance() : scaleIO_; } } /** * * *
       * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.ScaleIOVolumeSource scaleIO = 25; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScaleIOVolumeSource, io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder, io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder> getScaleIOFieldBuilder() { if (scaleIOBuilder_ == null) { scaleIOBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.ScaleIOVolumeSource, io.kubernetes.client.proto.V1.ScaleIOVolumeSource.Builder, io.kubernetes.client.proto.V1.ScaleIOVolumeSourceOrBuilder>( getScaleIO(), getParentForChildren(), isClean()); scaleIO_ = null; } return scaleIOBuilder_; } private io.kubernetes.client.proto.V1.StorageOSVolumeSource storageos_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.StorageOSVolumeSource, io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder, io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder> storageosBuilder_; /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public boolean hasStorageos() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public io.kubernetes.client.proto.V1.StorageOSVolumeSource getStorageos() { if (storageosBuilder_ == null) { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance() : storageos_; } else { return storageosBuilder_.getMessage(); } } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public Builder setStorageos(io.kubernetes.client.proto.V1.StorageOSVolumeSource value) { if (storageosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storageos_ = value; onChanged(); } else { storageosBuilder_.setMessage(value); } bitField0_ |= 0x04000000; return this; } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public Builder setStorageos( io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder builderForValue) { if (storageosBuilder_ == null) { storageos_ = builderForValue.build(); onChanged(); } else { storageosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x04000000; return this; } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public Builder mergeStorageos(io.kubernetes.client.proto.V1.StorageOSVolumeSource value) { if (storageosBuilder_ == null) { if (((bitField0_ & 0x04000000) == 0x04000000) && storageos_ != null && storageos_ != io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance()) { storageos_ = io.kubernetes.client.proto.V1.StorageOSVolumeSource.newBuilder(storageos_) .mergeFrom(value) .buildPartial(); } else { storageos_ = value; } onChanged(); } else { storageosBuilder_.mergeFrom(value); } bitField0_ |= 0x04000000; return this; } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public Builder clearStorageos() { if (storageosBuilder_ == null) { storageos_ = null; onChanged(); } else { storageosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x04000000); return this; } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder getStorageosBuilder() { bitField0_ |= 0x04000000; onChanged(); return getStorageosFieldBuilder().getBuilder(); } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ public io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder getStorageosOrBuilder() { if (storageosBuilder_ != null) { return storageosBuilder_.getMessageOrBuilder(); } else { return storageos_ == null ? io.kubernetes.client.proto.V1.StorageOSVolumeSource.getDefaultInstance() : storageos_; } } /** * * *
       * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.StorageOSVolumeSource storageos = 27; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.StorageOSVolumeSource, io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder, io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder> getStorageosFieldBuilder() { if (storageosBuilder_ == null) { storageosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.StorageOSVolumeSource, io.kubernetes.client.proto.V1.StorageOSVolumeSource.Builder, io.kubernetes.client.proto.V1.StorageOSVolumeSourceOrBuilder>( getStorageos(), getParentForChildren(), isClean()); storageos_ = null; } return storageosBuilder_; } private io.kubernetes.client.proto.V1.CSIVolumeSource csi_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CSIVolumeSource, io.kubernetes.client.proto.V1.CSIVolumeSource.Builder, io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder> csiBuilder_; /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public boolean hasCsi() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public io.kubernetes.client.proto.V1.CSIVolumeSource getCsi() { if (csiBuilder_ == null) { return csi_ == null ? io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance() : csi_; } else { return csiBuilder_.getMessage(); } } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public Builder setCsi(io.kubernetes.client.proto.V1.CSIVolumeSource value) { if (csiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } csi_ = value; onChanged(); } else { csiBuilder_.setMessage(value); } bitField0_ |= 0x08000000; return this; } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public Builder setCsi(io.kubernetes.client.proto.V1.CSIVolumeSource.Builder builderForValue) { if (csiBuilder_ == null) { csi_ = builderForValue.build(); onChanged(); } else { csiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x08000000; return this; } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public Builder mergeCsi(io.kubernetes.client.proto.V1.CSIVolumeSource value) { if (csiBuilder_ == null) { if (((bitField0_ & 0x08000000) == 0x08000000) && csi_ != null && csi_ != io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance()) { csi_ = io.kubernetes.client.proto.V1.CSIVolumeSource.newBuilder(csi_) .mergeFrom(value) .buildPartial(); } else { csi_ = value; } onChanged(); } else { csiBuilder_.mergeFrom(value); } bitField0_ |= 0x08000000; return this; } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public Builder clearCsi() { if (csiBuilder_ == null) { csi_ = null; onChanged(); } else { csiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x08000000); return this; } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public io.kubernetes.client.proto.V1.CSIVolumeSource.Builder getCsiBuilder() { bitField0_ |= 0x08000000; onChanged(); return getCsiFieldBuilder().getBuilder(); } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ public io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder getCsiOrBuilder() { if (csiBuilder_ != null) { return csiBuilder_.getMessageOrBuilder(); } else { return csi_ == null ? io.kubernetes.client.proto.V1.CSIVolumeSource.getDefaultInstance() : csi_; } } /** * * *
       * CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).
       * +optional
       * 
* * optional .k8s.io.api.core.v1.CSIVolumeSource csi = 28; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CSIVolumeSource, io.kubernetes.client.proto.V1.CSIVolumeSource.Builder, io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder> getCsiFieldBuilder() { if (csiBuilder_ == null) { csiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.CSIVolumeSource, io.kubernetes.client.proto.V1.CSIVolumeSource.Builder, io.kubernetes.client.proto.V1.CSIVolumeSourceOrBuilder>( getCsi(), getParentForChildren(), isClean()); csi_ = null; } return csiBuilder_; } private io.kubernetes.client.proto.V1.EphemeralVolumeSource ephemeral_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralVolumeSource, io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder, io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder> ephemeralBuilder_; /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public boolean hasEphemeral() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public io.kubernetes.client.proto.V1.EphemeralVolumeSource getEphemeral() { if (ephemeralBuilder_ == null) { return ephemeral_ == null ? io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance() : ephemeral_; } else { return ephemeralBuilder_.getMessage(); } } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public Builder setEphemeral(io.kubernetes.client.proto.V1.EphemeralVolumeSource value) { if (ephemeralBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ephemeral_ = value; onChanged(); } else { ephemeralBuilder_.setMessage(value); } bitField0_ |= 0x10000000; return this; } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public Builder setEphemeral( io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder builderForValue) { if (ephemeralBuilder_ == null) { ephemeral_ = builderForValue.build(); onChanged(); } else { ephemeralBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x10000000; return this; } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public Builder mergeEphemeral(io.kubernetes.client.proto.V1.EphemeralVolumeSource value) { if (ephemeralBuilder_ == null) { if (((bitField0_ & 0x10000000) == 0x10000000) && ephemeral_ != null && ephemeral_ != io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance()) { ephemeral_ = io.kubernetes.client.proto.V1.EphemeralVolumeSource.newBuilder(ephemeral_) .mergeFrom(value) .buildPartial(); } else { ephemeral_ = value; } onChanged(); } else { ephemeralBuilder_.mergeFrom(value); } bitField0_ |= 0x10000000; return this; } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public Builder clearEphemeral() { if (ephemeralBuilder_ == null) { ephemeral_ = null; onChanged(); } else { ephemeralBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x10000000); return this; } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder getEphemeralBuilder() { bitField0_ |= 0x10000000; onChanged(); return getEphemeralFieldBuilder().getBuilder(); } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ public io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder getEphemeralOrBuilder() { if (ephemeralBuilder_ != null) { return ephemeralBuilder_.getMessageOrBuilder(); } else { return ephemeral_ == null ? io.kubernetes.client.proto.V1.EphemeralVolumeSource.getDefaultInstance() : ephemeral_; } } /** * * *
       * Ephemeral represents a volume that is handled by a cluster storage driver.
       * The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
       * and deleted when the pod is removed.
       * Use this if:
       * a) the volume is only needed while the pod runs,
       * b) features of normal volumes like restoring from snapshot or capacity
       *    tracking are needed,
       * c) the storage driver is specified through a storage class, and
       * d) the storage driver supports dynamic volume provisioning through
       *    a PersistentVolumeClaim (see EphemeralVolumeSource for more
       *    information on the connection between this volume type
       *    and PersistentVolumeClaim).
       * Use PersistentVolumeClaim or one of the vendor-specific
       * APIs for volumes that persist for longer than the lifecycle
       * of an individual pod.
       * Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
       * be used that way - see the documentation of the driver for
       * more information.
       * A pod can use both types of ephemeral volumes and
       * persistent volumes at the same time.
       * +optional
       * 
* * optional .k8s.io.api.core.v1.EphemeralVolumeSource ephemeral = 29; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralVolumeSource, io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder, io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder> getEphemeralFieldBuilder() { if (ephemeralBuilder_ == null) { ephemeralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.EphemeralVolumeSource, io.kubernetes.client.proto.V1.EphemeralVolumeSource.Builder, io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder>( getEphemeral(), getParentForChildren(), isClean()); ephemeral_ = null; } return ephemeralBuilder_; } @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.core.v1.VolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeSource) private static final io.kubernetes.client.proto.V1.VolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeSource(); } public static io.kubernetes.client.proto.V1.VolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeSource(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.V1.VolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VsphereVirtualDiskVolumeSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) com.google.protobuf.MessageOrBuilder { /** * * *
     * Path that identifies vSphere volume vmdk
     * 
* * optional string volumePath = 1; */ boolean hasVolumePath(); /** * * *
     * Path that identifies vSphere volume vmdk
     * 
* * optional string volumePath = 1; */ java.lang.String getVolumePath(); /** * * *
     * Path that identifies vSphere volume vmdk
     * 
* * optional string volumePath = 1; */ com.google.protobuf.ByteString getVolumePathBytes(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ boolean hasFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ java.lang.String getFsType(); /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ com.google.protobuf.ByteString getFsTypeBytes(); /** * * *
     * Storage Policy Based Management (SPBM) profile name.
     * +optional
     * 
* * optional string storagePolicyName = 3; */ boolean hasStoragePolicyName(); /** * * *
     * Storage Policy Based Management (SPBM) profile name.
     * +optional
     * 
* * optional string storagePolicyName = 3; */ java.lang.String getStoragePolicyName(); /** * * *
     * Storage Policy Based Management (SPBM) profile name.
     * +optional
     * 
* * optional string storagePolicyName = 3; */ com.google.protobuf.ByteString getStoragePolicyNameBytes(); /** * * *
     * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
     * +optional
     * 
* * optional string storagePolicyID = 4; */ boolean hasStoragePolicyID(); /** * * *
     * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
     * +optional
     * 
* * optional string storagePolicyID = 4; */ java.lang.String getStoragePolicyID(); /** * * *
     * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
     * +optional
     * 
* * optional string storagePolicyID = 4; */ com.google.protobuf.ByteString getStoragePolicyIDBytes(); } /** * * *
   * Represents a vSphere volume resource.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource} */ public static final class VsphereVirtualDiskVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) VsphereVirtualDiskVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; // Use VsphereVirtualDiskVolumeSource.newBuilder() to construct. private VsphereVirtualDiskVolumeSource( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VsphereVirtualDiskVolumeSource() { volumePath_ = ""; fsType_ = ""; storagePolicyName_ = ""; storagePolicyID_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VsphereVirtualDiskVolumeSource( 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; volumePath_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; fsType_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; storagePolicyName_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; storagePolicyID_ = 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 .V1 .internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.class, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder.class); } private int bitField0_; public static final int VOLUMEPATH_FIELD_NUMBER = 1; private volatile java.lang.Object volumePath_; /** * * *
     * Path that identifies vSphere volume vmdk
     * 
* * optional string volumePath = 1; */ public boolean hasVolumePath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Path that identifies vSphere volume vmdk
     * 
* * optional string volumePath = 1; */ public java.lang.String getVolumePath() { java.lang.Object ref = volumePath_; 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()) { volumePath_ = s; } return s; } } /** * * *
     * Path that identifies vSphere volume vmdk
     * 
* * optional string volumePath = 1; */ public com.google.protobuf.ByteString getVolumePathBytes() { java.lang.Object ref = volumePath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FSTYPE_FIELD_NUMBER = 2; private volatile java.lang.Object fsType_; /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } } /** * * *
     * Filesystem type to mount.
     * Must be a filesystem type supported by the host operating system.
     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
     * +optional
     * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGEPOLICYNAME_FIELD_NUMBER = 3; private volatile java.lang.Object storagePolicyName_; /** * * *
     * Storage Policy Based Management (SPBM) profile name.
     * +optional
     * 
* * optional string storagePolicyName = 3; */ public boolean hasStoragePolicyName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Storage Policy Based Management (SPBM) profile name.
     * +optional
     * 
* * optional string storagePolicyName = 3; */ public java.lang.String getStoragePolicyName() { java.lang.Object ref = storagePolicyName_; 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()) { storagePolicyName_ = s; } return s; } } /** * * *
     * Storage Policy Based Management (SPBM) profile name.
     * +optional
     * 
* * optional string storagePolicyName = 3; */ public com.google.protobuf.ByteString getStoragePolicyNameBytes() { java.lang.Object ref = storagePolicyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePolicyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STORAGEPOLICYID_FIELD_NUMBER = 4; private volatile java.lang.Object storagePolicyID_; /** * * *
     * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
     * +optional
     * 
* * optional string storagePolicyID = 4; */ public boolean hasStoragePolicyID() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
     * +optional
     * 
* * optional string storagePolicyID = 4; */ public java.lang.String getStoragePolicyID() { java.lang.Object ref = storagePolicyID_; 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()) { storagePolicyID_ = s; } return s; } } /** * * *
     * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
     * +optional
     * 
* * optional string storagePolicyID = 4; */ public com.google.protobuf.ByteString getStoragePolicyIDBytes() { java.lang.Object ref = storagePolicyID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePolicyID_ = 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, volumePath_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storagePolicyName_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storagePolicyID_); } 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, volumePath_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storagePolicyName_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storagePolicyID_); } 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.V1.VsphereVirtualDiskVolumeSource)) { return super.equals(obj); } io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource other = (io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) obj; boolean result = true; result = result && (hasVolumePath() == other.hasVolumePath()); if (hasVolumePath()) { result = result && getVolumePath().equals(other.getVolumePath()); } result = result && (hasFsType() == other.hasFsType()); if (hasFsType()) { result = result && getFsType().equals(other.getFsType()); } result = result && (hasStoragePolicyName() == other.hasStoragePolicyName()); if (hasStoragePolicyName()) { result = result && getStoragePolicyName().equals(other.getStoragePolicyName()); } result = result && (hasStoragePolicyID() == other.hasStoragePolicyID()); if (hasStoragePolicyID()) { result = result && getStoragePolicyID().equals(other.getStoragePolicyID()); } 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 (hasVolumePath()) { hash = (37 * hash) + VOLUMEPATH_FIELD_NUMBER; hash = (53 * hash) + getVolumePath().hashCode(); } if (hasFsType()) { hash = (37 * hash) + FSTYPE_FIELD_NUMBER; hash = (53 * hash) + getFsType().hashCode(); } if (hasStoragePolicyName()) { hash = (37 * hash) + STORAGEPOLICYNAME_FIELD_NUMBER; hash = (53 * hash) + getStoragePolicyName().hashCode(); } if (hasStoragePolicyID()) { hash = (37 * hash) + STORAGEPOLICYID_FIELD_NUMBER; hash = (53 * hash) + getStoragePolicyID().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource 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.V1.VsphereVirtualDiskVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource 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.V1.VsphereVirtualDiskVolumeSource parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource 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.V1.VsphereVirtualDiskVolumeSource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource 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.V1.VsphereVirtualDiskVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource 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.V1.VsphereVirtualDiskVolumeSource 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; } /** * * *
     * Represents a vSphere volume resource.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.class, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder.class); } // Construct using io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.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(); volumePath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); storagePolicyName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); storagePolicyID_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource build() { io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource buildPartial() { io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource result = new io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.volumePath_ = volumePath_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fsType_ = fsType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.storagePolicyName_ = storagePolicyName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.storagePolicyID_ = storagePolicyID_; 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.V1.VsphereVirtualDiskVolumeSource) { return mergeFrom((io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource other) { if (other == io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance()) return this; if (other.hasVolumePath()) { bitField0_ |= 0x00000001; volumePath_ = other.volumePath_; onChanged(); } if (other.hasFsType()) { bitField0_ |= 0x00000002; fsType_ = other.fsType_; onChanged(); } if (other.hasStoragePolicyName()) { bitField0_ |= 0x00000004; storagePolicyName_ = other.storagePolicyName_; onChanged(); } if (other.hasStoragePolicyID()) { bitField0_ |= 0x00000008; storagePolicyID_ = other.storagePolicyID_; 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.V1.VsphereVirtualDiskVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object volumePath_ = ""; /** * * *
       * Path that identifies vSphere volume vmdk
       * 
* * optional string volumePath = 1; */ public boolean hasVolumePath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Path that identifies vSphere volume vmdk
       * 
* * optional string volumePath = 1; */ public java.lang.String getVolumePath() { java.lang.Object ref = volumePath_; 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()) { volumePath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Path that identifies vSphere volume vmdk
       * 
* * optional string volumePath = 1; */ public com.google.protobuf.ByteString getVolumePathBytes() { java.lang.Object ref = volumePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); volumePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Path that identifies vSphere volume vmdk
       * 
* * optional string volumePath = 1; */ public Builder setVolumePath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumePath_ = value; onChanged(); return this; } /** * * *
       * Path that identifies vSphere volume vmdk
       * 
* * optional string volumePath = 1; */ public Builder clearVolumePath() { bitField0_ = (bitField0_ & ~0x00000001); volumePath_ = getDefaultInstance().getVolumePath(); onChanged(); return this; } /** * * *
       * Path that identifies vSphere volume vmdk
       * 
* * optional string volumePath = 1; */ public Builder setVolumePathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; volumePath_ = value; onChanged(); return this; } private java.lang.Object fsType_ = ""; /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; 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()) { fsType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder clearFsType() { bitField0_ = (bitField0_ & ~0x00000002); fsType_ = getDefaultInstance().getFsType(); onChanged(); return this; } /** * * *
       * Filesystem type to mount.
       * Must be a filesystem type supported by the host operating system.
       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
       * +optional
       * 
* * optional string fsType = 2; */ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fsType_ = value; onChanged(); return this; } private java.lang.Object storagePolicyName_ = ""; /** * * *
       * Storage Policy Based Management (SPBM) profile name.
       * +optional
       * 
* * optional string storagePolicyName = 3; */ public boolean hasStoragePolicyName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Storage Policy Based Management (SPBM) profile name.
       * +optional
       * 
* * optional string storagePolicyName = 3; */ public java.lang.String getStoragePolicyName() { java.lang.Object ref = storagePolicyName_; 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()) { storagePolicyName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Storage Policy Based Management (SPBM) profile name.
       * +optional
       * 
* * optional string storagePolicyName = 3; */ public com.google.protobuf.ByteString getStoragePolicyNameBytes() { java.lang.Object ref = storagePolicyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePolicyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Storage Policy Based Management (SPBM) profile name.
       * +optional
       * 
* * optional string storagePolicyName = 3; */ public Builder setStoragePolicyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; storagePolicyName_ = value; onChanged(); return this; } /** * * *
       * Storage Policy Based Management (SPBM) profile name.
       * +optional
       * 
* * optional string storagePolicyName = 3; */ public Builder clearStoragePolicyName() { bitField0_ = (bitField0_ & ~0x00000004); storagePolicyName_ = getDefaultInstance().getStoragePolicyName(); onChanged(); return this; } /** * * *
       * Storage Policy Based Management (SPBM) profile name.
       * +optional
       * 
* * optional string storagePolicyName = 3; */ public Builder setStoragePolicyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; storagePolicyName_ = value; onChanged(); return this; } private java.lang.Object storagePolicyID_ = ""; /** * * *
       * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
       * +optional
       * 
* * optional string storagePolicyID = 4; */ public boolean hasStoragePolicyID() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
       * +optional
       * 
* * optional string storagePolicyID = 4; */ public java.lang.String getStoragePolicyID() { java.lang.Object ref = storagePolicyID_; 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()) { storagePolicyID_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
       * +optional
       * 
* * optional string storagePolicyID = 4; */ public com.google.protobuf.ByteString getStoragePolicyIDBytes() { java.lang.Object ref = storagePolicyID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storagePolicyID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
       * +optional
       * 
* * optional string storagePolicyID = 4; */ public Builder setStoragePolicyID(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; storagePolicyID_ = value; onChanged(); return this; } /** * * *
       * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
       * +optional
       * 
* * optional string storagePolicyID = 4; */ public Builder clearStoragePolicyID() { bitField0_ = (bitField0_ & ~0x00000008); storagePolicyID_ = getDefaultInstance().getStoragePolicyID(); onChanged(); return this; } /** * * *
       * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
       * +optional
       * 
* * optional string storagePolicyID = 4; */ public Builder setStoragePolicyIDBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; storagePolicyID_ = 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.core.v1.VsphereVirtualDiskVolumeSource) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) private static final io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource(); } public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VsphereVirtualDiskVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VsphereVirtualDiskVolumeSource(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.V1.VsphereVirtualDiskVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WeightedPodAffinityTermOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WeightedPodAffinityTerm) com.google.protobuf.MessageOrBuilder { /** * * *
     * weight associated with matching the corresponding podAffinityTerm,
     * in the range 1-100.
     * 
* * optional int32 weight = 1; */ boolean hasWeight(); /** * * *
     * weight associated with matching the corresponding podAffinityTerm,
     * in the range 1-100.
     * 
* * optional int32 weight = 1; */ int getWeight(); /** * * *
     * Required. A pod affinity term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ boolean hasPodAffinityTerm(); /** * * *
     * Required. A pod affinity term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm(); /** * * *
     * Required. A pod affinity term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder(); } /** * * *
   * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
   * 
* * Protobuf type {@code k8s.io.api.core.v1.WeightedPodAffinityTerm} */ public static final class WeightedPodAffinityTerm extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WeightedPodAffinityTerm) WeightedPodAffinityTermOrBuilder { private static final long serialVersionUID = 0L; // Use WeightedPodAffinityTerm.newBuilder() to construct. private WeightedPodAffinityTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WeightedPodAffinityTerm() { weight_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WeightedPodAffinityTerm( 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; weight_ = input.readInt32(); break; } case 18: { io.kubernetes.client.proto.V1.PodAffinityTerm.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = podAffinityTerm_.toBuilder(); } podAffinityTerm_ = input.readMessage( io.kubernetes.client.proto.V1.PodAffinityTerm.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(podAffinityTerm_); podAffinityTerm_ = 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 .V1 .internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.class, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder.class); } private int bitField0_; public static final int WEIGHT_FIELD_NUMBER = 1; private int weight_; /** * * *
     * weight associated with matching the corresponding podAffinityTerm,
     * in the range 1-100.
     * 
* * optional int32 weight = 1; */ public boolean hasWeight() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * weight associated with matching the corresponding podAffinityTerm,
     * in the range 1-100.
     * 
* * optional int32 weight = 1; */ public int getWeight() { return weight_; } public static final int PODAFFINITYTERM_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.PodAffinityTerm podAffinityTerm_; /** * * *
     * Required. A pod affinity term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public boolean hasPodAffinityTerm() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Required. A pod affinity term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm() { return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } /** * * *
     * Required. A pod affinity term, associated with the corresponding weight.
     * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder() { return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } 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, weight_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getPodAffinityTerm()); } 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, weight_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPodAffinityTerm()); } 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.V1.WeightedPodAffinityTerm)) { return super.equals(obj); } io.kubernetes.client.proto.V1.WeightedPodAffinityTerm other = (io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) obj; boolean result = true; result = result && (hasWeight() == other.hasWeight()); if (hasWeight()) { result = result && (getWeight() == other.getWeight()); } result = result && (hasPodAffinityTerm() == other.hasPodAffinityTerm()); if (hasPodAffinityTerm()) { result = result && getPodAffinityTerm().equals(other.getPodAffinityTerm()); } 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 (hasWeight()) { hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); } if (hasPodAffinityTerm()) { hash = (37 * hash) + PODAFFINITYTERM_FIELD_NUMBER; hash = (53 * hash) + getPodAffinityTerm().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm 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.V1.WeightedPodAffinityTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm 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.V1.WeightedPodAffinityTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm 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.V1.WeightedPodAffinityTerm parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm 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.V1.WeightedPodAffinityTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm 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.V1.WeightedPodAffinityTerm 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; } /** * * *
     * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
     * 
* * Protobuf type {@code k8s.io.api.core.v1.WeightedPodAffinityTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WeightedPodAffinityTerm) io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.class, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder.class); } // Construct using io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPodAffinityTermFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); weight_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (podAffinityTermBuilder_ == null) { podAffinityTerm_ = null; } else { podAffinityTermBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm build() { io.kubernetes.client.proto.V1.WeightedPodAffinityTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm buildPartial() { io.kubernetes.client.proto.V1.WeightedPodAffinityTerm result = new io.kubernetes.client.proto.V1.WeightedPodAffinityTerm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.weight_ = weight_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (podAffinityTermBuilder_ == null) { result.podAffinityTerm_ = podAffinityTerm_; } else { result.podAffinityTerm_ = podAffinityTermBuilder_.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.V1.WeightedPodAffinityTerm) { return mergeFrom((io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm other) { if (other == io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()) return this; if (other.hasWeight()) { setWeight(other.getWeight()); } if (other.hasPodAffinityTerm()) { mergePodAffinityTerm(other.getPodAffinityTerm()); } 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.V1.WeightedPodAffinityTerm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int weight_; /** * * *
       * weight associated with matching the corresponding podAffinityTerm,
       * in the range 1-100.
       * 
* * optional int32 weight = 1; */ public boolean hasWeight() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * weight associated with matching the corresponding podAffinityTerm,
       * in the range 1-100.
       * 
* * optional int32 weight = 1; */ public int getWeight() { return weight_; } /** * * *
       * weight associated with matching the corresponding podAffinityTerm,
       * in the range 1-100.
       * 
* * optional int32 weight = 1; */ public Builder setWeight(int value) { bitField0_ |= 0x00000001; weight_ = value; onChanged(); return this; } /** * * *
       * weight associated with matching the corresponding podAffinityTerm,
       * in the range 1-100.
       * 
* * optional int32 weight = 1; */ public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000001); weight_ = 0; onChanged(); return this; } private io.kubernetes.client.proto.V1.PodAffinityTerm podAffinityTerm_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> podAffinityTermBuilder_; /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public boolean hasPodAffinityTerm() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm() { if (podAffinityTermBuilder_ == null) { return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } else { return podAffinityTermBuilder_.getMessage(); } } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public Builder setPodAffinityTerm(io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (podAffinityTermBuilder_ == null) { if (value == null) { throw new NullPointerException(); } podAffinityTerm_ = value; onChanged(); } else { podAffinityTermBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public Builder setPodAffinityTerm( io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { if (podAffinityTermBuilder_ == null) { podAffinityTerm_ = builderForValue.build(); onChanged(); } else { podAffinityTermBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public Builder mergePodAffinityTerm(io.kubernetes.client.proto.V1.PodAffinityTerm value) { if (podAffinityTermBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && podAffinityTerm_ != null && podAffinityTerm_ != io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()) { podAffinityTerm_ = io.kubernetes.client.proto.V1.PodAffinityTerm.newBuilder(podAffinityTerm_) .mergeFrom(value) .buildPartial(); } else { podAffinityTerm_ = value; } onChanged(); } else { podAffinityTermBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public Builder clearPodAffinityTerm() { if (podAffinityTermBuilder_ == null) { podAffinityTerm_ = null; onChanged(); } else { podAffinityTermBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder getPodAffinityTermBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPodAffinityTermFieldBuilder().getBuilder(); } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder() { if (podAffinityTermBuilder_ != null) { return podAffinityTermBuilder_.getMessageOrBuilder(); } else { return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } } /** * * *
       * Required. A pod affinity term, associated with the corresponding weight.
       * 
* * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> getPodAffinityTermFieldBuilder() { if (podAffinityTermBuilder_ == null) { podAffinityTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder>( getPodAffinityTerm(), getParentForChildren(), isClean()); podAffinityTerm_ = null; } return podAffinityTermBuilder_; } @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.core.v1.WeightedPodAffinityTerm) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WeightedPodAffinityTerm) private static final io.kubernetes.client.proto.V1.WeightedPodAffinityTerm DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WeightedPodAffinityTerm(); } public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WeightedPodAffinityTerm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WeightedPodAffinityTerm(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.V1.WeightedPodAffinityTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WindowsSecurityContextOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WindowsSecurityContextOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
     * +optional
     * 
* * optional string gmsaCredentialSpecName = 1; */ boolean hasGmsaCredentialSpecName(); /** * * *
     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
     * +optional
     * 
* * optional string gmsaCredentialSpecName = 1; */ java.lang.String getGmsaCredentialSpecName(); /** * * *
     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
     * +optional
     * 
* * optional string gmsaCredentialSpecName = 1; */ com.google.protobuf.ByteString getGmsaCredentialSpecNameBytes(); /** * * *
     * GMSACredentialSpec is where the GMSA admission webhook
     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
     * GMSA credential spec named by the GMSACredentialSpecName field.
     * +optional
     * 
* * optional string gmsaCredentialSpec = 2; */ boolean hasGmsaCredentialSpec(); /** * * *
     * GMSACredentialSpec is where the GMSA admission webhook
     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
     * GMSA credential spec named by the GMSACredentialSpecName field.
     * +optional
     * 
* * optional string gmsaCredentialSpec = 2; */ java.lang.String getGmsaCredentialSpec(); /** * * *
     * GMSACredentialSpec is where the GMSA admission webhook
     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
     * GMSA credential spec named by the GMSACredentialSpecName field.
     * +optional
     * 
* * optional string gmsaCredentialSpec = 2; */ com.google.protobuf.ByteString getGmsaCredentialSpecBytes(); /** * * *
     * The UserName in Windows to run the entrypoint of the container process.
     * Defaults to the user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext. If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional string runAsUserName = 3; */ boolean hasRunAsUserName(); /** * * *
     * The UserName in Windows to run the entrypoint of the container process.
     * Defaults to the user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext. If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional string runAsUserName = 3; */ java.lang.String getRunAsUserName(); /** * * *
     * The UserName in Windows to run the entrypoint of the container process.
     * Defaults to the user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext. If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional string runAsUserName = 3; */ com.google.protobuf.ByteString getRunAsUserNameBytes(); /** * * *
     * HostProcess determines if a container should be run as a 'Host Process' container.
     * This field is alpha-level and will only be honored by components that enable the
     * WindowsHostProcessContainers feature flag. Setting this field without the feature
     * flag will result in errors when validating the Pod. All of a Pod's containers must
     * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
     * containers and non-HostProcess containers).  In addition, if HostProcess is true
     * then HostNetwork must also be set to true.
     * +optional
     * 
* * optional bool hostProcess = 4; */ boolean hasHostProcess(); /** * * *
     * HostProcess determines if a container should be run as a 'Host Process' container.
     * This field is alpha-level and will only be honored by components that enable the
     * WindowsHostProcessContainers feature flag. Setting this field without the feature
     * flag will result in errors when validating the Pod. All of a Pod's containers must
     * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
     * containers and non-HostProcess containers).  In addition, if HostProcess is true
     * then HostNetwork must also be set to true.
     * +optional
     * 
* * optional bool hostProcess = 4; */ boolean getHostProcess(); } /** * * *
   * WindowsSecurityContextOptions contain Windows-specific options and credentials.
   * 
* * Protobuf type {@code k8s.io.api.core.v1.WindowsSecurityContextOptions} */ public static final class WindowsSecurityContextOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WindowsSecurityContextOptions) WindowsSecurityContextOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use WindowsSecurityContextOptions.newBuilder() to construct. private WindowsSecurityContextOptions( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WindowsSecurityContextOptions() { gmsaCredentialSpecName_ = ""; gmsaCredentialSpec_ = ""; runAsUserName_ = ""; hostProcess_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WindowsSecurityContextOptions( 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; gmsaCredentialSpecName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; gmsaCredentialSpec_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; runAsUserName_ = bs; break; } case 32: { bitField0_ |= 0x00000008; hostProcess_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.class, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder.class); } private int bitField0_; public static final int GMSACREDENTIALSPECNAME_FIELD_NUMBER = 1; private volatile java.lang.Object gmsaCredentialSpecName_; /** * * *
     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
     * +optional
     * 
* * optional string gmsaCredentialSpecName = 1; */ public boolean hasGmsaCredentialSpecName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
     * +optional
     * 
* * optional string gmsaCredentialSpecName = 1; */ public java.lang.String getGmsaCredentialSpecName() { java.lang.Object ref = gmsaCredentialSpecName_; 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()) { gmsaCredentialSpecName_ = s; } return s; } } /** * * *
     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
     * +optional
     * 
* * optional string gmsaCredentialSpecName = 1; */ public com.google.protobuf.ByteString getGmsaCredentialSpecNameBytes() { java.lang.Object ref = gmsaCredentialSpecName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gmsaCredentialSpecName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GMSACREDENTIALSPEC_FIELD_NUMBER = 2; private volatile java.lang.Object gmsaCredentialSpec_; /** * * *
     * GMSACredentialSpec is where the GMSA admission webhook
     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
     * GMSA credential spec named by the GMSACredentialSpecName field.
     * +optional
     * 
* * optional string gmsaCredentialSpec = 2; */ public boolean hasGmsaCredentialSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * GMSACredentialSpec is where the GMSA admission webhook
     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
     * GMSA credential spec named by the GMSACredentialSpecName field.
     * +optional
     * 
* * optional string gmsaCredentialSpec = 2; */ public java.lang.String getGmsaCredentialSpec() { java.lang.Object ref = gmsaCredentialSpec_; 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()) { gmsaCredentialSpec_ = s; } return s; } } /** * * *
     * GMSACredentialSpec is where the GMSA admission webhook
     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
     * GMSA credential spec named by the GMSACredentialSpecName field.
     * +optional
     * 
* * optional string gmsaCredentialSpec = 2; */ public com.google.protobuf.ByteString getGmsaCredentialSpecBytes() { java.lang.Object ref = gmsaCredentialSpec_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gmsaCredentialSpec_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RUNASUSERNAME_FIELD_NUMBER = 3; private volatile java.lang.Object runAsUserName_; /** * * *
     * The UserName in Windows to run the entrypoint of the container process.
     * Defaults to the user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext. If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional string runAsUserName = 3; */ public boolean hasRunAsUserName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * The UserName in Windows to run the entrypoint of the container process.
     * Defaults to the user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext. If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional string runAsUserName = 3; */ public java.lang.String getRunAsUserName() { java.lang.Object ref = runAsUserName_; 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()) { runAsUserName_ = s; } return s; } } /** * * *
     * The UserName in Windows to run the entrypoint of the container process.
     * Defaults to the user specified in image metadata if unspecified.
     * May also be set in PodSecurityContext. If set in both SecurityContext and
     * PodSecurityContext, the value specified in SecurityContext takes precedence.
     * +optional
     * 
* * optional string runAsUserName = 3; */ public com.google.protobuf.ByteString getRunAsUserNameBytes() { java.lang.Object ref = runAsUserName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runAsUserName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOSTPROCESS_FIELD_NUMBER = 4; private boolean hostProcess_; /** * * *
     * HostProcess determines if a container should be run as a 'Host Process' container.
     * This field is alpha-level and will only be honored by components that enable the
     * WindowsHostProcessContainers feature flag. Setting this field without the feature
     * flag will result in errors when validating the Pod. All of a Pod's containers must
     * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
     * containers and non-HostProcess containers).  In addition, if HostProcess is true
     * then HostNetwork must also be set to true.
     * +optional
     * 
* * optional bool hostProcess = 4; */ public boolean hasHostProcess() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * HostProcess determines if a container should be run as a 'Host Process' container.
     * This field is alpha-level and will only be honored by components that enable the
     * WindowsHostProcessContainers feature flag. Setting this field without the feature
     * flag will result in errors when validating the Pod. All of a Pod's containers must
     * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
     * containers and non-HostProcess containers).  In addition, if HostProcess is true
     * then HostNetwork must also be set to true.
     * +optional
     * 
* * optional bool hostProcess = 4; */ public boolean getHostProcess() { return hostProcess_; } 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, gmsaCredentialSpecName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gmsaCredentialSpec_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runAsUserName_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, hostProcess_); } 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, gmsaCredentialSpecName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gmsaCredentialSpec_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runAsUserName_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, hostProcess_); } 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.V1.WindowsSecurityContextOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1.WindowsSecurityContextOptions other = (io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) obj; boolean result = true; result = result && (hasGmsaCredentialSpecName() == other.hasGmsaCredentialSpecName()); if (hasGmsaCredentialSpecName()) { result = result && getGmsaCredentialSpecName().equals(other.getGmsaCredentialSpecName()); } result = result && (hasGmsaCredentialSpec() == other.hasGmsaCredentialSpec()); if (hasGmsaCredentialSpec()) { result = result && getGmsaCredentialSpec().equals(other.getGmsaCredentialSpec()); } result = result && (hasRunAsUserName() == other.hasRunAsUserName()); if (hasRunAsUserName()) { result = result && getRunAsUserName().equals(other.getRunAsUserName()); } result = result && (hasHostProcess() == other.hasHostProcess()); if (hasHostProcess()) { result = result && (getHostProcess() == other.getHostProcess()); } 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 (hasGmsaCredentialSpecName()) { hash = (37 * hash) + GMSACREDENTIALSPECNAME_FIELD_NUMBER; hash = (53 * hash) + getGmsaCredentialSpecName().hashCode(); } if (hasGmsaCredentialSpec()) { hash = (37 * hash) + GMSACREDENTIALSPEC_FIELD_NUMBER; hash = (53 * hash) + getGmsaCredentialSpec().hashCode(); } if (hasRunAsUserName()) { hash = (37 * hash) + RUNASUSERNAME_FIELD_NUMBER; hash = (53 * hash) + getRunAsUserName().hashCode(); } if (hasHostProcess()) { hash = (37 * hash) + HOSTPROCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostProcess()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions 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.V1.WindowsSecurityContextOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions 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.V1.WindowsSecurityContextOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions 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.V1.WindowsSecurityContextOptions parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions 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.V1.WindowsSecurityContextOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions 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.V1.WindowsSecurityContextOptions 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; } /** * * *
     * WindowsSecurityContextOptions contain Windows-specific options and credentials.
     * 
* * Protobuf type {@code k8s.io.api.core.v1.WindowsSecurityContextOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WindowsSecurityContextOptions) io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1 .internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.class, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder.class); } // Construct using io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.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(); gmsaCredentialSpecName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); gmsaCredentialSpec_ = ""; bitField0_ = (bitField0_ & ~0x00000002); runAsUserName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); hostProcess_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes .client .proto .V1 .internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions build() { io.kubernetes.client.proto.V1.WindowsSecurityContextOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions buildPartial() { io.kubernetes.client.proto.V1.WindowsSecurityContextOptions result = new io.kubernetes.client.proto.V1.WindowsSecurityContextOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.gmsaCredentialSpecName_ = gmsaCredentialSpecName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.gmsaCredentialSpec_ = gmsaCredentialSpec_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.runAsUserName_ = runAsUserName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.hostProcess_ = hostProcess_; 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.V1.WindowsSecurityContextOptions) { return mergeFrom((io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1.WindowsSecurityContextOptions other) { if (other == io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance()) return this; if (other.hasGmsaCredentialSpecName()) { bitField0_ |= 0x00000001; gmsaCredentialSpecName_ = other.gmsaCredentialSpecName_; onChanged(); } if (other.hasGmsaCredentialSpec()) { bitField0_ |= 0x00000002; gmsaCredentialSpec_ = other.gmsaCredentialSpec_; onChanged(); } if (other.hasRunAsUserName()) { bitField0_ |= 0x00000004; runAsUserName_ = other.runAsUserName_; onChanged(); } if (other.hasHostProcess()) { setHostProcess(other.getHostProcess()); } 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.V1.WindowsSecurityContextOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object gmsaCredentialSpecName_ = ""; /** * * *
       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
       * +optional
       * 
* * optional string gmsaCredentialSpecName = 1; */ public boolean hasGmsaCredentialSpecName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
       * +optional
       * 
* * optional string gmsaCredentialSpecName = 1; */ public java.lang.String getGmsaCredentialSpecName() { java.lang.Object ref = gmsaCredentialSpecName_; 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()) { gmsaCredentialSpecName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
       * +optional
       * 
* * optional string gmsaCredentialSpecName = 1; */ public com.google.protobuf.ByteString getGmsaCredentialSpecNameBytes() { java.lang.Object ref = gmsaCredentialSpecName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gmsaCredentialSpecName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
       * +optional
       * 
* * optional string gmsaCredentialSpecName = 1; */ public Builder setGmsaCredentialSpecName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gmsaCredentialSpecName_ = value; onChanged(); return this; } /** * * *
       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
       * +optional
       * 
* * optional string gmsaCredentialSpecName = 1; */ public Builder clearGmsaCredentialSpecName() { bitField0_ = (bitField0_ & ~0x00000001); gmsaCredentialSpecName_ = getDefaultInstance().getGmsaCredentialSpecName(); onChanged(); return this; } /** * * *
       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
       * +optional
       * 
* * optional string gmsaCredentialSpecName = 1; */ public Builder setGmsaCredentialSpecNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gmsaCredentialSpecName_ = value; onChanged(); return this; } private java.lang.Object gmsaCredentialSpec_ = ""; /** * * *
       * GMSACredentialSpec is where the GMSA admission webhook
       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       * GMSA credential spec named by the GMSACredentialSpecName field.
       * +optional
       * 
* * optional string gmsaCredentialSpec = 2; */ public boolean hasGmsaCredentialSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * GMSACredentialSpec is where the GMSA admission webhook
       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       * GMSA credential spec named by the GMSACredentialSpecName field.
       * +optional
       * 
* * optional string gmsaCredentialSpec = 2; */ public java.lang.String getGmsaCredentialSpec() { java.lang.Object ref = gmsaCredentialSpec_; 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()) { gmsaCredentialSpec_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * GMSACredentialSpec is where the GMSA admission webhook
       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       * GMSA credential spec named by the GMSACredentialSpecName field.
       * +optional
       * 
* * optional string gmsaCredentialSpec = 2; */ public com.google.protobuf.ByteString getGmsaCredentialSpecBytes() { java.lang.Object ref = gmsaCredentialSpec_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gmsaCredentialSpec_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * GMSACredentialSpec is where the GMSA admission webhook
       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       * GMSA credential spec named by the GMSACredentialSpecName field.
       * +optional
       * 
* * optional string gmsaCredentialSpec = 2; */ public Builder setGmsaCredentialSpec(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; gmsaCredentialSpec_ = value; onChanged(); return this; } /** * * *
       * GMSACredentialSpec is where the GMSA admission webhook
       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       * GMSA credential spec named by the GMSACredentialSpecName field.
       * +optional
       * 
* * optional string gmsaCredentialSpec = 2; */ public Builder clearGmsaCredentialSpec() { bitField0_ = (bitField0_ & ~0x00000002); gmsaCredentialSpec_ = getDefaultInstance().getGmsaCredentialSpec(); onChanged(); return this; } /** * * *
       * GMSACredentialSpec is where the GMSA admission webhook
       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
       * GMSA credential spec named by the GMSACredentialSpecName field.
       * +optional
       * 
* * optional string gmsaCredentialSpec = 2; */ public Builder setGmsaCredentialSpecBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; gmsaCredentialSpec_ = value; onChanged(); return this; } private java.lang.Object runAsUserName_ = ""; /** * * *
       * The UserName in Windows to run the entrypoint of the container process.
       * Defaults to the user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext. If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional string runAsUserName = 3; */ public boolean hasRunAsUserName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * The UserName in Windows to run the entrypoint of the container process.
       * Defaults to the user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext. If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional string runAsUserName = 3; */ public java.lang.String getRunAsUserName() { java.lang.Object ref = runAsUserName_; 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()) { runAsUserName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The UserName in Windows to run the entrypoint of the container process.
       * Defaults to the user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext. If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional string runAsUserName = 3; */ public com.google.protobuf.ByteString getRunAsUserNameBytes() { java.lang.Object ref = runAsUserName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); runAsUserName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The UserName in Windows to run the entrypoint of the container process.
       * Defaults to the user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext. If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional string runAsUserName = 3; */ public Builder setRunAsUserName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; runAsUserName_ = value; onChanged(); return this; } /** * * *
       * The UserName in Windows to run the entrypoint of the container process.
       * Defaults to the user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext. If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional string runAsUserName = 3; */ public Builder clearRunAsUserName() { bitField0_ = (bitField0_ & ~0x00000004); runAsUserName_ = getDefaultInstance().getRunAsUserName(); onChanged(); return this; } /** * * *
       * The UserName in Windows to run the entrypoint of the container process.
       * Defaults to the user specified in image metadata if unspecified.
       * May also be set in PodSecurityContext. If set in both SecurityContext and
       * PodSecurityContext, the value specified in SecurityContext takes precedence.
       * +optional
       * 
* * optional string runAsUserName = 3; */ public Builder setRunAsUserNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; runAsUserName_ = value; onChanged(); return this; } private boolean hostProcess_; /** * * *
       * HostProcess determines if a container should be run as a 'Host Process' container.
       * This field is alpha-level and will only be honored by components that enable the
       * WindowsHostProcessContainers feature flag. Setting this field without the feature
       * flag will result in errors when validating the Pod. All of a Pod's containers must
       * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       * containers and non-HostProcess containers).  In addition, if HostProcess is true
       * then HostNetwork must also be set to true.
       * +optional
       * 
* * optional bool hostProcess = 4; */ public boolean hasHostProcess() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * HostProcess determines if a container should be run as a 'Host Process' container.
       * This field is alpha-level and will only be honored by components that enable the
       * WindowsHostProcessContainers feature flag. Setting this field without the feature
       * flag will result in errors when validating the Pod. All of a Pod's containers must
       * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       * containers and non-HostProcess containers).  In addition, if HostProcess is true
       * then HostNetwork must also be set to true.
       * +optional
       * 
* * optional bool hostProcess = 4; */ public boolean getHostProcess() { return hostProcess_; } /** * * *
       * HostProcess determines if a container should be run as a 'Host Process' container.
       * This field is alpha-level and will only be honored by components that enable the
       * WindowsHostProcessContainers feature flag. Setting this field without the feature
       * flag will result in errors when validating the Pod. All of a Pod's containers must
       * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       * containers and non-HostProcess containers).  In addition, if HostProcess is true
       * then HostNetwork must also be set to true.
       * +optional
       * 
* * optional bool hostProcess = 4; */ public Builder setHostProcess(boolean value) { bitField0_ |= 0x00000008; hostProcess_ = value; onChanged(); return this; } /** * * *
       * HostProcess determines if a container should be run as a 'Host Process' container.
       * This field is alpha-level and will only be honored by components that enable the
       * WindowsHostProcessContainers feature flag. Setting this field without the feature
       * flag will result in errors when validating the Pod. All of a Pod's containers must
       * have the same effective HostProcess value (it is not allowed to have a mix of HostProcess
       * containers and non-HostProcess containers).  In addition, if HostProcess is true
       * then HostNetwork must also be set to true.
       * +optional
       * 
* * optional bool hostProcess = 4; */ public Builder clearHostProcess() { bitField0_ = (bitField0_ & ~0x00000008); hostProcess_ = 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.core.v1.WindowsSecurityContextOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WindowsSecurityContextOptions) private static final io.kubernetes.client.proto.V1.WindowsSecurityContextOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WindowsSecurityContextOptions(); } public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WindowsSecurityContextOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WindowsSecurityContextOptions(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.V1.WindowsSecurityContextOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Affinity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Affinity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_AttachedVolume_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_AvoidPods_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_AvoidPods_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Binding_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Binding_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_VolumeAttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_VolumeAttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CSIVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CSIVolumeSource_VolumeAttributesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CSIVolumeSource_VolumeAttributesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Capabilities_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Capabilities_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CephFSVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_CinderVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ClientIPConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ClientIPConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ComponentCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ComponentStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ComponentStatusList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMap_DataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMap_DataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMap_BinaryDataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMap_BinaryDataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMapList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMapProjection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Container_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Container_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerImage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerImage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerPort_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerPort_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerStateRunning_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerStateTerminated_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerStateWaiting_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ContainerStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_DaemonEndpoint_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_DownwardAPIProjection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_DownwardAPIProjection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EndpointAddress_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EndpointAddress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EndpointPort_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EndpointPort_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EndpointSubset_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EndpointSubset_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Endpoints_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Endpoints_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EndpointsList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EndpointsList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EnvFromSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EnvFromSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EnvVar_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EnvVar_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EnvVarSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EnvVarSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EphemeralContainer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EphemeralContainer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Event_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Event_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EventList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EventList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EventSeries_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EventSeries_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_EventSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_EventSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ExecAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ExecAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_FCVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_FCVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_OptionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_FlexVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_FlexVolumeSource_OptionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_FlexVolumeSource_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_FlockerVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_FlockerVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_HTTPGetAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_HTTPGetAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_HTTPHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_HTTPHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_HostAlias_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_HostAlias_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_HostPathVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_HostPathVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_KeyToPath_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_KeyToPath_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Lifecycle_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Lifecycle_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LifecycleHandler_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LifecycleHandler_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeItem_MinEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeItem_MinEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultRequestEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultRequestEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxLimitRequestRatioEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxLimitRequestRatioEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LimitRangeSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LimitRangeSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_List_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_List_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LoadBalancerIngress_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LoadBalancerIngress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LoadBalancerStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LoadBalancerStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LocalObjectReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LocalObjectReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_LocalVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_LocalVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NFSVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NFSVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Namespace_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Namespace_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NamespaceCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NamespaceCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NamespaceList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NamespaceList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NamespaceSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NamespaceSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NamespaceStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NamespaceStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Node_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Node_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeAddress_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeAddress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeAffinity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeConfigSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeConfigStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeProxyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeResources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeResources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeResources_CapacityEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeResources_CapacityEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeSelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeSelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeSelectorTerm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeStatus_CapacityEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeStatus_CapacityEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeSystemInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ObjectFieldSelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ObjectReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ObjectReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolume_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_CapacityEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_CapacityEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Pod_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Pod_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodAffinity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodAffinity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodAffinityTerm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodAntiAffinity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodAttachOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodDNSConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodDNSConfigOption_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodExecOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodIP_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodIP_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodLogOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodOS_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodOS_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodPortForwardOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodProxyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodReadinessGate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodSecurityContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodSignature_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodSignature_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodTemplateList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodTemplateSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PortStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PortStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PortworxVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Preconditions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Preconditions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Probe_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Probe_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ProbeHandler_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_RBDVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_RangeAllocation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ReplicationController_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ReplicationController_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ReplicationControllerList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceFieldSelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuota_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuotaList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_HardEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_HardEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceRequirements_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceRequirements_LimitsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceRequirements_LimitsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SELinuxOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ScopeSelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SeccompProfile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Secret_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Secret_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Secret_DataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Secret_DataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecretEnvSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecretKeySelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecretList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecretList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecretProjection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecretProjection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecretReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecretReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecretVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SecurityContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SecurityContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SerializedReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SerializedReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Service_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Service_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceAccount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceAccountList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServicePort_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServicePort_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceProxyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_ServiceStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_SessionAffinityConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Sysctl_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Sysctl_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_TCPSocketAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Taint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Taint_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Toleration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Toleration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_TopologySelectorTerm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_Volume_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_Volume_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_VolumeDevice_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_VolumeMount_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_VolumeMount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_VolumeProjection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_VolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_VolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_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/core/v1/generated.proto\022\022k8" + "s.io.api.core.v1\0324k8s.io/apimachinery/pk" + "g/api/resource/generated.proto\0324k8s.io/a" + "pimachinery/pkg/apis/meta/v1/generated.p" + "roto\032/k8s.io/apimachinery/pkg/runtime/ge" + "nerated.proto\0326k8s.io/apimachinery/pkg/r" + "untime/schema/generated.proto\0323k8s.io/ap" + "imachinery/pkg/util/intstr/generated.pro" + "to\"i\n AWSElasticBlockStoreVolumeSource\022\020" + "\n\010volumeID\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\022\021\n\tpart" + "ition\030\003 \001(\005\022\020\n\010readOnly\030\004 \001(\010\"\266\001\n\010Affini" + "ty\0226\n\014nodeAffinity\030\001 \001(\0132 .k8s.io.api.co" + "re.v1.NodeAffinity\0224\n\013podAffinity\030\002 \001(\0132" + "\037.k8s.io.api.core.v1.PodAffinity\022<\n\017podA" + "ntiAffinity\030\003 \001(\0132#.k8s.io.api.core.v1.P" + "odAntiAffinity\"2\n\016AttachedVolume\022\014\n\004name" + "\030\001 \001(\t\022\022\n\ndevicePath\030\002 \001(\t\"N\n\tAvoidPods\022" + "A\n\017preferAvoidPods\030\001 \003(\0132(.k8s.io.api.co" + "re.v1.PreferAvoidPodsEntry\"\177\n\025AzureDiskV" + "olumeSource\022\020\n\010diskName\030\001 \001(\t\022\017\n\007diskURI" + "\030\002 \001(\t\022\023\n\013cachingMode\030\003 \001(\t\022\016\n\006fsType\030\004 " + "\001(\t\022\020\n\010readOnly\030\005 \001(\010\022\014\n\004kind\030\006 \001(\t\"s\n\037A" + "zureFilePersistentVolumeSource\022\022\n\nsecret" + "Name\030\001 \001(\t\022\021\n\tshareName\030\002 \001(\t\022\020\n\010readOnl" + "y\030\003 \001(\010\022\027\n\017secretNamespace\030\004 \001(\t\"P\n\025Azur" + "eFileVolumeSource\022\022\n\nsecretName\030\001 \001(\t\022\021\n" + "\tshareName\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\"\202\001\n\007B" + "inding\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimac" + "hinery.pkg.apis.meta.v1.ObjectMeta\0223\n\006ta" + "rget\030\002 \001(\0132#.k8s.io.api.core.v1.ObjectRe" + "ference\"\220\004\n\031CSIPersistentVolumeSource\022\016\n" + "\006driver\030\001 \001(\t\022\024\n\014volumeHandle\030\002 \001(\t\022\020\n\010r" + "eadOnly\030\003 \001(\010\022\016\n\006fsType\030\004 \001(\t\022]\n\020volumeA" + "ttributes\030\005 \003(\0132C.k8s.io.api.core.v1.CSI" + "PersistentVolumeSource.VolumeAttributesE" + "ntry\022G\n\032controllerPublishSecretRef\030\006 \001(\013" + "2#.k8s.io.api.core.v1.SecretReference\022?\n" + "\022nodeStageSecretRef\030\007 \001(\0132#.k8s.io.api.c" + "ore.v1.SecretReference\022A\n\024nodePublishSec" + "retRef\030\010 \001(\0132#.k8s.io.api.core.v1.Secret" + "Reference\022F\n\031controllerExpandSecretRef\030\t" + " \001(\0132#.k8s.io.api.core.v1.SecretReferenc" + "e\0327\n\025VolumeAttributesEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\"\231\002\n\017CSIVolumeSource\022\016" + "\n\006driver\030\001 \001(\t\022\020\n\010readOnly\030\002 \001(\010\022\016\n\006fsTy" + "pe\030\003 \001(\t\022S\n\020volumeAttributes\030\004 \003(\01329.k8s" + ".io.api.core.v1.CSIVolumeSource.VolumeAt" + "tributesEntry\022F\n\024nodePublishSecretRef\030\005 " + "\001(\0132(.k8s.io.api.core.v1.LocalObjectRefe" + "rence\0327\n\025VolumeAttributesEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\")\n\014Capabilities\022\013" + "\n\003add\030\001 \003(\t\022\014\n\004drop\030\002 \003(\t\"\252\001\n\034CephFSPers" + "istentVolumeSource\022\020\n\010monitors\030\001 \003(\t\022\014\n\004" + "path\030\002 \001(\t\022\014\n\004user\030\003 \001(\t\022\022\n\nsecretFile\030\004" + " \001(\t\0226\n\tsecretRef\030\005 \001(\0132#.k8s.io.api.cor" + "e.v1.SecretReference\022\020\n\010readOnly\030\006 \001(\010\"\245" + "\001\n\022CephFSVolumeSource\022\020\n\010monitors\030\001 \003(\t\022" + "\014\n\004path\030\002 \001(\t\022\014\n\004user\030\003 \001(\t\022\022\n\nsecretFil" + "e\030\004 \001(\t\022;\n\tsecretRef\030\005 \001(\0132(.k8s.io.api." + "core.v1.LocalObjectReference\022\020\n\010readOnly" + "\030\006 \001(\010\"\212\001\n\034CinderPersistentVolumeSource\022" + "\020\n\010volumeID\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\022\020\n\010rea" + "dOnly\030\003 \001(\010\0226\n\tsecretRef\030\004 \001(\0132#.k8s.io." + "api.core.v1.SecretReference\"\205\001\n\022CinderVo" + "lumeSource\022\020\n\010volumeID\030\001 \001(\t\022\016\n\006fsType\030\002" + " \001(\t\022\020\n\010readOnly\030\003 \001(\010\022;\n\tsecretRef\030\004 \001(" + "\0132(.k8s.io.api.core.v1.LocalObjectRefere" + "nce\"(\n\016ClientIPConfig\022\026\n\016timeoutSeconds\030" + "\001 \001(\005\"R\n\022ComponentCondition\022\014\n\004type\030\001 \001(" + "\t\022\016\n\006status\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022\r\n\005er" + "ror\030\004 \001(\t\"\221\001\n\017ComponentStatus\022B\n\010metadat" + "a\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis.m" + "eta.v1.ObjectMeta\022:\n\nconditions\030\002 \003(\0132&." + "k8s.io.api.core.v1.ComponentCondition\"\213\001" + "\n\023ComponentStatusList\022@\n\010metadata\030\001 \001(\0132" + "..k8s.io.apimachinery.pkg.apis.meta.v1.L" + "istMeta\0222\n\005items\030\002 \003(\0132#.k8s.io.api.core" + ".v1.ComponentStatus\"\274\002\n\tConfigMap\022B\n\010met" + "adata\030\001 \001(\01320.k8s.io.apimachinery.pkg.ap" + "is.meta.v1.ObjectMeta\022\021\n\timmutable\030\004 \001(\010" + "\0225\n\004data\030\002 \003(\0132\'.k8s.io.api.core.v1.Conf" + "igMap.DataEntry\022A\n\nbinaryData\030\003 \003(\0132-.k8" + "s.io.api.core.v1.ConfigMap.BinaryDataEnt" + "ry\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t:\0028\001\0321\n\017BinaryDataEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\014:\0028\001\"n\n\022ConfigMapEnvSource" + "\022F\n\024localObjectReference\030\001 \001(\0132(.k8s.io." + "api.core.v1.LocalObjectReference\022\020\n\010opti" + "onal\030\002 \001(\010\"}\n\024ConfigMapKeySelector\022F\n\024lo" + "calObjectReference\030\001 \001(\0132(.k8s.io.api.co" + "re.v1.LocalObjectReference\022\013\n\003key\030\002 \001(\t\022" + "\020\n\010optional\030\003 \001(\010\"\177\n\rConfigMapList\022@\n\010me" + "tadata\030\001 \001(\0132..k8s.io.apimachinery.pkg.a" + "pis.meta.v1.ListMeta\022,\n\005items\030\002 \003(\0132\035.k8" + "s.io.api.core.v1.ConfigMap\"|\n\031ConfigMapN" + "odeConfigSource\022\021\n\tnamespace\030\001 \001(\t\022\014\n\004na" + "me\030\002 \001(\t\022\013\n\003uid\030\003 \001(\t\022\027\n\017resourceVersion" + "\030\004 \001(\t\022\030\n\020kubeletConfigKey\030\005 \001(\t\"\235\001\n\023Con" + "figMapProjection\022F\n\024localObjectReference" + "\030\001 \001(\0132(.k8s.io.api.core.v1.LocalObjectR" + "eference\022,\n\005items\030\002 \003(\0132\035.k8s.io.api.cor" + "e.v1.KeyToPath\022\020\n\010optional\030\004 \001(\010\"\264\001\n\025Con" + "figMapVolumeSource\022F\n\024localObjectReferen" + "ce\030\001 \001(\0132(.k8s.io.api.core.v1.LocalObjec" + "tReference\022,\n\005items\030\002 \003(\0132\035.k8s.io.api.c" + "ore.v1.KeyToPath\022\023\n\013defaultMode\030\003 \001(\005\022\020\n" + "\010optional\030\004 \001(\010\"\247\006\n\tContainer\022\014\n\004name\030\001 " + "\001(\t\022\r\n\005image\030\002 \001(\t\022\017\n\007command\030\003 \003(\t\022\014\n\004a" + "rgs\030\004 \003(\t\022\022\n\nworkingDir\030\005 \001(\t\0220\n\005ports\030\006" + " \003(\0132!.k8s.io.api.core.v1.ContainerPort\022" + "2\n\007envFrom\030\023 \003(\0132!.k8s.io.api.core.v1.En" + "vFromSource\022\'\n\003env\030\007 \003(\0132\032.k8s.io.api.co" + "re.v1.EnvVar\022;\n\tresources\030\010 \001(\0132(.k8s.io" + ".api.core.v1.ResourceRequirements\0225\n\014vol" + "umeMounts\030\t \003(\0132\037.k8s.io.api.core.v1.Vol" + "umeMount\0227\n\rvolumeDevices\030\025 \003(\0132 .k8s.io" + ".api.core.v1.VolumeDevice\0220\n\rlivenessPro" + "be\030\n \001(\0132\031.k8s.io.api.core.v1.Probe\0221\n\016r" + "eadinessProbe\030\013 \001(\0132\031.k8s.io.api.core.v1" + ".Probe\022/\n\014startupProbe\030\026 \001(\0132\031.k8s.io.ap" + "i.core.v1.Probe\0220\n\tlifecycle\030\014 \001(\0132\035.k8s" + ".io.api.core.v1.Lifecycle\022\036\n\026termination" + "MessagePath\030\r \001(\t\022 \n\030terminationMessageP" + "olicy\030\024 \001(\t\022\027\n\017imagePullPolicy\030\016 \001(\t\022<\n\017" + "securityContext\030\017 \001(\0132#.k8s.io.api.core." + "v1.SecurityContext\022\r\n\005stdin\030\020 \001(\010\022\021\n\tstd" + "inOnce\030\021 \001(\010\022\013\n\003tty\030\022 \001(\010\"2\n\016ContainerIm" + "age\022\r\n\005names\030\001 \003(\t\022\021\n\tsizeBytes\030\002 \001(\003\"h\n" + "\rContainerPort\022\014\n\004name\030\001 \001(\t\022\020\n\010hostPort" + "\030\002 \001(\005\022\025\n\rcontainerPort\030\003 \001(\005\022\020\n\010protoco" + "l\030\004 \001(\t\022\016\n\006hostIP\030\005 \001(\t\"\312\001\n\016ContainerSta" + "te\022:\n\007waiting\030\001 \001(\0132).k8s.io.api.core.v1" + ".ContainerStateWaiting\022:\n\007running\030\002 \001(\0132" + ").k8s.io.api.core.v1.ContainerStateRunni" + "ng\022@\n\nterminated\030\003 \001(\0132,.k8s.io.api.core" + ".v1.ContainerStateTerminated\"V\n\025Containe" + "rStateRunning\022=\n\tstartedAt\030\001 \001(\0132*.k8s.i" + "o.apimachinery.pkg.apis.meta.v1.Time\"\361\001\n" + "\030ContainerStateTerminated\022\020\n\010exitCode\030\001 " + "\001(\005\022\016\n\006signal\030\002 \001(\005\022\016\n\006reason\030\003 \001(\t\022\017\n\007m" + "essage\030\004 \001(\t\022=\n\tstartedAt\030\005 \001(\0132*.k8s.io" + ".apimachinery.pkg.apis.meta.v1.Time\022>\n\nf" + "inishedAt\030\006 \001(\0132*.k8s.io.apimachinery.pk" + "g.apis.meta.v1.Time\022\023\n\013containerID\030\007 \001(\t" + "\"8\n\025ContainerStateWaiting\022\016\n\006reason\030\001 \001(" + "\t\022\017\n\007message\030\002 \001(\t\"\364\001\n\017ContainerStatus\022\014" + "\n\004name\030\001 \001(\t\0221\n\005state\030\002 \001(\0132\".k8s.io.api" + ".core.v1.ContainerState\0225\n\tlastState\030\003 \001" + "(\0132\".k8s.io.api.core.v1.ContainerState\022\r" + "\n\005ready\030\004 \001(\010\022\024\n\014restartCount\030\005 \001(\005\022\r\n\005i" + "mage\030\006 \001(\t\022\017\n\007imageID\030\007 \001(\t\022\023\n\013container" + "ID\030\010 \001(\t\022\017\n\007started\030\t \001(\010\"\036\n\016DaemonEndpo" + "int\022\014\n\004Port\030\001 \001(\005\"Q\n\025DownwardAPIProjecti" + "on\0228\n\005items\030\001 \003(\0132).k8s.io.api.core.v1.D" + "ownwardAPIVolumeFile\"\263\001\n\025DownwardAPIVolu" + "meFile\022\014\n\004path\030\001 \001(\t\0229\n\010fieldRef\030\002 \001(\0132\'" + ".k8s.io.api.core.v1.ObjectFieldSelector\022" + "C\n\020resourceFieldRef\030\003 \001(\0132).k8s.io.api.c" + "ore.v1.ResourceFieldSelector\022\014\n\004mode\030\004 \001" + "(\005\"h\n\027DownwardAPIVolumeSource\0228\n\005items\030\001" + " \003(\0132).k8s.io.api.core.v1.DownwardAPIVol" + "umeFile\022\023\n\013defaultMode\030\002 \001(\005\"i\n\024EmptyDir" + "VolumeSource\022\016\n\006medium\030\001 \001(\t\022A\n\tsizeLimi" + "t\030\002 \001(\0132..k8s.io.apimachinery.pkg.api.re" + "source.Quantity\"y\n\017EndpointAddress\022\n\n\002ip" + "\030\001 \001(\t\022\020\n\010hostname\030\003 \001(\t\022\020\n\010nodeName\030\004 \001" + "(\t\0226\n\ttargetRef\030\002 \001(\0132#.k8s.io.api.core." + "v1.ObjectReference\"Q\n\014EndpointPort\022\014\n\004na" + "me\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022\020\n\010protocol\030\003 \001(\t" + "\022\023\n\013appProtocol\030\004 \001(\t\"\271\001\n\016EndpointSubset" + "\0226\n\taddresses\030\001 \003(\0132#.k8s.io.api.core.v1" + ".EndpointAddress\022>\n\021notReadyAddresses\030\002 " + "\003(\0132#.k8s.io.api.core.v1.EndpointAddress" + "\022/\n\005ports\030\003 \003(\0132 .k8s.io.api.core.v1.End" + "pointPort\"\204\001\n\tEndpoints\022B\n\010metadata\030\001 \001(" + "\01320.k8s.io.apimachinery.pkg.apis.meta.v1" + ".ObjectMeta\0223\n\007subsets\030\002 \003(\0132\".k8s.io.ap" + "i.core.v1.EndpointSubset\"\177\n\rEndpointsLis" + "t\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachiner" + "y.pkg.apis.meta.v1.ListMeta\022,\n\005items\030\002 \003" + "(\0132\035.k8s.io.api.core.v1.Endpoints\"\225\001\n\rEn" + "vFromSource\022\016\n\006prefix\030\001 \001(\t\022<\n\014configMap" + "Ref\030\002 \001(\0132&.k8s.io.api.core.v1.ConfigMap" + "EnvSource\0226\n\tsecretRef\030\003 \001(\0132#.k8s.io.ap" + "i.core.v1.SecretEnvSource\"Z\n\006EnvVar\022\014\n\004n" + "ame\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0223\n\tvalueFrom\030\003 " + "\001(\0132 .k8s.io.api.core.v1.EnvVarSource\"\216\002" + "\n\014EnvVarSource\0229\n\010fieldRef\030\001 \001(\0132\'.k8s.i" + "o.api.core.v1.ObjectFieldSelector\022C\n\020res" + "ourceFieldRef\030\002 \001(\0132).k8s.io.api.core.v1" + ".ResourceFieldSelector\022A\n\017configMapKeyRe" + "f\030\003 \001(\0132(.k8s.io.api.core.v1.ConfigMapKe" + "ySelector\022;\n\014secretKeyRef\030\004 \001(\0132%.k8s.io" + ".api.core.v1.SecretKeySelector\"\201\001\n\022Ephem" + "eralContainer\022N\n\030ephemeralContainerCommo" + "n\030\001 \001(\0132,.k8s.io.api.core.v1.EphemeralCo" + "ntainerCommon\022\033\n\023targetContainerName\030\002 \001" + "(\t\"\266\006\n\030EphemeralContainerCommon\022\014\n\004name\030" + "\001 \001(\t\022\r\n\005image\030\002 \001(\t\022\017\n\007command\030\003 \003(\t\022\014\n" + "\004args\030\004 \003(\t\022\022\n\nworkingDir\030\005 \001(\t\0220\n\005ports" + "\030\006 \003(\0132!.k8s.io.api.core.v1.ContainerPor" + "t\0222\n\007envFrom\030\023 \003(\0132!.k8s.io.api.core.v1." + "EnvFromSource\022\'\n\003env\030\007 \003(\0132\032.k8s.io.api." + "core.v1.EnvVar\022;\n\tresources\030\010 \001(\0132(.k8s." + "io.api.core.v1.ResourceRequirements\0225\n\014v" + "olumeMounts\030\t \003(\0132\037.k8s.io.api.core.v1.V" + "olumeMount\0227\n\rvolumeDevices\030\025 \003(\0132 .k8s." + "io.api.core.v1.VolumeDevice\0220\n\rlivenessP" + "robe\030\n \001(\0132\031.k8s.io.api.core.v1.Probe\0221\n" + "\016readinessProbe\030\013 \001(\0132\031.k8s.io.api.core." + "v1.Probe\022/\n\014startupProbe\030\026 \001(\0132\031.k8s.io." + "api.core.v1.Probe\0220\n\tlifecycle\030\014 \001(\0132\035.k" + "8s.io.api.core.v1.Lifecycle\022\036\n\026terminati" + "onMessagePath\030\r \001(\t\022 \n\030terminationMessag" + "ePolicy\030\024 \001(\t\022\027\n\017imagePullPolicy\030\016 \001(\t\022<" + "\n\017securityContext\030\017 \001(\0132#.k8s.io.api.cor" + "e.v1.SecurityContext\022\r\n\005stdin\030\020 \001(\010\022\021\n\ts" + "tdinOnce\030\021 \001(\010\022\013\n\003tty\030\022 \001(\010\"g\n\025Ephemeral" + "VolumeSource\022N\n\023volumeClaimTemplate\030\001 \001(" + "\01321.k8s.io.api.core.v1.PersistentVolumeC" + "laimTemplate\"\360\004\n\005Event\022B\n\010metadata\030\001 \001(\013" + "20.k8s.io.apimachinery.pkg.apis.meta.v1." + "ObjectMeta\022;\n\016involvedObject\030\002 \001(\0132#.k8s" + ".io.api.core.v1.ObjectReference\022\016\n\006reaso" + "n\030\003 \001(\t\022\017\n\007message\030\004 \001(\t\022/\n\006source\030\005 \001(\013" + "2\037.k8s.io.api.core.v1.EventSource\022B\n\016fir" + "stTimestamp\030\006 \001(\0132*.k8s.io.apimachinery." + "pkg.apis.meta.v1.Time\022A\n\rlastTimestamp\030\007" + " \001(\0132*.k8s.io.apimachinery.pkg.apis.meta" + ".v1.Time\022\r\n\005count\030\010 \001(\005\022\014\n\004type\030\t \001(\t\022B\n" + "\teventTime\030\n \001(\0132/.k8s.io.apimachinery.p" + "kg.apis.meta.v1.MicroTime\022/\n\006series\030\013 \001(" + "\0132\037.k8s.io.api.core.v1.EventSeries\022\016\n\006ac" + "tion\030\014 \001(\t\0224\n\007related\030\r \001(\0132#.k8s.io.api" + ".core.v1.ObjectReference\022\032\n\022reportingCom" + "ponent\030\016 \001(\t\022\031\n\021reportingInstance\030\017 \001(\t\"" + "w\n\tEventList\022@\n\010metadata\030\001 \001(\0132..k8s.io." + "apimachinery.pkg.apis.meta.v1.ListMeta\022(" + "\n\005items\030\002 \003(\0132\031.k8s.io.api.core.v1.Event" + "\"g\n\013EventSeries\022\r\n\005count\030\001 \001(\005\022I\n\020lastOb" + "servedTime\030\002 \001(\0132/.k8s.io.apimachinery.p" + "kg.apis.meta.v1.MicroTime\".\n\013EventSource" + "\022\021\n\tcomponent\030\001 \001(\t\022\014\n\004host\030\002 \001(\t\"\035\n\nExe" + "cAction\022\017\n\007command\030\001 \003(\t\"b\n\016FCVolumeSour" + "ce\022\022\n\ntargetWWNs\030\001 \003(\t\022\013\n\003lun\030\002 \001(\005\022\016\n\006f" + "sType\030\003 \001(\t\022\020\n\010readOnly\030\004 \001(\010\022\r\n\005wwids\030\005" + " \003(\t\"\204\002\n\032FlexPersistentVolumeSource\022\016\n\006d" + "river\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\0226\n\tsecretRef" + "\030\003 \001(\0132#.k8s.io.api.core.v1.SecretRefere" + "nce\022\020\n\010readOnly\030\004 \001(\010\022L\n\007options\030\005 \003(\0132;" + ".k8s.io.api.core.v1.FlexPersistentVolume" + "Source.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\365\001\n\020FlexVolu" + "meSource\022\016\n\006driver\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t" + "\022;\n\tsecretRef\030\003 \001(\0132(.k8s.io.api.core.v1" + ".LocalObjectReference\022\020\n\010readOnly\030\004 \001(\010\022" + "B\n\007options\030\005 \003(\01321.k8s.io.api.core.v1.Fl" + "exVolumeSource.OptionsEntry\032.\n\014OptionsEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"?\n\023F" + "lockerVolumeSource\022\023\n\013datasetName\030\001 \001(\t\022" + "\023\n\013datasetUUID\030\002 \001(\t\"d\n\035GCEPersistentDis" + "kVolumeSource\022\016\n\006pdName\030\001 \001(\t\022\016\n\006fsType\030" + "\002 \001(\t\022\021\n\tpartition\030\003 \001(\005\022\020\n\010readOnly\030\004 \001" + "(\010\"N\n\023GitRepoVolumeSource\022\022\n\nrepository\030" + "\001 \001(\t\022\020\n\010revision\030\002 \001(\t\022\021\n\tdirectory\030\003 \001" + "(\t\"p\n\037GlusterfsPersistentVolumeSource\022\021\n" + "\tendpoints\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\022\020\n\010readOn" + "ly\030\003 \001(\010\022\032\n\022endpointsNamespace\030\004 \001(\t\"J\n\025" + "GlusterfsVolumeSource\022\021\n\tendpoints\030\001 \001(\t" + "\022\014\n\004path\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\"\260\001\n\rHTT" + "PGetAction\022\014\n\004path\030\001 \001(\t\022>\n\004port\030\002 \001(\01320" + ".k8s.io.apimachinery.pkg.util.intstr.Int" + "OrString\022\014\n\004host\030\003 \001(\t\022\016\n\006scheme\030\004 \001(\t\0223" + "\n\013httpHeaders\030\005 \003(\0132\036.k8s.io.api.core.v1" + ".HTTPHeader\")\n\nHTTPHeader\022\014\n\004name\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t\"*\n\tHostAlias\022\n\n\002ip\030\001 \001(\t\022" + "\021\n\thostnames\030\002 \003(\t\"2\n\024HostPathVolumeSour" + "ce\022\014\n\004path\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\"\233\002\n\033ISCSI" + "PersistentVolumeSource\022\024\n\014targetPortal\030\001" + " \001(\t\022\013\n\003iqn\030\002 \001(\t\022\013\n\003lun\030\003 \001(\005\022\026\n\016iscsiI" + "nterface\030\004 \001(\t\022\016\n\006fsType\030\005 \001(\t\022\020\n\010readOn" + "ly\030\006 \001(\010\022\017\n\007portals\030\007 \003(\t\022\031\n\021chapAuthDis" + "covery\030\010 \001(\010\022\027\n\017chapAuthSession\030\013 \001(\010\0226\n" + "\tsecretRef\030\n \001(\0132#.k8s.io.api.core.v1.Se" + "cretReference\022\025\n\rinitiatorName\030\014 \001(\t\"\226\002\n" + "\021ISCSIVolumeSource\022\024\n\014targetPortal\030\001 \001(\t" + "\022\013\n\003iqn\030\002 \001(\t\022\013\n\003lun\030\003 \001(\005\022\026\n\016iscsiInter" + "face\030\004 \001(\t\022\016\n\006fsType\030\005 \001(\t\022\020\n\010readOnly\030\006" + " \001(\010\022\017\n\007portals\030\007 \003(\t\022\031\n\021chapAuthDiscove" + "ry\030\010 \001(\010\022\027\n\017chapAuthSession\030\013 \001(\010\022;\n\tsec" + "retRef\030\n \001(\0132(.k8s.io.api.core.v1.LocalO" + "bjectReference\022\025\n\rinitiatorName\030\014 \001(\t\"4\n" + "\tKeyToPath\022\013\n\003key\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\022\014\n" + "\004mode\030\003 \001(\005\"{\n\tLifecycle\0227\n\tpostStart\030\001 " + "\001(\0132$.k8s.io.api.core.v1.LifecycleHandle" + "r\0225\n\007preStop\030\002 \001(\0132$.k8s.io.api.core.v1." + "LifecycleHandler\"\254\001\n\020LifecycleHandler\022,\n" + "\004exec\030\001 \001(\0132\036.k8s.io.api.core.v1.ExecAct" + "ion\0222\n\007httpGet\030\002 \001(\0132!.k8s.io.api.core.v" + "1.HTTPGetAction\0226\n\ttcpSocket\030\003 \001(\0132#.k8s" + ".io.api.core.v1.TCPSocketAction\"\202\001\n\nLimi" + "tRange\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimac" + "hinery.pkg.apis.meta.v1.ObjectMeta\0220\n\004sp" + "ec\030\002 \001(\0132\".k8s.io.api.core.v1.LimitRange" + "Spec\"\354\006\n\016LimitRangeItem\022\014\n\004type\030\001 \001(\t\0228\n" + "\003max\030\002 \003(\0132+.k8s.io.api.core.v1.LimitRan" + "geItem.MaxEntry\0228\n\003min\030\003 \003(\0132+.k8s.io.ap" + "i.core.v1.LimitRangeItem.MinEntry\022@\n\007def" + "ault\030\004 \003(\0132/.k8s.io.api.core.v1.LimitRan" + "geItem.DefaultEntry\022N\n\016defaultRequest\030\005 " + "\003(\01326.k8s.io.api.core.v1.LimitRangeItem." + "DefaultRequestEntry\022Z\n\024maxLimitRequestRa" + "tio\030\006 \003(\0132<.k8s.io.api.core.v1.LimitRang" + "eItem.MaxLimitRequestRatioEntry\032Z\n\010MaxEn" + "try\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io" + ".apimachinery.pkg.api.resource.Quantity:" + "\0028\001\032Z\n\010MinEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 " + "\001(\0132..k8s.io.apimachinery.pkg.api.resour" + "ce.Quantity:\0028\001\032^\n\014DefaultEntry\022\013\n\003key\030\001" + " \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachiner" + "y.pkg.api.resource.Quantity:\0028\001\032e\n\023Defau" + "ltRequestEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001" + "(\0132..k8s.io.apimachinery.pkg.api.resourc" + "e.Quantity:\0028\001\032k\n\031MaxLimitRequestRatioEn" + "try\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io" + ".apimachinery.pkg.api.resource.Quantity:" + "\0028\001\"\201\001\n\016LimitRangeList\022@\n\010metadata\030\001 \001(\013" + "2..k8s.io.apimachinery.pkg.apis.meta.v1." + "ListMeta\022-\n\005items\030\002 \003(\0132\036.k8s.io.api.cor" + "e.v1.LimitRange\"D\n\016LimitRangeSpec\0222\n\006lim" + "its\030\001 \003(\0132\".k8s.io.api.core.v1.LimitRang" + "eItem\"\206\001\n\004List\022@\n\010metadata\030\001 \001(\0132..k8s.i" + "o.apimachinery.pkg.apis.meta.v1.ListMeta" + "\022<\n\005items\030\002 \003(\0132-.k8s.io.apimachinery.pk" + "g.runtime.RawExtension\"b\n\023LoadBalancerIn" + "gress\022\n\n\002ip\030\001 \001(\t\022\020\n\010hostname\030\002 \001(\t\022-\n\005p" + "orts\030\004 \003(\0132\036.k8s.io.api.core.v1.PortStat" + "us\"N\n\022LoadBalancerStatus\0228\n\007ingress\030\001 \003(" + "\0132\'.k8s.io.api.core.v1.LoadBalancerIngre" + "ss\"$\n\024LocalObjectReference\022\014\n\004name\030\001 \001(\t" + "\"1\n\021LocalVolumeSource\022\014\n\004path\030\001 \001(\t\022\016\n\006f" + "sType\030\002 \001(\t\"A\n\017NFSVolumeSource\022\016\n\006server" + "\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\"\265" + "\001\n\tNamespace\022B\n\010metadata\030\001 \001(\01320.k8s.io." + "apimachinery.pkg.apis.meta.v1.ObjectMeta" + "\022/\n\004spec\030\002 \001(\0132!.k8s.io.api.core.v1.Name" + "spaceSpec\0223\n\006status\030\003 \001(\0132#.k8s.io.api.c" + "ore.v1.NamespaceStatus\"\233\001\n\022NamespaceCond" + "ition\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022F\n\022l" + "astTransitionTime\030\004 \001(\0132*.k8s.io.apimach" + "inery.pkg.apis.meta.v1.Time\022\016\n\006reason\030\005 " + "\001(\t\022\017\n\007message\030\006 \001(\t\"\177\n\rNamespaceList\022@\n" + "\010metadata\030\001 \001(\0132..k8s.io.apimachinery.pk" + "g.apis.meta.v1.ListMeta\022,\n\005items\030\002 \003(\0132\035" + ".k8s.io.api.core.v1.Namespace\"#\n\rNamespa" + "ceSpec\022\022\n\nfinalizers\030\001 \003(\t\"\\\n\017NamespaceS" + "tatus\022\r\n\005phase\030\001 \001(\t\022:\n\nconditions\030\002 \003(\013" + "2&.k8s.io.api.core.v1.NamespaceCondition" + "\"\246\001\n\004Node\022B\n\010metadata\030\001 \001(\01320.k8s.io.api" + "machinery.pkg.apis.meta.v1.ObjectMeta\022*\n" + "\004spec\030\002 \001(\0132\034.k8s.io.api.core.v1.NodeSpe" + "c\022.\n\006status\030\003 \001(\0132\036.k8s.io.api.core.v1.N" + "odeStatus\",\n\013NodeAddress\022\014\n\004type\030\001 \001(\t\022\017" + "\n\007address\030\002 \001(\t\"\316\001\n\014NodeAffinity\022X\n.requ" + "iredDuringSchedulingIgnoredDuringExecuti" + "on\030\001 \001(\0132 .k8s.io.api.core.v1.NodeSelect" + "or\022d\n/preferredDuringSchedulingIgnoredDu" + "ringExecution\030\002 \003(\0132+.k8s.io.api.core.v1" + ".PreferredSchedulingTerm\"\335\001\n\rNodeConditi" + "on\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022E\n\021last" + "HeartbeatTime\030\003 \001(\0132*.k8s.io.apimachiner" + "y.pkg.apis.meta.v1.Time\022F\n\022lastTransitio" + "nTime\030\004 \001(\0132*.k8s.io.apimachinery.pkg.ap" + "is.meta.v1.Time\022\016\n\006reason\030\005 \001(\t\022\017\n\007messa" + "ge\030\006 \001(\t\"T\n\020NodeConfigSource\022@\n\tconfigMa" + "p\030\002 \001(\0132-.k8s.io.api.core.v1.ConfigMapNo" + "deConfigSource\"\314\001\n\020NodeConfigStatus\0226\n\010a" + "ssigned\030\001 \001(\0132$.k8s.io.api.core.v1.NodeC" + "onfigSource\0224\n\006active\030\002 \001(\0132$.k8s.io.api" + ".core.v1.NodeConfigSource\022;\n\rlastKnownGo" + "od\030\003 \001(\0132$.k8s.io.api.core.v1.NodeConfig" + "Source\022\r\n\005error\030\004 \001(\t\"R\n\023NodeDaemonEndpo" + "ints\022;\n\017kubeletEndpoint\030\001 \001(\0132\".k8s.io.a" + "pi.core.v1.DaemonEndpoint\"u\n\010NodeList\022@\n" + "\010metadata\030\001 \001(\0132..k8s.io.apimachinery.pk" + "g.apis.meta.v1.ListMeta\022\'\n\005items\030\002 \003(\0132\030" + ".k8s.io.api.core.v1.Node\" \n\020NodeProxyOpt" + "ions\022\014\n\004path\030\001 \001(\t\"\263\001\n\rNodeResources\022A\n\010" + "capacity\030\001 \003(\0132/.k8s.io.api.core.v1.Node" + "Resources.CapacityEntry\032_\n\rCapacityEntry" + "\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.ap" + "imachinery.pkg.api.resource.Quantity:\0028\001" + "\"O\n\014NodeSelector\022?\n\021nodeSelectorTerms\030\001 " + "\003(\0132$.k8s.io.api.core.v1.NodeSelectorTer" + "m\"H\n\027NodeSelectorRequirement\022\013\n\003key\030\001 \001(" + "\t\022\020\n\010operator\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"\233\001\n\020" + "NodeSelectorTerm\022E\n\020matchExpressions\030\001 \003" + "(\0132+.k8s.io.api.core.v1.NodeSelectorRequ" + "irement\022@\n\013matchFields\030\002 \003(\0132+.k8s.io.ap" + "i.core.v1.NodeSelectorRequirement\"\323\001\n\010No", "deSpec\022\017\n\007podCIDR\030\001 \001(\t\022\020\n\010podCIDRs\030\007 \003(" + "\t\022\022\n\nproviderID\030\003 \001(\t\022\025\n\runschedulable\030\004" + " \001(\010\022)\n\006taints\030\005 \003(\0132\031.k8s.io.api.core.v" + "1.Taint\022:\n\014configSource\030\006 \001(\0132$.k8s.io.a" + "pi.core.v1.NodeConfigSource\022\022\n\nexternalI" + "D\030\002 \001(\t\"\206\006\n\nNodeStatus\022>\n\010capacity\030\001 \003(\013" + "2,.k8s.io.api.core.v1.NodeStatus.Capacit" + "yEntry\022D\n\013allocatable\030\002 \003(\0132/.k8s.io.api" + ".core.v1.NodeStatus.AllocatableEntry\022\r\n\005" + "phase\030\003 \001(\t\0225\n\nconditions\030\004 \003(\0132!.k8s.io" + ".api.core.v1.NodeCondition\0222\n\taddresses\030" + "\005 \003(\0132\037.k8s.io.api.core.v1.NodeAddress\022@" + "\n\017daemonEndpoints\030\006 \001(\0132\'.k8s.io.api.cor" + "e.v1.NodeDaemonEndpoints\0224\n\010nodeInfo\030\007 \001" + "(\0132\".k8s.io.api.core.v1.NodeSystemInfo\0222" + "\n\006images\030\010 \003(\0132\".k8s.io.api.core.v1.Cont" + "ainerImage\022\024\n\014volumesInUse\030\t \003(\t\022;\n\017volu" + "mesAttached\030\n \003(\0132\".k8s.io.api.core.v1.A" + "ttachedVolume\0224\n\006config\030\013 \001(\0132$.k8s.io.a" + "pi.core.v1.NodeConfigStatus\032_\n\rCapacityE" + "ntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.i" + "o.apimachinery.pkg.api.resource.Quantity" + ":\0028\001\032b\n\020AllocatableEntry\022\013\n\003key\030\001 \001(\t\022=\n" + "\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg.a" + "pi.resource.Quantity:\0028\001\"\361\001\n\016NodeSystemI" + "nfo\022\021\n\tmachineID\030\001 \001(\t\022\022\n\nsystemUUID\030\002 \001" + "(\t\022\016\n\006bootID\030\003 \001(\t\022\025\n\rkernelVersion\030\004 \001(" + "\t\022\017\n\007osImage\030\005 \001(\t\022\037\n\027containerRuntimeVe" + "rsion\030\006 \001(\t\022\026\n\016kubeletVersion\030\007 \001(\t\022\030\n\020k" + "ubeProxyVersion\030\010 \001(\t\022\027\n\017operatingSystem" + "\030\t \001(\t\022\024\n\014architecture\030\n \001(\t\"<\n\023ObjectFi" + "eldSelector\022\022\n\napiVersion\030\001 \001(\t\022\021\n\tfield" + "Path\030\002 \001(\t\"\215\001\n\017ObjectReference\022\014\n\004kind\030\001" + " \001(\t\022\021\n\tnamespace\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\013\n" + "\003uid\030\004 \001(\t\022\022\n\napiVersion\030\005 \001(\t\022\027\n\017resour" + "ceVersion\030\006 \001(\t\022\021\n\tfieldPath\030\007 \001(\t\"\312\001\n\020P" + "ersistentVolume\022B\n\010metadata\030\001 \001(\01320.k8s." + "io.apimachinery.pkg.apis.meta.v1.ObjectM" + "eta\0226\n\004spec\030\002 \001(\0132(.k8s.io.api.core.v1.P" + "ersistentVolumeSpec\022:\n\006status\030\003 \001(\0132*.k8" + "s.io.api.core.v1.PersistentVolumeStatus\"" + "\331\001\n\025PersistentVolumeClaim\022B\n\010metadata\030\001 " + "\001(\01320.k8s.io.apimachinery.pkg.apis.meta." + "v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k8s.io.api" + ".core.v1.PersistentVolumeClaimSpec\022?\n\006st" + "atus\030\003 \001(\0132/.k8s.io.api.core.v1.Persiste" + "ntVolumeClaimStatus\"\352\001\n\036PersistentVolume" + "ClaimCondition\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002" + " \001(\t\022A\n\rlastProbeTime\030\003 \001(\0132*.k8s.io.api" + "machinery.pkg.apis.meta.v1.Time\022F\n\022lastT" + "ransitionTime\030\004 \001(\0132*.k8s.io.apimachiner" + "y.pkg.apis.meta.v1.Time\022\016\n\006reason\030\005 \001(\t\022" + "\017\n\007message\030\006 \001(\t\"\227\001\n\031PersistentVolumeCla" + "imList\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimac" + "hinery.pkg.apis.meta.v1.ListMeta\0228\n\005item" + "s\030\002 \003(\0132).k8s.io.api.core.v1.PersistentV" + "olumeClaim\"\377\002\n\031PersistentVolumeClaimSpec" + "\022\023\n\013accessModes\030\001 \003(\t\022E\n\010selector\030\004 \001(\0132" + "3.k8s.io.apimachinery.pkg.apis.meta.v1.L" + "abelSelector\022;\n\tresources\030\002 \001(\0132(.k8s.io" + ".api.core.v1.ResourceRequirements\022\022\n\nvol" + "umeName\030\003 \001(\t\022\030\n\020storageClassName\030\005 \001(\t\022" + "\022\n\nvolumeMode\030\006 \001(\t\022A\n\ndataSource\030\007 \001(\0132" + "-.k8s.io.api.core.v1.TypedLocalObjectRef" + "erence\022D\n\rdataSourceRef\030\010 \001(\0132-.k8s.io.a" + "pi.core.v1.TypedLocalObjectReference\"\273\002\n" + "\033PersistentVolumeClaimStatus\022\r\n\005phase\030\001 " + "\001(\t\022\023\n\013accessModes\030\002 \003(\t\022O\n\010capacity\030\003 \003" + "(\0132=.k8s.io.api.core.v1.PersistentVolume" + "ClaimStatus.CapacityEntry\022F\n\nconditions\030" + "\004 \003(\01322.k8s.io.api.core.v1.PersistentVol" + "umeClaimCondition\032_\n\rCapacityEntry\022\013\n\003ke" + "y\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachi" + "nery.pkg.api.resource.Quantity:\0028\001\"\240\001\n\035P" + "ersistentVolumeClaimTemplate\022B\n\010metadata" + "\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis.me" + "ta.v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k8s.io." + "api.core.v1.PersistentVolumeClaimSpec\"H\n" + "!PersistentVolumeClaimVolumeSource\022\021\n\tcl" + "aimName\030\001 \001(\t\022\020\n\010readOnly\030\002 \001(\010\"\215\001\n\024Pers" + "istentVolumeList\022@\n\010metadata\030\001 \001(\0132..k8s" + ".io.apimachinery.pkg.apis.meta.v1.ListMe" + "ta\0223\n\005items\030\002 \003(\0132$.k8s.io.api.core.v1.P" + "ersistentVolume\"\275\013\n\026PersistentVolumeSour" + "ce\022L\n\021gcePersistentDisk\030\001 \001(\01321.k8s.io.a" + "pi.core.v1.GCEPersistentDiskVolumeSource" + "\022R\n\024awsElasticBlockStore\030\002 \001(\01324.k8s.io." + "api.core.v1.AWSElasticBlockStoreVolumeSo" + "urce\022:\n\010hostPath\030\003 \001(\0132(.k8s.io.api.core" + ".v1.HostPathVolumeSource\022F\n\tglusterfs\030\004 " + "\001(\01323.k8s.io.api.core.v1.GlusterfsPersis" + "tentVolumeSource\0220\n\003nfs\030\005 \001(\0132#.k8s.io.a" + "pi.core.v1.NFSVolumeSource\022:\n\003rbd\030\006 \001(\0132" + "-.k8s.io.api.core.v1.RBDPersistentVolume" + "Source\022>\n\005iscsi\030\007 \001(\0132/.k8s.io.api.core." + "v1.ISCSIPersistentVolumeSource\022@\n\006cinder" + "\030\010 \001(\01320.k8s.io.api.core.v1.CinderPersis" + "tentVolumeSource\022@\n\006cephfs\030\t \001(\01320.k8s.i" + "o.api.core.v1.CephFSPersistentVolumeSour" + "ce\022.\n\002fc\030\n \001(\0132\".k8s.io.api.core.v1.FCVo" + "lumeSource\0228\n\007flocker\030\013 \001(\0132\'.k8s.io.api" + ".core.v1.FlockerVolumeSource\022B\n\nflexVolu" + "me\030\014 \001(\0132..k8s.io.api.core.v1.FlexPersis" + "tentVolumeSource\022F\n\tazureFile\030\r \001(\01323.k8" + "s.io.api.core.v1.AzureFilePersistentVolu" + "meSource\022I\n\rvsphereVolume\030\016 \001(\01322.k8s.io" + ".api.core.v1.VsphereVirtualDiskVolumeSou" + "rce\0228\n\007quobyte\030\017 \001(\0132\'.k8s.io.api.core.v" + "1.QuobyteVolumeSource\022<\n\tazureDisk\030\020 \001(\013" + "2).k8s.io.api.core.v1.AzureDiskVolumeSou" + "rce\022R\n\024photonPersistentDisk\030\021 \001(\01324.k8s." + "io.api.core.v1.PhotonPersistentDiskVolum" + "eSource\022@\n\016portworxVolume\030\022 \001(\0132(.k8s.io" + ".api.core.v1.PortworxVolumeSource\022B\n\007sca" + "leIO\030\023 \001(\01321.k8s.io.api.core.v1.ScaleIOP" + "ersistentVolumeSource\0224\n\005local\030\024 \001(\0132%.k" + "8s.io.api.core.v1.LocalVolumeSource\022F\n\ts" + "torageos\030\025 \001(\01323.k8s.io.api.core.v1.Stor" + "ageOSPersistentVolumeSource\022:\n\003csi\030\026 \001(\013" + "2-.k8s.io.api.core.v1.CSIPersistentVolum" + "eSource\"\202\004\n\024PersistentVolumeSpec\022H\n\010capa" + "city\030\001 \003(\01326.k8s.io.api.core.v1.Persiste" + "ntVolumeSpec.CapacityEntry\022J\n\026persistent" + "VolumeSource\030\002 \001(\0132*.k8s.io.api.core.v1." + "PersistentVolumeSource\022\023\n\013accessModes\030\003 " + "\003(\t\0225\n\010claimRef\030\004 \001(\0132#.k8s.io.api.core." + "v1.ObjectReference\022%\n\035persistentVolumeRe" + "claimPolicy\030\005 \001(\t\022\030\n\020storageClassName\030\006 " + "\001(\t\022\024\n\014mountOptions\030\007 \003(\t\022\022\n\nvolumeMode\030" + "\010 \001(\t\022<\n\014nodeAffinity\030\t \001(\0132&.k8s.io.api" + ".core.v1.VolumeNodeAffinity\032_\n\rCapacityE" + "ntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.i" + "o.apimachinery.pkg.api.resource.Quantity" + ":\0028\001\"H\n\026PersistentVolumeStatus\022\r\n\005phase\030" + "\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\016\n\006reason\030\003 \001(\t\"@" + "\n PhotonPersistentDiskVolumeSource\022\014\n\004pd" + "ID\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\"\243\001\n\003Pod\022B\n\010meta" + "data\030\001 \001(\01320.k8s.io.apimachinery.pkg.api" + "s.meta.v1.ObjectMeta\022)\n\004spec\030\002 \001(\0132\033.k8s" + ".io.api.core.v1.PodSpec\022-\n\006status\030\003 \001(\0132" + "\035.k8s.io.api.core.v1.PodStatus\"\320\001\n\013PodAf" + "finity\022[\n.requiredDuringSchedulingIgnore" + "dDuringExecution\030\001 \003(\0132#.k8s.io.api.core" + ".v1.PodAffinityTerm\022d\n/preferredDuringSc" + "hedulingIgnoredDuringExecution\030\002 \003(\0132+.k" + "8s.io.api.core.v1.WeightedPodAffinityTer" + "m\"\326\001\n\017PodAffinityTerm\022J\n\rlabelSelector\030\001" + " \001(\01323.k8s.io.apimachinery.pkg.apis.meta" + ".v1.LabelSelector\022\022\n\nnamespaces\030\002 \003(\t\022\023\n" + "\013topologyKey\030\003 \001(\t\022N\n\021namespaceSelector\030" + "\004 \001(\01323.k8s.io.apimachinery.pkg.apis.met" + "a.v1.LabelSelector\"\324\001\n\017PodAntiAffinity\022[" + "\n.requiredDuringSchedulingIgnoredDuringE" + "xecution\030\001 \003(\0132#.k8s.io.api.core.v1.PodA" + "ffinityTerm\022d\n/preferredDuringScheduling" + "IgnoredDuringExecution\030\002 \003(\0132+.k8s.io.ap" + "i.core.v1.WeightedPodAffinityTerm\"a\n\020Pod" + "AttachOptions\022\r\n\005stdin\030\001 \001(\010\022\016\n\006stdout\030\002" + " \001(\010\022\016\n\006stderr\030\003 \001(\010\022\013\n\003tty\030\004 \001(\010\022\021\n\tcon" + "tainer\030\005 \001(\t\"\330\001\n\014PodCondition\022\014\n\004type\030\001 " + "\001(\t\022\016\n\006status\030\002 \001(\t\022A\n\rlastProbeTime\030\003 \001" + "(\0132*.k8s.io.apimachinery.pkg.apis.meta.v" + "1.Time\022F\n\022lastTransitionTime\030\004 \001(\0132*.k8s" + ".io.apimachinery.pkg.apis.meta.v1.Time\022\016" + "\n\006reason\030\005 \001(\t\022\017\n\007message\030\006 \001(\t\"n\n\014PodDN" + "SConfig\022\023\n\013nameservers\030\001 \003(\t\022\020\n\010searches" + "\030\002 \003(\t\0227\n\007options\030\003 \003(\0132&.k8s.io.api.cor" + "e.v1.PodDNSConfigOption\"1\n\022PodDNSConfigO" + "ption\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"p\n\016Po" + "dExecOptions\022\r\n\005stdin\030\001 \001(\010\022\016\n\006stdout\030\002 " + "\001(\010\022\016\n\006stderr\030\003 \001(\010\022\013\n\003tty\030\004 \001(\010\022\021\n\tcont" + "ainer\030\005 \001(\t\022\017\n\007command\030\006 \003(\t\"\023\n\005PodIP\022\n\n" + "\002ip\030\001 \001(\t\"s\n\007PodList\022@\n\010metadata\030\001 \001(\0132." + ".k8s.io.apimachinery.pkg.apis.meta.v1.Li" + "stMeta\022&\n\005items\030\002 \003(\0132\027.k8s.io.api.core." + "v1.Pod\"\372\001\n\rPodLogOptions\022\021\n\tcontainer\030\001 " + "\001(\t\022\016\n\006follow\030\002 \001(\010\022\020\n\010previous\030\003 \001(\010\022\024\n" + "\014sinceSeconds\030\004 \001(\003\022=\n\tsinceTime\030\005 \001(\0132*" + ".k8s.io.apimachinery.pkg.apis.meta.v1.Ti" + "me\022\022\n\ntimestamps\030\006 \001(\010\022\021\n\ttailLines\030\007 \001(" + "\003\022\022\n\nlimitBytes\030\010 \001(\003\022$\n\034insecureSkipTLS" + "VerifyBackend\030\t \001(\010\"\025\n\005PodOS\022\014\n\004name\030\001 \001" + "(\t\"&\n\025PodPortForwardOptions\022\r\n\005ports\030\001 \003" + "(\005\"\037\n\017PodProxyOptions\022\014\n\004path\030\001 \001(\t\")\n\020P" + "odReadinessGate\022\025\n\rconditionType\030\001 \001(\t\"\213" + "\003\n\022PodSecurityContext\022:\n\016seLinuxOptions\030" + "\001 \001(\0132\".k8s.io.api.core.v1.SELinuxOption" + "s\022I\n\016windowsOptions\030\010 \001(\01321.k8s.io.api.c" + "ore.v1.WindowsSecurityContextOptions\022\021\n\t" + "runAsUser\030\002 \001(\003\022\022\n\nrunAsGroup\030\006 \001(\003\022\024\n\014r" + "unAsNonRoot\030\003 \001(\010\022\032\n\022supplementalGroups\030" + "\004 \003(\003\022\017\n\007fsGroup\030\005 \001(\003\022+\n\007sysctls\030\007 \003(\0132" + "\032.k8s.io.api.core.v1.Sysctl\022\033\n\023fsGroupCh" + "angePolicy\030\t \001(\t\022:\n\016seccompProfile\030\n \001(\013" + "2\".k8s.io.api.core.v1.SeccompProfile\"[\n\014" + "PodSignature\022K\n\rpodController\030\001 \001(\01324.k8" + "s.io.apimachinery.pkg.apis.meta.v1.Owner" + "Reference\"\214\014\n\007PodSpec\022+\n\007volumes\030\001 \003(\0132\032" + ".k8s.io.api.core.v1.Volume\0225\n\016initContai" + "ners\030\024 \003(\0132\035.k8s.io.api.core.v1.Containe" + "r\0221\n\ncontainers\030\002 \003(\0132\035.k8s.io.api.core." + "v1.Container\022C\n\023ephemeralContainers\030\" \003(" + "\0132&.k8s.io.api.core.v1.EphemeralContaine" + "r\022\025\n\rrestartPolicy\030\003 \001(\t\022%\n\035terminationG" + "racePeriodSeconds\030\004 \001(\003\022\035\n\025activeDeadlin" + "eSeconds\030\005 \001(\003\022\021\n\tdnsPolicy\030\006 \001(\t\022C\n\014nod" + "eSelector\030\007 \003(\0132-.k8s.io.api.core.v1.Pod" + "Spec.NodeSelectorEntry\022\032\n\022serviceAccount" + "Name\030\010 \001(\t\022\026\n\016serviceAccount\030\t \001(\t\022$\n\034au" + "tomountServiceAccountToken\030\025 \001(\010\022\020\n\010node" + "Name\030\n \001(\t\022\023\n\013hostNetwork\030\013 \001(\010\022\017\n\007hostP" + "ID\030\014 \001(\010\022\017\n\007hostIPC\030\r \001(\010\022\035\n\025shareProces" + "sNamespace\030\033 \001(\010\022?\n\017securityContext\030\016 \001(" + "\0132&.k8s.io.api.core.v1.PodSecurityContex" + "t\022B\n\020imagePullSecrets\030\017 \003(\0132(.k8s.io.api" + ".core.v1.LocalObjectReference\022\020\n\010hostnam" + "e\030\020 \001(\t\022\021\n\tsubdomain\030\021 \001(\t\022.\n\010affinity\030\022" + " \001(\0132\034.k8s.io.api.core.v1.Affinity\022\025\n\rsc" + "hedulerName\030\023 \001(\t\0223\n\013tolerations\030\026 \003(\0132\036" + ".k8s.io.api.core.v1.Toleration\0222\n\013hostAl" + "iases\030\027 \003(\0132\035.k8s.io.api.core.v1.HostAli" + "as\022\031\n\021priorityClassName\030\030 \001(\t\022\020\n\010priorit" + "y\030\031 \001(\005\0223\n\tdnsConfig\030\032 \001(\0132 .k8s.io.api." + "core.v1.PodDNSConfig\022<\n\016readinessGates\030\034" + " \003(\0132$.k8s.io.api.core.v1.PodReadinessGa" + "te\022\030\n\020runtimeClassName\030\035 \001(\t\022\032\n\022enableSe" + "rviceLinks\030\036 \001(\010\022\030\n\020preemptionPolicy\030\037 \001" + "(\t\022;\n\010overhead\030 \003(\0132).k8s.io.api.core.v" + "1.PodSpec.OverheadEntry\022O\n\031topologySprea" + "dConstraints\030! \003(\0132,.k8s.io.api.core.v1." + "TopologySpreadConstraint\022\031\n\021setHostnameA" + "sFQDN\030# \001(\010\022%\n\002os\030$ \001(\0132\031.k8s.io.api.cor" + "e.v1.PodOS\0323\n\021NodeSelectorEntry\022\013\n\003key\030\001" + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032_\n\rOverheadEntry" + "\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.ap" + "imachinery.pkg.api.resource.Quantity:\0028\001" + "\"\364\003\n\tPodStatus\022\r\n\005phase\030\001 \001(\t\0224\n\nconditi" + "ons\030\002 \003(\0132 .k8s.io.api.core.v1.PodCondit" + "ion\022\017\n\007message\030\003 \001(\t\022\016\n\006reason\030\004 \001(\t\022\031\n\021" + "nominatedNodeName\030\013 \001(\t\022\016\n\006hostIP\030\005 \001(\t\022" + "\r\n\005podIP\030\006 \001(\t\022)\n\006podIPs\030\014 \003(\0132\031.k8s.io." + "api.core.v1.PodIP\022=\n\tstartTime\030\007 \001(\0132*.k" + "8s.io.apimachinery.pkg.apis.meta.v1.Time" + "\022B\n\025initContainerStatuses\030\n \003(\0132#.k8s.io" + ".api.core.v1.ContainerStatus\022>\n\021containe" + "rStatuses\030\010 \003(\0132#.k8s.io.api.core.v1.Con" + "tainerStatus\022\020\n\010qosClass\030\t \001(\t\022G\n\032epheme" + "ralContainerStatuses\030\r \003(\0132#.k8s.io.api." + "core.v1.ContainerStatus\"\204\001\n\017PodStatusRes" + "ult\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachin" + "ery.pkg.apis.meta.v1.ObjectMeta\022-\n\006statu" + "s\030\002 \001(\0132\035.k8s.io.api.core.v1.PodStatus\"\210" + "\001\n\013PodTemplate\022B\n\010metadata\030\001 \001(\01320.k8s.i" + "o.apimachinery.pkg.apis.meta.v1.ObjectMe" + "ta\0225\n\010template\030\002 \001(\0132#.k8s.io.api.core.v" + "1.PodTemplateSpec\"\203\001\n\017PodTemplateList\022@\n" + "\010metadata\030\001 \001(\0132..k8s.io.apimachinery.pk" + "g.apis.meta.v1.ListMeta\022.\n\005items\030\002 \003(\0132\037" + ".k8s.io.api.core.v1.PodTemplate\"\200\001\n\017PodT" + "emplateSpec\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + ")\n\004spec\030\002 \001(\0132\033.k8s.io.api.core.v1.PodSp" + "ec\";\n\nPortStatus\022\014\n\004port\030\001 \001(\005\022\020\n\010protoc" + "ol\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\"J\n\024PortworxVolum" + "eSource\022\020\n\010volumeID\030\001 \001(\t\022\016\n\006fsType\030\002 \001(" + "\t\022\020\n\010readOnly\030\003 \001(\010\"\034\n\rPreconditions\022\013\n\003" + "uid\030\001 \001(\t\"\261\001\n\024PreferAvoidPodsEntry\0226\n\014po" + "dSignature\030\001 \001(\0132 .k8s.io.api.core.v1.Po" + "dSignature\022@\n\014evictionTime\030\002 \001(\0132*.k8s.i" + "o.apimachinery.pkg.apis.meta.v1.Time\022\016\n\006" + "reason\030\003 \001(\t\022\017\n\007message\030\004 \001(\t\"c\n\027Preferr" + "edSchedulingTerm\022\016\n\006weight\030\001 \001(\005\0228\n\npref" + "erence\030\002 \001(\0132$.k8s.io.api.core.v1.NodeSe" + "lectorTerm\"\341\001\n\005Probe\0221\n\007handler\030\001 \001(\0132 ." + "k8s.io.api.core.v1.ProbeHandler\022\033\n\023initi" + "alDelaySeconds\030\002 \001(\005\022\026\n\016timeoutSeconds\030\003" + " \001(\005\022\025\n\rperiodSeconds\030\004 \001(\005\022\030\n\020successTh" + "reshold\030\005 \001(\005\022\030\n\020failureThreshold\030\006 \001(\005\022" + "%\n\035terminationGracePeriodSeconds\030\007 \001(\003\"\250" + "\001\n\014ProbeHandler\022,\n\004exec\030\001 \001(\0132\036.k8s.io.a" + "pi.core.v1.ExecAction\0222\n\007httpGet\030\002 \001(\0132!" + ".k8s.io.api.core.v1.HTTPGetAction\0226\n\ttcp" + "Socket\030\003 \001(\0132#.k8s.io.api.core.v1.TCPSoc" + "ketAction\"c\n\025ProjectedVolumeSource\0225\n\007so" + "urces\030\001 \003(\0132$.k8s.io.api.core.v1.VolumeP" + "rojection\022\023\n\013defaultMode\030\002 \001(\005\"v\n\023Quobyt" + "eVolumeSource\022\020\n\010registry\030\001 \001(\t\022\016\n\006volum" + "e\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\022\014\n\004user\030\004 \001(\t\022" + "\r\n\005group\030\005 \001(\t\022\016\n\006tenant\030\006 \001(\t\"\303\001\n\031RBDPe" + "rsistentVolumeSource\022\020\n\010monitors\030\001 \003(\t\022\r" + "\n\005image\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\014\n\004pool\030\004 " + "\001(\t\022\014\n\004user\030\005 \001(\t\022\017\n\007keyring\030\006 \001(\t\0226\n\tse" + "cretRef\030\007 \001(\0132#.k8s.io.api.core.v1.Secre" + "tReference\022\020\n\010readOnly\030\010 \001(\010\"\276\001\n\017RBDVolu" + "meSource\022\020\n\010monitors\030\001 \003(\t\022\r\n\005image\030\002 \001(" + "\t\022\016\n\006fsType\030\003 \001(\t\022\014\n\004pool\030\004 \001(\t\022\014\n\004user\030" + "\005 \001(\t\022\017\n\007keyring\030\006 \001(\t\022;\n\tsecretRef\030\007 \001(" + "\0132(.k8s.io.api.core.v1.LocalObjectRefere" + "nce\022\020\n\010readOnly\030\010 \001(\010\"r\n\017RangeAllocation" + "\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery" + ".pkg.apis.meta.v1.ObjectMeta\022\r\n\005range\030\002 " + "\001(\t\022\014\n\004data\030\003 \001(\014\"\331\001\n\025ReplicationControl" + "ler\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachin" + "ery.pkg.apis.meta.v1.ObjectMeta\022;\n\004spec\030" + "\002 \001(\0132-.k8s.io.api.core.v1.ReplicationCo" + "ntrollerSpec\022?\n\006status\030\003 \001(\0132/.k8s.io.ap" + "i.core.v1.ReplicationControllerStatus\"\247\001" + "\n\036ReplicationControllerCondition\022\014\n\004type" + "\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022F\n\022lastTransition" + "Time\030\003 \001(\0132*.k8s.io.apimachinery.pkg.api" + "s.meta.v1.Time\022\016\n\006reason\030\004 \001(\t\022\017\n\007messag" + "e\030\005 \001(\t\"\227\001\n\031ReplicationControllerList\022@\n" + "\010metadata\030\001 \001(\0132..k8s.io.apimachinery.pk" + "g.apis.meta.v1.ListMeta\0228\n\005items\030\002 \003(\0132)" + ".k8s.io.api.core.v1.ReplicationControlle" + "r\"\375\001\n\031ReplicationControllerSpec\022\020\n\010repli" + "cas\030\001 \001(\005\022\027\n\017minReadySeconds\030\004 \001(\005\022M\n\010se" + "lector\030\002 \003(\0132;.k8s.io.api.core.v1.Replic" + "ationControllerSpec.SelectorEntry\0225\n\010tem" + "plate\030\003 \001(\0132#.k8s.io.api.core.v1.PodTemp" + "lateSpec\032/\n\rSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\"\343\001\n\033ReplicationControl" + "lerStatus\022\020\n\010replicas\030\001 \001(\005\022\034\n\024fullyLabe" + "ledReplicas\030\002 \001(\005\022\025\n\rreadyReplicas\030\004 \001(\005" + "\022\031\n\021availableReplicas\030\005 \001(\005\022\032\n\022observedG" + "eneration\030\003 \001(\003\022F\n\nconditions\030\006 \003(\01322.k8" + "s.io.api.core.v1.ReplicationControllerCo" + "ndition\"\201\001\n\025ResourceFieldSelector\022\025\n\rcon" + "tainerName\030\001 \001(\t\022\020\n\010resource\030\002 \001(\t\022?\n\007di" + "visor\030\003 \001(\0132..k8s.io.apimachinery.pkg.ap" + "i.resource.Quantity\"\301\001\n\rResourceQuota\022B\n" + "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + "g.apis.meta.v1.ObjectMeta\0223\n\004spec\030\002 \001(\0132" + "%.k8s.io.api.core.v1.ResourceQuotaSpec\0227" + "\n\006status\030\003 \001(\0132\'.k8s.io.api.core.v1.Reso" + "urceQuotaStatus\"\207\001\n\021ResourceQuotaList\022@\n" + "\010metadata\030\001 \001(\0132..k8s.io.apimachinery.pk" + "g.apis.meta.v1.ListMeta\0220\n\005items\030\002 \003(\0132!" + ".k8s.io.api.core.v1.ResourceQuota\"\371\001\n\021Re" + "sourceQuotaSpec\022=\n\004hard\030\001 \003(\0132/.k8s.io.a" + "pi.core.v1.ResourceQuotaSpec.HardEntry\022\016" + "\n\006scopes\030\002 \003(\t\0228\n\rscopeSelector\030\003 \001(\0132!." + "k8s.io.api.core.v1.ScopeSelector\032[\n\tHard" + "Entry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s." + "io.apimachinery.pkg.api.resource.Quantit" + "y:\0028\001\"\321\002\n\023ResourceQuotaStatus\022?\n\004hard\030\001 " + "\003(\01321.k8s.io.api.core.v1.ResourceQuotaSt" + "atus.HardEntry\022?\n\004used\030\002 \003(\01321.k8s.io.ap" + "i.core.v1.ResourceQuotaStatus.UsedEntry\032" + "[\n\tHardEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\013" + "2..k8s.io.apimachinery.pkg.api.resource." + "Quantity:\0028\001\032[\n\tUsedEntry\022\013\n\003key\030\001 \001(\t\022=" + "\n\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg." + "api.resource.Quantity:\0028\001\"\346\002\n\024ResourceRe" + "quirements\022D\n\006limits\030\001 \003(\01324.k8s.io.api." + "core.v1.ResourceRequirements.LimitsEntry" + "\022H\n\010requests\030\002 \003(\01326.k8s.io.api.core.v1." + "ResourceRequirements.RequestsEntry\032]\n\013Li" + "mitsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132.." + "k8s.io.apimachinery.pkg.api.resource.Qua" + "ntity:\0028\001\032_\n\rRequestsEntry\022\013\n\003key\030\001 \001(\t\022" + "=\n\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg" + ".api.resource.Quantity:\0028\001\"I\n\016SELinuxOpt" + "ions\022\014\n\004user\030\001 \001(\t\022\014\n\004role\030\002 \001(\t\022\014\n\004type" + "\030\003 \001(\t\022\r\n\005level\030\004 \001(\t\"\206\002\n\035ScaleIOPersist" + "entVolumeSource\022\017\n\007gateway\030\001 \001(\t\022\016\n\006syst" + "em\030\002 \001(\t\0226\n\tsecretRef\030\003 \001(\0132#.k8s.io.api" + ".core.v1.SecretReference\022\022\n\nsslEnabled\030\004" + " \001(\010\022\030\n\020protectionDomain\030\005 \001(\t\022\023\n\013storag" + "ePool\030\006 \001(\t\022\023\n\013storageMode\030\007 \001(\t\022\022\n\nvolu" + "meName\030\010 \001(\t\022\016\n\006fsType\030\t \001(\t\022\020\n\010readOnly" + "\030\n \001(\010\"\201\002\n\023ScaleIOVolumeSource\022\017\n\007gatewa" + "y\030\001 \001(\t\022\016\n\006system\030\002 \001(\t\022;\n\tsecretRef\030\003 \001" + "(\0132(.k8s.io.api.core.v1.LocalObjectRefer" + "ence\022\022\n\nsslEnabled\030\004 \001(\010\022\030\n\020protectionDo" + "main\030\005 \001(\t\022\023\n\013storagePool\030\006 \001(\t\022\023\n\013stora" + "geMode\030\007 \001(\t\022\022\n\nvolumeName\030\010 \001(\t\022\016\n\006fsTy" + "pe\030\t \001(\t\022\020\n\010readOnly\030\n \001(\010\"`\n\rScopeSelec" + "tor\022O\n\020matchExpressions\030\001 \003(\01325.k8s.io.a" + "pi.core.v1.ScopedResourceSelectorRequire" + "ment\"X\n!ScopedResourceSelectorRequiremen" + "t\022\021\n\tscopeName\030\001 \001(\t\022\020\n\010operator\030\002 \001(\t\022\016" + "\n\006values\030\003 \003(\t\"8\n\016SeccompProfile\022\014\n\004type" + "\030\001 \001(\t\022\030\n\020localhostProfile\030\002 \001(\t\"\301\002\n\006Sec" + "ret\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachin" + "ery.pkg.apis.meta.v1.ObjectMeta\022\021\n\timmut" + "able\030\005 \001(\010\0222\n\004data\030\002 \003(\0132$.k8s.io.api.co" + "re.v1.Secret.DataEntry\022>\n\nstringData\030\004 \003" + "(\0132*.k8s.io.api.core.v1.Secret.StringDat" + "aEntry\022\014\n\004type\030\003 \001(\t\032+\n\tDataEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\0321\n\017StringDataE" + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"k\n\017" + "SecretEnvSource\022F\n\024localObjectReference\030" + "\001 \001(\0132(.k8s.io.api.core.v1.LocalObjectRe" + "ference\022\020\n\010optional\030\002 \001(\010\"z\n\021SecretKeySe" + "lector\022F\n\024localObjectReference\030\001 \001(\0132(.k" + "8s.io.api.core.v1.LocalObjectReference\022\013" + "\n\003key\030\002 \001(\t\022\020\n\010optional\030\003 \001(\010\"y\n\nSecretL" + "ist\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachin" + "ery.pkg.apis.meta.v1.ListMeta\022)\n\005items\030\002", " \003(\0132\032.k8s.io.api.core.v1.Secret\"\232\001\n\020Sec" + "retProjection\022F\n\024localObjectReference\030\001 " + "\001(\0132(.k8s.io.api.core.v1.LocalObjectRefe" + "rence\022,\n\005items\030\002 \003(\0132\035.k8s.io.api.core.v" + "1.KeyToPath\022\020\n\010optional\030\004 \001(\010\"2\n\017SecretR" + "eference\022\014\n\004name\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(" + "\t\"}\n\022SecretVolumeSource\022\022\n\nsecretName\030\001 " + "\001(\t\022,\n\005items\030\002 \003(\0132\035.k8s.io.api.core.v1." + "KeyToPath\022\023\n\013defaultMode\030\003 \001(\005\022\020\n\010option" + "al\030\004 \001(\010\"\262\003\n\017SecurityContext\0226\n\014capabili" + "ties\030\001 \001(\0132 .k8s.io.api.core.v1.Capabili" + "ties\022\022\n\nprivileged\030\002 \001(\010\022:\n\016seLinuxOptio" + "ns\030\003 \001(\0132\".k8s.io.api.core.v1.SELinuxOpt" + "ions\022I\n\016windowsOptions\030\n \001(\01321.k8s.io.ap" + "i.core.v1.WindowsSecurityContextOptions\022" + "\021\n\trunAsUser\030\004 \001(\003\022\022\n\nrunAsGroup\030\010 \001(\003\022\024" + "\n\014runAsNonRoot\030\005 \001(\010\022\036\n\026readOnlyRootFile" + "system\030\006 \001(\010\022 \n\030allowPrivilegeEscalation" + "\030\007 \001(\010\022\021\n\tprocMount\030\t \001(\t\022:\n\016seccompProf" + "ile\030\013 \001(\0132\".k8s.io.api.core.v1.SeccompPr" + "ofile\"M\n\023SerializedReference\0226\n\treferenc" + "e\030\001 \001(\0132#.k8s.io.api.core.v1.ObjectRefer" + "ence\"\257\001\n\007Service\022B\n\010metadata\030\001 \001(\01320.k8s" + ".io.apimachinery.pkg.apis.meta.v1.Object" + "Meta\022-\n\004spec\030\002 \001(\0132\037.k8s.io.api.core.v1." + "ServiceSpec\0221\n\006status\030\003 \001(\0132!.k8s.io.api" + ".core.v1.ServiceStatus\"\364\001\n\016ServiceAccoun" + "t\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachiner" + "y.pkg.apis.meta.v1.ObjectMeta\0224\n\007secrets" + "\030\002 \003(\0132#.k8s.io.api.core.v1.ObjectRefere" + "nce\022B\n\020imagePullSecrets\030\003 \003(\0132(.k8s.io.a" + "pi.core.v1.LocalObjectReference\022$\n\034autom" + "ountServiceAccountToken\030\004 \001(\010\"\211\001\n\022Servic" + "eAccountList\022@\n\010metadata\030\001 \001(\0132..k8s.io." + "apimachinery.pkg.apis.meta.v1.ListMeta\0221" + "\n\005items\030\002 \003(\0132\".k8s.io.api.core.v1.Servi" + "ceAccount\"Z\n\035ServiceAccountTokenProjecti" + "on\022\020\n\010audience\030\001 \001(\t\022\031\n\021expirationSecond" + "s\030\002 \001(\003\022\014\n\004path\030\003 \001(\t\"{\n\013ServiceList\022@\n\010" + "metadata\030\001 \001(\0132..k8s.io.apimachinery.pkg" + ".apis.meta.v1.ListMeta\022*\n\005items\030\002 \003(\0132\033." + "k8s.io.api.core.v1.Service\"\250\001\n\013ServicePo" + "rt\022\014\n\004name\030\001 \001(\t\022\020\n\010protocol\030\002 \001(\t\022\023\n\013ap" + "pProtocol\030\006 \001(\t\022\014\n\004port\030\003 \001(\005\022D\n\ntargetP" + "ort\030\004 \001(\01320.k8s.io.apimachinery.pkg.util" + ".intstr.IntOrString\022\020\n\010nodePort\030\005 \001(\005\"#\n" + "\023ServiceProxyOptions\022\014\n\004path\030\001 \001(\t\"\227\005\n\013S" + "erviceSpec\022.\n\005ports\030\001 \003(\0132\037.k8s.io.api.c" + "ore.v1.ServicePort\022?\n\010selector\030\002 \003(\0132-.k" + "8s.io.api.core.v1.ServiceSpec.SelectorEn" + "try\022\021\n\tclusterIP\030\003 \001(\t\022\022\n\nclusterIPs\030\022 \003" + "(\t\022\014\n\004type\030\004 \001(\t\022\023\n\013externalIPs\030\005 \003(\t\022\027\n" + "\017sessionAffinity\030\007 \001(\t\022\026\n\016loadBalancerIP" + "\030\010 \001(\t\022 \n\030loadBalancerSourceRanges\030\t \003(\t" + "\022\024\n\014externalName\030\n \001(\t\022\035\n\025externalTraffi" + "cPolicy\030\013 \001(\t\022\033\n\023healthCheckNodePort\030\014 \001" + "(\005\022 \n\030publishNotReadyAddresses\030\r \001(\010\022H\n\025" + "sessionAffinityConfig\030\016 \001(\0132).k8s.io.api" + ".core.v1.SessionAffinityConfig\022\022\n\nipFami" + "lies\030\023 \003(\t\022\026\n\016ipFamilyPolicy\030\021 \001(\t\022%\n\035al" + "locateLoadBalancerNodePorts\030\024 \001(\010\022\031\n\021loa" + "dBalancerClass\030\025 \001(\t\022\035\n\025internalTrafficP" + "olicy\030\026 \001(\t\032/\n\rSelectorEntry\022\013\n\003key\030\001 \001(" + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\222\001\n\rServiceStatus\022<" + "\n\014loadBalancer\030\001 \001(\0132&.k8s.io.api.core.v" + "1.LoadBalancerStatus\022C\n\nconditions\030\002 \003(\013" + "2/.k8s.io.apimachinery.pkg.apis.meta.v1." + "Condition\"M\n\025SessionAffinityConfig\0224\n\010cl" + "ientIP\030\001 \001(\0132\".k8s.io.api.core.v1.Client" + "IPConfig\"\250\001\n\037StorageOSPersistentVolumeSo" + "urce\022\022\n\nvolumeName\030\001 \001(\t\022\027\n\017volumeNamesp" + "ace\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\020\n\010readOnly\030\004 " + "\001(\010\0226\n\tsecretRef\030\005 \001(\0132#.k8s.io.api.core" + ".v1.ObjectReference\"\243\001\n\025StorageOSVolumeS" + "ource\022\022\n\nvolumeName\030\001 \001(\t\022\027\n\017volumeNames" + "pace\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\020\n\010readOnly\030\004" + " \001(\010\022;\n\tsecretRef\030\005 \001(\0132(.k8s.io.api.cor" + "e.v1.LocalObjectReference\"%\n\006Sysctl\022\014\n\004n" + "ame\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"_\n\017TCPSocketAct" + "ion\022>\n\004port\030\001 \001(\01320.k8s.io.apimachinery." + "pkg.util.intstr.IntOrString\022\014\n\004host\030\002 \001(" + "\t\"r\n\005Taint\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\016" + "\n\006effect\030\003 \001(\t\022=\n\ttimeAdded\030\004 \001(\0132*.k8s." + "io.apimachinery.pkg.apis.meta.v1.Time\"e\n" + "\nToleration\022\013\n\003key\030\001 \001(\t\022\020\n\010operator\030\002 \001" + "(\t\022\r\n\005value\030\003 \001(\t\022\016\n\006effect\030\004 \001(\t\022\031\n\021tol" + "erationSeconds\030\005 \001(\003\"?\n TopologySelector" + "LabelRequirement\022\013\n\003key\030\001 \001(\t\022\016\n\006values\030" + "\002 \003(\t\"k\n\024TopologySelectorTerm\022S\n\025matchLa" + "belExpressions\030\001 \003(\01324.k8s.io.api.core.v" + "1.TopologySelectorLabelRequirement\"\247\001\n\030T" + "opologySpreadConstraint\022\017\n\007maxSkew\030\001 \001(\005" + "\022\023\n\013topologyKey\030\002 \001(\t\022\031\n\021whenUnsatisfiab" + "le\030\003 \001(\t\022J\n\rlabelSelector\030\004 \001(\01323.k8s.io" + ".apimachinery.pkg.apis.meta.v1.LabelSele" + "ctor\"I\n\031TypedLocalObjectReference\022\020\n\010api" + "Group\030\001 \001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"" + "N\n\006Volume\022\014\n\004name\030\001 \001(\t\0226\n\014volumeSource\030" + "\002 \001(\0132 .k8s.io.api.core.v1.VolumeSource\"" + "0\n\014VolumeDevice\022\014\n\004name\030\001 \001(\t\022\022\n\ndeviceP" + "ath\030\002 \001(\t\"\200\001\n\013VolumeMount\022\014\n\004name\030\001 \001(\t\022" + "\020\n\010readOnly\030\002 \001(\010\022\021\n\tmountPath\030\003 \001(\t\022\017\n\007" + "subPath\030\004 \001(\t\022\030\n\020mountPropagation\030\005 \001(\t\022" + "\023\n\013subPathExpr\030\006 \001(\t\"H\n\022VolumeNodeAffini" + "ty\0222\n\010required\030\001 \001(\0132 .k8s.io.api.core.v" + "1.NodeSelector\"\224\002\n\020VolumeProjection\0224\n\006s" + "ecret\030\001 \001(\0132$.k8s.io.api.core.v1.SecretP" + "rojection\022>\n\013downwardAPI\030\002 \001(\0132).k8s.io." + "api.core.v1.DownwardAPIProjection\022:\n\tcon" + "figMap\030\003 \001(\0132\'.k8s.io.api.core.v1.Config" + "MapProjection\022N\n\023serviceAccountToken\030\004 \001" + "(\01321.k8s.io.api.core.v1.ServiceAccountTo" + "kenProjection\"\231\016\n\014VolumeSource\022:\n\010hostPa" + "th\030\001 \001(\0132(.k8s.io.api.core.v1.HostPathVo" + "lumeSource\022:\n\010emptyDir\030\002 \001(\0132(.k8s.io.ap" + "i.core.v1.EmptyDirVolumeSource\022L\n\021gcePer" + "sistentDisk\030\003 \001(\01321.k8s.io.api.core.v1.G" + "CEPersistentDiskVolumeSource\022R\n\024awsElast" + "icBlockStore\030\004 \001(\01324.k8s.io.api.core.v1." + "AWSElasticBlockStoreVolumeSource\0228\n\007gitR" + "epo\030\005 \001(\0132\'.k8s.io.api.core.v1.GitRepoVo" + "lumeSource\0226\n\006secret\030\006 \001(\0132&.k8s.io.api." + "core.v1.SecretVolumeSource\0220\n\003nfs\030\007 \001(\0132" + "#.k8s.io.api.core.v1.NFSVolumeSource\0224\n\005" + "iscsi\030\010 \001(\0132%.k8s.io.api.core.v1.ISCSIVo" + "lumeSource\022<\n\tglusterfs\030\t \001(\0132).k8s.io.a" + "pi.core.v1.GlusterfsVolumeSource\022T\n\025pers" + "istentVolumeClaim\030\n \001(\01325.k8s.io.api.cor" + "e.v1.PersistentVolumeClaimVolumeSource\0220" + "\n\003rbd\030\013 \001(\0132#.k8s.io.api.core.v1.RBDVolu" + "meSource\0228\n\nflexVolume\030\014 \001(\0132$.k8s.io.ap" + "i.core.v1.FlexVolumeSource\0226\n\006cinder\030\r \001" + "(\0132&.k8s.io.api.core.v1.CinderVolumeSour" + "ce\0226\n\006cephfs\030\016 \001(\0132&.k8s.io.api.core.v1." + "CephFSVolumeSource\0228\n\007flocker\030\017 \001(\0132\'.k8" + "s.io.api.core.v1.FlockerVolumeSource\022@\n\013" + "downwardAPI\030\020 \001(\0132+.k8s.io.api.core.v1.D" + "ownwardAPIVolumeSource\022.\n\002fc\030\021 \001(\0132\".k8s" + ".io.api.core.v1.FCVolumeSource\022<\n\tazureF" + "ile\030\022 \001(\0132).k8s.io.api.core.v1.AzureFile" + "VolumeSource\022<\n\tconfigMap\030\023 \001(\0132).k8s.io" + ".api.core.v1.ConfigMapVolumeSource\022I\n\rvs" + "phereVolume\030\024 \001(\01322.k8s.io.api.core.v1.V" + "sphereVirtualDiskVolumeSource\0228\n\007quobyte" + "\030\025 \001(\0132\'.k8s.io.api.core.v1.QuobyteVolum" + "eSource\022<\n\tazureDisk\030\026 \001(\0132).k8s.io.api." + "core.v1.AzureDiskVolumeSource\022R\n\024photonP" + "ersistentDisk\030\027 \001(\01324.k8s.io.api.core.v1" + ".PhotonPersistentDiskVolumeSource\022<\n\tpro" + "jected\030\032 \001(\0132).k8s.io.api.core.v1.Projec" + "tedVolumeSource\022@\n\016portworxVolume\030\030 \001(\0132" + "(.k8s.io.api.core.v1.PortworxVolumeSourc" + "e\0228\n\007scaleIO\030\031 \001(\0132\'.k8s.io.api.core.v1." + "ScaleIOVolumeSource\022<\n\tstorageos\030\033 \001(\0132)" + ".k8s.io.api.core.v1.StorageOSVolumeSourc" + "e\0220\n\003csi\030\034 \001(\0132#.k8s.io.api.core.v1.CSIV" + "olumeSource\022<\n\tephemeral\030\035 \001(\0132).k8s.io." + "api.core.v1.EphemeralVolumeSource\"x\n\036Vsp" + "hereVirtualDiskVolumeSource\022\022\n\nvolumePat" + "h\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\022\031\n\021storagePolicy" + "Name\030\003 \001(\t\022\027\n\017storagePolicyID\030\004 \001(\t\"g\n\027W" + "eightedPodAffinityTerm\022\016\n\006weight\030\001 \001(\005\022<" + "\n\017podAffinityTerm\030\002 \001(\0132#.k8s.io.api.cor" + "e.v1.PodAffinityTerm\"\207\001\n\035WindowsSecurity" + "ContextOptions\022\036\n\026gmsaCredentialSpecName" + "\030\001 \001(\t\022\032\n\022gmsaCredentialSpec\030\002 \001(\t\022\025\n\rru" + "nAsUserName\030\003 \001(\t\022\023\n\013hostProcess\030\004 \001(\010B$" + "\n\032io.kubernetes.client.protoB\002V1Z\002v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.kubernetes.client.proto.Resource.getDescriptor(), io.kubernetes.client.proto.Meta.getDescriptor(), io.kubernetes.client.proto.Runtime.getDescriptor(), io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), io.kubernetes.client.proto.IntStr.getDescriptor(), }, assigner); internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_AWSElasticBlockStoreVolumeSource_descriptor, new java.lang.String[] { "VolumeID", "FsType", "Partition", "ReadOnly", }); internal_static_k8s_io_api_core_v1_Affinity_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_k8s_io_api_core_v1_Affinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Affinity_descriptor, new java.lang.String[] { "NodeAffinity", "PodAffinity", "PodAntiAffinity", }); internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_k8s_io_api_core_v1_AttachedVolume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_AttachedVolume_descriptor, new java.lang.String[] { "Name", "DevicePath", }); internal_static_k8s_io_api_core_v1_AvoidPods_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_k8s_io_api_core_v1_AvoidPods_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_AvoidPods_descriptor, new java.lang.String[] { "PreferAvoidPods", }); internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_AzureDiskVolumeSource_descriptor, new java.lang.String[] { "DiskName", "DiskURI", "CachingMode", "FsType", "ReadOnly", "Kind", }); internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_AzureFilePersistentVolumeSource_descriptor, new java.lang.String[] { "SecretName", "ShareName", "ReadOnly", "SecretNamespace", }); internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_AzureFileVolumeSource_descriptor, new java.lang.String[] { "SecretName", "ShareName", "ReadOnly", }); internal_static_k8s_io_api_core_v1_Binding_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_k8s_io_api_core_v1_Binding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Binding_descriptor, new java.lang.String[] { "Metadata", "Target", }); internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor, new java.lang.String[] { "Driver", "VolumeHandle", "ReadOnly", "FsType", "VolumeAttributes", "ControllerPublishSecretRef", "NodeStageSecretRef", "NodePublishSecretRef", "ControllerExpandSecretRef", }); internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_VolumeAttributesEntry_descriptor = internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_VolumeAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CSIPersistentVolumeSource_VolumeAttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_k8s_io_api_core_v1_CSIVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor, new java.lang.String[] { "Driver", "ReadOnly", "FsType", "VolumeAttributes", "NodePublishSecretRef", }); internal_static_k8s_io_api_core_v1_CSIVolumeSource_VolumeAttributesEntry_descriptor = internal_static_k8s_io_api_core_v1_CSIVolumeSource_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_CSIVolumeSource_VolumeAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CSIVolumeSource_VolumeAttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_Capabilities_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_k8s_io_api_core_v1_Capabilities_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Capabilities_descriptor, new java.lang.String[] { "Add", "Drop", }); internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CephFSPersistentVolumeSource_descriptor, new java.lang.String[] { "Monitors", "Path", "User", "SecretFile", "SecretRef", "ReadOnly", }); internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_k8s_io_api_core_v1_CephFSVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CephFSVolumeSource_descriptor, new java.lang.String[] { "Monitors", "Path", "User", "SecretFile", "SecretRef", "ReadOnly", }); internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CinderPersistentVolumeSource_descriptor, new java.lang.String[] { "VolumeID", "FsType", "ReadOnly", "SecretRef", }); internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_k8s_io_api_core_v1_CinderVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_CinderVolumeSource_descriptor, new java.lang.String[] { "VolumeID", "FsType", "ReadOnly", "SecretRef", }); internal_static_k8s_io_api_core_v1_ClientIPConfig_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_k8s_io_api_core_v1_ClientIPConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ClientIPConfig_descriptor, new java.lang.String[] { "TimeoutSeconds", }); internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_k8s_io_api_core_v1_ComponentCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ComponentCondition_descriptor, new java.lang.String[] { "Type", "Status", "Message", "Error", }); internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_k8s_io_api_core_v1_ComponentStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ComponentStatus_descriptor, new java.lang.String[] { "Metadata", "Conditions", }); internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_k8s_io_api_core_v1_ComponentStatusList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ComponentStatusList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ConfigMap_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_k8s_io_api_core_v1_ConfigMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMap_descriptor, new java.lang.String[] { "Metadata", "Immutable", "Data", "BinaryData", }); internal_static_k8s_io_api_core_v1_ConfigMap_DataEntry_descriptor = internal_static_k8s_io_api_core_v1_ConfigMap_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_ConfigMap_DataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMap_DataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ConfigMap_BinaryDataEntry_descriptor = internal_static_k8s_io_api_core_v1_ConfigMap_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_ConfigMap_BinaryDataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMap_BinaryDataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMapEnvSource_descriptor, new java.lang.String[] { "LocalObjectReference", "Optional", }); internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMapKeySelector_descriptor, new java.lang.String[] { "LocalObjectReference", "Key", "Optional", }); internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_k8s_io_api_core_v1_ConfigMapList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMapList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMapNodeConfigSource_descriptor, new java.lang.String[] { "Namespace", "Name", "Uid", "ResourceVersion", "KubeletConfigKey", }); internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_k8s_io_api_core_v1_ConfigMapProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMapProjection_descriptor, new java.lang.String[] { "LocalObjectReference", "Items", "Optional", }); internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ConfigMapVolumeSource_descriptor, new java.lang.String[] { "LocalObjectReference", "Items", "DefaultMode", "Optional", }); internal_static_k8s_io_api_core_v1_Container_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_k8s_io_api_core_v1_Container_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Container_descriptor, new java.lang.String[] { "Name", "Image", "Command", "Args", "WorkingDir", "Ports", "EnvFrom", "Env", "Resources", "VolumeMounts", "VolumeDevices", "LivenessProbe", "ReadinessProbe", "StartupProbe", "Lifecycle", "TerminationMessagePath", "TerminationMessagePolicy", "ImagePullPolicy", "SecurityContext", "Stdin", "StdinOnce", "Tty", }); internal_static_k8s_io_api_core_v1_ContainerImage_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_k8s_io_api_core_v1_ContainerImage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerImage_descriptor, new java.lang.String[] { "Names", "SizeBytes", }); internal_static_k8s_io_api_core_v1_ContainerPort_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_k8s_io_api_core_v1_ContainerPort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerPort_descriptor, new java.lang.String[] { "Name", "HostPort", "ContainerPort", "Protocol", "HostIP", }); internal_static_k8s_io_api_core_v1_ContainerState_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_k8s_io_api_core_v1_ContainerState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerState_descriptor, new java.lang.String[] { "Waiting", "Running", "Terminated", }); internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_k8s_io_api_core_v1_ContainerStateRunning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerStateRunning_descriptor, new java.lang.String[] { "StartedAt", }); internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_k8s_io_api_core_v1_ContainerStateTerminated_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerStateTerminated_descriptor, new java.lang.String[] { "ExitCode", "Signal", "Reason", "Message", "StartedAt", "FinishedAt", "ContainerID", }); internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_k8s_io_api_core_v1_ContainerStateWaiting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerStateWaiting_descriptor, new java.lang.String[] { "Reason", "Message", }); internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_k8s_io_api_core_v1_ContainerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ContainerStatus_descriptor, new java.lang.String[] { "Name", "State", "LastState", "Ready", "RestartCount", "Image", "ImageID", "ContainerID", "Started", }); internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_k8s_io_api_core_v1_DaemonEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_DaemonEndpoint_descriptor, new java.lang.String[] { "Port", }); internal_static_k8s_io_api_core_v1_DownwardAPIProjection_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_k8s_io_api_core_v1_DownwardAPIProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_DownwardAPIProjection_descriptor, new java.lang.String[] { "Items", }); internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_DownwardAPIVolumeFile_descriptor, new java.lang.String[] { "Path", "FieldRef", "ResourceFieldRef", "Mode", }); internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_DownwardAPIVolumeSource_descriptor, new java.lang.String[] { "Items", "DefaultMode", }); internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EmptyDirVolumeSource_descriptor, new java.lang.String[] { "Medium", "SizeLimit", }); internal_static_k8s_io_api_core_v1_EndpointAddress_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_k8s_io_api_core_v1_EndpointAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EndpointAddress_descriptor, new java.lang.String[] { "Ip", "Hostname", "NodeName", "TargetRef", }); internal_static_k8s_io_api_core_v1_EndpointPort_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_k8s_io_api_core_v1_EndpointPort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EndpointPort_descriptor, new java.lang.String[] { "Name", "Port", "Protocol", "AppProtocol", }); internal_static_k8s_io_api_core_v1_EndpointSubset_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_k8s_io_api_core_v1_EndpointSubset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EndpointSubset_descriptor, new java.lang.String[] { "Addresses", "NotReadyAddresses", "Ports", }); internal_static_k8s_io_api_core_v1_Endpoints_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_k8s_io_api_core_v1_Endpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Endpoints_descriptor, new java.lang.String[] { "Metadata", "Subsets", }); internal_static_k8s_io_api_core_v1_EndpointsList_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_k8s_io_api_core_v1_EndpointsList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EndpointsList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_EnvFromSource_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_k8s_io_api_core_v1_EnvFromSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EnvFromSource_descriptor, new java.lang.String[] { "Prefix", "ConfigMapRef", "SecretRef", }); internal_static_k8s_io_api_core_v1_EnvVar_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_k8s_io_api_core_v1_EnvVar_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EnvVar_descriptor, new java.lang.String[] { "Name", "Value", "ValueFrom", }); internal_static_k8s_io_api_core_v1_EnvVarSource_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_k8s_io_api_core_v1_EnvVarSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EnvVarSource_descriptor, new java.lang.String[] { "FieldRef", "ResourceFieldRef", "ConfigMapKeyRef", "SecretKeyRef", }); internal_static_k8s_io_api_core_v1_EphemeralContainer_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_k8s_io_api_core_v1_EphemeralContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EphemeralContainer_descriptor, new java.lang.String[] { "EphemeralContainerCommon", "TargetContainerName", }); internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EphemeralContainerCommon_descriptor, new java.lang.String[] { "Name", "Image", "Command", "Args", "WorkingDir", "Ports", "EnvFrom", "Env", "Resources", "VolumeMounts", "VolumeDevices", "LivenessProbe", "ReadinessProbe", "StartupProbe", "Lifecycle", "TerminationMessagePath", "TerminationMessagePolicy", "ImagePullPolicy", "SecurityContext", "Stdin", "StdinOnce", "Tty", }); internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EphemeralVolumeSource_descriptor, new java.lang.String[] { "VolumeClaimTemplate", }); internal_static_k8s_io_api_core_v1_Event_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_k8s_io_api_core_v1_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Event_descriptor, new java.lang.String[] { "Metadata", "InvolvedObject", "Reason", "Message", "Source", "FirstTimestamp", "LastTimestamp", "Count", "Type", "EventTime", "Series", "Action", "Related", "ReportingComponent", "ReportingInstance", }); internal_static_k8s_io_api_core_v1_EventList_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_k8s_io_api_core_v1_EventList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EventList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_EventSeries_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_k8s_io_api_core_v1_EventSeries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EventSeries_descriptor, new java.lang.String[] { "Count", "LastObservedTime", }); internal_static_k8s_io_api_core_v1_EventSource_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_k8s_io_api_core_v1_EventSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_EventSource_descriptor, new java.lang.String[] { "Component", "Host", }); internal_static_k8s_io_api_core_v1_ExecAction_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_k8s_io_api_core_v1_ExecAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ExecAction_descriptor, new java.lang.String[] { "Command", }); internal_static_k8s_io_api_core_v1_FCVolumeSource_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_k8s_io_api_core_v1_FCVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_FCVolumeSource_descriptor, new java.lang.String[] { "TargetWWNs", "Lun", "FsType", "ReadOnly", "Wwids", }); internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor, new java.lang.String[] { "Driver", "FsType", "SecretRef", "ReadOnly", "Options", }); internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_OptionsEntry_descriptor = internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_OptionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_FlexPersistentVolumeSource_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_k8s_io_api_core_v1_FlexVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor, new java.lang.String[] { "Driver", "FsType", "SecretRef", "ReadOnly", "Options", }); internal_static_k8s_io_api_core_v1_FlexVolumeSource_OptionsEntry_descriptor = internal_static_k8s_io_api_core_v1_FlexVolumeSource_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_FlexVolumeSource_OptionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_FlexVolumeSource_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_FlockerVolumeSource_descriptor = getDescriptor().getMessageTypes().get(58); internal_static_k8s_io_api_core_v1_FlockerVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_FlockerVolumeSource_descriptor, new java.lang.String[] { "DatasetName", "DatasetUUID", }); internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_GCEPersistentDiskVolumeSource_descriptor, new java.lang.String[] { "PdName", "FsType", "Partition", "ReadOnly", }); internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_descriptor = getDescriptor().getMessageTypes().get(60); internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_GitRepoVolumeSource_descriptor, new java.lang.String[] { "Repository", "Revision", "Directory", }); internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(61); internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_GlusterfsPersistentVolumeSource_descriptor, new java.lang.String[] { "Endpoints", "Path", "ReadOnly", "EndpointsNamespace", }); internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_descriptor = getDescriptor().getMessageTypes().get(62); internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_GlusterfsVolumeSource_descriptor, new java.lang.String[] { "Endpoints", "Path", "ReadOnly", }); internal_static_k8s_io_api_core_v1_HTTPGetAction_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_k8s_io_api_core_v1_HTTPGetAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_HTTPGetAction_descriptor, new java.lang.String[] { "Path", "Port", "Host", "Scheme", "HttpHeaders", }); internal_static_k8s_io_api_core_v1_HTTPHeader_descriptor = getDescriptor().getMessageTypes().get(64); internal_static_k8s_io_api_core_v1_HTTPHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_HTTPHeader_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_k8s_io_api_core_v1_HostAlias_descriptor = getDescriptor().getMessageTypes().get(65); internal_static_k8s_io_api_core_v1_HostAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_HostAlias_descriptor, new java.lang.String[] { "Ip", "Hostnames", }); internal_static_k8s_io_api_core_v1_HostPathVolumeSource_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_k8s_io_api_core_v1_HostPathVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_HostPathVolumeSource_descriptor, new java.lang.String[] { "Path", "Type", }); internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ISCSIPersistentVolumeSource_descriptor, new java.lang.String[] { "TargetPortal", "Iqn", "Lun", "IscsiInterface", "FsType", "ReadOnly", "Portals", "ChapAuthDiscovery", "ChapAuthSession", "SecretRef", "InitiatorName", }); internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ISCSIVolumeSource_descriptor, new java.lang.String[] { "TargetPortal", "Iqn", "Lun", "IscsiInterface", "FsType", "ReadOnly", "Portals", "ChapAuthDiscovery", "ChapAuthSession", "SecretRef", "InitiatorName", }); internal_static_k8s_io_api_core_v1_KeyToPath_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_k8s_io_api_core_v1_KeyToPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_KeyToPath_descriptor, new java.lang.String[] { "Key", "Path", "Mode", }); internal_static_k8s_io_api_core_v1_Lifecycle_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_k8s_io_api_core_v1_Lifecycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Lifecycle_descriptor, new java.lang.String[] { "PostStart", "PreStop", }); internal_static_k8s_io_api_core_v1_LifecycleHandler_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_k8s_io_api_core_v1_LifecycleHandler_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LifecycleHandler_descriptor, new java.lang.String[] { "Exec", "HttpGet", "TcpSocket", }); internal_static_k8s_io_api_core_v1_LimitRange_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_k8s_io_api_core_v1_LimitRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRange_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_k8s_io_api_core_v1_LimitRangeItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor, new java.lang.String[] { "Type", "Max", "Min", "Default", "DefaultRequest", "MaxLimitRequestRatio", }); internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxEntry_descriptor = internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_LimitRangeItem_MinEntry_descriptor = internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_LimitRangeItem_MinEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeItem_MinEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultEntry_descriptor = internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor.getNestedTypes().get(2); internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultRequestEntry_descriptor = internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor.getNestedTypes().get(3); internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultRequestEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeItem_DefaultRequestEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxLimitRequestRatioEntry_descriptor = internal_static_k8s_io_api_core_v1_LimitRangeItem_descriptor.getNestedTypes().get(4); internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxLimitRequestRatioEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeItem_MaxLimitRequestRatioEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_LimitRangeList_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_k8s_io_api_core_v1_LimitRangeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_LimitRangeSpec_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_k8s_io_api_core_v1_LimitRangeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LimitRangeSpec_descriptor, new java.lang.String[] { "Limits", }); internal_static_k8s_io_api_core_v1_List_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_k8s_io_api_core_v1_List_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_List_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_LoadBalancerIngress_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_k8s_io_api_core_v1_LoadBalancerIngress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LoadBalancerIngress_descriptor, new java.lang.String[] { "Ip", "Hostname", "Ports", }); internal_static_k8s_io_api_core_v1_LoadBalancerStatus_descriptor = getDescriptor().getMessageTypes().get(78); internal_static_k8s_io_api_core_v1_LoadBalancerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LoadBalancerStatus_descriptor, new java.lang.String[] { "Ingress", }); internal_static_k8s_io_api_core_v1_LocalObjectReference_descriptor = getDescriptor().getMessageTypes().get(79); internal_static_k8s_io_api_core_v1_LocalObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LocalObjectReference_descriptor, new java.lang.String[] { "Name", }); internal_static_k8s_io_api_core_v1_LocalVolumeSource_descriptor = getDescriptor().getMessageTypes().get(80); internal_static_k8s_io_api_core_v1_LocalVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_LocalVolumeSource_descriptor, new java.lang.String[] { "Path", "FsType", }); internal_static_k8s_io_api_core_v1_NFSVolumeSource_descriptor = getDescriptor().getMessageTypes().get(81); internal_static_k8s_io_api_core_v1_NFSVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NFSVolumeSource_descriptor, new java.lang.String[] { "Server", "Path", "ReadOnly", }); internal_static_k8s_io_api_core_v1_Namespace_descriptor = getDescriptor().getMessageTypes().get(82); internal_static_k8s_io_api_core_v1_Namespace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Namespace_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_NamespaceCondition_descriptor = getDescriptor().getMessageTypes().get(83); internal_static_k8s_io_api_core_v1_NamespaceCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NamespaceCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_NamespaceList_descriptor = getDescriptor().getMessageTypes().get(84); internal_static_k8s_io_api_core_v1_NamespaceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NamespaceList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_NamespaceSpec_descriptor = getDescriptor().getMessageTypes().get(85); internal_static_k8s_io_api_core_v1_NamespaceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NamespaceSpec_descriptor, new java.lang.String[] { "Finalizers", }); internal_static_k8s_io_api_core_v1_NamespaceStatus_descriptor = getDescriptor().getMessageTypes().get(86); internal_static_k8s_io_api_core_v1_NamespaceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NamespaceStatus_descriptor, new java.lang.String[] { "Phase", "Conditions", }); internal_static_k8s_io_api_core_v1_Node_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_k8s_io_api_core_v1_Node_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Node_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_NodeAddress_descriptor = getDescriptor().getMessageTypes().get(88); internal_static_k8s_io_api_core_v1_NodeAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeAddress_descriptor, new java.lang.String[] { "Type", "Address", }); internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor = getDescriptor().getMessageTypes().get(89); internal_static_k8s_io_api_core_v1_NodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor, new java.lang.String[] { "RequiredDuringSchedulingIgnoredDuringExecution", "PreferredDuringSchedulingIgnoredDuringExecution", }); internal_static_k8s_io_api_core_v1_NodeCondition_descriptor = getDescriptor().getMessageTypes().get(90); internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastHeartbeatTime", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor = getDescriptor().getMessageTypes().get(91); internal_static_k8s_io_api_core_v1_NodeConfigSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor, new java.lang.String[] { "ConfigMap", }); internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor = getDescriptor().getMessageTypes().get(92); internal_static_k8s_io_api_core_v1_NodeConfigStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor, new java.lang.String[] { "Assigned", "Active", "LastKnownGood", "Error", }); internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor = getDescriptor().getMessageTypes().get(93); internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor, new java.lang.String[] { "KubeletEndpoint", }); internal_static_k8s_io_api_core_v1_NodeList_descriptor = getDescriptor().getMessageTypes().get(94); internal_static_k8s_io_api_core_v1_NodeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor = getDescriptor().getMessageTypes().get(95); internal_static_k8s_io_api_core_v1_NodeProxyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor, new java.lang.String[] { "Path", }); internal_static_k8s_io_api_core_v1_NodeResources_descriptor = getDescriptor().getMessageTypes().get(96); internal_static_k8s_io_api_core_v1_NodeResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeResources_descriptor, new java.lang.String[] { "Capacity", }); internal_static_k8s_io_api_core_v1_NodeResources_CapacityEntry_descriptor = internal_static_k8s_io_api_core_v1_NodeResources_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_NodeResources_CapacityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeResources_CapacityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_NodeSelector_descriptor = getDescriptor().getMessageTypes().get(97); internal_static_k8s_io_api_core_v1_NodeSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSelector_descriptor, new java.lang.String[] { "NodeSelectorTerms", }); internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor = getDescriptor().getMessageTypes().get(98); internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor, new java.lang.String[] { "Key", "Operator", "Values", }); internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor = getDescriptor().getMessageTypes().get(99); internal_static_k8s_io_api_core_v1_NodeSelectorTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor, new java.lang.String[] { "MatchExpressions", "MatchFields", }); internal_static_k8s_io_api_core_v1_NodeSpec_descriptor = getDescriptor().getMessageTypes().get(100); internal_static_k8s_io_api_core_v1_NodeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSpec_descriptor, new java.lang.String[] { "PodCIDR", "PodCIDRs", "ProviderID", "Unschedulable", "Taints", "ConfigSource", "ExternalID", }); internal_static_k8s_io_api_core_v1_NodeStatus_descriptor = getDescriptor().getMessageTypes().get(101); internal_static_k8s_io_api_core_v1_NodeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeStatus_descriptor, new java.lang.String[] { "Capacity", "Allocatable", "Phase", "Conditions", "Addresses", "DaemonEndpoints", "NodeInfo", "Images", "VolumesInUse", "VolumesAttached", "Config", }); internal_static_k8s_io_api_core_v1_NodeStatus_CapacityEntry_descriptor = internal_static_k8s_io_api_core_v1_NodeStatus_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_NodeStatus_CapacityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeStatus_CapacityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_descriptor = internal_static_k8s_io_api_core_v1_NodeStatus_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor = getDescriptor().getMessageTypes().get(102); internal_static_k8s_io_api_core_v1_NodeSystemInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor, new java.lang.String[] { "MachineID", "SystemUUID", "BootID", "KernelVersion", "OsImage", "ContainerRuntimeVersion", "KubeletVersion", "KubeProxyVersion", "OperatingSystem", "Architecture", }); internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor = getDescriptor().getMessageTypes().get(103); internal_static_k8s_io_api_core_v1_ObjectFieldSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor, new java.lang.String[] { "ApiVersion", "FieldPath", }); internal_static_k8s_io_api_core_v1_ObjectReference_descriptor = getDescriptor().getMessageTypes().get(104); internal_static_k8s_io_api_core_v1_ObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ObjectReference_descriptor, new java.lang.String[] { "Kind", "Namespace", "Name", "Uid", "ApiVersion", "ResourceVersion", "FieldPath", }); internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor = getDescriptor().getMessageTypes().get(105); internal_static_k8s_io_api_core_v1_PersistentVolume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor = getDescriptor().getMessageTypes().get(106); internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor = getDescriptor().getMessageTypes().get(107); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastProbeTime", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor = getDescriptor().getMessageTypes().get(108); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor = getDescriptor().getMessageTypes().get(109); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor, new java.lang.String[] { "AccessModes", "Selector", "Resources", "VolumeName", "StorageClassName", "VolumeMode", "DataSource", "DataSourceRef", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor = getDescriptor().getMessageTypes().get(110); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor, new java.lang.String[] { "Phase", "AccessModes", "Capacity", "Conditions", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_CapacityEntry_descriptor = internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_CapacityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_CapacityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor = getDescriptor().getMessageTypes().get(111); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor = getDescriptor().getMessageTypes().get(112); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor, new java.lang.String[] { "ClaimName", "ReadOnly", }); internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor = getDescriptor().getMessageTypes().get(113); internal_static_k8s_io_api_core_v1_PersistentVolumeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(114); internal_static_k8s_io_api_core_v1_PersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor, new java.lang.String[] { "GcePersistentDisk", "AwsElasticBlockStore", "HostPath", "Glusterfs", "Nfs", "Rbd", "Iscsi", "Cinder", "Cephfs", "Fc", "Flocker", "FlexVolume", "AzureFile", "VsphereVolume", "Quobyte", "AzureDisk", "PhotonPersistentDisk", "PortworxVolume", "ScaleIO", "Local", "Storageos", "Csi", }); internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor = getDescriptor().getMessageTypes().get(115); internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor, new java.lang.String[] { "Capacity", "PersistentVolumeSource", "AccessModes", "ClaimRef", "PersistentVolumeReclaimPolicy", "StorageClassName", "MountOptions", "VolumeMode", "NodeAffinity", }); internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_descriptor = internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor = getDescriptor().getMessageTypes().get(116); internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor, new java.lang.String[] { "Phase", "Message", "Reason", }); internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor = getDescriptor().getMessageTypes().get(117); internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor, new java.lang.String[] { "PdID", "FsType", }); internal_static_k8s_io_api_core_v1_Pod_descriptor = getDescriptor().getMessageTypes().get(118); internal_static_k8s_io_api_core_v1_Pod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Pod_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_PodAffinity_descriptor = getDescriptor().getMessageTypes().get(119); internal_static_k8s_io_api_core_v1_PodAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAffinity_descriptor, new java.lang.String[] { "RequiredDuringSchedulingIgnoredDuringExecution", "PreferredDuringSchedulingIgnoredDuringExecution", }); internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor = getDescriptor().getMessageTypes().get(120); internal_static_k8s_io_api_core_v1_PodAffinityTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor, new java.lang.String[] { "LabelSelector", "Namespaces", "TopologyKey", "NamespaceSelector", }); internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor = getDescriptor().getMessageTypes().get(121); internal_static_k8s_io_api_core_v1_PodAntiAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor, new java.lang.String[] { "RequiredDuringSchedulingIgnoredDuringExecution", "PreferredDuringSchedulingIgnoredDuringExecution", }); internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor = getDescriptor().getMessageTypes().get(122); internal_static_k8s_io_api_core_v1_PodAttachOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor, new java.lang.String[] { "Stdin", "Stdout", "Stderr", "Tty", "Container", }); internal_static_k8s_io_api_core_v1_PodCondition_descriptor = getDescriptor().getMessageTypes().get(123); internal_static_k8s_io_api_core_v1_PodCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastProbeTime", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor = getDescriptor().getMessageTypes().get(124); internal_static_k8s_io_api_core_v1_PodDNSConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor, new java.lang.String[] { "Nameservers", "Searches", "Options", }); internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor = getDescriptor().getMessageTypes().get(125); internal_static_k8s_io_api_core_v1_PodDNSConfigOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor = getDescriptor().getMessageTypes().get(126); internal_static_k8s_io_api_core_v1_PodExecOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor, new java.lang.String[] { "Stdin", "Stdout", "Stderr", "Tty", "Container", "Command", }); internal_static_k8s_io_api_core_v1_PodIP_descriptor = getDescriptor().getMessageTypes().get(127); internal_static_k8s_io_api_core_v1_PodIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodIP_descriptor, new java.lang.String[] { "Ip", }); internal_static_k8s_io_api_core_v1_PodList_descriptor = getDescriptor().getMessageTypes().get(128); internal_static_k8s_io_api_core_v1_PodList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor = getDescriptor().getMessageTypes().get(129); internal_static_k8s_io_api_core_v1_PodLogOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor, new java.lang.String[] { "Container", "Follow", "Previous", "SinceSeconds", "SinceTime", "Timestamps", "TailLines", "LimitBytes", "InsecureSkipTLSVerifyBackend", }); internal_static_k8s_io_api_core_v1_PodOS_descriptor = getDescriptor().getMessageTypes().get(130); internal_static_k8s_io_api_core_v1_PodOS_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodOS_descriptor, new java.lang.String[] { "Name", }); internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor = getDescriptor().getMessageTypes().get(131); internal_static_k8s_io_api_core_v1_PodPortForwardOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor, new java.lang.String[] { "Ports", }); internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor = getDescriptor().getMessageTypes().get(132); internal_static_k8s_io_api_core_v1_PodProxyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor, new java.lang.String[] { "Path", }); internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor = getDescriptor().getMessageTypes().get(133); internal_static_k8s_io_api_core_v1_PodReadinessGate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor, new java.lang.String[] { "ConditionType", }); internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor = getDescriptor().getMessageTypes().get(134); internal_static_k8s_io_api_core_v1_PodSecurityContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor, new java.lang.String[] { "SeLinuxOptions", "WindowsOptions", "RunAsUser", "RunAsGroup", "RunAsNonRoot", "SupplementalGroups", "FsGroup", "Sysctls", "FsGroupChangePolicy", "SeccompProfile", }); internal_static_k8s_io_api_core_v1_PodSignature_descriptor = getDescriptor().getMessageTypes().get(135); internal_static_k8s_io_api_core_v1_PodSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSignature_descriptor, new java.lang.String[] { "PodController", }); internal_static_k8s_io_api_core_v1_PodSpec_descriptor = getDescriptor().getMessageTypes().get(136); internal_static_k8s_io_api_core_v1_PodSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSpec_descriptor, new java.lang.String[] { "Volumes", "InitContainers", "Containers", "EphemeralContainers", "RestartPolicy", "TerminationGracePeriodSeconds", "ActiveDeadlineSeconds", "DnsPolicy", "NodeSelector", "ServiceAccountName", "ServiceAccount", "AutomountServiceAccountToken", "NodeName", "HostNetwork", "HostPID", "HostIPC", "ShareProcessNamespace", "SecurityContext", "ImagePullSecrets", "Hostname", "Subdomain", "Affinity", "SchedulerName", "Tolerations", "HostAliases", "PriorityClassName", "Priority", "DnsConfig", "ReadinessGates", "RuntimeClassName", "EnableServiceLinks", "PreemptionPolicy", "Overhead", "TopologySpreadConstraints", "SetHostnameAsFQDN", "Os", }); internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_descriptor = internal_static_k8s_io_api_core_v1_PodSpec_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_descriptor = internal_static_k8s_io_api_core_v1_PodSpec_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PodStatus_descriptor = getDescriptor().getMessageTypes().get(137); internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodStatus_descriptor, new java.lang.String[] { "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIP", "PodIP", "PodIPs", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", }); internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor = getDescriptor().getMessageTypes().get(138); internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor, new java.lang.String[] { "Metadata", "Status", }); internal_static_k8s_io_api_core_v1_PodTemplate_descriptor = getDescriptor().getMessageTypes().get(139); internal_static_k8s_io_api_core_v1_PodTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodTemplate_descriptor, new java.lang.String[] { "Metadata", "Template", }); internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor = getDescriptor().getMessageTypes().get(140); internal_static_k8s_io_api_core_v1_PodTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor = getDescriptor().getMessageTypes().get(141); internal_static_k8s_io_api_core_v1_PodTemplateSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_core_v1_PortStatus_descriptor = getDescriptor().getMessageTypes().get(142); internal_static_k8s_io_api_core_v1_PortStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PortStatus_descriptor, new java.lang.String[] { "Port", "Protocol", "Error", }); internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor = getDescriptor().getMessageTypes().get(143); internal_static_k8s_io_api_core_v1_PortworxVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor, new java.lang.String[] { "VolumeID", "FsType", "ReadOnly", }); internal_static_k8s_io_api_core_v1_Preconditions_descriptor = getDescriptor().getMessageTypes().get(144); internal_static_k8s_io_api_core_v1_Preconditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Preconditions_descriptor, new java.lang.String[] { "Uid", }); internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor = getDescriptor().getMessageTypes().get(145); internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor, new java.lang.String[] { "PodSignature", "EvictionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor = getDescriptor().getMessageTypes().get(146); internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor, new java.lang.String[] { "Weight", "Preference", }); internal_static_k8s_io_api_core_v1_Probe_descriptor = getDescriptor().getMessageTypes().get(147); internal_static_k8s_io_api_core_v1_Probe_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Probe_descriptor, new java.lang.String[] { "Handler", "InitialDelaySeconds", "TimeoutSeconds", "PeriodSeconds", "SuccessThreshold", "FailureThreshold", "TerminationGracePeriodSeconds", }); internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor = getDescriptor().getMessageTypes().get(148); internal_static_k8s_io_api_core_v1_ProbeHandler_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor, new java.lang.String[] { "Exec", "HttpGet", "TcpSocket", }); internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor = getDescriptor().getMessageTypes().get(149); internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor, new java.lang.String[] { "Sources", "DefaultMode", }); internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor = getDescriptor().getMessageTypes().get(150); internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor, new java.lang.String[] { "Registry", "Volume", "ReadOnly", "User", "Group", "Tenant", }); internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(151); internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor, new java.lang.String[] { "Monitors", "Image", "FsType", "Pool", "User", "Keyring", "SecretRef", "ReadOnly", }); internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor = getDescriptor().getMessageTypes().get(152); internal_static_k8s_io_api_core_v1_RBDVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor, new java.lang.String[] { "Monitors", "Image", "FsType", "Pool", "User", "Keyring", "SecretRef", "ReadOnly", }); internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor = getDescriptor().getMessageTypes().get(153); internal_static_k8s_io_api_core_v1_RangeAllocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor, new java.lang.String[] { "Metadata", "Range", "Data", }); internal_static_k8s_io_api_core_v1_ReplicationController_descriptor = getDescriptor().getMessageTypes().get(154); internal_static_k8s_io_api_core_v1_ReplicationController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationController_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor = getDescriptor().getMessageTypes().get(155); internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor = getDescriptor().getMessageTypes().get(156); internal_static_k8s_io_api_core_v1_ReplicationControllerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor = getDescriptor().getMessageTypes().get(157); internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor, new java.lang.String[] { "Replicas", "MinReadySeconds", "Selector", "Template", }); internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_descriptor = internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor = getDescriptor().getMessageTypes().get(158); internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor, new java.lang.String[] { "Replicas", "FullyLabeledReplicas", "ReadyReplicas", "AvailableReplicas", "ObservedGeneration", "Conditions", }); internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor = getDescriptor().getMessageTypes().get(159); internal_static_k8s_io_api_core_v1_ResourceFieldSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor, new java.lang.String[] { "ContainerName", "Resource", "Divisor", }); internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor = getDescriptor().getMessageTypes().get(160); internal_static_k8s_io_api_core_v1_ResourceQuota_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor = getDescriptor().getMessageTypes().get(161); internal_static_k8s_io_api_core_v1_ResourceQuotaList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor = getDescriptor().getMessageTypes().get(162); internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor, new java.lang.String[] { "Hard", "Scopes", "ScopeSelector", }); internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_descriptor = internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor = getDescriptor().getMessageTypes().get(163); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor, new java.lang.String[] { "Hard", "Used", }); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_HardEntry_descriptor = internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_HardEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_HardEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_descriptor = internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor = getDescriptor().getMessageTypes().get(164); internal_static_k8s_io_api_core_v1_ResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor, new java.lang.String[] { "Limits", "Requests", }); internal_static_k8s_io_api_core_v1_ResourceRequirements_LimitsEntry_descriptor = internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_ResourceRequirements_LimitsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceRequirements_LimitsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_descriptor = internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor = getDescriptor().getMessageTypes().get(165); internal_static_k8s_io_api_core_v1_SELinuxOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor, new java.lang.String[] { "User", "Role", "Type", "Level", }); internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(166); internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor, new java.lang.String[] { "Gateway", "System", "SecretRef", "SslEnabled", "ProtectionDomain", "StoragePool", "StorageMode", "VolumeName", "FsType", "ReadOnly", }); internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor = getDescriptor().getMessageTypes().get(167); internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor, new java.lang.String[] { "Gateway", "System", "SecretRef", "SslEnabled", "ProtectionDomain", "StoragePool", "StorageMode", "VolumeName", "FsType", "ReadOnly", }); internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor = getDescriptor().getMessageTypes().get(168); internal_static_k8s_io_api_core_v1_ScopeSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor, new java.lang.String[] { "MatchExpressions", }); internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor = getDescriptor().getMessageTypes().get(169); internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor, new java.lang.String[] { "ScopeName", "Operator", "Values", }); internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor = getDescriptor().getMessageTypes().get(170); internal_static_k8s_io_api_core_v1_SeccompProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor, new java.lang.String[] { "Type", "LocalhostProfile", }); internal_static_k8s_io_api_core_v1_Secret_descriptor = getDescriptor().getMessageTypes().get(171); internal_static_k8s_io_api_core_v1_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Secret_descriptor, new java.lang.String[] { "Metadata", "Immutable", "Data", "StringData", "Type", }); internal_static_k8s_io_api_core_v1_Secret_DataEntry_descriptor = internal_static_k8s_io_api_core_v1_Secret_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_Secret_DataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Secret_DataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_descriptor = internal_static_k8s_io_api_core_v1_Secret_descriptor.getNestedTypes().get(1); internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor = getDescriptor().getMessageTypes().get(172); internal_static_k8s_io_api_core_v1_SecretEnvSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor, new java.lang.String[] { "LocalObjectReference", "Optional", }); internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor = getDescriptor().getMessageTypes().get(173); internal_static_k8s_io_api_core_v1_SecretKeySelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor, new java.lang.String[] { "LocalObjectReference", "Key", "Optional", }); internal_static_k8s_io_api_core_v1_SecretList_descriptor = getDescriptor().getMessageTypes().get(174); internal_static_k8s_io_api_core_v1_SecretList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_SecretProjection_descriptor = getDescriptor().getMessageTypes().get(175); internal_static_k8s_io_api_core_v1_SecretProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretProjection_descriptor, new java.lang.String[] { "LocalObjectReference", "Items", "Optional", }); internal_static_k8s_io_api_core_v1_SecretReference_descriptor = getDescriptor().getMessageTypes().get(176); internal_static_k8s_io_api_core_v1_SecretReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretReference_descriptor, new java.lang.String[] { "Name", "Namespace", }); internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor = getDescriptor().getMessageTypes().get(177); internal_static_k8s_io_api_core_v1_SecretVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor, new java.lang.String[] { "SecretName", "Items", "DefaultMode", "Optional", }); internal_static_k8s_io_api_core_v1_SecurityContext_descriptor = getDescriptor().getMessageTypes().get(178); internal_static_k8s_io_api_core_v1_SecurityContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecurityContext_descriptor, new java.lang.String[] { "Capabilities", "Privileged", "SeLinuxOptions", "WindowsOptions", "RunAsUser", "RunAsGroup", "RunAsNonRoot", "ReadOnlyRootFilesystem", "AllowPrivilegeEscalation", "ProcMount", "SeccompProfile", }); internal_static_k8s_io_api_core_v1_SerializedReference_descriptor = getDescriptor().getMessageTypes().get(179); internal_static_k8s_io_api_core_v1_SerializedReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SerializedReference_descriptor, new java.lang.String[] { "Reference", }); internal_static_k8s_io_api_core_v1_Service_descriptor = getDescriptor().getMessageTypes().get(180); internal_static_k8s_io_api_core_v1_Service_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Service_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor = getDescriptor().getMessageTypes().get(181); internal_static_k8s_io_api_core_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor, new java.lang.String[] { "Metadata", "Secrets", "ImagePullSecrets", "AutomountServiceAccountToken", }); internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor = getDescriptor().getMessageTypes().get(182); internal_static_k8s_io_api_core_v1_ServiceAccountList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor = getDescriptor().getMessageTypes().get(183); internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor, new java.lang.String[] { "Audience", "ExpirationSeconds", "Path", }); internal_static_k8s_io_api_core_v1_ServiceList_descriptor = getDescriptor().getMessageTypes().get(184); internal_static_k8s_io_api_core_v1_ServiceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ServicePort_descriptor = getDescriptor().getMessageTypes().get(185); internal_static_k8s_io_api_core_v1_ServicePort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServicePort_descriptor, new java.lang.String[] { "Name", "Protocol", "AppProtocol", "Port", "TargetPort", "NodePort", }); internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor = getDescriptor().getMessageTypes().get(186); internal_static_k8s_io_api_core_v1_ServiceProxyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor, new java.lang.String[] { "Path", }); internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor = getDescriptor().getMessageTypes().get(187); internal_static_k8s_io_api_core_v1_ServiceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor, new java.lang.String[] { "Ports", "Selector", "ClusterIP", "ClusterIPs", "Type", "ExternalIPs", "SessionAffinity", "LoadBalancerIP", "LoadBalancerSourceRanges", "ExternalName", "ExternalTrafficPolicy", "HealthCheckNodePort", "PublishNotReadyAddresses", "SessionAffinityConfig", "IpFamilies", "IpFamilyPolicy", "AllocateLoadBalancerNodePorts", "LoadBalancerClass", "InternalTrafficPolicy", }); internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_descriptor = internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor = getDescriptor().getMessageTypes().get(188); internal_static_k8s_io_api_core_v1_ServiceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor, new java.lang.String[] { "LoadBalancer", "Conditions", }); internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor = getDescriptor().getMessageTypes().get(189); internal_static_k8s_io_api_core_v1_SessionAffinityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor, new java.lang.String[] { "ClientIP", }); internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor = getDescriptor().getMessageTypes().get(190); internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor, new java.lang.String[] { "VolumeName", "VolumeNamespace", "FsType", "ReadOnly", "SecretRef", }); internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor = getDescriptor().getMessageTypes().get(191); internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor, new java.lang.String[] { "VolumeName", "VolumeNamespace", "FsType", "ReadOnly", "SecretRef", }); internal_static_k8s_io_api_core_v1_Sysctl_descriptor = getDescriptor().getMessageTypes().get(192); internal_static_k8s_io_api_core_v1_Sysctl_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Sysctl_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor = getDescriptor().getMessageTypes().get(193); internal_static_k8s_io_api_core_v1_TCPSocketAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor, new java.lang.String[] { "Port", "Host", }); internal_static_k8s_io_api_core_v1_Taint_descriptor = getDescriptor().getMessageTypes().get(194); internal_static_k8s_io_api_core_v1_Taint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Taint_descriptor, new java.lang.String[] { "Key", "Value", "Effect", "TimeAdded", }); internal_static_k8s_io_api_core_v1_Toleration_descriptor = getDescriptor().getMessageTypes().get(195); internal_static_k8s_io_api_core_v1_Toleration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Toleration_descriptor, new java.lang.String[] { "Key", "Operator", "Value", "Effect", "TolerationSeconds", }); internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor = getDescriptor().getMessageTypes().get(196); internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor, new java.lang.String[] { "Key", "Values", }); internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor = getDescriptor().getMessageTypes().get(197); internal_static_k8s_io_api_core_v1_TopologySelectorTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor, new java.lang.String[] { "MatchLabelExpressions", }); internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor = getDescriptor().getMessageTypes().get(198); internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor, new java.lang.String[] { "MaxSkew", "TopologyKey", "WhenUnsatisfiable", "LabelSelector", }); internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor = getDescriptor().getMessageTypes().get(199); internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor, new java.lang.String[] { "ApiGroup", "Kind", "Name", }); internal_static_k8s_io_api_core_v1_Volume_descriptor = getDescriptor().getMessageTypes().get(200); internal_static_k8s_io_api_core_v1_Volume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Volume_descriptor, new java.lang.String[] { "Name", "VolumeSource", }); internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor = getDescriptor().getMessageTypes().get(201); internal_static_k8s_io_api_core_v1_VolumeDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor, new java.lang.String[] { "Name", "DevicePath", }); internal_static_k8s_io_api_core_v1_VolumeMount_descriptor = getDescriptor().getMessageTypes().get(202); internal_static_k8s_io_api_core_v1_VolumeMount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeMount_descriptor, new java.lang.String[] { "Name", "ReadOnly", "MountPath", "SubPath", "MountPropagation", "SubPathExpr", }); internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor = getDescriptor().getMessageTypes().get(203); internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor, new java.lang.String[] { "Required", }); internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor = getDescriptor().getMessageTypes().get(204); internal_static_k8s_io_api_core_v1_VolumeProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor, new java.lang.String[] { "Secret", "DownwardAPI", "ConfigMap", "ServiceAccountToken", }); internal_static_k8s_io_api_core_v1_VolumeSource_descriptor = getDescriptor().getMessageTypes().get(205); internal_static_k8s_io_api_core_v1_VolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeSource_descriptor, new java.lang.String[] { "HostPath", "EmptyDir", "GcePersistentDisk", "AwsElasticBlockStore", "GitRepo", "Secret", "Nfs", "Iscsi", "Glusterfs", "PersistentVolumeClaim", "Rbd", "FlexVolume", "Cinder", "Cephfs", "Flocker", "DownwardAPI", "Fc", "AzureFile", "ConfigMap", "VsphereVolume", "Quobyte", "AzureDisk", "PhotonPersistentDisk", "Projected", "PortworxVolume", "ScaleIO", "Storageos", "Csi", "Ephemeral", }); internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor = getDescriptor().getMessageTypes().get(206); internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor, new java.lang.String[] { "VolumePath", "FsType", "StoragePolicyName", "StoragePolicyID", }); internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor = getDescriptor().getMessageTypes().get(207); internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor, new java.lang.String[] { "Weight", "PodAffinityTerm", }); internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor = getDescriptor().getMessageTypes().get(208); internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor, new java.lang.String[] { "GmsaCredentialSpecName", "GmsaCredentialSpec", "RunAsUserName", "HostProcess", }); io.kubernetes.client.proto.Resource.getDescriptor(); io.kubernetes.client.proto.Meta.getDescriptor(); io.kubernetes.client.proto.Runtime.getDescriptor(); io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); io.kubernetes.client.proto.IntStr.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy